Page 1 of 3

Heroes and Generals model and texture(.CRN) formats

Posted: Wed Jul 20, 2016 6:16 pm
by Portugalotaku
I have been looking into extracting models from HoG, and since ninjaripper did not work, I have looked into the game files.
I have not yet figured out where the models are kept, and the game client is suspiciously small, but I have located the textures, which seem to in .crn format.
Now I do not know much about cracking texture formats. Actually, I do not know anything about it. So I thought to ask here, since someone might be able to help me.

Here is a sample:
http://www.mediafire.com/download/3fgq9 ... _02A_D.crn

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Wed Jul 20, 2016 7:53 pm
by PredatorCZ

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Wed Jul 20, 2016 8:02 pm
by Portugalotaku
Oh. I do not know how I missed that.
This is helpful, but there's still the issue of the models.

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Fri Jul 22, 2016 1:59 pm
by Portugalotaku
Here's a sample of a .bin file. Any clues how to open it?

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Mon Jul 25, 2016 1:13 am
by Portugalotaku
So far, still no luck with rippers. Anyone got better luck with the file I posted?

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Mon Aug 08, 2016 11:35 am
by Portugalotaku
This time I posted a larger sample:
http://www.mediafire.com/download/6y24g ... sample.rar

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Sun Oct 23, 2016 12:48 am
by Portugalotaku
Sorry for necroing, but anyone found anything?

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Sun Oct 23, 2016 1:54 am
by Acewell
the bin is zlib compressed, the first byte was a hint, use offzip to extract 00000000.dat from it :D

Code: Select all

offzip -a c5531570cd93ce62402a65fedcb2cde9.bin c:\offzip
How to recognize the compression algorithms with your eyes
http://zenhax.com/viewtopic.php?t=27

then you can parse the mesh inside the dat, first submesh here
00000002_dat.png

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Wed Oct 26, 2016 11:05 am
by Portugalotaku
Oh nice! You think extracting models from those files is viable?

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Tue Nov 15, 2016 3:56 am
by Acewell
of course! you can use Hex2obj to get the meshes but would no doubt be easier with a script or tool :)

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Thu Jan 19, 2017 5:10 pm
by Portugalotaku
So how exactly do I open these files? Sorry, I just have no clue how to use this hex thingies.

And for some bizarre reason ninjaripper does not work for me in this game, so I cannot use that.

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Sun Feb 05, 2017 12:44 pm
by Portugalotaku
So can you tell me the hex2obj process you used on this mesh?

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Sun Feb 05, 2017 7:33 pm
by Acewell
its all in the image, the offsets and counts and settings, you can start
learning it by using the same sample i did above, just dive in man! :D

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Mon Feb 06, 2017 2:30 pm
by Portugalotaku
It worked, but how do I do this on other models?

Re: Heroes and Generals model and texture(.CRN) formats

Posted: Wed Feb 08, 2017 2:47 pm
by Portugalotaku
I mean it worked on that one model, but not any others.