|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted October 07, 2023 04:48 PM |
|
|
2Ghost: I might be wrong, but I saw a scrollable secondary skills list somewhere. Maybe just my faulty memory.
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted October 07, 2023 09:10 PM |
|
Edited by AlexSpl at 21:22, 07 Oct 2023.
|
About returning Titan's Lightning Bolt. There are two problems - with bitset and array, that have easy solution in C++, but in hex you have to modify several chunks of code, that is always a dirty trick. There are the global array of disabled spells and a number of local bitsets for each town. Probably, can be solved using "or" or "and" instructions to enable this spell for towns and adventure map objects. As always, the problem has no trivial solution in hex. Actually, hex editing thing revolves around luck. Some things can be done pretty easily, while other easy things require a lot of coding
|
|
Phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted October 08, 2023 10:14 AM |
|
|
Ah okay, I guess it's not feasible then.
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted October 08, 2023 06:51 PM |
|
Edited by AlexSpl at 18:53, 08 Oct 2023.
|
Quote: Ah okay, I guess it's not feasible then.
I don't say it's hard. In this case it can be done with a patch, that is shorter than some patches from the BTB's hacking guide, which require free space. Just want you to understand the following things -
1) A plugin can work and will work even without the HD mod. Basically, if you want, you can write plugins for other games, as long as they stay x86.
2) A plugin automatically do both jumps (forth to your new code and back to the code of the game). In the middle there is your code, written in C++ (or even Delphi). And it automatically transforms to machine instructions.
I understand your concerns about the longevity of your patches. Believe me, even the author of the patcher is not able to stop plugins working, so in that sense, plugins and manual hex-patches are indistinguishable.
I modded H1 with the patcher, Ben80 modded H2 with the patcher, now people mod H4 with the same patcher. And this is a whole new level in modding.
|
|
Phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted October 08, 2023 09:28 PM |
|
|
Alex, I don't have the skills you or Ben80 or some other great modders have and I never will, but I accept my limits.
I still feel like a complete noob in regards to modding even though I have done it for some years now. But I would'nt have been able to do any modding without you guys, so it's all thanks to you.
However I had the chance to test the 10 skills change with a friend this weekend and everything worked perfectly, so I'm really happy about that.
|
|
nero468

 
Tavern Dweller
|
posted October 10, 2023 05:25 PM |
|
|
Summoning creatures spell
Is there a way to summon other creatures using the spell Summon Elementals in HotA. I have tried changing it but always received an error message ingame. I'm only using an hex editor.
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted October 10, 2023 08:15 PM |
|
Edited by AlexSpl at 20:41, 10 Oct 2023.
|
Yes, unless you don't care about their numbers. The full implementation cannot be done easily in hex, obviously. Later I'll show how to change a type of summoned creatures.
* * *
1A2042, 1A9680, 1A96EB, 19F899 (write here new ID instead of the ID of Fire Elementals)
1A2057, 1A9686, 1A96FD, 19F8A0 (Earth Elementals)
1A206C, 1A968C, 1A970F, 19F8A7 (Water Elementals)
1A2081, 1A9692, 1A9721, 19F8AE (Air Elementals)
Hope, it's all that can be done in hex.
|
|
nero468

 
Tavern Dweller
|
posted October 15, 2023 09:15 PM |
|
|
Thanks for your post AlexSpl. It works.
|
|
phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted November 03, 2023 04:57 PM |
|
|
Is there any way to make AI able to cast Fire Wall, Quicksand, Remove Obstacle, Force Field and Land Mine?
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted November 04, 2023 08:45 PM |
|
|
Yes, you have to write weighting functions for those spells.
|
|
Phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted November 04, 2023 08:52 PM |
|
|
Oh, have I maybe asked you about this before, how do I add weighting functions?
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted November 04, 2023 08:56 PM |
|
|
There are special classes for AI. Not so simple task.
|
|
Phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted November 04, 2023 09:09 PM |
|
|
Special classes? Okay, of course I hoped it would be easy, but maybe not.
HotA somehow managed to make AI cast Berserk, but still it can't cast those 5 other spells.
How about Eagle Eye being able to learn to spells from enemy (and possibly friendly) creatures?
|
|
nero468

 
Tavern Dweller
|
posted November 19, 2023 05:54 PM |
|
|
Change to town portal spell
OxFEA said:
Maurice said:
OxFEA said: 1D6D4: 02 - lvl, from which TP allows choosing town. Only human.
You mean to say the AI always teleports to nearest Town with this spell? Or how does the AI logic work in that case? I admit that I never studied the AI behaviour on this particular spell. Having downloaded your IDA disassembly, I'll check out the function that handles this, see if I can make any sense out of the C-code it generated .
No. If we set this byte to, e.g., 7F, player will always teleport to nearest town regardless of school, but AI will use old mechanic.
After implementing the town portal nerf wirtten in this thread the window to confirm the town you are teleporting to only shows up at basic level. Can i enable this pop up again for the other spell levels only using hex editing of the .exe file while still keeping the nerf. I'm playing the HotA mod.
|
|
|