Jump to content

Parse error with '!' in goals file


Recommended Posts

Hi

I'm just looking at the map mp_ruiner (RTCW) & a lot of the automatically detected goals have a '!' at the end.

This causes the following parse error in the goals file.

error (232) parse error, expecting `'}'' or `',''
Could not parse file nav/mp_ruiner_goals.gm

Line 232
 

    FLAG_Ruiners_head! =
    {
        CreateOnLoad = 0,
        GoalType = "Flag",
        Position = Vec3(1088.000, 4200.000, 208.000),
        TagName = "Ruiners head!",
        TeamAvailability = 4,
    },

I can fix the parse error by deleting the ! but it still shows as the original goalname in game & if I save the goals, it just creates a new goal with the original name. Same issue if I rename the goal in game as well

--------------ALLIES--------------
ALLIES: FLAG_Ruiners_head! - 0.8

Just wondering if there is a way to fix this?

It also causes a parse error in the script file made by "makemapgm" but that is easy fixable by removing the '!'

Edited by MickyP
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...