BIN file of Heroes of oder and chaos

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

BIN file of Heroes of oder and chaos

Post by hackspeedok »

Help me
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: BIN file of Heroes of oder and chaos

Post by puggsoy »

There's info on the files at the end, starting at 0x221112, although I'm not sure how to find that automatically. However it's possible for a script to just read the files without a table since they have size, name, etc in the file itself. The main chunk of data seems compressed though and I don't know what kind of compression it is. The fact that the info at the end has chunks starting with PK might suggest that it's some sort of PKWARE algorithm, but again I don't know. It's also strange that only part of the files are compressed, so it's likely that they're just containers (seeing as the header is GBMP and the extension in the names are .tbl).

If somebody knows how to detect the file table at the end then I (or someone else) can make a script to extract them. Worst case scenario I'll have to hard-code the offset it but that means you can't reimport and it will only work with this file. After that's done then we can maybe take a look at the GBMP files individually.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: BIN file of Heroes of oder and chaos

Post by AlphaTwentyThree »

Or you could just extract the file with 7zip. ;)

If you find a file table with a zip signature ("PK") at the end of an archive, you can always do that. :)
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

I cant extract with 7zip
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: BIN file of Heroes of oder and chaos

Post by aluigi »

The best script in the world :)
http://aluigi.org/papers/bms/zip.bms
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: BIN file of Heroes of oder and chaos

Post by puggsoy »

Neither 7-Zip nor the zip script work. With the script I get "unsupported compression method 32768".
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

aluigi wrote:The best script in the world :)
http://aluigi.org/papers/bms/zip.bms


it works :D Thanks, i didn't remember this script
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: BIN file of Heroes of oder and chaos

Post by puggsoy »

My mistake, I was testing it on the incorrect file. It does indeed work.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

aluigi wrote:The best script in the world :)
http://aluigi.org/papers/bms/zip.bms


Can you help me with this file ? When i edited it by hex editor and reimport, its error because not match size
I know rule of the file but i can't find length of it to modify.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: BIN file of Heroes of oder and chaos

Post by aluigi »

quickbms or the game gives you that error?

For quickbms there is nothing that can be done.

For the game it's a bit more complex because it's necessary to understand about what size it refers.
If you reimport the file without editing it, do you have the same errors?
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

aluigi wrote:quickbms or the game gives you that error?

For quickbms there is nothing that can be done.

For the game it's a bit more complex because it's necessary to understand about what size it refers.
If you reimport the file without editing it, do you have the same errors?


quickbms error when i edited the files. Reason of quickbms: size not match ( size of new file is over than old file )
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: BIN file of Heroes of oder and chaos

Post by aluigi »

In that case you need to make the edited file equal in size or smaller than the original.

The alternative to the reimport mode is writing your own rebuilder, find a way to not need to put the files in an archive or edit the archive manually.
In some cases it may be even possible to append the edited file at the end of the archive but it's not something "generic" that can be made in automatic by the reimport mode.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

aluigi wrote:In that case you need to make the edited file equal in size or smaller than the original.

The alternative to the reimport mode is writing your own rebuilder, find a way to not need to put the files in an archive or edit the archive manually.
In some cases it may be even possible to append the edited file at the end of the archive but it's not something "generic" that can be made in automatic by the reimport mode.

Can you help me with EN.rar attached ??
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: BIN file of Heroes of oder and chaos

Post by aluigi »

No sorry, only archives.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

aluigi wrote:No sorry, only archives.

thanks
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

aluigi wrote:No sorry, only archives.

Aluigi, can you help me? When i reimport without edit, game still crash :( I think the reimport progress is fail
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: BIN file of Heroes of oder and chaos

Post by aluigi »

The reasons can be many.
When a file is compressed, reimporting it will not generate the same identical compressed file of the original.
This is usually not a problem but with some rare games it may be, although it's very strange in this case.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

Can you have anyways for resolve this for me? Thanks. Its very important for me
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: BIN file of Heroes of oder and chaos

Post by aluigi »

Maybe others users are interested in the same game and will help you.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: BIN file of Heroes of oder and chaos

Post by hackspeedok »

aluigi wrote:Maybe others users are interested in the same game and will help you.


can you make another script for BIN file attached at #1 with another way not same as zip.bms script ??