SiegeEngineers / genie-rs

Rust libraries for reading/writing various Age of Empires I/II files.
https://docs.rs/genie
GNU General Public License v3.0
18 stars 9 forks source link

cpx: support DE2 campaign files #20

Closed goto-bus-stop closed 4 years ago

goto-bus-stop commented 4 years ago

Need to figure out the format

thowtue commented 4 years ago

Hi ! Have you figured out the format of the Campaign files ? Would be great if we can extract them :)

goto-bus-stop commented 4 years ago

I started doing something here https://github.com/SiegeEngineers/genie-rs/tree/de2-cpx but didn't get very far yet.

goto-bus-stop commented 4 years ago

Managed to find out just enough to be able to extract raw scenario files: https://github.com/SiegeEngineers/genie-rs/pull/22

thowtue commented 4 years ago

Allright ! Are DE2 campaign and scenario files that different from HD version ?

goto-bus-stop commented 4 years ago

They both contain a bunch of new bytes where I don't know what they are yet. It's hard to say exactly how different they are, even a small difference can cause parsers to fail in strange ways, sometimes at a totally different point. It just needs someone to look at it with a hex editor for a while :upside_down_face:

thowtue commented 4 years ago

Yes I see what you're talking about :') There is no script nor software that compares HD and DE2 files and find the differences ? I mean with content extracted from hex edit soft

thowtue commented 4 years ago

Ok, I just figured out that I can extract scenarios from campaigns inside the DE2 editor. Just needed to copy the content of "..\Steam\steamapps\common\AoE2DE\resources_common\campaign" to C:\Users\%userprofile%\Games\Age of Empires 2 DE[USERID]\resources_common\campaign Then the game can red them. Like In HD I suppose, just never done that in HD so..

goto-bus-stop commented 4 years ago

Done by #22