Page 1 of 1

Change 1st person model?

Posted: Fri Aug 19, 2016 2:08 am
by CdtFox
When I want to change the first person model by a dual pistol 1st ferson model the game crash, here is my odf:

Code: Select all

[GameObjectClass]
ClassParent         = "rep_inf_default_officer"


[Properties]

GeometryName        = "rep_41e_TCW_ARF_Recon_Trooper"
GeometryLowRes      = "rep_41e_TCW_ARF_Recon_Trooper"
FirstPerson         = "REP/rep_1st_weap_inf_pistol_dc17_twohanded"
Model and textures are in rep/msh

I've tried to change the req file, but there is no modifications:

Code: Select all

ucft
{
    REQN
    {
        "class"
        "rep_inf_for_officer"
    }
	REQN
    {
	"texture"
	"imp_1st_inf_stormtrooper_arms"
	}
	REQN
    {
	"texture"
	"imp_1st_inf_stormtrooper_hands"
    }
    REQN
    {
	"model"
	"rep_1st_weap_inf_pistol_dc17_twohanded"
    }
}

Re: Change 1st person model?

Posted: Fri Aug 19, 2016 3:49 am
by thelegend
You do not need to include the textures inside your req file. They are already read by your .msh files.
Secondly:
FirstPerson = "REP/rep_1st_weap_inf_pistol_dc17_twohanded"
Change this to:
FirstPerson = "REP/NameOfYourSide'sReqFile/rep_1st_weap_inf_pistol_dc17_twohanded"

So if your req's name is rep.req change "NameOfYourSide'sReqFile" to "rep".

Re: Change 1st person model?

Posted: Fri Aug 19, 2016 5:48 am
by CdtFox
Hum, I miss something...I'm pretty sure it's very easy, but I failed... :oops:

Code: Select all

GeometryName        = "rep_41e_TCW_ARF_Recon_Trooper"
GeometryLowRes      = "rep_41e_TCW_ARF_Recon_Trooper"
FirstPerson         = "REP/rep/rep_1st_weap_inf_pistol_dc17_twohanded"
This part is good? I think so.

My .req looks like that:

Code: Select all

ucft
{    
	REQN
	{
		"model"
		"rep_1st_weap_inf_pistol_dc17_twohanded"
	}
}
and I've added "rep_1st_weap_inf_pistol_dc17_twohanded.req" to"rep.req"

Re: Change 1st person model?

Posted: Fri Aug 19, 2016 9:36 am
by thelegend
A fp model doesn't need a custom .req file...I have been confused too about this but this last post by AceMastermind explained it a lot: http://www.gametoast.com/viewtopic.php?f=27&t=12319

Re: Change 1st person model?

Posted: Fri Aug 19, 2016 9:43 am
by Anakin
do you still have my RCM files?? there are references.

Re: Change 1st person model?

Posted: Fri Aug 19, 2016 2:51 pm
by CdtFox
Thanks the_legend, The game didn't crash this time!

But....Here is the result:

Image

Re: Change 1st person model?

Posted: Fri Aug 19, 2016 3:14 pm
by thelegend
Yeah...when exporting an FP model (which has enveloped bones such as hands) have "Export Animation" selected when exporting. I had the same problem too as well when I read about it.