taw / etwng

Next Generation Modding Tools for Empire Total War (and other Total War games)
35 stars 26 forks source link

cs2. parsed unpacker #10

Closed Primergz closed 2 years ago

Primergz commented 4 years ago

Dear Taw,

your new cs2.parsed unpacker gives me some headache.

You obviously switched to from jruby to ruby here but now either the code or the explanation in the readme does not work anymore. If i use the command from the readme (only with ruby) i get this txt file:

rice.txt

The file i wanted to convert was a collision model from shogun 2

What does the "string unpack1" mean?

Greetings

Primergy from TWC

taw commented 4 years ago

The only difference between jruby and regular ruby is that jruby is a lot easier to run on Windows.

This was unfinished parser for Empire, and it will not work for Shogun 2.

You get a crash because format changed for Shogun 2. It's not related to ruby vs jruby.

I was asked before to finish it for Shogun 2, and I still want to, but I'm a bit low on free time at the moment.

taw commented 2 years ago

The cs2.parsed files never got anywhere close to a proper unpacker, and looking at their corresponding .cs2 files, I couldn't really figure out any straightforward mapping, so I don't think it's very likely to happen without some more information. Closing for now.