HUD causing crash [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
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

HUD causing crash [Solved]

Post by elfie »

Alright so I tried out fragme and mike Z's hud icon fixing thing and I got this in my munge log which is probably because I put an extra braket somewhere but I can't seem to find it.
Mungelog:
Hidden/Spoiler:
[code]ERROR[configmunge extraweapons.hud]:This file has an extra closing bracket somewhere!
ERROR[configmunge extraweapons.hud]:[INTERNAL: Chunk nesting underflow]ERROR[configmunge extraweapons.hud]:[INTERNAL: Chunk nesting underflow] [continuing]
3 Errors 0 Warnings

ERROR[levelpack rep.req]:Unexpected end of file while searching for closing bracket.
File : munged\pc\extraweapons.config.req(5)...
ERROR[levelpack rep.req]:Unexpected end of file while searching for closing bracket.
File : munged\pc\extraweapons.config.req(5)...
[continuing]
2 Errors 0 Warnings

[/code]
Extraweapons.hud:
Hidden/Spoiler:
[code]Code:

ViewPort("Transforms")
{
EventNameFilter("player%")

// First Weapons Section

TransformNameMesh("player1weapon1")
// add msh names of first weapons here and remove unused lines
{
NameMesh("rep_weap_inf_dc15carbine", "com_inv_mesh")

EventInput("player1.weapon1.change")
EventOutput("player1.weapon1.mesh")
}
}

Group("extraWeaponDisplay")
{
PropagateAlpha(1)
Viewport(1)
Position(0.0000000, 1.000000, 0.000000, "Viewport")
ZOrder(255)
EventEnable("player1.weaponsEnable")
EventDisable("player1.weaponsDisable")

Group("extraWeaponIcon")
{
Viewport(1)
Position(0.346161, -0.450412, 0.000000, "Viewport")
EventEnable("initialize")

Model3D("player1.weapon1mesh")
{
EventMesh("player1.weapon1.change")
Viewport(1)
ZOrder(5)
EventEnable("player1.weapon1.mesh")
EventDisable("player1.weapon1.disable")
Position(500.000000, 500.000000, 500.000000, "Viewport")
Rotation(0.804269, 359.994110, 359.999695)
Scale(0.000000, 0.000000, 0.000000)

//change position, rotation and scale of first weapon here, remove unused lines

MeshInfo("rep_weap_inf_dc15carbine")
{
Position(-0.258881, 0.364262, 0.013887, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.720000, 0.720000, 0.720000)
}

}
}
}
}




[/code]
Rep.req:
Hidden/Spoiler:
[code]ucft
{
REQN
{
"lvl"
"rep_fly_gunship"
"rep_fly_gunship_sc"
"rep_fly_ride_gunship"
"rep_fly_vwing"
"rep_hover_fightertank"
"rep_inf_ep2_engineer"
"rep_inf_ep2_jettrooper"
"rep_inf_ep2_jettrooper_rifleman"
"rep_inf_ep2_rifleman"
"rep_inf_ep2_rocketeer"
"rep_inf_ep2_sniper"
"rep_walk_atte"
"rep_hero_ep2_anakin"
"rep_hero_obiwan"

}

REQN
{
"model"
"com_inv_mesh"
}

REQN
{
"config"
"extraweapons"
}
}
[/code]
Any thoughts?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: crash with reason

Post by Teancum »

Take off the last closing bracket in extraweapons.hud. You have too many.
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: crash with reason

Post by elfie »

Thanks Tean' it worked like a charm! :D Lock Please. :wink:
Post Reply