[quote][quote]No you need to figure out (by searching) where that piece of code, as it exists in the 1.0, exists in Kings.exe. Not easy!
I can't follow you. You gave me just very blured hints. I am just wondering, what did you exactly mean by this "need to figure out (by searching) where that piece of code, as it exists in the 1.0, exists in Kings.exe". I looked to all of those 3 codes (kings patch with those !!!, original age2_x1.exe, original kings .exe) like an hour, but there is no linkage. No "blocks" or codes (or just their pieces) doesn't match in any of these codes, so as I search through, I still find nothing.
Could you please specify it to the details a little bit for me? . Now, at this time, I am more courious, what are your thoughts, than if I will even play AoK in widesreen sometime :D.
Look. I found, in the original 1.0 AoC exe, the pieces of code that needed to be changed in order for it to work in other resolutions. That's the RootPatch file. It points out the locations that need to be changed, smth like: at offset 123981 there is now 1280 which is a Width. or, at offset 120947 there is now 450 which is related to a height of 600 (so if we patch 800x600 to 1000x650, this 450 needs to become 50 more, 500).
Then, because people also wanted this in other versions of AoC 1.0c and 1.0e, I created a method that looks at the code around each of these locations, and finds a matching (and unique!) piece of code in another executable. This was an (almost?) fully automated process from 1.0 to 1.0c and 1.0e.
But for Kings, the exe is apparently quite a bit different from the AoC 1.0 exe - so it cannot find matching pieces of code (or it finds multiple and can't choose) for some of the locations. Only solution: Manually check the 1.0 AoC exe how the code looks at those locations, and find the correct match in AoK exe... Or just leave them out, but you're sure to miss some locations that probably are important.
Me, I don't play AoK so I don't have time to do this for you at this moment... a community sponsorship might help though :)
Good, thx. This is much more better description. I have to read it more times and think about it .. and try it. I don't want you to do it for me. I don't play Kings also, but I am just courious now, how does your patch work. Yeah, I guess so, sponsorship would be fine :D .. I was working on my color FIX application like 1 month, so I know ...