Page 1 of 1

Firstperson arms not working [Solved]

Posted: Sat Sep 03, 2016 5:11 pm
by mrcluster
Okay, so I'm creating a custom side, and I want to use the firstperson arms used by Clone Troopers for my side.

Here's what I've done:
Hidden/Spoiler:
- Put the clonetrooper 1st person arms (the model name is "rep_1st_trooper") in my side's "msh" directory
- Created a .req file called "shkrfmn.req" in a folder called "fpm" in my side's "req" directory (The code in it is:
[code]ucft
{
REQN
{
"model"
"rep_1st_trooper"
}
}[/code]
- Referenced the "shkrfmn" req file and the "rep_1st_trooper" model in my side's class, with the following code (whole code pasted just so you know I did it right):
[code][GameObjectClass]
ClassParent = "shk_inf_default_rifleman"

[Properties]
GeometryName = "rep_inf_ep3trooper"
GeometryLowRes = "rep_inf_ep3trooper_low1"
FirstPerson = "SHK\shkrfmn;rep_1st_trooper"
[/code]
Yet, however, in-game, when I go into firstperson as my class, I have no hands. What did I do wrong?

Thanks in advance for any help! :D

Re: Firstperson arms not working

Posted: Mon Sep 05, 2016 1:07 am
by AceMastermind
mrcluster wrote:- Created a .req file called "shkrfmn.req" in a folder called "fpm" in my side's "req" directory
Skip that part and just add the code to your side req file.

http://www.gametoast.com/viewtopic.php? ... 19#p466233

Re: Firstperson arms not working

Posted: Sat Sep 17, 2016 8:44 am
by Deviss
AceMastermind wrote:
mrcluster wrote:- Created a .req file called "shkrfmn.req" in a folder called "fpm" in my side's "req" directory
Skip that part and just add the code to your side req file.

http://www.gametoast.com/viewtopic.php? ... 19#p466233
i know i am very slow lol, but its very confuse i read every post and they arent exactly, it this right?:

FirstPerson = "SIDE(like customcis, customrep Confederacy ..)\UNIT's req file (like cis_inf_droidcommando);model(cis_1st_BX-commando)"

Confederacy.req file:

Code: Select all

ucft
{
    REQN
    {
        "lvl"
        "cis_inf_droidcommando"
    }
}
cis_inf_droidcommando.req file:

Code: Select all

ucft
{
    REQN
    {
        "class"
        "cis_inf_droidcommando"
    }
    REQN
    {
	"model"
	"cis_1st_BX-commando"
    }
}
and log error:

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Platform\PC\pcFirstPerson.cpp(69)
FirstPerson::LoadLVLFile: Could not open FPM\Confederacy\cis_inf_droidcommando.lvl

Re: Firstperson arms not working

Posted: Sat Sep 17, 2016 3:08 pm
by AceMastermind
Well, which way are you trying to do it? :)
If you go by Aman/Pinguin's instructions then you have to move the munged lvl file to the game's fpm folder which is not practical.
If you go by psych0fred's instructions then you don't have to move any lvl files, so you would put this:

Code: Select all

    REQN
    {
	    "model"
	    "cis_1st_BX-commando"
    }
into your Confederacy.req file, so it looks like this:

Code: Select all

ucft
{
    REQN
    {
        "lvl"
        "cis_inf_droidcommando"
    }
    REQN
    {
	    "model"
	    "cis_1st_BX-commando"
    }
}

and in the unit's ODF:

Code: Select all

FirstPerson  = "[SIDE lvl name]\[SIDE req file name];[first person msh file]"
So I guess yours would look like this:

Code: Select all

FirstPerson  = "Confederacy\Confederacy;cis_1st_BX-commando"
and that's it! :D

Re: Firstperson arms not working

Posted: Mon Sep 19, 2016 5:52 am
by Deviss
AceMastermind wrote:
Hidden/Spoiler:
Well, which way are you trying to do it? :)
If you go by Aman/Pinguin's instructions then you have to move the munged lvl file to the game's fpm folder which is not practical.
If you go by psych0fred's instructions then you don't have to move any lvl files, so you would put this:
[code] REQN
{
"model"
"cis_1st_BX-commando"
}[/code]
into your Confederacy.req file, so it looks like this:
[code]
ucft
{
REQN
{
"lvl"
"cis_inf_droidcommando"
}
REQN
{
"model"
"cis_1st_BX-commando"
}
}
[/code]


and in the unit's ODF:
[code]FirstPerson = "[SIDE lvl name]\[SIDE req file name];[first person msh file]"[/code]
So I guess yours would look like this:
[code]FirstPerson = "Confederacy\Confederacy;cis_1st_BX-commando"[/code]

and that's it! :D
its work perfect Ace :D many thanks! the only thing its i got this error, its normal?

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Platform\PC\pcFirstPerson.cpp(69)
FirstPerson::LoadLVLFile: Could not open FPM\Confederacy\Confederacy.lvl

Re: Firstperson arms not working

Posted: Mon Sep 19, 2016 12:12 pm
by JimmyAngler
That's 100% normal but I hate it..

Re: Firstperson arms not working

Posted: Mon Sep 19, 2016 5:53 pm
by Deviss
JimmyAngler wrote:That's 100% normal but I hate it..
oh good so

Thanks Ace and Jimmy :)