|
|
Albyx

 
 
Adventuring Hero
|
posted January 16, 2023 09:46 AM |
|
Edited by Albyx at 15:26, 16 Jan 2023.
|
Some "H4 Modding Manual" based on this thread made into pdf or another document would be useful. Sometimes I feel like this kind of modding handbook could've saved me lots of time I spent searching for enum values and some addresses.
Edit: hey, it's 300th reply in this thread !
|
|
baronus

 
     
Legendary Hero
|
posted January 16, 2023 10:02 PM |
|
Edited by baronus at 22:04, 16 Jan 2023.
|
baronus
We built it to have all in one place.
Dont worry topic is wasted. I have modding tut txt but in polish. Other my idea is give usefull post index with actualisation from time to time. Add your discovery with building order propeties. Here is not!
|
|
Karmakeld

   
    
Responsible
Supreme Hero
|
posted January 22, 2023 02:39 PM |
|
|
Albyx said: Some "H4 Modding Manual" based on this thread made into pdf or another document would be useful. Sometimes I feel like this kind of modding handbook could've saved me lots of time I spent searching for enum values and some addresses.
Edit: hey, it's 300th reply in this thread !
I had the intention of starting just that, a few years ago, but never got far, but it was planned here:
Modding Compendium
____________
|
|
NimoStar

    
     
Honorable
Legendary Hero
Modding the Unmoddable
|
posted January 23, 2023 03:13 AM |
|
Edited by NimoStar at 03:13, 23 Jan 2023.
|
Discussion isn't useless. yes, it may be that the information is scattered. But scattered information we have now is better than "maybe full guide" that we don't have.
After all, if the guide with all the information is ever made, we can unpin this one and pin the other.
But right now? There is no such full resource...
Also, here we can also add stuff discussed on H4 Ultimate discord with extra addresses.
____________
Never changing = never improving
|
|
NimoStar

    
     
Honorable
Legendary Hero
Modding the Unmoddable
|
posted January 25, 2023 08:15 PM |
|
Edited by NimoStar at 20:17, 25 Jan 2023.
|
Ah, since we now know the hex locations for building dependancies,
does anyone know or can find the locations for SKILL dependancies?
I take it it is very likely the code will look quite alike
If we find them finally we can free a better progression for heroes (instead of needing something like Advanced Death Magic just to get the paltry bonus from Basic Demonology; some decisions should just be left to the user)
Plus, I wonder if we can get "tertiary" skills without the basic skill (Say, Resurrection without Life Magic), or to change which skill is the "main" one (for example, it would be interesting for Leadership to be the parent of Tactics, since Tactics is the strong one)
____________
Never changing = never improving
|
|
Albyx

 
 
Adventuring Hero
|
posted January 26, 2023 06:57 AM |
|
|
Copied hex editing building requirements guide from my thread here.
If you use IDA to get into what these parts of code do, you may squeeze more out of this guide I think:
Hex editing building requirements
While working on my plugin I've found a way to edit or remove building requirements, that will be useful for modders who can't or don't want to use plugins based on H4API and Patcher. Only thing you need is hex editor.
I must also say, that now I'm working on plugin for adding new buildings to already existing requirements or creating more complex requirements like we have on creature dwellings (choosing one of two buildings, requiring only one of several buildings etc.), so method in this thread will not be really useful if you use Patcher in your mod.
So, here there are 6 addresses (without additional offsets):
1. 48d500 - common buildings
2. 48db60 - life
3. 48e890 - order
4. 48f2e0 - death
5. 48fde0 - chaos
6. 4908a0 - nature
7. 491380 - might
You need to search for this bytes:
89 68 04 C7 00 7C 5D 99 00 C7 40 08 XX 00 00 00 ,
where XX is code of building, that is required for building (NOT the building you are changing requirement for).
Change that XX byte and it should work.
If you want to remove requirement, set it to 00(village hall).
For example, I'll change Seminary requirement from Abbey to level 5 mage guild:
1. Search for 89 68 04 C7 00 7C 5D 99 00 C7 40 08 1D 00 00 00 starting from 48db60. It is at 48db92.
2. Change 1D (Abbey) at 48db9e to 18 (level 5 guild).
3. Save the change and run the game!
Buildings codes:
00- Village Hall;
01- Town Hall;
02- City Hall;
03- Fort;
04- Citadel;
05- Castle;
06- Shipyard;
07- Caravan;
08- Prison;
09- Tavern;
0A- Blacksmith;
0B- Grail;
0C- Level 1 up;
0D- Level 1 down;
0E- Level 2 up;
0F- Level 2 down;
10- Level 3 up;
11- Level 3 down;
12- Level 4 up;
13- Level 4 down;
14- Institute of Magic Level 1;
15- Institute of Magic Level 2;
16- Institute of Magic Level 3;
17- Institute of Magic Level 4;
18- Institute of Magic Level 5;
19- First Library;
1A- Second Library;
1B- Seminary(Haven)
1C- Stable(Haven)
1D- Abbey(Haven)
1E- University (Order)
1F- Treasure (Order)
20- Undead Transformer(Necropolis
21- Necromancy Amplifier (Necropolis)
22- Battle Academy (Chaos)
23- Thieves Gauntlet(Chaos) or Wrestling Pits(Stronghold)
24- Mana Vortex(Chaos)
25- Creature Portal(Nature)
26- Rainbow(Nature)
27- Sacred Grove(Nature)
28- Breeding Pens(Stronghold)
29- Magic Dampener(Stronghold)
2a- Arena of Honor(Stronghold)
|
|
NimoStar

    
     
Honorable
Legendary Hero
Modding the Unmoddable
|
posted March 14, 2023 06:49 PM |
|
Edited by NimoStar at 18:55, 14 Mar 2023.
|
Joining previously unavailable information in same thread
Albyx said: I'm using IDA, so there is 0x400000 offset in addresses.
Numbers for gem effects:
Mana Opal (6 mana) - 0x6C0004
Sapphire of Defense (6 defense) - 0x6C0048
Ruby of Attack (6 attack) - 0x6C0063
Emerald of Speed (2 speed) - 0x6C0082
Changing message text by hex editing can be done by changing pointers that are located at:
0x6C0CAF and 0x6C0CBE for Mana, Defense and Attack gems (they all share the same string)
0x6C0CE5 and 0x6C0CF4 for Speed gem.
Although I would say 0x6C0063 is wrong, there is no "6" at that address, it's actually at "65"
____________
Never changing = never improving
|
|
baronus

 
     
Legendary Hero
|
posted March 14, 2023 08:09 PM |
|
Edited by baronus at 20:11, 14 Mar 2023.
|
baronus
Annex to building requirements:
baronus said: Something wrong.
Here you have all buildings. First you must write a code. At the end is aklways 08 and next is building number.
Common x 48d500
077c5d99 00c74708 XX 00 00 00
01,02,03
04,05,07
09,0a,14,15
16,17,18
19,1a
Life. x 48db60
895804c7 007c5d99 00C74008 XX 00 00 00 ,
1d,1b,1c,0c,0d,0e,0f,11,10,
Order x 48e890
1e,1f,0c,0d,0e,0f,11,10,
Death x 48f2e0
896804c7 007c5d99 00C74008 XX 00 00 00 ,
0c,0d,0e,0f,10,11,20,21
Chaos. x 48fde0
0c,0d,0e,0f,10,11,23
Nature x 4908a0
0c,0d,0e,0f,11,10,27,26,25
Might. x 491380
0c,0d,0e,0f,10,11,23,2a
Dont discuss here its only discovered adresses text.
|
|
karmakeld

   
    
Responsible
Supreme Hero
|
posted March 15, 2023 10:37 AM |
|
|
I think we, in collaboration, could make a user friendly modding guide here on HC aswell, I can set up a tread when I have some time to do so, but I guess it would be most optimal to keep it clear of discussions, test results etc and just boil it down to thr basic guide. We can always link to original treads.
Also if someone is willing to gather up the stuff in pdf or similar that'd be great.
I could also use help with an overview as I havent been that actively followinh the progress lately and also I know alot of you are more skilled at modding and understanding the basics behind it, than I am.
____________
|
|
|
|