Current time: 22.11.2024, 01:26 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
ERA III
Author Message
Berserker Offline
Administrators

Posts: 16657
Post: #2026

wessonsm,
Core.Hook(@Hook_ScrollTextDlg_CreateLineTextItem, Core.HOOKTYPE_CALL, 5, Ptr($5BA547));

Я там вычитаю из ширины текста ширину полосы прокрутки в 24 пикселя. В каких-то диалогах это исправляло баг. Вероятно, проблема в отсутствии проверки на наличие той самой полосы прокрутки.

Code:
function Hook_ScrollTextDlg_CreateLineTextItem: integer; stdcall; assembler;
const
  SCROLLBAR_WIDTH = 24;

asm
  sub dword [esp + $0C], SCROLLBAR_WIDTH
  mov eax, $5BC6A0
  jmp eax
end;


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

Posts: 1175
Post: #2027

Berserker, can't let your code slip away until they are added to ERA 148

Well, I just come out with a new request. Can we export the strings in the dialogue of crashing to json? There is only one sentence, but still, not friendly to many players knowing 0 English. I'd hope this dialogue to be localised and help me to collect debug folders from players.

Also, I would hope the text from Papyrus could be exported as well. This dialogue is activated by clicking the Quest Log button with at least one of the map rules selected. The string is hardcoded and the activation is not overridden by igrik's plugin.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 17.05.2022 12:11 by Archer30.)
17.05.2022 12:03
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2028

Archer30, nice idea, though I'm inactive these days.


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

Posts: 1175
Post: #2029

Berserker, I completely understand. Ab


Latest ERA mods and scripts in development - My GitHub
17.05.2022 20:30
Find all posts by this user Quote this message in a reply
wessonsm Offline

Posts: 792
Post: #2030

Случайно обнаружил ошибку в 9999 era - stdlib.erm (вылетало).


Имя дефа или pcx - это тоже строка, поэтому последнее условие нужно изменить на

(This post was last modified: 18.05.2022 21:36 by wessonsm.)
18.05.2022 16:21
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2031

Спасибо. Пришли daemon_n или Archer правленный вариант, у них сейчас последняя актуальная версия EEF.


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

Posts: 1175
Post: #2032

Looking for help with a bug of Wandering Monsters. A player reported that he got this at the end of turn (start of a new day)
It is confirmed to be a WM issue since it can resolved by disabling WM

Debug:
https://drive.google.com/file/d/1McPJrzR...sp=sharing

Does this mean the data of the WM is corrupted somehow?
This msg only appear once and never shown in the following turns


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 24.05.2022 13:50 by Archer30.)
24.05.2022 12:11
Find all posts by this user Quote this message in a reply
Bes Offline

Posts: 5422
Post: #2033

Read // ликбез по работе со строками перенесён в тему по реверсингу 4


Image: team-supermod.gif
25.05.2022 12:02
Visit this user's website Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #2034

Reporting an issue with campaign transfer:
In some cases, commanders could have abnormal experiences after winning and arriving at another campaign zone. This happens between OnTransferHero and OnAfterErmInstructions.

Save for testing:
Download
Gem's commander - Just beat her enemy and check her commander's exp in the next zone.

This can be fixed by erm quickly:


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 27.05.2022 23:13 by Archer30.)
27.05.2022 21:20
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2035

!!CO(HERO_GEM):X1/i^cmd_exp_%i^;

should be

!!COi:X1/i^cmd_exp_%i^;


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

Posts: 1175
Post: #2036

Berserker, corrected Rolleyes


Latest ERA mods and scripts in development - My GitHub
27.05.2022 23:13
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2037

Did it fix the issue? )


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

Posts: 1175
Post: #2038

Yes for sure. I post the code coz it works, meaning the same can be applied to ERA for a quick fix. I just got a typo without knowing it since I tested only with Gem...


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 29.05.2022 01:23 by Archer30.)
29.05.2022 00:55
Find all posts by this user Quote this message in a reply
Arnor Offline

Posts: 1
Post: #2039

Доброго дня! Возник вопрос, как совместить скрипты ВОГа и ЕРЫ? До недавнего времени на компе была отличная сборка с сочетанием скриптов ВОГа и ЭРЫ в полном объеме, но был вынужден удалить сие чудо. Пытаюсь теперь найди его - не могу. Скачал разные версии ЭРЫ и ВОГА - толку 0. Либо вог-скрипты - либо скрипты еры. Если и то, и другое - конфликт и отказ ерм работать впринципе. Нашел инфу что ера-скрипты требуют версию ЕРЫ не ниже 2.9.1.2 - в итоге скачал 2.9.1.3 - там вог-скриптов нет. Что делать?
04.06.2022 12:53
Find all posts by this user Quote this message in a reply
Elmore Offline

Posts: 608
Post: #2040

Arnor, установи сборку через лаунчер http://wforum.heroes35.net/showthread.php?tid=5235


Image: widget.png?style=banner2
(This post was last modified: 04.06.2022 17:15 by Elmore.)
04.06.2022 17:15
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