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

Company of Heroes 1&2

Post questions about game models here, or help out others!
Post Reply
amzerof6
advanced
Posts: 57
Joined: Sat Oct 23, 2010 3:50 pm
Has thanked: 2 times
Been thanked: 2 times

Company of Heroes 1&2

Post 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
Last edited by amzerof6 on Wed Feb 18, 2015 4:29 am, edited 1 time in total.
amzerof6
advanced
Posts: 57
Joined: Sat Oct 23, 2010 3:50 pm
Has thanked: 2 times
Been thanked: 2 times

Re: Company of Heroes 1&2

Post by amzerof6 »

anyone have interesting on these game ??
Szkaradek123
mega-veteran
mega-veteran
Posts: 292
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 742 times

Re: Company of Heroes 1&2

Post 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
You do not have the required permissions to view the files attached to this post.
raykingnihong
mega-veteran
mega-veteran
Posts: 179
Joined: Sun Apr 06, 2014 8:06 pm
Has thanked: 216 times
Been thanked: 6 times

Re: Company of Heroes 1&2

Post by raykingnihong »

Hi Szkaradek123,My friend, thank you very much for the update script, the script runs very well, thanks again
amzerof6
advanced
Posts: 57
Joined: Sat Oct 23, 2010 3:50 pm
Has thanked: 2 times
Been thanked: 2 times

Re: Company of Heroes 1&2

Post by amzerof6 »

wow!! Szkaradek123 ,you'r an Master !!
a big thank for your script
PONGINGPOOR
ultra-n00b
Posts: 1
Joined: Sat Oct 24, 2020 4:14 am
Been thanked: 1 time

Re: Company of Heroes 1&2

Post 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.
Post Reply