LogicAndTrick / sledge-formats

C# parsers and formats for Half-Life 1 and related engines.
MIT License
71 stars 10 forks source link

Object value parsing issue in Counter-Strike 2 fgd #24

Closed xPaw closed 1 year ago

xPaw commented 1 year ago

CS2 released their workshop tools, and the fgd has new stuff that does not parse:

@OverrideClass
    metadata
    {
        class_game_keys =
        [
            { key = "clientSideEntity" value = 1 }
        ]
    }
= light_environment
[
]

It trips up on the class_game_keys value:

Parsing error (line 6, column 4): Unexpected token value Symbol({)

https://github.com/SteamDatabase/GameTracking-CSGO/blob/6526f854b5b94d1c3103b2e77eaff0a7f2b968c8/game/csgo/csgo.fgd#L627-L630

LogicAndTrick commented 1 year ago

Thanks, fixed in 1.1.3 :)