Page 1 of 1

.lyr file syntax error? [Solved]

Posted: Tue Sep 23, 2014 1:56 pm
by hunpeter12
Hey GT!
I'm working on a map which eventually will recreate the Missile Assault mode from the game 'Hawken'.
But a strange thing happened:
When I first created the map that has 3 cps, a turret, and two frigates (in case you don't know: the goal is to destroy the other team's frigate, by capturing and holding cp in the middle and with that, the turret, which then shoots at the enemy frigate.)
I wrote the necessary LUA code, in which I called my turret "missileturret" and my frigates "repfrigate" and "cisfrigate". Then I realized I didn't change the names in ZE. I didn't want to open it, so I just edited the MAM.lyr file to contain the names I wanted. After munging I got this error:
Hidden/Spoiler:
ERROR[worldmunge world1\MAM_conquest.lyr]:Text file syntax error. (No symbol)ERROR[worldmunge world1\MAM_conquest.lyr]:Text file syntax error. (No symbol) [continuing]
2 Errors 0 Warnings

ERROR[levelpack MAM.req]:Expecting bracket, but none was found.
File : munged\pc\mam_conquest.lvl.req(1)...

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

ucft <--
[continuing]
2 Errors 0 Warnings

ERROR[levelpack MAM_conquest.mrq]:Expecting bracket, but none was found.
File : munged\pc\mam_conquest.world.req(1)...

ucft <--
ERROR[levelpack MAM_conquest.mrq]:Expecting bracket, but none was found.
File : munged\pc\mam_conquest.world.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack MAM.req]:Expecting bracket, but none was found.
File : munged\pc\mam_conquest.lvl.req(1)...

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

ucft <--
[continuing]
2 Errors 0 Warnings
I believe all errors derive from the first 2.
I did a manual clean, and re-munged, but the same thing happened.
I tried naming my objects differently, but the error persisted.

Then I deleted the map, and created it again, now without manually editing the .lyr file, and the SAME ERROR CAME UP!
I've never experienced this problem before, and it's really annoying.
Could somebody please help?

Re: .lyr file syntax error?

Posted: Tue Sep 23, 2014 8:52 pm
by GAB
Maybe manual cleaning your second map should help. Also, post your modified .lyr file.

Re: .lyr file syntax error?

Posted: Wed Sep 24, 2014 10:02 am
by hunpeter12
I did a manual clean but no success.

My MAM_conquest.lyr file:
Hidden/Spoiler:
Version(3);
SaveType(0);

Camera("camera")
{
Rotation(0.564, 0.085, -0.812, 0.123);
Position(0.000, 128.800, 0.000);
FieldOfView(55.400);
NearPlane(1.000);
FarPlane(5000.000);
ZoomFactor(1.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(-24.000, 55.608, -140.280, 0.524, 0.446, -0.552, 0.471);
}
LightName("MAM_conquest.LGT");
ControllerManager("StandardCtrlMgr");

WorldExtents()
{
Min(0.000000, 0.000000, 0.000000);
Max(0.000000, 0.000000, 0.000000);
}

NextSequence(-569516674);

Object("cp3", "com_bldg_controlzone", -786076975)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-127.000, 0.000, -140.000);
SeqNo(-786076975);
Team(0);
NetworkId(-1);
Label("Control Zone");
GeometryFile("com_bldg_controlzone");
Layer(1);
SwitchClassRadius("5.0");
BUILDINGSECTION("BODY");
Label("Control Zone");
NeutralizeTime("12.0");
CaptureTime("10.0");
MapTexture("hud_flag_icon");
MapScale("2.5");
GeometryName("com_bldg_controlzone");
HoloOdf("com_holo_controlzone");
HoloImageGeometry("com_icon_alliance alliance");
HoloTurnOnTime("2.2");
ChargeSound("com_blg_commandpost_charge defer");
CapturedSound("com_blg_commandpost_capture defer");
DischargeSound("com_blg_commandpost_discharge defer");
LostSound("com_blg_commandpost_lost defer");
DisputeSound("com_blg_commandpost_dispute defer");
AmbientSound("all com_blg_commandpost_goodie defer");
SoundPitchDev("0.4");
Lighting("dynamic");
AutoRespawnEnable("1");
CaptureRegion("cp3_capture");
ControlRegion("");
SpawnPath("");
TurretPath("");
AllyPath("");
AllyCount("65536");
SpawnRegion("");
Radius("0.0");
ValueBleed_Alliance("10");
ValueBleed_CIS("10");
ValueBleed_Empire("10");
ValueBleed_Republic("10");
ValueBleed_Neutral("0");
ValueBleed_Locals("0");
Value_ATK_Alliance("10");
Value_ATK_CIS("10");
Value_ATK_Empire("10");
Value_ATK_Republic("10");
Value_ATK_Locals("10");
Value_DEF_Alliance("10");
Value_DEF_CIS("10");
Value_DEF_Empire("10");
Value_DEF_Republic("10");
Value_DEF_Locals("10");
VO_All_AllCapture("all_off_com_report_captured_commandpost");
VO_All_AllLost("all_off_com_report_lost_commandpost");
VO_All_AllInDispute("");
VO_All_AllSaved("");
VO_All_AllInfo("");
VO_All_ImpCapture("all_off_com_report_enemyCaptured_commandpost");
VO_All_ImpLost("");
VO_All_ImpInDispute("");
VO_All_ImpSaved("");
VO_All_ImpInfo("");
VO_Imp_AllCapture("imp_off_com_report_enemyCaptured_commandpost");
VO_Imp_AllLost("");
VO_Imp_AllInDispute("");
VO_Imp_AllSaved("");
VO_Imp_AllInfo("");
VO_Imp_ImpCapture("imp_off_com_report_captured_commandpost");
VO_Imp_ImpLost("imp_off_com_report_lost_commandpost");
VO_Imp_ImpInDispute("");
VO_Imp_ImpSaved("");
VO_Imp_ImpInfo("");
VO_Rep_RepCapture("rep_off_com_report_captured_commandpost");
VO_Rep_RepLost("rep_off_com_report_lost_commandpost");
VO_Rep_RepInDispute("");
VO_Rep_RepSaved("");
VO_Rep_RepInfo("");
VO_Rep_CISCapture("rep_off_com_report_enemyCaptured_commandpost");
VO_Rep_CISLost("");
VO_Rep_CISInDispute("");
VO_Rep_CISSaved("");
VO_Rep_CISInfo("");
VO_CIS_RepCapture("cis_off_com_report_enemyCaptured_commandpost");
VO_CIS_RepLost("");
VO_CIS_RepInDispute("");
VO_CIS_RepSaved("");
VO_CIS_RepInfo("");
VO_CIS_CISCapture("cis_off_com_report_captured_commandpost");
VO_CIS_CISLost("cis_off_com_report_lost_commandpost");
VO_CIS_CISInDispute("");
VO_CIS_CISSaved("");
VO_CIS_CISInfo("");
SoldierBan("");
HoverBan("");
SmallBan("");
MediumBan("");
HugeBan("");
FlyerBan("");
AISpawnWeight("");
HUDIndex("");
HUDIndexDisplay("1");
}

Object("cp1", "com_bldg_controlzone", 1413701337)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-216.000, 0.000, -136.000);
SeqNo(1413701337);
Team(1);
NetworkId(-1);
Label("Control Zone");
GeometryFile("com_bldg_controlzone");
Layer(1);
SwitchClassRadius("5.0");
BUILDINGSECTION("BODY");
Label("Control Zone");
NeutralizeTime("12.0");
CaptureTime("10.0");
MapTexture("hud_flag_icon");
MapScale("2.5");
GeometryName("com_bldg_controlzone");
HoloOdf("com_holo_controlzone");
HoloImageGeometry("com_icon_alliance alliance");
HoloTurnOnTime("2.2");
ChargeSound("com_blg_commandpost_charge defer");
CapturedSound("com_blg_commandpost_capture defer");
DischargeSound("com_blg_commandpost_discharge defer");
LostSound("com_blg_commandpost_lost defer");
DisputeSound("com_blg_commandpost_dispute defer");
AmbientSound("all com_blg_commandpost_goodie defer");
SoundPitchDev("0.4");
Lighting("dynamic");
AutoRespawnEnable("1");
CaptureRegion("");
ControlRegion("");
SpawnPath("cp1_spawn");
TurretPath("");
AllyPath("");
AllyCount("65536");
SpawnRegion("");
Radius("0.0");
ValueBleed_Alliance("10");
ValueBleed_CIS("10");
ValueBleed_Empire("10");
ValueBleed_Republic("10");
ValueBleed_Neutral("0");
ValueBleed_Locals("0");
Value_ATK_Alliance("10");
Value_ATK_CIS("10");
Value_ATK_Empire("10");
Value_ATK_Republic("10");
Value_ATK_Locals("10");
Value_DEF_Alliance("10");
Value_DEF_CIS("10");
Value_DEF_Empire("10");
Value_DEF_Republic("10");
Value_DEF_Locals("10");
VO_All_AllCapture("all_off_com_report_captured_commandpost");
VO_All_AllLost("all_off_com_report_lost_commandpost");
VO_All_AllInDispute("");
VO_All_AllSaved("");
VO_All_AllInfo("");
VO_All_ImpCapture("all_off_com_report_enemyCaptured_commandpost");
VO_All_ImpLost("");
VO_All_ImpInDispute("");
VO_All_ImpSaved("");
VO_All_ImpInfo("");
VO_Imp_AllCapture("imp_off_com_report_enemyCaptured_commandpost");
VO_Imp_AllLost("");
VO_Imp_AllInDispute("");
VO_Imp_AllSaved("");
VO_Imp_AllInfo("");
VO_Imp_ImpCapture("imp_off_com_report_captured_commandpost");
VO_Imp_ImpLost("imp_off_com_report_lost_commandpost");
VO_Imp_ImpInDispute("");
VO_Imp_ImpSaved("");
VO_Imp_ImpInfo("");
VO_Rep_RepCapture("rep_off_com_report_captured_commandpost");
VO_Rep_RepLost("rep_off_com_report_lost_commandpost");
VO_Rep_RepInDispute("");
VO_Rep_RepSaved("");
VO_Rep_RepInfo("");
VO_Rep_CISCapture("rep_off_com_report_enemyCaptured_commandpost");
VO_Rep_CISLost("");
VO_Rep_CISInDispute("");
VO_Rep_CISSaved("");
VO_Rep_CISInfo("");
VO_CIS_RepCapture("cis_off_com_report_enemyCaptured_commandpost");
VO_CIS_RepLost("");
VO_CIS_RepInDispute("");
VO_CIS_RepSaved("");
VO_CIS_RepInfo("");
VO_CIS_CISCapture("cis_off_com_report_captured_commandpost");
VO_CIS_CISLost("cis_off_com_report_lost_commandpost");
VO_CIS_CISInDispute("");
VO_CIS_CISSaved("");
VO_CIS_CISInfo("");
SoldierBan("");
HoverBan("");
SmallBan("");
MediumBan("");
HugeBan("");
FlyerBan("");
AISpawnWeight("");
HUDIndex("");
HUDIndexDisplay("1");
}

Object("cp2", "com_bldg_controlzone", 1195634002)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-32.000, 0.000, -144.000);
SeqNo(1195634002);
Team(2);
NetworkId(-1);
Label("Control Zone");
GeometryFile("com_bldg_controlzone");
Layer(1);
SwitchClassRadius("5.0");
BUILDINGSECTION("BODY");
Label("Control Zone");
NeutralizeTime("12.0");
CaptureTime("10.0");
MapTexture("hud_flag_icon");
MapScale("2.5");
GeometryName("com_bldg_controlzone");
HoloOdf("com_holo_controlzone");
HoloImageGeometry("com_icon_alliance alliance");
HoloTurnOnTime("2.2");
ChargeSound("com_blg_commandpost_charge defer");
CapturedSound("com_blg_commandpost_capture defer");
DischargeSound("com_blg_commandpost_discharge defer");
LostSound("com_blg_commandpost_lost defer");
DisputeSound("com_blg_commandpost_dispute defer");
AmbientSound("all com_blg_commandpost_goodie defer");
SoundPitchDev("0.4");
Lighting("dynamic");
AutoRespawnEnable("1");
CaptureRegion("");
ControlRegion("");
SpawnPath("cp2_spawn");
TurretPath("");
AllyPath("");
AllyCount("65536");
SpawnRegion("");
Radius("0.0");
ValueBleed_Alliance("10");
ValueBleed_CIS("10");
ValueBleed_Empire("10");
ValueBleed_Republic("10");
ValueBleed_Neutral("0");
ValueBleed_Locals("0");
Value_ATK_Alliance("10");
Value_ATK_CIS("10");
Value_ATK_Empire("10");
Value_ATK_Republic("10");
Value_ATK_Locals("10");
Value_DEF_Alliance("10");
Value_DEF_CIS("10");
Value_DEF_Empire("10");
Value_DEF_Republic("10");
Value_DEF_Locals("10");
VO_All_AllCapture("all_off_com_report_captured_commandpost");
VO_All_AllLost("all_off_com_report_lost_commandpost");
VO_All_AllInDispute("");
VO_All_AllSaved("");
VO_All_AllInfo("");
VO_All_ImpCapture("all_off_com_report_enemyCaptured_commandpost");
VO_All_ImpLost("");
VO_All_ImpInDispute("");
VO_All_ImpSaved("");
VO_All_ImpInfo("");
VO_Imp_AllCapture("imp_off_com_report_enemyCaptured_commandpost");
VO_Imp_AllLost("");
VO_Imp_AllInDispute("");
VO_Imp_AllSaved("");
VO_Imp_AllInfo("");
VO_Imp_ImpCapture("imp_off_com_report_captured_commandpost");
VO_Imp_ImpLost("imp_off_com_report_lost_commandpost");
VO_Imp_ImpInDispute("");
VO_Imp_ImpSaved("");
VO_Imp_ImpInfo("");
VO_Rep_RepCapture("rep_off_com_report_captured_commandpost");
VO_Rep_RepLost("rep_off_com_report_lost_commandpost");
VO_Rep_RepInDispute("");
VO_Rep_RepSaved("");
VO_Rep_RepInfo("");
VO_Rep_CISCapture("rep_off_com_report_enemyCaptured_commandpost");
VO_Rep_CISLost("");
VO_Rep_CISInDispute("");
VO_Rep_CISSaved("");
VO_Rep_CISInfo("");
VO_CIS_RepCapture("cis_off_com_report_enemyCaptured_commandpost");
VO_CIS_RepLost("");
VO_CIS_RepInDispute("");
VO_CIS_RepSaved("");
VO_CIS_RepInfo("");
VO_CIS_CISCapture("cis_off_com_report_captured_commandpost");
VO_CIS_CISLost("cis_off_com_report_lost_commandpost");
VO_CIS_CISInDispute("");
VO_CIS_CISSaved("");
VO_CIS_CISInfo("");
SoldierBan("");
HoverBan("");
SmallBan("");
MediumBan("");
HugeBan("");
FlyerBan("");
AISpawnWeight("");
HUDIndex("");
HUDIndexDisplay("1");
}

Object("missile_turret", "tur_bldg_spa_rep_recoilless", 432033813)
{
ChildRotation(0.035, 0.000, -0.999, 0.000);
ChildPosition(-127.000, 0.000, -166.000);
SeqNo(432033813);
Team(0);
NetworkId(-1);
GeometryFile("rep_bldg_bandturret");
Layer(1);
BUILDINGSECTION("BODY");
MapTexture("turret_icon");
IconTexture("HUD_all_lascannon_icon");
MapScale("0.0");
HealthTexture("HUD_kam_turret_icon");
GeometryName("rep_bldg_bandturret");
ExplosionName("rep_bldg_bandturret_exp");
DestroyedGeometryName("rep_bldg_bandturret_chunk1");
MaxHealth("999999.0");
ForceMode("1");
TurretNodeName("aimer_head");
PitchLimits("-40 15");
YawLimits("-180 180");
PitchTurnFactor("0.0");
//FirstPerson("com\comviewf;com_1st_cockpit_viewfinder");
ThirdPersonFOV("65");
WeaponName("tur_weap_spa_recoilless_rifle");
WeaponAmmo("0");
MaxTurnSpeed("5.0");
MaxPitchSpeed("5.0");
PitchRate("1.0");
TurnRate("1.0");
PCMaxPitchSpeed("5.0");
PCMaxTurnSpeed("5.0");
EyePointOffset("0.0 8.0 0.0");
TrackCenter("0.0 15.0 -15.0");
TrackOffset("0.0 0.0 -8.0");
TiltValue("10");
TURRETSECTION("TURRET1");
PilotType("self");
AimerNodeName("aimer_barrels");
AimerPitchLimits("-30 10");
AimerYawLimits("-0 0");
BarrelNodeName("barrel1");
BarrelRecoil("0.5");
FirePointName("hp_fire1");
NextBarrel("-");
TurretYawSound("turret_whir_yaw_lp");
TurretYawSoundPitch("0.7");
TurretPitchSound("turret_whir_pitch_lp");
TurretPitchSoundPitch("0.7");
TurretAmbientSound("");
TurretActivateSound("vehicle_equip");
TurretDeactivateSound("vehicle_equip");
TurretStartSound("");
TurretStopSound("");
FoleyFXGroup("metal_foley");
DamageStartPercent("50.0");
DamageStopPercent("30.0");
DamageEffect("com_sfx_vehiclespark");
DamageAttachPoint("hp_spark_1");
//CHUNKSECTION("CHUNK1");
//ChunkGeometryName("rep_bldg_bandturret_chunk1");
//ChunkNodeName("");
//ChunkPhysics("STATIC");
CHUNKSECTION("CHUNK1");
ChunkGeometryName("rep_bldg_bandturret_chunk2");
ChunkNodeName("");
ChunkTerrainCollisions("6");
ChunkTerrainEffect("com_sfx_explosion_lg");
ChunkPhysics("FULL");
ChunkOmega("1.4 1.5 2.0");
ChunkBounciness("0.45");
ChunkStickiness("0.25");
ChunkSpeed("16.0");
ChunkUpFactor("14.00");
ChunkTrailEffect("com_sfx_chunktrail_sm");
}

Object("rep_frigate", "spa2_prop_minirepassaultship", 1646840292)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-454.967, 91.283, -529.320);
SeqNo(1646840292);
Team(0);
NetworkId(-1);
GeometryFile("spa2_prop_minirepassault");
Layer(1);
GeometryName("spa2_prop_minirepassault");
MaxHealth("130000.0");
ExplosionName("spa_prop_frigate_destruct_exp");
MapTexture("icon_rep_minirepassaultship");
MapScale("9");
RemoveFromMapWhenDead("1");
CHUNKSECTION("CHUNK1");
ChunkGeometryName("spa2_prop_minirepassault_chunk1");
ChunkTrailEffect("spa_sfx_frigate_exp_5");
ChunkNodeName("");
ChunkTerrainCollisions("0");
ChunkTerrainEffect("");
ChunkPhysics("FULL");
ChunkOmega("0.03 0.01 0.01");
ChunkSpeed("2.05");
ChunkUpFactor("0.00");
ChunkGravity("0.0 0.0 0.0");
ChunkKeepSoldierCollision("1");
FoleyFXGroup("metal_foley");
BuildingSound("sd_engine_amb");
}

Object("cis_frigate", "spa2_prop_minifedcruiser", -569516675)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(117.000, 105.601, -454.387);
SeqNo(-569516675);
Team(0);
NetworkId(-1);
GeometryFile("spa2_prop_minifedcruiser");
Layer(1);
GeometryName("spa2_prop_minifedcruiser");
FoleyFXGroup("metal_foley");
MaxHealth("130000.0");
ExplosionName("spa_prop_frigate_destruct_exp");
MapTexture("icon_cis_minifedcruiser");
MapScale("8");
RemoveFromMapWhenDead("1");
CHUNKSECTION("CHUNK1");
ChunkGeometryName("spa2_prop_minifedcruiser_chunk1");
ChunkTrailEffect("spa_sfx_frigate_exp_5");
ChunkNodeName("");
ChunkTerrainCollisions("0");
ChunkTerrainEffect("");
ChunkPhysics("FULL");
ChunkOmega("0.04 0.01 -0.03");
ChunkSpeed("4 .00");
ChunkUpFactor("5.00");
ChunkGravity("0.0 0.0 0.0");
ChunkKeepSoldierCollision("1");
}

Re: .lyr file syntax error?

Posted: Wed Sep 24, 2014 1:29 pm
by Teancum
And this layer has no problems in ZeroEdit?

Re: .lyr file syntax error?

Posted: Wed Sep 24, 2014 1:59 pm
by GAB
Try removing these lines from the missile_turret block (and any other line with double slashes (//) that might be in the files):

Code: Select all

//CHUNKSECTION("CHUNK1");
//ChunkGeometryName("rep_bldg_bandturret_chunk1");
//ChunkNodeName("");
//ChunkPhysics("STATIC");
I believe the double slash commenting is causing the problem. It is normal to comment out code this way in C++ (which I believe is the language all non LUA files are written in), but for some reason, if you do so in ZeroEditor files it causes problems. I had this issue once.

Re: .lyr file syntax error?

Posted: Wed Sep 24, 2014 3:43 pm
by hunpeter12
Teancum wrote:And this layer has no problems in ZeroEdit?
Yes, it works fine.

I'll follow your advice GAB and remove that.

EDIT: The errors regarding the lyr file are gone, but these ones are still there:

Code: Select all

ERROR[levelpack MAM.req]:Expecting bracket, but none was found.
File : munged\pc\mam_conquest.lvl.req(1)...

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

ucft <--
 [continuing]
   2 Errors    0 Warnings
I'll try a manual clean to see what happens.

EDIT 2: Thanks guys, it worked! Problem solved! (now I just have to figure out how to make that Diet Dr. Pepper turret shoot at the enemy frigate)