Server wont start after changes

Host your own server and communicate with server operators.
3 posts Page 1 of 1 First unread post
StartingMSDOS
Deuce
Posts: 13
Joined: Mon Sep 11, 2017 3:04 am


So the server I run was running fine, but when I decided to make some changes to the config file (just adding a script and multi-lingual versions of messages) it wont start at all. If I open run.exe it closes immediately, and run.bat is no help either, although it does not close, this is what it says:
Spoiler:
Traceback (most recent call last):
File "run.py", line 33, in <module>
File "json\__init__.pyo", line 278, in load
File "json\__init__.pyo", line 326, in loads
File "json\decoder.pyo", line 366, in decode
File "json\decoder.pyo", line 384, in raw_decode
ValueError: No JSON object could be decoded
This, if I have learned at all from past experience, is the standard message ot gives when something os wrong in the config file, but I can't figure what I screwed up for the life of me.
If ANYONE can see any obvious faults in the code below their help would be much appreciated!
Spoiler:
{
"name" : "PlayCali - HALLWAY 24/7 SQUADS",
"motd" : [
"Welcome to PlayCali",
"Bienvenido a PlayCali",
"Bem-vindo ao PlayCali",
"Willkommen bei PlayCali",
"Witamy w PlayCali",
"Map: %(map_name)s by %(map_author)s",
"Game mode: Capture the Flag",
"Server powered by PySnip and the owner's greatness.",
"/SQUAD Join a squad to spawn with your teammates in that squad",
"/SQUAD Unete a un equipo para desovar con tus companeros",
"/SQUAD Junte-se a um esquadrao para criar com seu time",
"/SQUAD Verbinde dich mit deinem Team"
],
"help" : [
"Server name: PlayCali SQUADS, USA",
"Map: %(map_name)s by %(map_author)s",
"Game mode: ctf",
"/STREAK Shows how many kills in a row you got without dying",
"/INTEL Tells you who's got the enemy intel",
"/VOTEKICK Start a vote to temporarily ban a disruptive player",
"/VOTEKICK Inicie una votación para prohibir a los jugadores perjudiciales",
"/VOTEKICK Comece uma votacao para proibir jogadores disruptivos",
"/VOTEKICK Starten Sie eine Stimme, um störende Spieler zu verbieten",
"/VOTEKICK Rozpocznij głosowanie, aby zabronic zagubionych graczy",
"/TIME Remaining time until forced map reset",
"/SQUAD Join a squad to spawn with your teammates in that squad",
"/SQUAD Unete a un equipo para desovar con tus companeros",
"/SQUAD Junte-se a um esquadrao para criar com seu time",
"/SQUAD Verbinde dich mit deinem Team"
],
"tips" : [
"Squads active! Type /squad to join a squad",
"Type /help for info & commands",
"Want map reset? Ask staff for a rollback!",
"Desea restablecer el mapa? Preguntanos!",
"Deseja redefinir o mapa? Basta perguntar-nos!",
],
"tip_frequency" : 5,
"rules" : [
"Cheating and griefing r gay"
],
"master" : true,
"max_players" : 32,
"max_connections_per_ip" : 3,
"port" : 32887,
"network_interface" : "",

"game_mode" : "ctf",
"cap_limit" : 15,
"default_time_limit" : 10080,
"advance_on_win" : false,
"maps" : ["hallway", "hallfunky", "failway0", "hallpoint_muffin", "anticbridge", "harbor2", "towerwars", "hallwaymod3"],
"random_rotation" : false,

"respawn_time" : 5,
"respawn_waves" : true,
"friendly_fire" : "on_grief",
"grief_friendly_fire_time" : 5,
"spade_teamkills_on_grief" : false,
"balanced_teams" : 2,
"teamswitch_interval" : 0,

"speedhack_detect" : false,
"votekick_percentage" : 35,
"votekick_ban_duration" : 30,
"votekick_public_votes" : true,
"votemap_public_votes" : true,
"votemap_extension_time" : 15,
"votemap_player_driven" : false,
"votemap_autoschedule" : false,
"votemap_time" : 120,
"votemap_percentage" : 80,

"melee_damage" : 80,
"fall_damage" : true,
"user_blocks_only" : false,
"set_god_build" : false,
"server_prefix" : "",
"time_announcements" : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 30, 60, 120, 180,
240, 300, 600, 900, 1200, 1800, 2400, 3000],
"login_retries" : 3,
"default_ban_duration" : 2140,

"logfile" : "./logs/log.txt",
"rotate_daily" : true,
"debug_log" : false,
"profile" : false,

"team1" : {
"name" : "Blue",
"color" : [0, 0, 255]
},
"team2" : {
"name" : "Green",
"color" : [153, 255, 0]
},
"passwords" : {
"admin" : ["***************", "*************", "******************"],
"moderator" : ["*****************"],
"guard" : ["*************"],
"trusted" : ["**********"]
},
"rights" : {
"moderator" : ["advance", "cancel", "rapid", "say", "kill", "paint", "votemap", "rollback", "ban", "heal", "dban", "fog", "fly", "from", "god", "goto", "hackinfo", "hban", "invisible", "ip", "kick", "kickafk", "kill", "master", "move", "mute", "switch", "teleport", "teleport_other", "tpsilent", "togglebuild", "togglekill", "unmute", "unstick", "where", "whowas"],
"guard" : ["cancel", "fog", "from", "say", "kill", "disco", "goto", "god", "hackinfo", "hban", "ip", "fly", "kick", "kickafk", "move", "mute", "switch", "teleport", "teleport_other", "togglebuild", "togglekill", "unmute", "unstick", "where", "whowas"],
"trusted" : ["god", "fly", "teleport"]
},
"ssh" : {
"enabled" : false,
"port" : 32887,
"users" : {
"user" : "ssh_pass_change_this"
}
},
"status_server" : {
"enabled" : false,
"port" : 32886
},
"ban_publish" : {
"enabled" : true,
"port" : 32885
},
"ban_subscribe" : {
"enabled" : true,
"urls" : [
["http://www.blacklist.spadille.net/subscribe.json", []]
]
},
"irc" : {
"enabled" : false,
"nickname" : "PySnip",
"username" : "PySnip",
"realname" : "PySnip",
"server" : "irc.quakenet.org",
"port" : 6667,
"channel" : "#MyServerChannel",
"password" : "",
"commandprefix" : "!",
"chatprefix" : "."
},
"scripts" : [
"rollback",
"protect",
"map_extensions",
"votemap",
"votekick",
"trusted",
"ratio",
"rapid",
"passreload",
"blockinfo",
"afk",
"airstrike",
"squad",
"disco",
"medkit",
"blockinfo",
"autohelp",
"paint",
"namechange",
"explode",
"trollscriptplus",
"WD",
],

"squad_respawn_time" : 10,
"squad_size" : 6,
"auto_squad" : false,
"load_saved_map" : false,
"rollback_on_game_end" : false,
"afk_time_limit" : 10
}
EDIT: Just censored admin passwords lmao
notafile
Deuced Up
Posts: 72
Joined: Sat Sep 09, 2017 3:20 pm


the issue is here:
Code: Select all
"Deseja redefinir o mapa? Basta perguntar-nos!",
In JSON, you can't put a comma before a closing bracket.

You can use online "json linter" tools to find errors.
StartingMSDOS
Deuce
Posts: 13
Joined: Mon Sep 11, 2017 3:04 am


Sat Sep 16, 2017 12:05 amnotafile wrote:
the issue is here:
Code: Select all
"Deseja redefinir o mapa? Basta perguntar-nos!",
In JSON, you can't put a comma before a closing bracket.

You can use online "json linter" tools to find errors.
Thank you so much! Now I can enjoy my empty server! Blue_BigSmile But it is worth the wait because whenever it's full it is great
3 posts Page 1 of 1 First unread post
Return to “Servers”

Who is online

Users browsing this forum: No registered users and 12 guests