Lan2Play / PugSharp

Pugsharp is a PUG System Plugin for CS2 based on the awesome CounterStrikeSharp by roflmuffin. Its intended purpose is to be used with our fork of eventula, but ofc can be used in a different environment as well. We also try to build an compatible api with most apis of the awesome Get5.
GNU General Public License v3.0
40 stars 8 forks source link

Match Config File won't load #125

Closed lanslide-team closed 7 months ago

lanslide-team commented 8 months ago

Metamod:Source version 2.0.0-dev+1275 CSS: Current API Version: 129 PugSharp Alpha Build: https://github.com/Lan2Play/PugSharp/actions/runs/7266830432/artifacts/1124961232 [latest_build_linux_with_cssharp_and_runtime]

match.json

When I try to load the match config, I get this error: CSSharp: Native 5d4ee1c2 was invoked on a non-main thread

Drkwnn commented 8 months ago

Try loading it with this setup instead:

{ "maplist": [ "de_ancient", "de_anubis", "de_inferno", "de_mirage", "de_nuke", "de_overpass", "de_vertigo" ], "team1": { "id": "1", "name": "A Team", "tag": null, "flag": "AU", "players":{"123321":"Username"} }, "team2": { "id": "2", "name": "B Team", "tag": null, "flag": "AU", "players":{"123321":"Username"} }, "matchid": "1", "num_maps": 1, "players_per_team": 5, "min_players_to_ready": 5, "max_rounds": 24, "max_overtime_rounds": 6, "vote_timeout": 60000, "eventula_apistats_url": null, "eventula_apistats_token": null, "eventula_demo_upload_url": null, "allow_suicide": true, "vote_map": null, "team_mode": 0, "cvars": { "get5_remote_log_url": "https://g5.lanslide.com.au/api", "get5_remote_log_header_key": "Authorization", "get5_remote_log_header_value": "6583bac9a2455", "wingman": "false", "side_type": "standard", "veto_first": "team1", "skip_veto": "false" } }

The above worked for me with ps_loadconfig and the versions you are running.

lanslide-team commented 8 months ago

Apart from adding a player, I see you made match ID a string. I have applied these changes.

ps_loadconfig "https://portal.lanslide.com.au/match.json"
ps_loadconfigfile match.json

Remote config file works, however one of two things happens:

Local config file still won't load with the original error

brendontaylor commented 8 months ago

Downloaded the latest repository and tested in Linux. Good news is the config now seems to be loading correctly.

lanslide-team commented 8 months ago

Downloaded the latest repository and tested in Linux. Good news is the config now seems to be loading correctly.