Current time: 23.03.2024, 04:22 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Исследование героев
» туториал(ы)
Author Message
GhostManSD Offline

Posts: 1054
Post: #61

MOP, подскажи, пожалуйста, как ты узнал, что для этого нужен адрес 4200424(dec).


Κακῆς ἀπ' ἀρχῆς γίγνεται τέλος κακόν.
04.09.2010 11:05
Visit this user's website Find all posts by this user Quote this message in a reply
MOP Offline
Moderators

Posts: 1467
Post: #62

Попросту вбил "iam004" (деф кнопки) в поиск по дизассемблеру. Сразу пришёл к указателю. А параметры отрисовки элементов диалогов мне как бы уже знакомы - следующим параметром за дефом в функцию идёт id.

Дополнил код выше. Второй адрес - для раскраски кнопки в цвета игрока. Его я не находил - мне Бараторч подсказал.


Circle of destruction, hammer comes crushing
Powerhouse of energy
Whipping up a fury, dominating flurry
We create the battery
(This post was last modified: 04.09.2010 11:19 by MOP.)
04.09.2010 11:08
Find all posts by this user Quote this message in a reply
GhostManSD Offline

Posts: 1054
Post: #63

А если изменить указатель, изменится и деф?


Κακῆς ἀπ' ἀρχῆς γίγνεται τέλος κακόν.
04.09.2010 13:26
Visit this user's website Find all posts by this user Quote this message in a reply
MOP Offline
Moderators

Posts: 1467
Post: #64

Аха. Так, например, в TPM сделали (major, наверное).


Circle of destruction, hammer comes crushing
Powerhouse of energy
Whipping up a fury, dominating flurry
We create the battery
(This post was last modified: 04.09.2010 13:28 by MOP.)
04.09.2010 13:27
Find all posts by this user Quote this message in a reply
GhostManSD Offline

Posts: 1054
Post: #65

MOP, спасибо огромное!


Κακῆς ἀπ' ἀρχῆς γίγνεται τέλος κακόν.
04.09.2010 18:57
Visit this user's website Find all posts by this user Quote this message in a reply
GhostManSD Offline

Posts: 1054
Post: #66

А можно вопрос от нуба? Где в OllyDbg вбивать "iam004" для поиска?


Κακῆς ἀπ' ἀρχῆς γίγνεται τέλος κακόν.
04.09.2010 20:24
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16449
Post: #67

Search - references to text strings - ctrl + L


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

Posts: 7107
Post: #68

в районе 0х01481680 в памяти начинается массив героев (это так, к слову).


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
04.09.2010 22:37
Find all posts by this user Quote this message in a reply
feanor Offline

Posts: 622
Post: #69

Quote:в памяти начинается массив героев
Динамические адреса давать таки не гуд.
К тому же адрес этого массива структур уже известен:
[699538h] + 21620h+492h*hero_num
04.09.2010 23:53
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #70

он статический. по крайней мере, на хл.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
05.09.2010 01:30
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16449
Post: #71

gamecreator, он динамический по определению. У тебя неверное представление об организации памяти и структур.


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

Posts: 7107
Post: #72

нет у меня никакого представления.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
05.09.2010 10:42
Find all posts by this user Quote this message in a reply
GhostManSD Offline

Posts: 1054
Post: #73

Как инвертировать число -1 в десятичной и получить обратное ему?


Κακῆς ἀπ' ἀρχῆς γίγνεται τέλος κακόν.
(This post was last modified: 05.09.2010 23:18 by GhostManSD.)
05.09.2010 23:17
Visit this user's website Find all posts by this user Quote this message in a reply
Sav Offline

Posts: 2180
Post: #74

Инвентировать - в смысле заменить биты на противоположные? 0 будет, вроде.
05.09.2010 23:27
Find all posts by this user Quote this message in a reply
GhostManSD Offline

Posts: 1054
Post: #75

Берс, можешь объяснить суть триггеров входа в окно героя и выхода из оного?
Интересует второй из них. Можешь объяснить, что происходит в строках
Quote:PUSH General.C_ERA_EVENT_HEROSCREEN_EXIT
CALL General.GenerateCustomErmEvent
?
Добавлено:
И как выглядел бы код без обращения к General?
Добавлено:
Поясняю: нужно сделать подобное с


Κακῆς ἀπ' ἀρχῆς γίγνεται τέλος κακόν.
(This post was last modified: 05.09.2010 23:54 by GhostManSD.)
05.09.2010 23:50
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