Current time: 15.04.2024, 05:24 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Вопросы по моддингу
» (обсуждаем моддинг здесь)
Author Message
planetavril Offline

Posts: 87
Post: #1366

nothing I don't know anything about erm
(This post was last modified: 07.07.2020 17:07 by planetavril.)
07.07.2020 15:42
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16471
Post: #1367

planetavril, for which Era version do you need the code?


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

Posts: 2814
Post: #1368

(07.07.2020 13:24)Zur13 Wrote:  Буду очень благодарен, я уже на финальной стадии, осталось чуть ИИ научить пользоваться модом и выложу раннюю версию.
Нет. Не получается, даже через плагин со сплайс хуком. Бараторч, обработав нажатия своих кнопок производит "return 1" и даже другой хук через патчер неспособен сработать после таких действий. Нужно ставить хук раньше HD мода, но как это сделать я не знаю.

Либо как пишет Берс - обращаться к Баре, чтобы он адаптировал функционал для ERM.


game bug fixes extended.dll || My Plugins || My GitHub
07.07.2020 20:43
Visit this user's website Find all posts by this user Quote this message in a reply
Bes Offline

Posts: 5422
Post: #1369

либо делать костыль с контролем определённых координат, наличием HD и таблицей адаптации координат под разные разрешения (тут не уверен, меняются ли координаты?)Unsure
07.07.2020 20:49
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4338
Post: #1370

Bes, не меняются , так как окна 800*600


Image: widget.png?style=banner2

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

Posts: 787
Post: #1371

А кстати, можно ли как-то проверить, включен ли твик в HD?
Через ReadStrFromIni вроде не получается, формат ini-файлов в HD другой.
07.07.2020 21:26
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4338
Post: #1372

wessonsm, сторонним софтом разве что копировать параметры при старте игры105


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
07.07.2020 21:43
Visit this user's website Find all posts by this user Quote this message in a reply
planetavril Offline

Posts: 87
Post: #1373

3.02
08.07.2020 00:45
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16471
Post: #1374

Херомант, не выходит преодолеть ограничения. Гильдия магов 4-го и 5-го уровня остаётся недоступной для цитадели.
Скрипт:


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

Posts: 87
Post: #1375

also enable mage guild 5 for the castle and extra animation for tower and inferno?
Thanks for the script
(This post was last modified: 08.07.2020 02:40 by planetavril.)
08.07.2020 02:32
Find all posts by this user Quote this message in a reply
planetavril Offline

Posts: 87
Post: #1376

then to activate extra animation for the tower
i have to write
    !! CA0/s:B4/24;enable extra animation buildings
08.07.2020 02:37
Find all posts by this user Quote this message in a reply
XEPOMAHT Offline
Moderators

Posts: 2271
Post: #1377

(08.07.2020 01:33)Berserker Wrote:  Гильдия магов 4-го и 5-го уровня остаётся недоступной для цитадели.

Если добавляется уровень гильдии магов, которого не было, то ещё его нужно:
1. прописывать в массиве Town_BuildingsDrawOrder (по вогу это TownsBuildingsDrawQueue, там же можно подсмотреть адрес).
2. Добавлять деф строения в массив Town_BuildingsDefs.
3. Добавлять графику рамки в массив Town_BuildingsSelection.
4. Записать координаты строения в Town_BuildingsCoords.
5. Прописать зависимости строений в Town_BuildingsDependMasks.
6. Разрешить строение в Town_BuildingsMask.
7. Настроить игнор рендера дефов в Town_BuildingsReplaceMasks.
8. Может что-то ещё... (для городов полтинник таблиц, всего и не упомнишь)

Если не строиться здание и после этого, то пробуйте строить ERM-ом (т.к. в оригинале в диалоге холла тоже может стоять ограничение, это только в MoP/ERA+ используется универсальный диалог холла 148 , в котором разрешено всё). Если чего-то не хватает, то всё равно прозвучит звук строительства, т.е. можно будет определить, что игра пытается что-то строить.
(This post was last modified: 08.07.2020 02:49 by XEPOMAHT.)
08.07.2020 02:44
Find all posts by this user Quote this message in a reply
planetavril Offline

Posts: 87
Post: #1378

can I do it directly in the exe file in hexadecimal?.

however then it will cause errors with typhon, because that's exactly what they did in succession wars, they added buildings that weren't there,
adding typhon in succession wars freezes the game when you click on the fort to buy creatures because
typhon conflicts with the H3SW_buildups plugin which manages added buildings
(This post was last modified: 08.07.2020 03:39 by planetavril.)
08.07.2020 03:09
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16471
Post: #1379

planetavril, seems like the following changes are not easy to implement right now.


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

Posts: 2814
Post: #1380

Berserker, SN:E возвращает только целочисленное значение в v1?
Как-то можно вернуть float? Про double я вообще молчу)

Вообще, у этого рессивера есть скрытые/незадокументированные возможности?


(08.07.2020 01:33)Berserker Wrote:  не выходит преодолеть ограничения. Гильдия магов 4-го и 5-го уровня остаётся недоступной для цитадели.
В коде этот момент жестко зашит.
Но снять ограничение в окне хола можно так
!!UN:C4591530/1/<>6;


game bug fixes extended.dll || My Plugins || My GitHub
08.07.2020 14:45
Visit this user's website 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