General > Off Topic

Assistance with Python - for Wiki

(1/2) > >>

Aki:
So i'm trying to map some of the newer special levels for the wiki and update the older ones.

I'm using the script found here and followed the instructions to the dot.

This is the input that i'm using:


--- Code: ---map

##############################################################################
####################......................................####################
#############.............=======...................................##########
###########............h.....======.....................h...............######
###...###.......................=====......................................###
##"...##.....g....g...............====......................................##
#.....##...................g..........h.......====#B242424B#====.....h.......#
#.....##.g....................................====#&&##&&&##====.............#
#.....##.......g..................................+....,,^.+.................#
#.>...##...............V......................====#@.,...,,#====..........h..#
#.....##...g.........g.............h..........====#.,,,\,,.#====.............#
#.....##..........................................+...,,.^.+.................#
#.....##g.......g..........g..................====#&&##&&&##====.....h.......#
#.....##...............................h......====.B242424B#====h............#
##"...##..........................====......................................##
###...###.......................=====.....................................####
###########.............h....======....................h...............#######
#############.............=======.................................############
####################......................................####################
##############################################################################

end map

. : floor
, : blood
& : blooded wall
# : stone wall
= : lava
" : agility mod pack
\ : chainsaw
^ : berserk pack
V : arena master
g : former captain
h : former human
B : baron of hell
2 : shotgun shell
4 : power cell
--- End code ---

I keep getting this error:



I have NO idea when it comes to these things, I tried fiddling around a little bit and got nowhere. Can anyone help?

thelaptop:
Use Python 2.7.x instead of Python 3.

Aki:
Thanks for your help.

I received this error after Installing Python 2.7.5 and trying it:



So I uninstalled Python 3.3.2 and tried again:



I have no idea what's going on here @_@

thelaptop:
Because you added a space on the end of each line of the map representation.  You should not do that.

You should also run the command as:

C:\Python27\Script>C:\python27\python.exe map.py "cc+1.txt" "cc+1color.txt"
If I remember correctly, '+' is significant on Windows and so you need to escape it.

I tried that out, works like a charm.  Here's the outcome... NOT!  You have to get it to work yourself because I'm not going to be running this all the time for you in the future.

Aki:
Tried that, and it still came up with the same error:



As for running it myself, i've been fiddling around with it without much success, but neither you nor anyone else are obligated to help, though your help's been much appreciated :>

Navigation

[0] Message Index

[#] Next page

Go to full version