Skip to content

Posts from I need help with modifying the .Exe file to support the new dual-screen resolution. Auto-translated

No ratings yet — be the first to rate!
User Avatar
#16
Auto-translated
Here's what's bad about not using an .exe: it makes it much harder to track down which register the ceiling value for buildings is being read from, as 127 is stored in many different registers... try increasing the value in the .xml file to 255 or 256 – that way, if the .exe crashes, you can examine the log to see what happened!
С уважением, Psatkha (Псатха)

---------------------------------------------

Неудачное планирование ведёт к неудаче ...

NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
In reply to psatkha
User Avatar
#17
Auto-translated
psatkha
The fact that it doesn't crash the .exe file is actually very bad... it will be more difficult to figure out which register the ceiling value for buildings is read from, as 127 is stored in many different registers... try to increase it to 255 or 256 in the .xml file - then try to crash the .exe and look at the log!

To be honest... I'm scared to break it))) because I don't know how to fix it =(
Ссылка на мой мод Heroes 5 Armageddons Blade

Ссылка на мои уроки по модостроению в Героях 5

Ссылка на мой Artstation
In reply to Waterfall_13
User Avatar
#18
Auto-translated
Waterfall_13
To be honest... I'm afraid to break things))) because I don't know how to fix them =(
Actually, there's no need to break anything in the literal sense. You just need to feed the game engine with more data than the programmers defined for a specific register (in types.xml, you need to fill in IDs for buildings = 255 or 256, just to be sure the game crashes... I'll let you in on a secret: this method was used to determine the register for the maximum number of creatures), i.e., in other words, you need to overflow the buffer... it's like a container of unknown volume into which you pour liquid... the amount of liquid is known... as soon as the liquid spills over the edge of the container, we'll know the maximum volume of the container!

By the way, are you experimenting with the standard .exe file or with some other one?!
С уважением, Psatkha (Псатха)

---------------------------------------------

Неудачное планирование ведёт к неудаче ...

NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
In reply to psatkha
User Avatar
#19
Auto-translated
psatkha

You don't actually need to break anything in the literal sense; you just need to feed the game engine more data than the programmers defined for a particular register (in types.xml, you need to fill in IDs for buildings = 255 or 256, just to be sure the game crashes... I'll let you in on a secret: this method was used to determine the register for the maximum number of creatures), i.e., in other words, you need to overflow the buffer... it's like a container of unknown volume into which you pour liquid... the amount of liquid is known... as soon as the liquid spills over the edge of the container, we'll know the container's maximum volume!

So, do I need to register 256 buildings in types.xml?


psatkha

By the way, are you experimenting with the standard .exe or some other version?!

No, not with the standard one. My .exe has been modified using the deflator patcher to expand classes and expand artifacts.

Ссылка на мой мод Heroes 5 Armageddons Blade

Ссылка на мои уроки по модостроению в Героях 5

Ссылка на мой Artstation
User Avatar
#20
Auto-translated
@Waterfall_13, basically, if this even works, you need to test it on a clean .exe file.
С уважением, Psatkha (Псатха)

---------------------------------------------

Неудачное планирование ведёт к неудаче ...

NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
In reply to psatkha
User Avatar
#21
Auto-translated
psatkha
@Waterfall_13, essentially, if this even works, it needs to be tested on a clean .exe file.

The situation is that I need this change to work with the existing changes in my .exe file =)

I'm not going to revert all my added artifacts and classes just to gain access to new buildings. So, testing it on a clean .exe is pointless for me, as it's a functionality that exists in a vacuum and can't be used in my mod =(
Ссылка на мой мод Heroes 5 Armageddons Blade

Ссылка на мои уроки по модостроению в Героях 5

Ссылка на мой Artstation
In reply to Waterfall_13
User Avatar
#22
Auto-translated
Waterfall_13

Well, the situation is that I need this change with the existing changes in my .Exe =)

I won't revert all my added artifacts and classes just to gain access to the new buildings. So, it's pointless for me to do this on a clean .exe, as it's a functionality that exists in a vacuum and can't be used in my mod =(

Then I need your .exe with all the modifications and the modified types.xml!
С уважением, Psatkha (Псатха)

---------------------------------------------

Неудачное планирование ведёт к неудаче ...

NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
In reply to psatkha
User Avatar
#23
Auto-translated
psatkha

Then I need your .exe file with all the extras and the modified types.xml!


Sure, here you can download the folder with my version of the game - https://drive.google.com/file/d/1yUaHSN2sNOZOiG2alHFdoWHlBrVtVORH/view?usp=sharing

My version of types.xml is located in the data folder and is labeled:


You can try it on this version... or we can wait until the weekend when I finish all the "classes" of heroes and re-upload a fresh version.
Ссылка на мой мод Heroes 5 Armageddons Blade

Ссылка на мои уроки по модостроению в Героях 5

Ссылка на мой Artstation