AlexSpl писал(а):
- Код: Выделить всё
sprintf(o_TextBuffer, "%s", "Test");
b_MsgBox(o_TextBuffer, 1);
return CALL_2(int, __thiscall, h->GetDefaultFunc(), advManager, a2);
Увидите ли Вы диалог с текстом "Test"?
Да, так работает.
Объявления | ||
---|---|---|
Друзья, если не получается зарегистрироваться, напишите на почту vdv_forever@bk.ru. Я оторву свою задницу от всех дел и обязательно Вас активирую! Добро пожаловать на геройский форум! |
Re: Как создать плагин для HD модаAlexSpl писал(а):
Увидите ли Вы диалог с текстом "Test"? Да, так работает. |
Re: Как создать плагин для HD модаНа разных машинах?
А так не работает:
|
Re: Как создать плагин для HD модаAlexSpl писал(а): А так не работает:
Так сообщение выдается но в нем 0. Вот моя структура MapItem: |
Re: Как создать плагин для HD модаМожете скинуть Вашу dll? Я посмотрю, в чём дело.
Как вариант, у вас выравнивание членов структур (Struct Member Alignment) не установлено в 1 байт. * * * Нашёл свой старый пост: Цитата: И правда, у меня ни один плагин не работает на виртуальных машинах Windows 7 и Windows Server 2008 R2. Ещё вспомнил, что я тогда тестил плагин Disguise из-за этого на виртуалках с Win10. Там работало. Без понятия почему так Вот сейчас перепроверил. Да, на виртуалке с Windows 10 плагины работают, на 7-ке и 2008 R2 - нет. |
Re: Как создать плагин для HD модаЦитата: Так и есть, поставил в 1 байт, теперь код работает. |
|
Re: Как создать плагин для HD модаHave you tried vXYZ_xp platform toolset and Multi-Threaded \MT runtime library (Code Generation option) ? I got these suggestions from berserker for compatibility. Bigger DLL but better compatibility
I talked a bit with Ben80 who had been working on code for misplaced creatures - maybe you can ask him if he made progress. To avoid the need to correct drawing, you can always try hook before the game draws the objects. I'm currently travelling so unable to verify but take a look around 0x4FDF6B, this is a loop to draw items. |
Re: Как создать плагин для HD модаRoseKavalier писал(а): I talked a bit with Ben80 who had been working on code for misplaced creatures - maybe you can ask him if he made progress. To avoid the need to correct drawing, you can always try hook before the game draws the objects. I'm currently travelling so unable to verify but take a look around 0x4FDF6B, this is a loop to draw items. Since we have talked about misplaced creatures, I did not work at this. I'm not sure it is optimal approach. Ideally one should find code where RMG make something wrong instead of post-processing of map... However I have code which (in post-processing mode) can find most of misplaced creatures (not necessarily on the roads) and write corresponding coordinates to log file. I can share my code with some skilled modder (for example, AlexSpl), if he need it. This have relation to discussed topic viewtopic.php?f=56&t=532&start=6 Unfortunately, I don't have enough perseverance for big modding tasks. Mainly I'm making something small to see results of my work quickly. Moreover, at this moment I prefer simply play in Heroes 3 rather than do modding. In Multi-player, RoseKavalier, my apologizes. Still I hope someday I will produce some complex things for Heroes 3. |
Re: Как создать плагин для HD модаPossibly, MonsterGeneration stage is ideal place for correction of misplaced creatures. There one can get comprehensive info - about zones to be connected, zones coordinates and so on.
One can use my post-processing algorithms in such place. Of course, those algorithms should be modified. BTW, RoseKavalier, can you give some info about HotA approach to misplaced creatures ? Here Gus Smedstat presentation about RMG. |
|
Re: Как создать плагин для HD модаI've seen this document before, it is nice but I have no clue how this was coded! Obviously, correcting monster position during RMG would be best. Problem is finding correct spot.
I also have 0 idea what HotA have done (not looked at HotA since HDmod removed HoTa plugins), I spent about 15 minutes total in RMG code when we looked at Market of Time so it is a complete mystery to me still! @AlexSpl My IDA is v5.5. I have set and removed the HO_IGNORE_OVERLAPS flag some time ago with no success... maybe my version is a bit old and the problem? |
Re: Как создать плагин для HD модаЦитата: Yes, maybe it's a bug. The latest version I know of is 7.0, I've seen it on df2 somewhere. Цитата: It looks like a good place to hook. My idea is to find a function which initializes "draw" fields of the _MapItem_ structure. Then we can be sure that they will be initialized correctly, and can safely shift monsters. |
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3