ERROR with my rep.req (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
User avatar
666rulerofclones
Command Sergeant Major
Command Sergeant Major
Posts: 281
Joined: Fri Aug 08, 2008 1:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The Badger State!

ERROR with my rep.req (solved)

Post by 666rulerofclones »

i have a problem with my rep.req file, here is the error log;
Hidden/Spoiler:
ERROR[levelpack rep.req]:Expecting bracket, but none was found.
File : munged\pc\rep_inf_ep2_jettrooper.lvl.req(1)...

ucft <--
ERROR[levelpack rep.req]:Expecting bracket, but none was found.
File : munged\pc\rep_inf_ep2_jettrooper.lvl.req(1)...

ucft <--

2 Errors 0 Warnings
here are my units files:
Hidden/Spoiler:
my episode 2 jet trooper .odf file:
[GameObjectClass]
ClassParent = "rep_inf_default_RC"

[Properties]
Label = "Arc Trooper"
UnitType = "trooper"
IconTexture = "rep_htrooper_icon"

GeometryName = "RC_inf"
GeometryLowRes = "rep_inf_ep3jettrooper_low1"
FirstPerson = "IMP\impdark;imp_1st_darktrooper"

my default file:

[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]
UnitType = "assault"

MaxShield = 400
AddShield = 5

PointsToUnlock = 12

//MaxSpeed = 6.0 // base forward speed
//MaxStrafeSpeed = 4.5 // base right/left speed

WEAPONSECTION = 1
WeaponName = "DC-17m_Blaster_RIfle"
WeaponAmmo = 5

WEAPONSECTION = 2
WeaponName = "DC-17m_Sniper_Rifle"
WeaponAmmo = 4

WEAPONSECTION = 3
WeaponName = "DC-17m_Anti-Armor"
WeaponAmmo = 4

WEAPONSECTION = 4
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "all_weap_inf_crackgrenade"
WeaponAmmo = 5
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "rep_weap_inf_fusioncutter"
WeaponAmmo = 2
WeaponChannel = 1

VOUnitType = 121

my rep.req file:

ucft
{
REQN
{
"lvl"
"rep_bldg_forwardcenter"
"rep_fly_anakinstarfighter_sc"
"rep_fly_arc170fighter_dome"
"rep_fly_arc170fighter_sc"
"rep_fly_assault_dome"
"rep_fly_cat_dome"
"rep_fly_gunship"
"kam_fly_ride_gunship"
"rep_fly_gunship_sc"
"rep_fly_gunship_dome"
"rep_fly_jedifighter_dome"
"rep_fly_jedifighter_sc"
"rep_fly_ride_gunship"
"rep_fly_vwing"
"rep_hero_aalya"
"rep_hero_anakin"
"rep_hero_cloakedanakin"
"rep_hero_kiyadimundi"
"rep_hero_macewindu"
"rep_hero_macewindu_obi"
"rep_hero_obiwan"
"rep_hero_yoda"
"rep_hover_fightertank"
"rep_hover_barcspeeder"
"rep_inf_ep2_engineer"
"rep_inf_ep2_jettrooper"
"rep_inf_ep2_jettrooper_training"
"rep_inf_ep2_jettrooper_rifleman"
"rep_inf_ep2_jettrooper_sniper"
"rep_inf_ep2_officer"
"rep_inf_ep2_officer_training"
"rep_inf_ep2_pilot"
"rep_inf_ep2_rifleman"
"rep_inf_ep2_rocketeer"
"rep_inf_ep2_rocketeer_chaingun"
"rep_inf_ep2_sniper"
"rep_inf_ep2_marine"
"rep_inf_ep3_engineer"
"rep_inf_ep3_jettrooper"
"rep_inf_ep3_officer"
"rep_inf_ep3_pilot"
"rep_inf_ep3_rifleman"
"rep_inf_ep3_marine"
"rep_inf_ep3_rocketeer"
"rep_inf_ep3_sniper"
"rep_inf_ep3_sniper_felucia"
"rep_walk_atte"
"rep_walk_atte_nospawn"
"rep_walk_oneman_atst"
"rep_veh_remote_terminal"
"uta1_prop_gunship"
"uta_fly_ride_gunship"
"uta_fly_ride_gunshipmyg"

}

REQN
{
"model"
"com_inv_mesh"
}

REQN
{
"config"
"extraweapons"
}

}
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: ERROR with my rep.req

Post by Fiodis »

Could you post your rep_inf_ep2jettrooper.req as well?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: ERROR with my rep.req

Post by [RDH]Zerted »

Do a full, manual clean and re-munge. See if you get the same munge error.
User avatar
666rulerofclones
Command Sergeant Major
Command Sergeant Major
Posts: 281
Joined: Fri Aug 08, 2008 1:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The Badger State!

Re: ERROR with my rep.req

Post by 666rulerofclones »

tried it, got the same error, heres my rep_inf_ep2_jettrooper.req file:
Hidden/Spoiler:
ucft
{
REQN
{
"class"
"rep_inf_ep2_jettrooper"
}
}
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: ERROR with my rep.req

Post by FragMe! »

Looking at the odf you are obviously using a new (or altered) msh for the unit, what changes did you make to it. Also are you using an altered parent class, if so what did you change? I noticed you have 2 weaponsection 3s and 4s, it has been a while since I have added weapons (beyond the standard 4) so I can't really say if that is the correct way to do it or if they need to be 5 and 6

From experience the missing bracket error you are getting doesn't mean there is something wrong with the req but rather something failed in the munge process that won't allow VM to complete that part of the munge correctly, usually it is something with the model but could also be something in either odf.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: ERROR with my rep.req

Post by MercuryNoodles »

Yeah, those weaponsections need to be in numerical order. The game does get quite picky about that. I'm not sure on the munge implications, though.
User avatar
666rulerofclones
Command Sergeant Major
Command Sergeant Major
Posts: 281
Joined: Fri Aug 08, 2008 1:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The Badger State!

Re: ERROR with my rep.req

Post by 666rulerofclones »

thanks guys, i didnt notice that, i fixed it and my mod is working again. lol i cant beleive i was that stupid! :oops:

STAFF: this can be locked now
Post Reply