Unofficialcrusaderpatch: Disassembly Documentation

Created on 6 Jul 2019  路  7Comments  路  Source: Sh0wdown/UnofficialCrusaderPatch

I guess this is specifically addressed to @Sh0wdown but I would like to be able to look through the disassembler for changes already made in this patch, as this will make it easier to try similar changes.
For Example, the patch changes the defence of spears against xbow. In the source code it uses the codeblock u_spearxbow.block to find this. But using ida freeware I have not been able to backtrack to the location in the code where that is actually found. If I could do so, I might be able to look at the graph view to find the shield defence against xbow to change that.

As an extension of this request, maybe a disassembled file could be made available? I noticed in the youtube video showdown made for changing the cost of Horse Archers (or at least linked https://www.youtube.com/watch?v=oGZihLPdYiM) that in ida the "Names window" was filled with useful names, and the function being edited was named "_MercRecruit" instead of my "sub_401000" (or some similar name, i renamed it myself and forget what number it had beforehand). This could make it easier for some collaboration on investigating the exe file, rather than everyone reinventing the wheel.

Most helpful comment

mabye look here? https://github.com/Sh0wdown/UnofficialCrusaderPatch/tree/master/IDAParser

This was just to convert some decompiler output into the vanilla .aiv files.

For units, look into this file, lines 630 to 670.
https://github.com/Sh0wdown/UnofficialCrusaderPatch/blob/master/UnofficialCrusaderPatch/Version.cs

I think it would be useful to create another file format like .aiv but for unit balancing.
But I have not yet worked on finding out all the stat tables of units.

All 7 comments

This is so impressive! Why is the video only available by following the link? It should be possible to see this for everybody so that more people would know how to change the game and our Stronghold Community could grow.

And why is this video so old and we still don't have the option to raise the price of horse archers? :/

@PodeCaradox That does look like a start, however I cannot figure out how to use it, got any instructions?
I was thinking of the .id64 file that gets created when you store the database (at least it did for me), if someone has that with several of the functions labelled, maybe they could upload it so the rest of us don't have to figure it out.

I can figure out some of the code, and might be able to make changes in the areas that have already been investigated, but figuring out which functions do what is a bit beyond me at this stage.

mabye look here? https://github.com/Sh0wdown/UnofficialCrusaderPatch/tree/master/IDAParser

This was just to convert some decompiler output into the vanilla .aiv files.

For units, look into this file, lines 630 to 670.
https://github.com/Sh0wdown/UnofficialCrusaderPatch/blob/master/UnofficialCrusaderPatch/Version.cs

I think it would be useful to create another file format like .aiv but for unit balancing.
But I have not yet worked on finding out all the stat tables of units.

Thanks @Sh0wdown I did find that code, and found the codeblocks from there, I had hoped to use that to find where I could change the defense of a shield (after finding where the spears defense was found from the current change against xbow), but I couldnt figure out how to take the codeblock and find it in ida. Any Suggestions?

@Sh0wdown could you at some point provide the stat tables of units that you have found, and what you still need to find? Maybe I, or others, could help you find the rest, as well as test out some alternate unit balances?

@Sh0wdown 泻邪泻 写械谢邪? 袦芯写 写械谢邪械褕褜? = )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Monsterfisch picture Monsterfisch  路  3Comments

HerrSpaten picture HerrSpaten  路  3Comments

ByBurton picture ByBurton  路  3Comments

PitchNeeded picture PitchNeeded  路  4Comments

Lolasik011 picture Lolasik011  路  4Comments