different file after reinjection [Shotonline]

Programming related discussions related to game research
macmac
Posts: 2
Joined: Fri Nov 03, 2017 4:26 pm

different file after reinjection [Shotonline]

Post by macmac »

Hi i used your program to extract resource file for Shotonline!
downloaded shotonline script from your website and work great i extracted files from a resource file cand can modify as i wish

After reimport file injected back to resource file but its changed even if i didnt modified exctracted files!so my game cant handle anymore!

reinjected 1 file without touching inside: (seems work fine)
Képkivágás.JPG

Image

then if i comparise original and reinjected resource file its changed (i only extracted and reinjected 1 file without touch)
comparison.JPG

Image


pls explain whats wrong and how should i solve it!

thanks ;)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: different file after reinjection

Post by aluigi »

There is nothing wrong.
99% of times the compression algorithms are available in multiple implementations (libraries and software) and multiple settings, obviously zlib is one of them.
So it's perfectly normal and there are no negative effects on the reimporting operation.

In your specific case I see a possible problem with the CRC fields available in the format of the archive because the game may check both the compressed and uncompressed archived file, and if one of them is different then the archived CRC value it will refuse to work.
Obviously the reimport mode doesn't touch the crc fields (or any other field) so if your game doesn't work with the edited archive (even if you didn't touch the imported file) then this is the reason.
macmac
Posts: 2
Joined: Fri Nov 03, 2017 4:26 pm

Re: different file after reinjection

Post by macmac »

Hi! thanks fast reply ;)

I forced my client to download file again from game server and everytime its get different crc/hash
so im not sure if game check crc or hash sums

Image

Also changed crc same as my original file but still dont work :(