Page 1 of 1

error

Posted: Sat Dec 15, 2007 12:13 pm
by mutedrancor
ok i changed some weapons by following the FloatingIconTutorialbut when i munge i get 3 error's here they are
ERROR[configmunge extraweapons.hud]:This file is missing a closing bracket somewhere!
1 Errors 0 Warnings

ERROR[levelpack all.req]:munged\pc\extraweapons.config is not a binary UCF file!ERROR[levelpack all.req]:munged\pc\extraweapons.config is not a binary UCF file! [continuing]
2 Errors 0 Warnings
Hidden/Spoiler:
Code:

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

TransformNameMesh("player1weapon1")
{
NameMesh("all_weap_inf_launcher", "com_inv_mesh")
NameMesh("all_weap_inf_sniperrifle", "com_inv_mesh")
NameMesh("all_weap_inf_pistol", "com_inv_mesh")
NameMesh("all_weap_inf_rifle", "com_inv_mesh")
NameMesh("hud_stealth", "com_inv_mesh")
NameMesh("all_weap_inf_bowcaster", "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)


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

MeshInfo("all_weap_inf_rifle")
{
osition(-0.202832, 0.361293, 0.014590, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
}

MeshInfo("all_weap_inf_launcher")
{
Position(-0.204363, 0.367216, 0.000847, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.560000, 0.560000, 0.560000)
}

MeshInfo("all_weap_inf_sniperrifle")
{
Position(-0.214412, 0.355448, 0.003653, "Viewport")
Rotation(0.804269, 90.573097, 359.999695)

MeshInfo("hud_stealth")
{
Position(-0.251257, 0.352591, 0.000000, "Viewport")
Rotation(0.002055, 90.580322, 0.000000)
Scale(0.320001, 0.320001, 0.320001)
}
MeshInfo("all_weap_inf_bowcaster")
{
Position(-0.197062, 0.357451, -0.001890, "Viewport")
Rotation(353.358673, 99.140221, 1.132509)
Scale(0.830000, 0.830000, 0.830000)
}
}
}
}

TransformNameMesh("player1weapon2")
{
NameMesh("all_weap_inf_thermaldetonator", "com_inv_mesh")


EventInput("player1.weapon2.change")
EventOutput("player1.weapon2.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.weapon2mesh")
{
EventMesh("player1.weapon2.change")
Viewport(1)
ZOrder(5)
EventEnable("player1.weapon2.mesh")
EventDisable("player1.weapon2.disable")
Position(500.000000, 500.000000, 500.000000, "Viewport")
Rotation(0.804269, 359.994110, 359.999695)
Scale(0.000000, 0.000000, 0.000000)


MeshInfo("all_weap_inf_thermaldetonator")
{
Position(-0.274201, 0.284023, 15.000000, "Viewport")
Rotation(0.000000, 0.000000, 359.999695)
Scale(1.750000, 1.750000, 1.750000)
}
}
}
}

Re: error

Posted: Sat Dec 15, 2007 1:09 pm
by authraw
When it says that you're missing a closing bracket somewhere, it often really does mean literally that. In your case, I believe you need a closing bracket here:
MeshInfo("all_weap_inf_sniperrifle")
{
Position(-0.214412, 0.355448, 0.003653, "Viewport")
Rotation(0.804269, 90.573097, 359.999695)
}

Re: error

Posted: Sat Dec 15, 2007 1:36 pm
by mutedrancor
ok i fixed that and when i munge there's no problem then i run it and it crashes as soon as i see the screen to pick side's the only thing i could think of is for the rebel sniper who i gave stealth to is by following the tut. is this how it's supposed to look like?
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "all_inf_default"


[Properties]
UnitType = "Scout"

MaxHealth = 300.0

MaxSpeed = 8.0
MaxStrafeSpeed = 6.0

CollisionHeadOffset = "0.0 0.15 0.0"

WEAPONSECTION = 1
WeaponName = "all_weap_inf_sniper_rifle"
WeaponAmmo = 7

WEAPONSECTION = 2
WeaponName = "all_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "hud_stealth"
WeaponAmmo = 0

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

WEAPONSECTION = 5
WeaponName = "all_weap_inf_autoturret_dispenser"
WeaponAmmo = 1
WeaponChannel = 1

WEAPONSECTION = 6
WeaponName = "all_weap_award_sniper_rifle"
WeaponAmmo = 6

WEAPONSECTION = 7
WeaponName = "all_weap_award_pistol"
WeaponAmmo = 6

// general VO - Some female VO unavailable
HurtSound = "all_inf_com_chatter_wound_female"
DeathSound = "all_inf_com_chatter_death_female"
DamageRegionSound = "allfemalechoke"
ChokeSound = "allfemaleforcechoke"
AcquiredTargetSound = ""
HidingSound = ""
ApproachingTargetSound = ""
FleeSound = ""
// PreparingForDamageSound = ""
HeardEnemySound = ""

// squad command VO - No female VO available
SCFieldMoveOutSound = ""
SCFieldHoldSound = ""
SCFieldFollowSound = ""
SCDriverGetInSound = ""
SCDriverGetOutSound = ""
SCPassengerMoveOutSound = ""
SCPassengerStopSound = ""
SCPassengerGetInSound = ""
SCPassengerGetOutSound = ""
SCGunnerAllClearSound = ""
SCGunnerSteadySound = ""
SCGunnerGetInSound = ""
SCGunnerGetOutSound = ""
SCResponseYessirSound = ""
SCResponseNosirSound = ""

// AIsquad command VO - No female VO available
AISCFieldMoveOutSound = ""
AISCFieldHoldSound = ""
AISCFieldFollowSound = ""
AISCDriverGetInSound = ""
AISCDriverGetOutSound = ""
AISCPassengerMoveOutSound = ""
AISCPassengerStopSound = ""
AISCPassengerGetInSound = ""
AISCPassengerGetOutSound = ""
AISCGunnerAllClearSound = ""
AISCGunnerSteadySound = ""
AISCGunnerGetInSound = ""
AISCGunnerGetOutSound = ""
AISCResponseYessirSound = ""
AISCResponseNosirSound = ""

Re: error

Posted: Sat Dec 15, 2007 1:41 pm
by Maveritchell
You might want to try not having a meshname as your weaponname. You need to call for .odfs in the weaponsections. Assuming you haven't named your weapon .odf hud_stealth.odf, then that's the problem.

Re: error

Posted: Sat Dec 15, 2007 2:42 pm
by mutedrancor
it worked thanks