Did you know? Xentax started the Unepic SID Channel, that brings the latest music composed for the SID chip! Support us by listening and subscribing! Over 50.000 songs already there!

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 » Wed Jul 20, 2016 6:16 pm

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: 285
Joined: Mon Apr 21, 2014 8:32 pm
Has thanked: 8 times
Been thanked: 236 times
Contact:

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

Post by PredatorCZ » Wed Jul 20, 2016 7:53 pm


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 » Wed Jul 20, 2016 8:02 pm

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 » Fri Jul 22, 2016 1:59 pm

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 » Mon Jul 25, 2016 1:13 am

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 » Mon Aug 08, 2016 11:35 am

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 » Sun Oct 23, 2016 12:48 am

Sorry for necroing, but anyone found anything?

User avatar
Acewell
VIP member
VIP member
Posts: 1329
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2683 times
Been thanked: 841 times

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

Post by Acewell » Sun Oct 23, 2016 1:54 am

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 » Wed Oct 26, 2016 11:05 am

Oh nice! You think extracting models from those files is viable?

User avatar
Acewell
VIP member
VIP member
Posts: 1329
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2683 times
Been thanked: 841 times

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

Post by Acewell » Tue Nov 15, 2016 3:56 am

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 » Thu Jan 19, 2017 5:10 pm

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 » Sun Feb 05, 2017 12:44 pm

So can you tell me the hex2obj process you used on this mesh?

User avatar
Acewell
VIP member
VIP member
Posts: 1329
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2683 times
Been thanked: 841 times

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

Post by Acewell » Sun Feb 05, 2017 7:33 pm

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 » Mon Feb 06, 2017 2:30 pm

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 » Wed Feb 08, 2017 2:47 pm

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

Post Reply