Loading a .cfg team file causes a parsing error
PiotrWodecki opened this issue · 0 comments
PiotrWodecki commented
Expected behavior
Loading a .cfg
team file from the example present in the documentation should import a team.
Actual behavior
Import fails with multiple identical error messages:
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
Details
Versions and debug log
- Plugin version:
0.11.0
- Sourcemod version:
1.11.0.6917
- get5_debuginfo.txt
Steps to reproduce
- download and place https://raw.githubusercontent.com/splewis/get5/development/configs/get5/example_match.cfg in
addons/sourcemod/get5/example_match.cfg
get5_loadmatch addons/sourcemod/get5/example_match.cfg
- download
team_navi.cfg
from the documentation asexample.cfg
and place inteams/example.cfg
get5_loadteam team1 teams/example.cfg
- the console will print parsing errors
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
KeyValues Error: LoadFromBuffer: missing { in file teams/example.cfg
(*coaches*),
Loaded team data for team1
get5_status
will show that the team wasn't imported
{
"matchid": "example_match",
"team2": {
"side": "t",
"current_map_score": 0,
"connected_clients": 0,
"name": "Fnatic",
"series_score": 0,
"ready": false
},
"team1": {
"side": "ct",
"current_map_score": 0,
"connected_clients": 0,
"name": "",
"series_score": 0,
"ready": false
},
"gamestate": "pre_veto",
"loaded_config_file": "addons\/sourcemod\/get5\/example_match.cfg",
"round_number": -1,
"plugin_version": "0.11.0",
"map_number": 0,
"paused": false,
"round_time": 38468
}
Workaround
Placing additional {
at the beginning of the teams/example.cfg
will result in a successful import.