I am having similar problems. I can compile everything fine except for Teeworlds. I downloaded the recommended programs as posted on http://www.teeworlds.com/?page=docs& … Everything , with the exception that i am using Visual Studio 2009 Pro. When i try to compile Teeworlds through a .bat file that looks like......
call "D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
bam.exe release
pause
..... i get this output, with error....
E:\My Documents\Programming Resources\teeworlds-0.5.1-src\teeworlds-0.5.1-src>ca
ll "D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
bam: building 'release'
[ 1/140] #1 c src/engine/external/zlib/zutil.c
zutil.c
[ 2/140] #1 c src/engine/external/zlib/uncompr.c
uncompr.c
[ 3/140] #1 c src/engine/external/zlib/trees.c
trees.c
[ 4/140] #1 c src/engine/external/zlib/inftrees.c
inftrees.c
[ 5/140] #1 c src/engine/external/zlib/inflate.c
inflate.c
[ 6/140] #1 c src/engine/external/zlib/inffast.c
inffast.c
[ 7/140] #1 c src/engine/external/zlib/infback.c
infback.c
[ 8/140] #1 c src/engine/external/zlib/gzio.c
gzio.c
[ 9/140] #1 c src/engine/external/zlib/deflate.c
deflate.c
[ 10/140] #1 c src/engine/external/zlib/crc32.c
crc32.c
[ 11/140] #1 c src/engine/external/zlib/compress.c
compress.c
[ 12/140] #1 c src/engine/external/zlib/adler32.c
adler32.c
[ 13/140] #1 c src/base/system.c
system.c
[ 14/140] #1 c src/engine/e_snapshot.c
e_snapshot.c
[ 15/140] #1 c src/engine/e_ringbuffer.c
e_ringbuffer.c
[ 16/140] #1 c src/engine/e_packer.c
e_packer.c
[ 17/140] #1 c src/engine/e_network_server.c
e_network_server.c
[ 18/140] #1 c src/engine/e_network_conn.c
e_network_conn.c
[ 19/140] #1 c src/engine/e_network_client.c
e_network_client.c
[ 20/140] #1 c src/engine/e_network.c
e_network.c
[ 21/140] #1 c src/engine/e_msg.c
e_msg.c
[ 22/140] #1 c src/engine/e_memheap.c
e_memheap.c
[ 23/140] #1 c src/engine/e_map.c
e_map.c
[ 24/140] #1 c src/engine/e_linereader.c
e_linereader.c
[ 25/140] #1 c src/engine/e_keynames.c
e_keynames.c
[ 26/140] #1 c src/engine/e_jobs.c
e_jobs.c
[ 27/140] #1 c src/engine/e_huffman.c
e_huffman.c
[ 28/140] #1 c src/engine/e_engine.c
e_engine.c
[ 29/140] #1 c src/engine/e_demorec.c
e_demorec.c
[ 30/140] #1 c src/engine/e_datafile.c
e_datafile.c
[ 31/140] #1 c src/engine/e_console.c
e_console.c
[ 32/140] #1 c src/engine/e_config.c
e_config.c
[ 33/140] #1 c src/engine/e_compression.c
e_compression.c
[ 34/140] #1 c src/tools/tileset_borderfix.c
tileset_borderfix.c
e:\my documents\programming resources\teeworlds-0.5.1-src\teeworlds-0.5.1-src\sr
c\tools\../engine/external/pnglite/pnglite.c(116) : warning C4028: formal parame
ter 1 different from declaration
[ 35/140] #1 link tileset_borderfix.exe
[ 36/140] #1 c src/tools/packetgen.c
packetgen.c
[ 37/140] #1 link packetgen.exe
[ 38/140] #1 c src/tools/map_resave.c
map_resave.c
[ 39/140] #1 link map_resave.exe
[ 40/140] #1 c src/tools/fake_server.c
fake_server.c
[ 41/140] #1 link fake_server.exe
[ 42/140] #1 c src/tools/dilate.c
dilate.c
e:\my documents\programming resources\teeworlds-0.5.1-src\teeworlds-0.5.1-src\sr
c\tools\../engine/external/pnglite/pnglite.c(116) : warning C4028: formal parame
ter 1 different from declaration
[ 43/140] #1 link dilate.exe
[ 44/140] #1 c++ src/tools/crapnet.cpp
crapnet.cpp
[ 45/140] #1 link crapnet.exe
[ 46/140] #1 c++ src/mastersrv/mastersrv.cpp
mastersrv.cpp
[ 47/140] #1 link mastersrv.exe
[ 48/140] #1 c++ src/versionsrv/versionsrv.cpp
versionsrv.cpp
[ 49/140] #1 link versionsrv.exe
[ 50/140] #1 server_content_header > src/game/generated/gs_data.hpp
Traceback (most recent call last):
File "E:\My Documents\Programming Resources\teeworlds-0.5.1-src\teeworlds-0.5.
1-src\datasrc\compile.py", line 84, in <module>
EmitEnum(["SPRITE_%s"%i.name.value.upper() for i in content.container.sprite
s.items], "NUM_SPRITES")
File "E:\My Documents\Programming Resources\teeworlds-0.5.1-src\teeworlds-0.5.
1-src\datasrc\compile.py", line 30, in EmitEnum
print "\t%s,"%name
IOError: [Errno 9] Bad file descriptor
close failed in file object destructor:
Error in sys.excepthook:
Original exception was:
bam: command returned error: 1
bam: error during build
Press any key to continue
When i try the above fix of changing a line of "function Script(name)", i get the error....
..
..
[ 50/140] #1 server_content_header > src/game/generated/gs_data.hpp
'e:\My' is not recognized as an internal or external command,
operable program or batch file.
bam: command returned error: 1
bam: error during build
Press any key to continue
Any help with compiling would be greatly appreciated. I have been stuck on this for an embarassingly long time, and need help. Thanks.