Guild icon
Teeworlds
discord.gg/teeworlds / general
Teeworlds Discord Server.
Between 2018-10-13 00:00:00Z and 2018-10-14 00:00:00Z
Avatar
what map is this? 🤔
Avatar
it looked like this on 0.7
10:52
😄
Avatar
i play with quads turned off but wtf lol why does it look like that
Avatar
grass doodads tileset changed
10:54
and everything broke
Avatar
so had to convert all the grass maps to 0.7 pretty much
Avatar
@heinrich5991 box1@box1 ~/Desktop/teeworlds0.6.5 $ bam server_release configure.lua:6: bad argument #1 to 'setfenv' (number expected, got nil) bam: script error (-t for more detail)
17:41
whats error mean
Avatar
bam -c config
17:44
eh
17:44
try bam 0.5.0 or cmake I guess 😦 I didn't test with 0.4.0 recently
Avatar
configuration: AUTO compiler gcc AUTO stackprotector yes AUTO minmacosxsdk no AUTO macosxppc no AUTO zlib (in system path) AUTO sdl using sdl-config AUTO freetype using freetype-config notes: saved configuration to 'config.lua'
17:45
<heinrich5991> can be compiled with cmake 2.8.9+, bam 0.4.0, bam 0.5.0
17:45
HMM
Avatar
alternatively, try diff --git a/configure.lua b/configure.lua index 19cd6ab29..20cf7c099 100644 --- a/configure.lua +++ b/configure.lua @@ -3,7 +3,9 @@ function loadfile_(filename, env) local file if _VERSION == "Lua 5.1" then file = loadfile(filename) - setfenv(file, env) + if file then + setfenv(file, env) + end else file = loadfile(filename, nil, env) end (edited)
Avatar
@heinrich5991 i tried again after doing bam -c config and it worked
Avatar
hum
17:48
then I'm not sure what happened
17:48
yea, it works for me as well
Avatar
it cant make config.lua?
Avatar
well, bam -c config means: delete config
Avatar
but it also creates config?
Avatar
no, every command creates a config if it's not available
17:49
and if it has been deleted, it's not available ^^
17:50
from bam --help: -c clean targets
Avatar
also getting another error on windows
17:52
bam: error: 'other\sdl\lib32\SDL.dll' does not exist and no way to generate it bam: error: a build step failed
17:53
the libs are in other\sdl\windows\lib32
Avatar
things I've not tested: compilation with bam on macos and windows
17:57
@ZombieToad try diff --git a/bam.lua b/bam.lua index 214b9fccf..e9146c3a5 100644 --- a/bam.lua +++ b/bam.lua @@ -120,11 +120,11 @@ server_link_other = {} if family == "windows" then if platform == "win32" then - table.insert(client_depends, CopyToDirectory(".", "other\\freetype\\lib32\\freetype.dll")) - table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\lib32\\SDL.dll")) + table.insert(client_depends, CopyToDirectory(".", "other\\freetype\\windows\\lib32\\freetype.dll")) + table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\windows\\lib32\\SDL.dll")) else - table.insert(client_depends, CopyToDirectory(".", "other\\freetype\\lib64\\freetype.dll")) - table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\lib64\\SDL.dll")) + table.insert(client_depends, CopyToDirectory(".", "other\\freetype\\windows\\lib64\\freetype.dll")) + table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\windows\\lib64\\SDL.dll")) end if config.compiler.driver == "cl" then
17:59
@ZombieToad does that work?
Avatar
trying it
18:00
looks like its working
18:03
[ 1/15] #1 c src/base/system.c \src\base\system.h(1322) : error C2054: expected '(' to follow 'inline' src\base\system.h(1323) : error C2085: 'uint32_from_be' : not in formal parameter list src\base\system.h(1323) : error C2143: syntax error : missing ';' before '{' src\base\system.h(1337) : error C2054: expected '(' to follow 'inline' src\base\system.h(1338) : error C2085: 'uint32_to_be' : not in formal parameter list src\base\system.h(1338) : error C2143: syntax error : missing ';' before '{' bam: 'objs/base/system.obj' error 2 bam: error: a build step failed
Avatar
hmmm.
18:05
which version of MSVC do you use?
Avatar
Microsoft Visual Studio 10.0
18:10
ill use gcc instead then
18:11
idk why but gcc creates larger file sizes
18:15
@heinrich5991 lol the game pauses once all the players leave
Avatar
hm 😦
18:18
i dont see where it checks if game is paused in the code
Avatar
@ZombieToad could you check whether it compiles with msvc if you replace inline with static?
Avatar
idk what that means xD
Avatar
if you replace inline with static in src/base/system.h
18:22
diff --git a/src/base/system.h b/src/base/system.h index c1178e7b0..28317c0d9 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -1319,7 +1319,7 @@ int str_utf8_check(const char *str); Returns: The read integer. */ -inline unsigned uint32_from_be(const void *bytes) +static unsigned uint32_from_be(const void *bytes) { const unsigned char *b = (const unsigned char *)bytes; return (b[0]<<24)|(b[1]<<16)|(b[2]<<8)|b[3]; @@ -1334,7 +1334,7 @@ inline unsigned uint32_from_be(const void *bytes) bytes - The place to write the integer to. integer - The integer to write. */ -inline void uint32_to_be(void *bytes, unsigned integer) +static void uint32_to_be(void *bytes, unsigned integer) { unsigned char *b = (unsigned char *)bytes; b[0] = (integer&0xff000000)>>24;
Avatar
it worked
Avatar
@heinrich5991 0.6.5 isnt backwards compatible?
Avatar
it is
Avatar
i cant join any other server with the 0.6.5 client
18:44
18:46
the server seems to be backwards compatible but not the client
Avatar
join other servers with 0.6.5?
Avatar
you use windows?
Avatar
@ZombieToad self-compiled?
Avatar
yes
Avatar
sonix self-compiled?
18:48
which windows version do you use btw, @Sonix ?
Avatar
no, I mean win7/win10
Avatar
i used the precompiled version from teeworlds.com
18:52
and i can connect to vanilla servers
18:52
but it doesnt connect to mods
Avatar
yea, I looked into the ddnet source code and it seems the token handshake was implemented sloppily in a way that drops CONNECT messages it does not know
18:52
PR following :/
Exported 73 message(s)