Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Heroes and Generals model and texture(.CRN) formats

Post questions about game models here, or help out others!
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

Heroes and Generals model and texture(.CRN) formats

Post 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
User avatar
PredatorCZ
mega-veteran
mega-veteran
Posts: 291
Joined: Mon Apr 21, 2014 8:32 pm
Has thanked: 11 times
Been thanked: 256 times
Contact:

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

Post by PredatorCZ »

Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

Oh. I do not know how I missed that.
This is helpful, but there's still the issue of the models.
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

Here's a sample of a .bin file. Any clues how to open it?
You do not have the required permissions to view the files attached to this post.
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

So far, still no luck with rippers. Anyone got better luck with the file I posted?
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

This time I posted a larger sample:
http://www.mediafire.com/download/6y24g ... sample.rar
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

Sorry for necroing, but anyone found anything?
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

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

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by Acewell on Wed Feb 08, 2017 7:50 pm, edited 2 times in total.
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

Oh nice! You think extracting models from those files is viable?
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

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

Post by Acewell »

of course! you can use Hex2obj to get the meshes but would no doubt be easier with a script or tool :)
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post 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.
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

So can you tell me the hex2obj process you used on this mesh?
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

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

Post 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
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

It worked, but how do I do this on other models?
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

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

Post by Portugalotaku »

I mean it worked on that one model, but not any others.
Post Reply