Current time: 24.03.2024, 03:53 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
UN:C
» Готовые решения
Author Message
Berserker Offline
Administrators

Posts: 16449
Post: #46

Патч на восстановление работы команд FU:D/IP на карте приключений с HD модом для Эры 3.9.2 и ранее


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
10.01.2022 15:21
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #47

Дать/Забрать любое заклинание герою от любого артефакта



Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
18.04.2022 14:02
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #48

Чтение текста из txt таблиц
Reading text from txt tables



;как оказалось, я лишь сделал аналог вот этого Dash1


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
30.05.2022 07:05
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #49

(07.12.2017 21:52)igrik Wrote:  Командиры / Commanders:

Изменяем/получаем значения бонусов от навыков Командира:
Базовая таблица (Click to View)

Изменяем/получаем базовые параметры Командиров

Это не массив, но внимательные уже заметили, что со смещением в 10 байт мы можем работать со значениями с помощью цикла


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
29.07.2022 01:56
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #50

(15.05.2020 23:25)igrik Wrote:  Города: постройки и их цены:
Возможность получить и Установить стоимость зданий




Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
23.08.2022 22:11
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #51

Текст: Работаем с геройскими txt:

Имеем геройскую строку в стандарте языка "C", которую можно извлечь из игры:
Code:
"%s currently has %d spell points out of a maximum of %d"
Но нам надо подставить свои значения, не используя посимвольный парсинг строки))

вместо буфера можно использовать адрес любой статической текстовой переменной или же геройский буфер по адресу 6911016
например:
Выдаст:
"Berserker currently has 0 spell points out of a maximum of 0"


Необязательно подставлять все значения, но их тип обязательно должен совпадать -- %s - текст, %d - число (если поставить текст, то выдаст его адрес)
также необязательно использовать геройский буфер -- способ с переменной со статическим адресом:
Выдаст:
"daemon_n currently has 666 spell points out of a maximum of 666"


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
04.11.2022 18:33
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #52

(18.08.2021 14:25)Berserker Wrote:  Изменение колдовской силы героев в бою:


Image: image.png


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
02.01.2023 23:25
Visit this user's website Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1285
Post: #53

ОТКРЫТИЕ ОКНА ГЕРОЯ:



Карта-мод "Война на Холсте"
(This post was last modified: 02.05.2023 11:47 by SergOz.)
02.05.2023 11:46
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #54

Текст: Считаем количество строк нашего текста в определённой ширине:
Text: Count the number of lines of our text in a certain width:


Вызываем внутриигровую ф-цию, которая определяет, сколько строк займёт указанный текст в указанной ширине и с указанным шрифтом.
Последним аргументом передаётся указатель на вектор, в который ф-ция и сохраняет массив строк.
Очень важно отправить чистые 16 байтов (определяется как чистый вектор строк), поэтому чистим первые 16 байтов z-2 переменной, адрес которой и передаём в главную ф-цию. Хотя ранее я чистил все 512, по привычке.
После выполнения ф-ции получаем вектор из строк - не думаю, что много кому нужен, но для получения кол-ва строк вычитаем адрес первого элемента из адреса конца и делим на 16 (размер объекта класса строки).

We call an in-game function that determines how many lines the specified text will take up in the specified width and font.
The last argument is a pointer to a vector, where this function saves an array of strings.
It's very important to send clean 16 bytes (defined as a clean vector of strings), so we clean the first 16 bytes of the z-2 variable, the address of which is passed to the main f-function. Although I used to clear all 512, out of habit.
After f-function execution we get a vector of strings - I don't think anyone needs it much, but to get the number of strings we subtract the first address from the end address and divide by 16 (the size of the string class object).



Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
25.06.2023 08:59
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4333
Post: #55

Карта Приключений: Меняем внешний вид монстров:
Adventure Map: Changing Monster Map View



Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
23.08.2023 08:51
Visit this user's website Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1285
Post: #56

Установить конкретному герою персональный обзор:
@by daemon_n


Нужно учесть, что при нулевом обзоре герой не сможет исследовать новые территории, но игрок клавишами со стрелками всё же может двигать этого героя "во тьму" )))


Карта-мод "Война на Холсте"
(This post was last modified: 06.03.2024 11:09 by SergOz.)
06.03.2024 11:07
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group