|
|
FfuzzyLogik

 
  
Known Hero
|
posted November 07, 2021 04:12 PM |
|
|
Hello,
Isn't all the thing written there ?
Hero structure includes his speciality.
Byte 1 : Skill - 06 for conversion speciality
Byte 5 : 1rst creature conversion type (stone golem and their upgraded version iron golem) 20
Bytes 9-13-17 : useless here
Byte 21 : Gold golem ID (so gold golem will be used too) 74
Byte 25 : Resulting ID (Diamond golem) 75
Normally for that, you only have to place the 74 at the right place in this hero structure... The bonus starts at 278970.
If I'm not mistaking that's it...
Good day.
____________
FfuzzyLogik.
If I'm crazy ? Sure, because its madness to be normal...
|
|
LoneHero

 
Tavern Dweller
|
posted November 10, 2021 12:35 PM |
|
|
Greeting fellow Champions!
I would like to ask you a favour regarding modding HoTa.
I would like to substitute some existing spells (like Visions) with other spells that are already present in the game (for example with fireball). Could you inform me if it is possible to achieve this goal by the means of hexeditor only or there are other tools that I have to utilize? I am aware that I have to change also several txt files that are directly connected to these spells.
I would like to know also if it is possible to expand the number of artifacts by the means of some sort of plugin; I would like to add some basic artifacts that modify only basic statistics (attack, defense etc.), nothing really fancy or innovative (although adding new things is already itself very fancy and challenging).
Yours sincerely,
LoneHero
____________
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted November 10, 2021 05:59 PM |
|
Edited by AlexSpl at 18:48, 10 Nov 2021.
|
It starts from clumsy attempts to edit files you can, you are then already in awe with what you can achieve just doing that. The next stage is hex-editing, when you figured out that there are many things which seem to not obey your newfound txt-magic. You think you are holding the hex-key from all possible doors until you face one that you can't open. Then you look deeper, gradually grasping the magic of machine commands, hiding from you all this time and pretending to be not-so-interesting bytes, even dangerous bytes yet to be tamed. Then you discover that they have size - some bigger, some smaller - and start to seek a way to expand what they do by adding jumps to so-called free spaces and back. And only then, eventually, you understand that there are people around who have been through all this hoodoo, and invented, not without the help of their C++/Delphi hoodoo drums, of course, magic methods to handle legacy code effectively, called hooks. Now, all the power of high-level programming lays at your very disposal. May the mighty double plus be your guiding light
|
|
planetavril

 
   
Famous Hero
|
posted November 10, 2021 06:41 PM |
|
|
|
BTB

 
   
Famous Hero
Moist & Creamy
|
posted November 11, 2021 04:54 AM |
|
|
AlexSpl said: It starts from clumsy attempts to edit files you can, you are then already in awe with what you can achieve just doing that. The next stage is hex-editing, when you figured out that there are many things which seem to not obey your newfound txt-magic. You think you are holding the hex-key from all possible doors until you face one that you can't open. Then you look deeper, gradually grasping the magic of machine commands, hiding from you all this time and pretending to be not-so-interesting bytes, even dangerous bytes yet to be tamed. Then you discover that they have size - some bigger, some smaller - and start to seek a way to expand what they do by adding jumps to so-called free spaces and back. And only then, eventually, you understand that there are people around who have been through all this hoodoo, and invented, not without the help of their C++/Delphi hoodoo drums, of course, magic methods to handle legacy code effectively, called hooks. Now, all the power of high-level programming lays at your very disposal. May the mighty double plus be your guiding light 
That might be the most elegant thing you've ever said, Alex.
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted November 11, 2021 01:54 PM |
|
|
I've just described my own path as poetically as my English allows
|
|
phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted November 13, 2021 01:59 PM |
|
|
Has anyone figured out where to edit spell probabilities of Cove?
|
|
Kertra

 
Tavern Dweller
|
posted November 17, 2021 03:04 PM |
|
Edited by Kertra at 15:05, 17 Nov 2021.
|
Berserk use AI:
SoD: 0x287404 - 85 > 15
Com: 0x2873B4 - 85 > 15
I don't know how it works, but it works 
-----
Since I have already written the post, I have a question.
Does anyone know what to do to make the moat in RoE and AB do damage?
____________
|
|
avatar

  
    
Promising
Supreme Hero
|
posted November 17, 2021 06:31 PM |
|
|
I think it won't be easy without graphics and their coordinates.
|
|
BTB

 
   
Famous Hero
Moist & Creamy
|
posted November 17, 2021 08:33 PM |
|
|
Kertra said: Berserk use AI:
SoD: 0x287404 - 85 > 15
Com: 0x2873B4 - 85 > 15
I don't know how it works, but it works 
This seems to simply be switching the targeting from "any square" to a stack. I haven't tested it myself, but I'd want to make sure that doesn't impose any new restrictions on a human caster.
|
|
xepomaht

 
Tavern Dweller
|
posted November 18, 2021 07:51 AM |
|
|
AlexSpl said: And only then, eventually, you understand that there are people around who have been through all this hoodoo, and invented, not without the help of their C++/Delphi hoodoo drums, of course, magic methods to handle legacy code effectively, called hooks. Now, all the power of high-level programming lays at your very disposal. May the mighty double plus be your guiding light 
Personally, I like FASM more, everything works there simply and quickly. Only professional programmers can work in C ++ / Delphi, since brains are already needed there.
|
|
Kertra

 
Tavern Dweller
|
posted November 18, 2021 10:20 AM |
|
Edited by Kertra at 10:29, 18 Nov 2021.
|
BTB said:
Kertra said: Berserk use AI:
SoD: 0x287404 - 85 > 15
Com: 0x2873B4 - 85 > 15
I don't know how it works, but it works 
This seems to simply be switching the targeting from "any square" to a stack. I haven't tested it myself, but I'd want to make sure that doesn't impose any new restrictions on a human caster.
I don't know, you can test it. However, that was the only way I managed to get the computer to use Berserk. 
Still, it seems to be fine. The computer throws Berserk. Berserker activates and works as it should. Works just like in HoTa.
|
|
Phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted November 18, 2021 12:25 PM |
|
|
Kertra said: Berserk use AI:
SoD: 0x287404 - 85 > 15
Com: 0x2873B4 - 85 > 15
I don't know how it works, but it works 
Can you do the same thing with Quicksand, Force Field, Fire Wall, Land Mine and Remove Obstacle?
|
|
BTB

 
   
Famous Hero
Moist & Creamy
|
posted November 18, 2021 03:25 PM |
|
|
Phoenix4ever said:
Kertra said: Berserk use AI:
SoD: 0x287404 - 85 > 15
Com: 0x2873B4 - 85 > 15
I don't know how it works, but it works 
Can you do the same thing with Quicksand, Force Field, Fire Wall, Land Mine and Remove Obstacle?
Given that what's happening here is that the targeting is being changed from ANY tile on the battlefield to a unit stack, I sincerely doubt it.
|
|
Phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted November 18, 2021 05:39 PM |
|
|
You are probably right, I just wish there was a way to make AI use those spells, if it can use them half-way intelligently of course.
|
|
NimoStar

    
     
Honorable
Legendary Hero
Modding the Unmoddable
|
posted November 18, 2021 07:45 PM |
|
|
I think most yopu can get by simple hex edit is to make them use it randomly.
At least that isn't so bad for Land Mine...
____________
Never changing = never improving
|
|
Ben80

 
  
Known Hero
|
posted November 19, 2021 08:53 AM |
|
Edited by Ben80 at 08:54, 19 Nov 2021.
|
Kertra said: Berserk use AI:
SoD: 0x287404 - 85 > 15
Com: 0x2873B4 - 85 > 15
I don't know how it works, but it works 
Thank you for this information !
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted November 19, 2021 05:40 PM |
|
Edited by AlexSpl at 18:00, 19 Nov 2021.
|
Quote: I don't know how it works, but it works
It happens here:
.text:0043B995 mov al, byte ptr [eax+edx*8+_Spell_.Flags]
.text:0043B999 test al, 1110000b
sub_0043A560 then puts some weight on Berserk spell.
|
|
Kertra

 
Tavern Dweller
|
posted November 20, 2021 06:00 PM |
|
|
Phoenix4ever said:
Kertra said: Berserk use AI:
SoD: 0x287404 - 85 > 15
Com: 0x2873B4 - 85 > 15
I don't know how it works, but it works 
Can you do the same thing with Quicksand, Force Field, Fire Wall, Land Mine and Remove Obstacle?
I suppose these spells are locked to the computer because it wouldn't know what to do on the battlefield. Note that the computer only uses spells that affect units.
|
|
Kertra

 
Tavern Dweller
|
posted November 20, 2021 06:02 PM |
|
|
AlexSpl said:
Quote: I don't know how it works, but it works
It happens here:
.text:0043B995 mov al, byte ptr [eax+edx*8+_Spell_.Flags]
.text:0043B999 test al, 1110000b
sub_0043A560 then puts some weight on Berserk spell.
I just hope that with what I have done to keep Berserk running, there are no problems. I did not notice any of them. Berserk is working.
|
|
|