Page 1 of 1

babel server issue

Posted: Sun Dec 15, 2013 1:00 am
by shywolf91
I am trying to set up a babel server.

I think I put the files in the correct folders and added the correct information to the config file, but when I try to run the server (run.bat) I get this error:
x:\Users\xxxxxxx\xxxxx\pysnip-\dist>run.exe
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 382, in raw_decode
ValueError: Expecting , delimiter: line 6 column 22 (char 169)

x:\Users\xxxxx\xxxxx\pysnip-\dist>pause
Press any key to continue . . .

config file:
Code: Select all
{
    "name" : "shywolf's private test server",
    "motd" : [
        "Welcome to %(server_name)s",
        "Map: %(map_name)s by %(map_author)s",
        "Game mode: "babel",
        "Server powered by PySnip and BuildAndShoot.com"
    ],
    "help" : [
        "Server name: %(server_name)s",
        "Map: %(map_name)s by %(map_author)s",
        "Game mode: Capture The Flag",
        "/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",
        "/TIME      Remaining time until forced map reset"
    ],
    "tips" : [
        "You are playing Capture The Flag on %(server_name)s",
        "Type /help for info & commands"
    ],
    "tip_frequency" : 5,
    "rules" : [
        "Cheating isn't welcome. Griefing is frowned upon. Have fun!"
    ],
    "master" : false,
    "max_players" : 32,
    "max_connections_per_ip" : 3,
    "port" : 32887,
    "network_interface" : "",

    "game_mode" : "babel",
    "cap_limit" : 10,
    "advance_on_win" : true,
    "maps" : ["swag1"],
    "random_rotation" : false,

    "respawn_time" : 16,
    "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" : 1440,

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

    "team1" : {
        "name" : "Blue",
        "color" : [0, 0, 255]
    },
    "team2" : {
        "name" : "Green",
        "color" : [0, 255, 0]
    },
   "passwords" : {
        "admin" : ["DmEtZ2*3"],
        "moderator" : ["modpass"],
        "guard" : ["guardpass"],
        "trusted" : ["trustedpass"]
    },
    "rights" : {
        "moderator" : ["advance", "cancel", "dban", "fog", "from", "goto", "hackinfo", "hban", "invisible", "ip", "kick", "kickafk", "kill", "map", "master", "move", "mute", "resetgame", "switch", "teleport", "teleport_other", "tpsilent", "togglebuild", "togglekill", "togglevotekick", "trust", "undoban", "unmute", "unstick", "where", "whowas"],
        "guard" : ["cancel", "fog", "from", "goto", "hackinfo", "hban", "ip", "kick", "kickafk", "kill", "move", "mute", "switch", "teleport", "teleport_other", "togglebuild", "togglekill", "togglevotekick", "trust", "unmute", "unstick", "where", "whowas"]
    },
    "ssh" : {
        "enabled" : false,
        "port" : 32887,
        "users" : {
            "user" : "ssh_pass_change_this"
        }
    },
    "status_server" : {
        "enabled" : false,
        "port" : 32886
    },
    "ban_publish" : {
        "enabled" : false,
        "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",
        "disco",
        "votekick",
        "trusted",
        "ratio",
        "passreload",
        "blockinfo",
        "afk",
        "babel_script"
        
    ],

    "squad_respawn_time" : 32,
    "squad_size" : 4,
    "auto_squad" : false,
    "load_saved_map" : false,
    "rollback_on_game_end" : false,
    "afk_time_limit" : 30
}

Re: babel server issue

Posted: Sun Dec 15, 2013 3:43 pm
by MKU
In the first part, where you have
Code: Select all
"Game mode: "babel",
..It should be
Code: Select all
"Game mode: babel",
You're confusing it by having an odd amount of quotation marks.

You could also try
Code: Select all
"Game mode: "babel"",
If you really want those extra quotations marks there.

Re: babel server issue

Posted: Sun Dec 15, 2013 4:14 pm
by shywolf91
MKU wrote:
In the first part, where you have
Code: Select all
"Game mode: "babel",
..It should be
Code: Select all
"Game mode: babel",
You're confusing it by having an odd amount of quotation marks.

You could also try
Code: Select all
"Game mode: "babel"",
If you really want those extra quotations marks there.
Okay I changed but still get an error:

x:\xxxxxxxxxxx\pysnip-\dist>run.exe
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 382, in raw_decode
ValueError: Expecting property name: line 144 column 1 (char 4337)

x:\xxxxxxxxxxxx\pysnip-\dist>pause
Press any key to continue . . .


Thanks.

Re: babel server issue

Posted: Sun Dec 15, 2013 4:37 pm
by MKU
Did you use
Code: Select all
"Game mode: "babel"",
or
Code: Select all
"Game mode: babel",
If you used the first one, change it to the second. My knowledge in python spaced out.

Re: babel server issue

Posted: Sun Dec 15, 2013 4:49 pm
by shywolf91
I used "Game mode: babel",

Re: babel server issue

Posted: Sun Dec 15, 2013 11:43 pm
by learn_more
scroll to line 144 and remove your fuckup there.
how hard can it be?

Re: babel server issue

Posted: Mon Dec 16, 2013 12:51 am
by shywolf91
In the config file on line 144 is this: } isn't that supposed to be their?

Okay. i think I fixed. The error was on line 142.