Skip to content

MEGApack update.

#53
Auto-translated
I'd like to clarify one point regarding the update procedure itself?
Please let me know where I am wrong.

So:

0. 5. The most important part about the exe.
Based on https://github.com/Might-Magic-Heroes-5-5/MMH55/blob/master/Frameworks/NewCreatureFramework/NewCreatureFramework.yml#L28

Checked 0x006E1A20 and 0x006E1A21 (I have standard NCF heroes without other changes, where the number of creatures is 1000)

E8 03 (0x3e8 = 1000 - current value)
meaning if I want 3k for myself, I should set (0xbb8), so by analogy it will be
0x006E1A20 => E8 -> B8
0x006E1A21 => 03 -> 0B

Based on https://github.com/Might-Magic-Heroes-5-5/MMH55/blob/master/Frameworks/NewCreatureFramework/NewCreatureFramework.yml#L22
0x006CA781 => E8 -> B8
0x006CA782 => 03 -> 0B

Simplifying all this, the new exe should differ from the old one by the 4 bytes mentioned above.


1. Overwriting types.xml (a new fresh pack containing a new file) -

-> then look for /GameMechanics/RefTables/Creatures.xdb#xpointer(/Table_Creature_CreatureType)
And a parallel db_id node to this one, where there are and a list of creatures.
Currently, standard creatures are listed there, then CREATURE_181 (and 180 is the thunder bird), and so on up to CREATURE_999.

Essentially p1 is xml expansion.

2. CreatureType
Two nodes below are lists like this,

CREATURE_185
185
expand by analogy

3. Table_Creature_CreatureType via search, two nodes below, change the 3rd occurrence of ref_table_num_objs to X+1? (I didn't quite understand why 1000 if there are originally 999 creatures)?
4. GameMechanics\Creature\Creatures\Neutrals\Creature _XXX.xdb throw a million files here

5. UI\UIGameRoot\ xdb \ - expand by analogy
6. Cameras\Interface\HireCreatures\Creature_XXX.(Came ra).xdb -> add by analogy

7. create such files with clear content Scripts/creature_XXX.lua
8. Scripts/common.lua by analogy doFile("/scripts/creature_180.lua")
9. But as for index.bin, it's completely unclear.

If I manage to finish the work today, an auto-generator can be made for the first 8 points.
main question - DID I FORGET ANYTHING HERE?

Source https://heroes5.fandom.com/wiki/New_Creature_Framework_(NCF)

If I don't do p9 (since I have no idea how, and I won't click 3k by hand), will it work? In theory, it's only for the editor, but will the creatures work normally?

Added after 19 minutes
Forgotten due to inattention

GameMechanics\RefTables\Creatures.xdb by analogy