Guild icon
Teeworlds
discord.gg/teeworlds / general
Teeworlds Discord Server.
Between 2019-08-26 00:00:00Z and 2019-08-27 00:00:00Z
campfire joined the server. 2019-08-26 00:29:23Z
Avatar
how to copy paste maps so I can pracitce on it?
Avatar
yo gamres
00:31
gamers
00:31
@Dune
Avatar
sorry for ping but @everyone how do I host a server that I have in editor
éœ―é›ĻéĒ­éĒĻ joined the server. 2019-08-26 00:47:18Z
Avatar
that's a map in the editor, not a server. go on my youtube channel the videos might help @witreck (edited)
01:26
It also depends on the server mod that you want to play on, some are closed source, thus can only be played on the available online servers, as you cannot host a server yourself then.
Trafalgar Law joined the server. 2019-08-26 02:22:31Z
Avatar
@jxsl13 its in ddnet, src/base/unicode. Just use that folder, add the missing functions to system.c and .h (compiler will cry) and copy the SetClientName and TrySetClientName from DDNet in server.cpp. Thats it.
👍ðŸŧ 1
Avatar
uhm
05:08
@ChillerDragon
05:09
im just searching for people willing to kinda "learn" me how to play gores lol
05:09
bc doing stuf solo is impossible :/
05:10
and if i want to join a map with a lot of people..its a hard map -_-
05:10
like insanely hard
05:10
i get dragged 80% of the time..maybe 90%
05:10
get what i mean?
Avatar
@NineLivesC You need to master the basics in teeworlds for some things - teeworlds has a high skillkurve, you will get better with time
Avatar
apparently not as much as in the new version
08:13
troll
Avatar
in the new version you are very fast in the top 100 players
09:13
new version???
09:13
@Assa
Avatar
Teeworlds 0.7 is newer then teeworlds 0.6, and a lot of players are still playing in 0.6
Avatar
0.7?
09:15
idk what you are talking about lol
09:15
or the 0.6
09:15
are there versions of teeworlds other than the client?
Avatar
cleared in private message
Avatar
what would i write in my autoexec to add server messages, like have a random server message saying "Don't forget to add to favourites" or something like that every 5 mins. 0.7 btw
Avatar
@El BobLex if your used server mod does support that, you could look at that mod's documentation. It depends on the mod.
Avatar
or you could find econ GUI (there is a thread somewhere on forum) and set up jobs
Avatar
link is dead
Avatar
also how do i allow more than 16 active players. everyone who joins after 16 players is put in spectators and can't play. Would this be mod related?
Avatar
it's somewhere in the source a #define MAX_PLAYERS 16 would need to be changed and the mod would need to be recompiled.
Avatar
i see a line u can write in config sv_player_slots (number) "Number of slots to reserve for players" is this different than sv_max_clients? (edited)
Avatar
max_clients = ingame players + spectators, players_slots = players that can play
Avatar
ah cool, changed it to 64 now anyway, will see if it works when i get 17 players i guess
Avatar
you could try dbg_dummies 20;reload in rcon
Avatar
not supported on the mod im using
Avatar
hm, yeah, I highly doubt that max_players can be changed to more than 16 without a source code modification.
Avatar
ok what file is that stuff usually defined in? I have the source (edited)
Avatar
do you use VS Code?
12:53
I'd just search for #define MAX_PLAYERS
Avatar
Yes I do. I was wondering which .cpp file
Avatar
it's most likely a .h or .hpp file
13:05
hm, protocol.h ... well, I wonder if all of the connected clients will crash if this is changed to 64 and >16 players start to play ingame.
13:05
0.7 was advertised to support 64 players, hopefully that will work fine
13:05
it's actually an enum and not a macro
13:05
"MAX_PLAYERS=16"
Avatar
@jxsl13 you can have more than 16 players just fine?
Avatar
ingame? I don't know
Avatar
of course, there are plenty of servers with 16+ right now
Avatar
well in the mods source it show sv_player_slots as a variable
Avatar
@campfire ?
Avatar
I'm mostly on zCatch, so dunno x) but then your should be simply able to change that value then, I guess
Avatar
i can have more than 16 on my server Dune yes, but i was wondering if allowing more than 16 players to actually be playing and not sat in spectator
Avatar
just change MAX_PLAYERS @El BobLex
Avatar
which i think is what sv_player_slots is
Avatar
it's a one-liner
Avatar
sv_player_slots is capped at 16 players
Avatar
don't change sv_player_slots
Avatar
in order to increase the cap, I guess the enum value eeds to change
13:08
needs*
Avatar
yes. that's all you need to do. one line
Avatar
protocol.h @El BobLex
13:08
line 87
Avatar
ok thanks
Avatar
well, maybe the python generator file, as protocol is generated by a python file?
Avatar
no, it's not
13:11
h, yeah, it's in engine/shared
Avatar
and now time to recompile with bam?
Avatar
not in generated
13:11
yeah
Avatar
although last time bam doesnt detect VS
13:11
even after running the native cmd
Avatar
compile with whatever that works
Avatar
alternatively try the cmake way explained in the teeworlds github readme
Avatar
don't program before you have a build environment ready
Avatar
if bam doesn't work
Avatar
ok im getting errors with cmake, could i post the log here for you to see?
Avatar
use ``` to surround code
Avatar
The C compiler identification is unknown The CXX compiler identification is unknown Check for working C compiler: C:/MinGW/bin/gcc.exe Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken CMake Error at E:/Program Files/CMake/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/andre/Desktop/mkRace-ddr/build/CMakeFiles/CMakeTmp Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_7f91a/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_7f91a.dir\build.make CMakeFiles/cmTC_7f91a.dir/build mingw32-make.exe[1]: Entering directory 'C:/Users/andre/Desktop/mkRace-ddr/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7f91a.dir/testCCompiler.c.obj C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_7f91a.dir\testCCompiler.c.obj -c C:\Users\andre\Desktop\mkRace-ddr\build\CMakeFiles\CMakeTmp\testCCompiler.c CMakeFiles\cmTC_7f91a.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_7f91a.dir/testCCompiler.c.obj' failed mingw32-make.exe[1]: *** [CMakeFiles/cmTC_7f91a.dir/testCCompiler.c.obj] Error 1 mingw32-make.exe[1]: Leaving directory 'C:/Users/andre/Desktop/mkRace-ddr/build/CMakeFiles/CMakeTmp' Makefile:120: recipe for target 'cmTC_7f91a/fast' failed mingw32-make.exe: *** [cmTC_7f91a/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:22 (project) Configuring incomplete, errors occurred! See also "C:/Users/andre/Desktop/mkRace-ddr/build/CMakeFiles/CMakeOutput.log". See also "C:/Users/andre/Desktop/mkRace-ddr/build/CMakeFiles/CMakeError.log".
13:35
i've follwed the readme on teeworlds github
Avatar
your build environment is broken somehow
13:37
don't use mingw
Avatar
also found this Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:/MinGW/bin/gcc.exe Build flags: Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 The output was: 1 gcc.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead gcc.exe: error: unrecognized command line option '--target=arm-arm-none-eabi' Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated.
13:38
VS doesnt work for me either lol
Avatar
Compiler: C:/MinGW/bin/gcc.exe that's not VS
Avatar
no thats other info from error log
Avatar
cmake -G "Visual Studio 14"
13:53
or so and that's going to create a visual studio project, that you can open and most likely press some green play button to compile it.
13:54
I would create a vs folder, cd vs and then cmake -G "Visual Studio 14" .. (edited)
Avatar
CMake Error at CMakeLists.txt:3 (file): file STRINGS file "C:/Users/andre/Desktop/mkRace-ddr/vs/src/game/version.h" cannot be read. CMake Error at CMakeLists.txt:17 (message): Couldn't parse version from src/game/version.h
Avatar
well, it's not like I know(could be vanilla tw stuff) what's in either of those files, neither cmakelists.txt line 17 nor version.h
14:07
you got a repo link?
Avatar
A retro multiplayer shooter. Contribute to SNSnoop/mkRace development by creating an account on GitHub.
14:12
need a fresh cmakelists.txt
Avatar
I think it might be the line 6 in your version.h
14:14
#define GAME_VERSION "0.7.3"might try it with this instead of yours
14:15
well, you could also alter the regular expression in the cmakelists.txt
14:15
that parses that string
Avatar
it says 16, 0, MAX_CLIENTS
14:16
16 - the default value - 0 - the min value - MAX_CLIENTS
14:16
MAX_CLIENTS = 64 while MAX_PLAYERS=16
Avatar
file(STRINGS src/game/version.h VERSION_LINE LIMIT_COUNT 1 REGEX GAME_RELEASE_VERSION ) if(VERSION_LINE MATCHES "\"([0-9]+)\\.([0-9]+)\\.([0-9]+|[0-9]+\\.[0-9]+)\".*") set(VERSION_MAJOR ${CMAKE_MATCH_1}) set(VERSION_MINOR ${CMAKE_MATCH_2}) set(VERSION_PATCH ${CMAKE_MATCH_3}) elseif(VERSION_LINE MATCHES "\"([0-9]+)\\.([0-9]+)\".*") set(VERSION_MAJOR ${CMAKE_MATCH_1}) set(VERSION_MINOR ${CMAKE_MATCH_2}) set(VERSION_PATCH "0") else() message(FATAL_ERROR "Couldn't parse version from src/game/version.h") endif() (edited)
14:17
something like this, added .* here if(VERSION_LINE MATCHES "\"([0-9]+)\\.([0-9]+)\\.([0-9]+|[0-9]+\\.[0-9]+)\".*")
14:18
And elseif(VERSION_LINE MATCHES "\"([0-9]+)\\.([0-9]+)\".*")also a .* (edited)
Avatar
#define GAME_VERSION "0.7.3, mkRace " MKRACE_VERSION ""
14:21
this breaks CMake
Avatar
my regex doesn't match
14:24
might as well do something like this #define GAME_VERSION "0.7.3" ", mkRace " MKRACE_VERSION ""
14:25
to have the tw version separately at the beginning
Avatar
@jxsl13 could u send me your cmakelists.txt pls 🙏
Avatar
I am using the vanilla one. Your line 6 of version.h breaks the default script
Avatar
yes i need a fresh one
14:27
and i will try those changes
Avatar
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
14:30
yeh its still breaking
Avatar
remove this #define GAME_VERSION "0.7.3, mkRace " MKRACE_VERSION "" (edited)
14:30
add this #define GAME_VERSION "0.7.3" (edited)
14:31
for a fast fix xD
Avatar
or use bam
Avatar
@jxsl13 didnt work
14:36
and also bam doesnt work for me
14:37
i said before it never detcts VS version
Avatar
well, you should go back to your previous CMakeLists.txt version, that you just replaced with the vanilla version.
14:37
and maybe try again?
Avatar
still didnt work
14:40
thanks for the help though. I'm gonna go do something else before my brain explodes
Avatar
why do you change the GAME_VERSION in the first place?
Avatar
You'd have a simpler way just fixing the bam detection imo 🙂
Avatar
and how does one do that
14:46
native cmd doesnt let me change directory lol
Avatar
something like "C:\Program Files\Microsoft Visual Studio 2014\VC\vcvarsall.bat" amd64
14:51
you can't cd from the native cmd?
Avatar
use powershell
Avatar
i cant change drive with the VS 2017 dev cmd
14:56
nah whatever i do it always says i need Visual Studio bla bla bla installed
14:57
im using 2017 community
Avatar
find the path to your vcvarsall.bat
14:59
then call it from regular cmd
Avatar
there is no such bat
14:59
with 2017 community
Avatar
download comunity 2015 version xD
15:00
but teeworlds.com says download 2017 xD (edited)
Avatar
well, the teeworlds tests run on the 2015 VS version, if I have that right from the appveyor config file. (edited)
Avatar
someone needs to update the website then
15:01
i will download 2015
Avatar
bette download linux
15:02
xD
Avatar
i dont have my linux laptop with me rn lol
Avatar
"Fun With Windows"
Avatar
the fun never stops
15:02
Kappa
Avatar
@El BobLex whatever VS version you have works
Avatar
but it doesnt
Avatar
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64?
Avatar
i have every directory up until C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
15:05
i installed it like 2 days ago
15:05
unless theres a specific workload that i need maybe
15:11
I need desktop development with C++ installed 😄
ezy joined the server. 2019-08-26 15:26:05Z
Avatar
finally got bam compiled, try to compile the mod and i get this configuration: configure.lua:367: no c/c++ compiler found bam: script error (-t for more detail)
Avatar
same thing, you need to call the vcvarsall thing
Avatar
DNS server not authoritative for zone.
Avatar
search for developer command prompt for VS 2017
Avatar
configuration: AUTO compiler cl [string "src/driver_cl.lua"]:54: attempt to index a nil value (local 'f') bam: script error (-t for more detail)
Avatar
rm config.lua; bam
16:55
del instead of rm for windows?
Avatar
Does "bam" mean something?
Avatar
bam: error: 'other/freetype/windows/lib32/freetype.dll' does not exist and no way to generate it bam: error: a build step failed got this after running conf=release
Avatar
@Skayland probably just an onomatopoeia. it's a build system used by teeworlds
17:30
@El BobLex try compiling master
Avatar
im not sure what u mean
17:32
master
Avatar
same thing
Avatar
I'm on a brand new PC/installation, cloned teeworlds, built teeworlds/bam, and ran bam inside visual studio command prompt. I get this error message. bam: error: 'other/freetype/win...
Avatar
i mean, it started compiling but then just spat out loads of undeclared identifier errors and so many other errors
Avatar
the master branch?
17:58
try the suggestion in the issue
Avatar
i think im done i've spent all day and got nowhere trying to recompile something with 2 different characters lmao
17:59
and yes i did just that
Avatar
welcome to programming ¯\_(ツ)_/¯
Avatar
yeh it sucks lol
Avatar
depends on your tastes :D
18:00
I, on the other side, spent the day coloring flags and tees. It was alright :D
Avatar
sounds more enjoyable than what im doing lol
Avatar
well tbh getting your build system to work is not the best part, yeah
18:01
try bam -c; bam in any case
Avatar
that just did saved configuration to 'config.lua'
18:14
then i try conf=release again and get back to this bam: error: 'other/freetype/windows/lib32/freetype.dll' does not exist and no way to generate it bam: error: a build step failed
18:14
yeh im done, i can't be bothered anymore
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:28:29Z
did he try cmake yet?
18:30
failed
Avatar
@Dune does your race mod allow more than 16 players to actually play? (edited)
Avatar
Are you still adding new features? like /pause?
Avatar
Someone said he would PR it and never did
18:39
I'm not personally working on it anymore
Avatar
oh, i don't know what PR is but ok
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:40:28Z
@El BobLex have you ever compiled something with your setup?
Avatar
a simple tic tac toe game in c# xD
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:41:35Z
Compile a simple hello world c++ project first
18:42
so we can actually confirm your setup can
Avatar
Why do you need to compile it yourself?
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:45:06Z
There are many components to visual studio, it could be that he's missing required c++ components
Avatar
he compiled bam @LordSk 🦋
Avatar
done
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:45:49Z
ok se he did compile something
Avatar
Again though, why don't you just take binary releases
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:47:00Z
@El BobLex ever used cmake-gui?
Avatar
yes but it failed, i posted error logs before
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:47:35Z
my bad, let me scroll up
Avatar
@El BobLex ^
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:48:42Z
oh you have mingw in your PATH
Avatar
lemme re-install
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:49:18Z
re-install what?
Avatar
idk, how to remove it from PATH
Avatar
LordSk ðŸĶ‹ 2019-08-26 18:49:47Z
oh
18:49
google will help you there 😛
Avatar
I still think you're doing this all for nothing and could just grab existing binaries @El BobLex
Avatar
i have very little knowledge in this, i have no idea what you mean. I just follow instructions from readme's
Avatar
What I'm saying is that you don't need to compile a server to run it if you can just download executables
18:56
.exe
Avatar
oh yeah, i understand that, i have the .exe already but it only allows 16 active players, what im trying to do is change that to 64, which i believe requires a recompile
Avatar
Are you sure it does?
Avatar
yeah i joined when there was like 18 players and all i could do is sit in spectators
Avatar
This might be the host's config. Have you tried to run your own with sv_max_clients 32; sv_player_slots 32?
Avatar
i changed them both to 64 in the autoexec.cfg (edited)
Avatar
@El BobLex it was on your server?
Avatar
not sure where that went wrong, I can open slots just fine
Avatar
so my config should be fine now?
Avatar
I guess so?
19:17
check in rcon that the variables are properly set
Avatar
well i'll let you know 🙂
19:20
how would i know if they are?
Avatar
type them in f2
Avatar
ok i did that
Avatar
@Dune It is working now feelsgoodman I just did all that business for no reason lmao
20:24
Oh well, thanks for your help today, I appreciate it
Avatar
is the last answer now that it is not necessary to change MAX_PLAYERS ?
20:33
in the protocol?
Avatar
not if the mod already changed it lol
Avatar
hm, but in general if the max_player enum value is 16, you cannot change the config command to a higher value than that?
Avatar
sv_player_slots works fine as a variable for me
20:37
at least for the mod im using
Avatar
@jxsl13 that is true
👌 2
Exported 263 message(s)