Firstperson arms not working [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
mrcluster
Private First Class
Posts: 80
Joined: Thu Sep 01, 2016 3:41 pm
Projects :: Tatooine - Jundland Wastes
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set

Firstperson arms not working [Solved]

Post 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
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Firstperson arms not working

Post 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
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Firstperson arms not working

Post 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
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Firstperson arms not working

Post 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
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Firstperson arms not working

Post 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
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Firstperson arms not working

Post by JimmyAngler »

That's 100% normal but I hate it..
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Firstperson arms not working

Post by Deviss »

JimmyAngler wrote:That's 100% normal but I hate it..
oh good so

Thanks Ace and Jimmy :)
Post Reply