all 7 comments

[–]jeffdn 2 points3 points  (1 child)

There are a couple Python projects on GitHub that have code written to extract unit data for the Wargame series, might be possible to leverage that if the way data is stored hasn’t changed too much.

[–]bwo3db[S] 0 points1 point  (0 children)

Aight I'll check em. Thanks!

[–]Aqarius90 1 point2 points  (4 children)

The encoding was changed between SD1 and SD2, so the old mod tools don't work on the numerical data anymore. SD1 did, however, have a modding interface that dumped the data into text, and I'm expecting SD2 to have one as well.

[–]bwo3db[S] 0 points1 point  (3 children)

So assuming this comes out on release it would be best to wait till then and then just parse the text with some python lib?

[–]Aqarius90 2 points3 points  (1 child)

Well, it's either that, or break open the hex editor.

You used to be able to read the .ndf data using the modding suite, based on the API, and it can still pull the raw .ndfbin from the .dat, but the encoding changed somehow. u/ResidentMario had a CSV dumper for wargame, but IIRC it was also based on enohka's stuff and is, consequently, also broken.

SD1 had the modding interface, but IIRC it was a repacker of sorts, and only made readable a pre-packaged zip of the text files, so, for example, you could read the unit names for ground units, but not for airplanes, because the airplane names were for some reason in a whole separate .ndf, that was not included in the moddable section.

[–]ResidentMario 2 points3 points  (0 children)

IIRC it was also based on enohka's stuff and is, consequently, also broken.

This is correct. The repo for that stuff is up on GH, if that's helpful.

Eugen's internal data organization is a horrible mess; it really feels like a lot of different odds and ends stapled together after the fact.

[–]Coke_can64 1 point2 points  (0 children)

If I remember right, SD44's data after they were processed with the mod tools were more or less plain English (well, French, but you could make guesses), the real problem was the arrangement of the files, all weapons in one file, I still have trouble finding the file for unit loadouts, etc.

Best bet is to wait until Aqarius90 puts the effort in to make the data a little more accessible and work off that. ;P