Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

I cannot change game mode to babel [HELP!]

Problem getting your server up? Ask in here.

I cannot change game mode to babel [HELP!]

Postby DavidHwang » Tue Jun 05, 2012 2:16 pm

Help I cannot change mode to babel in pyspades here is the log:

Traceback <Most recent call last>:
File "run.py", line 1020, in <module>
File "C:\\Ace of Spades\dist\scripts\disco.py", line 39 in _init_
protocol._init_<self, *arg, **kw>
File "run.py", Line 564, in _init_
NotImplementelError: invalid game mode babel


It would help if you would put the script or link of script and instructions it would help a lot.
Image
DavidHwang
Member
 
Posts: 47
Joined: Sun May 27, 2012 12:13 pm
Location: Manila, Philippines

Re: I cannot change game mode to babel [HELP!]

Postby colorpinpoint » Wed Jun 06, 2012 1:32 am

Read the babel file instructions
Image
Image
IGN:Colorpinpoint
Ki11aWi11 Server Thread
First Map:Here
User avatar
colorpinpoint
Member
 
Posts: 451
Joined: Thu Apr 05, 2012 11:22 pm

Re: I cannot change game mode to babel [HELP!]

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 3:58 pm

1 2 3 4 5 6 7 8 9 10 ~delete please~
Last edited by ZaRcHRoNiCa on Sat Jun 09, 2012 1:10 pm, edited 1 time in total.
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: I cannot change game mode to babel [HELP!]

Postby colorpinpoint » Fri Jun 08, 2012 3:59 pm

All you have to do is put babel in the scripts and leave the gamemode as ctf and it should work
Image
Image
IGN:Colorpinpoint
Ki11aWi11 Server Thread
First Map:Here
User avatar
colorpinpoint
Member
 
Posts: 451
Joined: Thu Apr 05, 2012 11:22 pm

Re: I cannot change game mode to babel [HELP!]

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 4:14 pm

I read that... but I couldn't get it to do the babel thing... I could start A server with either the ctf or tc option, but there was never at any time a "babel" option... correct me if I'm wrong. "Type 'gen' to generate a map or mapname to load a map (exclude .vxl extension)" so I type "gen" or some random map name to get a map ready...
then.. "Game mode ('ctf' or 'tc'):" after doing what I found in the babel.py script file I type in "babel" because the ctf or tc options don't give me babel & my response from the command prompt is "Game mode ('ctf' or 'tc'):" which only leaves me 2 options... ctf or tc. So lets just say ctf to get something goin... & you get "Enter Max Players (between 1 and 32):" obviously I dont care how many people get on the server... so lets just say 32... "Enter Server Name (A-Z, 0-9, max 31):" blahblahWHERE'S THE BABEL SERVERblah <-= similar to what I've called my servers while trying to get a babel server going..."Advertise on master server? (y/n):" either way I don't care but said "y" anyway...
"Generating Map

Started server

Connecting to master server

Done! If you're disconnected from the master server, check port settings, disabl
e extra network devices, and check for game updates

Remember to open/forward UDP port 32887 on your router

Server Setup Finished!

Commands:
kick #
ban #
admin #
fog R G B
map mapname
map reset
quit

Could not retrieve IP address

Sending server info

Sent!" & then I join my local host & there we go... no babel server... as if I did nothing in the scripts folder or with the config file etc....

It seems a lil frustrating.. I've got a few hours a day to fool with this thing.. & when nothing works by following the instructions that I've found.. I suppose I think the instructions are wrong or I'm doing something wrong...
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: I cannot change game mode to babel [HELP!]

Postby colorpinpoint » Fri Jun 08, 2012 4:16 pm

You need pyspades to use babel just download this and set it up and babel will work http://code.google.com/p/pyspades/downloads/list
Image
Image
IGN:Colorpinpoint
Ki11aWi11 Server Thread
First Map:Here
User avatar
colorpinpoint
Member
 
Posts: 451
Joined: Thu Apr 05, 2012 11:22 pm

Re: I cannot change game mode to babel [HELP!]

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 4:22 pm

1 2 3 4 5 6 7 8 9 10 ~delete please~
Last edited by ZaRcHRoNiCa on Sat Jun 09, 2012 1:11 pm, edited 1 time in total.
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: I cannot change game mode to babel [HELP!]

Postby colorpinpoint » Fri Jun 08, 2012 4:25 pm

If you have an error can you please post it.
Image
Image
IGN:Colorpinpoint
Ki11aWi11 Server Thread
First Map:Here
User avatar
colorpinpoint
Member
 
Posts: 451
Joined: Thu Apr 05, 2012 11:22 pm

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 4:36 pm

1 2 3 4 5 6 7 8 9 10 ~delete please~
Last edited by ZaRcHRoNiCa on Sat Jun 09, 2012 1:11 pm, edited 2 times in total.
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: I cannot change game mode to babel [HELP!]

Postby colorpinpoint » Fri Jun 08, 2012 5:00 pm

I cannot delete your posts
Image
Image
IGN:Colorpinpoint
Ki11aWi11 Server Thread
First Map:Here
User avatar
colorpinpoint
Member
 
Posts: 451
Joined: Thu Apr 05, 2012 11:22 pm

Re: I cannot change game mode to babel [HELP!]

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 5:43 pm

lol neither can I... but here's what I did step by step. What'd I do wrong? What'd I leave out?
The only thing that worked was that the hell map opened & I didn't die when I fell in the lava LoOL
<-=======================================================================->
after downloading the first file in the list "http://code.google.com/p/pyspades/downloads/list"
"pyspades-feature_server-9cf75b8189a1.Zip"
I extract to the default folder "C:\Ace of Spades"

I then open the scripts folder @ "C:\Ace of Spades\scripts" & locate the "babel.py" file & open it with notepad.
From my limited programming knowledge in COBOL I learned that most times the "#" character omits that line of

code & means that the line won't be seen as part of a script & is strictly used to leave a comment for anyone

looking at the script later.
it read as follows

"# Tower of Babel created by Yourself, modified by izzy
# how to install:
# set game_mode to ctf in config.txt"

So that will be my first step

Step #1.

"set game_mode to ctf in config.txt"

the config.txt file that I found & assume is the right one is in "C:\Ace of Spades\config.txt"

So I open that txt file & do a search through the text for "game_mode" & find that on line 26 I have what I was

looking for "game_mode" : "ctf","" & it looks to be setup already, so no need to change it.

Back to the babel script for the next step

Step #2.

"# add babel to script list in config.txt"

Back to the "config.txt" file & this time I assume I can look for "script" in babel.py & find a list of scripts I

can possibly use & edit to include babel.

After doing the search for "script" I found this..

" "scripts" : [
"welcome",
"rollback",
"trusted",
"autohelp",
"protect",
"map_extensions",
"airstrike",
"squad",
"disco",
"antijerk",
"ratio",
"votekick",
"memcheck" "

This looks obvious enough.. so I added "babel", to the TOP of the list... I also noticed they put in different

scripts followed by a comma & followed suit. This section now looks like this.. minus my external quotes.

" "scripts" : [
"babel",
"welcome",
"rollback",
"trusted",
"autohelp",
"protect",
"map_extensions",
"airstrike",
"squad",
"disco",
"antijerk",
"ratio",
"votekick",
"memcheck" "

I hit enter after the [ character at the top of the list & then hit TAB to make sure it had the same spacing as

the rest of the list.

Next step..

Step #3.

"# add to map .txt files: extensions = { 'babel' : True }"

This one looked a little confusing... but I looked in the maps folder for an easy map name... I found "hell.vxl"&

hell.txt"
What did the step say? add to map .txt files. I noticed the .vxl file had a .txt file with the same name.

hell.vxl
hell.txt

opened the hell.txt file & found this.

"name = 'Hell'
version = '2.0'
author = 'Sasquatch'
description = ('Quite literally, Hell. Just as treacherous, but now with added '
'bridges for more mobility.')
extensions = { 'water_damage' : 25 }""


I looked for "extensions" & I didn't need to use the Find option to do it. This one says "'water_damage' : 25 " &

not the "{'babel' : true }" that I'm looking for... so I assume "water_damage : 25" just means the water can

damage you in the "hell" map... I dont care much for water damage so I'll just remove that line & replace it with

"babel : true" just like the babel.py step said by replacing "{ 'water_damage' : 25 }" with "{ 'babel' : True }

hell.txt will now look like this minus my outside quotes.

"
name = 'Hell'
version = '2.0'
author = 'Sasquatch'
description = ('Quite literally, Hell. Just as treacherous, but now with added '
'bridges for more mobility.')
extensions = { 'babel' : True }
"

Then I save this file as is where it was.

***As far as water damage goes.. I'd like to think IF I'm going to hell... I'm gonna be thirsty.. so the last

thing I'm gonna want to happen there is WATER DAMAGE lol ***

Next step.

Step #4.

The next 3 lines of babel.py said

"
# additional suggestions:
# add onectf to script list in config.txt http://pyspades.googlecode.com/hg/contr ... /onectf.py
# set cap_limit to 10 in config.txt
"

but the word suggestions leaves me to believe, THAT is optional.
I checked in the config.txt file for "cap_limit" to see what it is set at & found it was set @ 10 already...
so Step #4 seems to have been the easiest step so far.


Step #5.

"
# set cap_limit to 10 in config.txt
"
Done! but the next 2 lines I assume are sript...

"
from pyspades.constants import *
from random import randint
"
& as script, are to be left alone. Then we have

"
# If ALWAYS_ENABLED is False, then babel can be enabled by setting 'babel': True
# in the map metadat extensions dictionary.
"

But according to my last step, this is already set to true in the hell.txt file.

This should be the end of my server setup...?

Save all files!!! try it out.

Open Spadille
Start Server

Command prompt opens & I do this.

"Type 'gen' to generate a map or mapname to load a map (exclude .vxl extension)
hell
Game mode ('ctf' or 'tc'):
ctf
Enter Max Players (between 1 and 32):
32
Enter Server Name (A-Z, 0-9, max 31):
Babel-Test-Probly-FAIL!
Advertise on master server? (y/n):
Advertise on master server? (y/n):
y

Started server

Connecting to master server

Done! If you're disconnected from the master server, check port settings, disabl
e extra network devices, and check for game updates

Remember to open/forward UDP port 32887 on your router

Server Setup Finished!

Commands:
kick #
ban #
admin #
fog R G B
map mapname
map reset
quit

Could not retrieve IP address

Sending server info

Sent!
"


Then LocalHost COnnect.

Connected & like I said... Babel-Test-Probly-Fail!

Failed miserably... what'd I do wrong?

I tried again to run the server but tried babel instead of ctf but it just kept asking game mode over & over...
<-===========================================================================================->
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: I cannot change game mode to babel [HELP!]

Postby colorpinpoint » Fri Jun 08, 2012 6:03 pm

You need to do the Run.exe in the pyspades folder not the server in the aos folder
Image
Image
IGN:Colorpinpoint
Ki11aWi11 Server Thread
First Map:Here
User avatar
colorpinpoint
Member
 
Posts: 451
Joined: Thu Apr 05, 2012 11:22 pm

Re: I cannot change game mode to babel [HELP!]

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 6:20 pm

1 2 3 4 5 6 7 8 9 10 ~delete please~
Last edited by ZaRcHRoNiCa on Sat Jun 09, 2012 1:12 pm, edited 1 time in total.
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: I cannot change game mode to babel [HELP!]

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 6:29 pm

1 2 3 4 5 6 7 8 9 10 ~delete please~
Last edited by ZaRcHRoNiCa on Sat Jun 09, 2012 1:12 pm, edited 2 times in total.
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: I cannot change game mode to babel [HELP!]

Postby ZaRcHRoNiCa » Fri Jun 08, 2012 6:30 pm

1 2 3 4 5 6 7 8 9 10 ~delete please~
Last edited by ZaRcHRoNiCa on Sat Jun 09, 2012 1:12 pm, edited 2 times in total.
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Next

Return to Server Help



Who is online

Users browsing this forum: No registered users and 3 guests

cron