Fix simulation_server_stub Entity class conflict + ServerConfig load timing
- Renamed inner class Entity→StubEntity (Godot has native Entity class) - Added await ServerConfig.config_loaded before reading map_list in server_main.gd - Config loads via call_deferred, so _ready() must wait for signal
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"server": {
|
||||
"server_name": "Tactical Shooter Server",
|
||||
"description": "",
|
||||
"bind_ip": "0.0.0.0",
|
||||
"port": 34197,
|
||||
"max_players": 16,
|
||||
"password": "",
|
||||
"tick_rate": 128
|
||||
},
|
||||
"game": {
|
||||
"round_time_seconds": 600,
|
||||
"warmup_time_seconds": 60,
|
||||
"friendly_fire": false,
|
||||
"ff_damage_multiplier": 0.5,
|
||||
"gravity": -24.0,
|
||||
"respawn_time_seconds": 5.0,
|
||||
"spectate_enabled": true
|
||||
},
|
||||
"movement": {
|
||||
"walk_speed": 5.0,
|
||||
"sprint_speed": 7.0,
|
||||
"crouch_speed": 2.0,
|
||||
"jump_velocity": 6.0,
|
||||
"acceleration": 20.0,
|
||||
"air_acceleration": 4.0,
|
||||
"friction": 8.0
|
||||
},
|
||||
"match": {
|
||||
"win_limit": 3,
|
||||
"time_limit_seconds": 0,
|
||||
"map_rotation_mode": "sequence",
|
||||
"maps": "test_range"
|
||||
},
|
||||
"rcon": {
|
||||
"enabled": true,
|
||||
"password": "",
|
||||
"port": 34198
|
||||
},
|
||||
"logging": {
|
||||
"log_level": "info",
|
||||
"log_file": ""
|
||||
},
|
||||
"teams": {
|
||||
"team_count": 2,
|
||||
"players_per_team": 8
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user