Page 1 of 1

Company of Heroes 1&2

Posted: Mon Feb 16, 2015 7:57 pm
by amzerof6
"Company of Heroes"

in this game ".sga" files are packaged files, can be unpack this tool : http://www.corsix.org/misc/CDMS_055.zip
then get some files like these:
.rgt - textrue files,Use Corsix's tool can be save ".dds" or ".tga"
.rpb - I think those'r model files,but have no any tools can look them

these files I have no idea
.abp .mua .muax .sua

I upload some example files , anyone can research them? thanks

http://www.mediafire.com/download/4a392 ... hicles.rar

=======================================
"Company of Heroes 2"

Corsix's tool can't unpack this game's ".sga" file, so I tried ninjia ripper catch this game's model, but just get some texture files.
I upload a example file

http://www.mediafire.com/download/t61l6 ... ighXP1.sga


Image

Re: Company of Heroes 1&2

Posted: Wed Feb 18, 2015 4:28 am
by amzerof6
anyone have interesting on these game ??

Re: Company of Heroes 1&2

Posted: Wed Feb 18, 2015 6:45 am
by Szkaradek123
Company of Heroes 2
sga extractor: http://forums.relicnews.com/showthread. ... 2-26-09-13
rgm importer for max : http://hq-coh.com/forum/index.php?topic=23026.0

Edit:2015-02-19

For curiosity i played with rgm and rga format.
Generally i make importers from zero, don't using others sources. It is for better understanding, how it works and for self teaching.
I prefer Blender version 249. I don't use 3ds max. I can never to teach how navigate in this program. Too hard for me.

I had problem with uv mapping. Solution found in rgm importer for max. Really strange format for uv. I think still is something wrong in it.
Another problem was type 5 for animation.
type 4 - animation keys : rotation+position
type 3 - animation keys : rotation
type 5 - animation keys : rotatation+position for first frame, but next frames are in special case multiply with values like at offset 19749
Maybe this type keys is used only for rotated wheels. I don't know.

Code: Select all



offset 19456	vehicle\hull_stop_fwd  # - animation
offset 19645	(1,) - #used bone count
offset 19649	(96,) - #size of stream data
offset 19653	(24,)
offset 19657	bone:bone_chassis_shaker - #bone name used for animation
offset 19681	(5, 6, 0, 72) - #type animation , frame count, stream off start, stream off end
offset 19697	(1.0,) - #long animation in sec 
offset 19701	(0.0, -2.6865682801243546e-16, -0.0, 1.0, 0.021946858614683151, 0.0027103796601295471, 0.0013075463939458132, 0.0, 0.0, 0.0, 0.0, -1.794927534916057e+38) - initial key ?
offset 19749	(0.0, -2.1273346576163537e+19, -4.6566125955216364e-10, -1.6862942859182034e-34, -444019758858240.0, -2.0372400283813477) - strange values = float32*frame count
offset 19773	(0.0, 0.13333334028720856, 0.26666668057441711, 0.40000000596046448, 0.66666668653488159, 1.0) - frames



Well. Here is what i have done.
How use:
1.Unpack all sga archives and joint all art folders.
2.run Blender249.blend - not open in blender.exe only click on blend file
3.in Blender Text Window press alt+p and select:
- rgm files - textured and rigged models
- delete unnecessary objects and make parent all meshes to "pose" armature
- rga files - unpack all animations to new folder
- anim files - for animation

Updated: 2015-02-21:
- rgt - convert to dds format

Re: Company of Heroes 1&2

Posted: Sat Feb 21, 2015 4:19 pm
by raykingnihong
Hi Szkaradek123,My friend, thank you very much for the update script, the script runs very well, thanks again

Re: Company of Heroes 1&2

Posted: Sun Feb 22, 2015 7:26 am
by amzerof6
wow!! Szkaradek123 ,you'r an Master !!
a big thank for your script

Re: Company of Heroes 1&2

Posted: Sat Oct 24, 2020 7:19 am
by PONGINGPOOR
Noob question,

How can I import .rgm to the blender and see the textures and rigged models?
alt+p then import .rgm does do anything.