Guild icon
Teeworlds
IRC / bridge
One-way IRC channel bridge. If you want to be able to send messages to IRC, contact @Dune or @heinrich5991. https://www.teeworlds.com/?page=docs&wiki=rules/irc_rules
Between 2019-10-19 00:00:00Z and 2019-10-20 00:00:00Z
Avatar
@ChillerDragon I like your "z7" bot in your CTF 5 server, I thought it was a new player in the game, it's a good idea for training new players but it falls down a lot... It would be possible to add more options? Like: add new bot to red/blue team, remove bot...Increase the difficulty or add different classes of bots with certain behavior?
Avatar
ChillerDragon 2019-10-19 08:51:45Z
Ah don’t leak my bot I’m sure it’s illegal xd
08:52
@1stDecadeTW this bot has zero brain and is almost completely blind xd. Im currently too noob to not make him fall down.
08:53
It’s just there to play with nameless tees and disconnects when more than 3 humans are online.
08:55
Oh and regarding options @1stDecadeTW you can write !disconnect in chat to make him leave. And in case more commands like team switch are coming those will be listed in !help or !cmdlist
Avatar
Hey, is oy there?
Avatar
[quakenet] Dune BOT 2019-10-19 11:54:28Z
no, you can use https://webchat.quakenet.org if you want to check irc
Avatar
Okay, anyways, can someone help with the buffer overload problem for rainbow? since i need to send a skinchange every tick - to every player - it will at some point crash the server
12:06
if too many tees have rainbow
12:07
i checked which packets arrive at the client, at there is nothing weird happening, no unwanted other packets
12:07
so its kinda weird that it overloads already at ~7 players with rainbow at a time
Avatar
LordSk πŸ¦‹ 2019-10-19 12:17:55Z
@fokkonaut can you give us a link to your server code?
Avatar
it is private, due to stealing attempts by @jason54
12:18
I can give you access tho, or show the rainbow part
Avatar
LordSk πŸ¦‹ 2019-10-19 12:18:48Z
yeah either is fine
12:20
I just send this in the CPlayer::Snap
12:20
Each tick, to each client individually
12:21
if I'd sent it in Tick() and send it to -1, it would overload even faster. I could of course make a loop inside of the Tick function, but Snap is a loop already
Avatar
LordSk πŸ¦‹ 2019-10-19 12:23:55Z
what do you mean by overload?
Avatar
The buffer overloads
Avatar
LordSk πŸ¦‹ 2019-10-19 12:24:02Z
what exactly happens?
Avatar
mostly it crashes the server and/or disconnects players for Error sending data
Avatar
LordSk πŸ¦‹ 2019-10-19 12:24:45Z
do you know how to use a debugger?
Avatar
not really, my server runs on linux
Avatar
LordSk πŸ¦‹ 2019-10-19 12:25:33Z
there are debuggers for linux
12:25
attach one, force the server to crash when built on debug mode
12:26
and look at the trace
Avatar
I tried to run the server with gdb
12:26
but that didnt work out well, didnt get a BT
Avatar
LordSk πŸ¦‹ 2019-10-19 12:27:13Z
well I suggest you try again, maybe we can help you with that
Avatar
maybe you built release mode? aka without debugging info
Avatar
no, debug was true in f2 (edited)
Avatar
huh, I don't think that's the same debug
Avatar
it is debug mode on
12:28
well, it is automatcially true if built in debug mode
Avatar
oh, okay. didn't know
Avatar
and: i had dbg_dummies
12:28
they are only in debug build
Avatar
still, make sure there is a -g somewhere when you compile teeworlds
12:29
cmake -DCMAKE_BUILD_TYPE=Debug ..
12:29
i used this
12:30
then make, then used the binary
Avatar
I don't know what cmake does and whether it adds -g
12:30
would be nice to make sure with verbose :)
Avatar
LordSk πŸ¦‹ 2019-10-19 12:30:49Z
try gdb again, let's see what it tells you
Avatar
you said you couldn't get a backtrace?
12:31
it was just empty, if i remember correctly
12:32
@Dune what do you mean with -g?
Avatar
a compiler flag
Avatar
where do i need to add that?
Avatar
idk cmake
12:32
check that it adds it when it compiles
Avatar
LordSk πŸ¦‹ 2019-10-19 12:33:35Z
it probably does
12:34
open your generated Makefile, check if there are any -g
Avatar
make VERBOSE=1 on cmake iirc
Avatar
LordSk πŸ¦‹ 2019-10-19 12:35:31Z
no, there are'nt any or no you won't? πŸ˜„
Avatar
there is not -g in that file
12:35
@Dune where? D:
Avatar
compile with this command
12:36
make VERBOSE=1 |grep \-g something like that :p
Avatar
what does the debug command in f2 do? (edited)
Avatar
enable some debug-only routines in teeworlds iirc
Avatar
grep: invalid option -- 'g' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information.
12:41
have no idea, sorry :/
Avatar
LordSk πŸ¦‹ 2019-10-19 12:41:46Z
pastebin your makefile please @fokkonaut
Avatar
i have two build folders, you mean the debug one?
Avatar
LordSk πŸ¦‹ 2019-10-19 12:42:22Z
yes
Avatar
LordSk πŸ¦‹ 2019-10-19 12:44:32Z
isn't there another one?
12:45
well
Avatar
LordSk πŸ¦‹ 2019-10-19 12:45:34Z
A Makefile2 perhaps?
Avatar
its in build/CmakeFiles/
12:45
yea, there is a makefil2
Avatar
LordSk πŸ¦‹ 2019-10-19 12:46:03Z
alright give me that one
Avatar
LordSk πŸ¦‹ 2019-10-19 12:47:52Z
I don't see any compiler flag in that one either
Avatar
LordSk πŸ¦‹ 2019-10-19 12:48:18Z
but anyway, cmake should add the proper flags by default
12:48
just run gdb again
Avatar
how does that work again? :p
Avatar
gdb -ex run -ex bt --args ./yourserver -f autoexec.cfg
12:52
lol
12:52
got a bt
Avatar
juste make VERBOSE=1, you'll see the g++ command
Avatar
[quakenet] redix BOT 2019-10-19 12:55:21Z
ever thought about the possibility that the buffer really overloads?
12:56
pPlayerInfo->m_Latency = SnappingClient == -1 ? m_Latency.m_Min : GameServer()->m_apPlayers[SnappingClient]->m_aActLatency[m_ClientID];
12:56
why does it crash here
Avatar
LordSk πŸ¦‹ 2019-10-19 12:59:35Z
which one redix?
Avatar
[quakenet] Dune BOT 2019-10-19 12:59:44Z
the network ringbuffer?
Avatar
[quakenet] redix BOT 2019-10-19 13:00:30Z
yes. when there is a client with high latency sending all these packets might fill it up
Avatar
[quakenet] redix BOT 2019-10-19 13:34:43Z
hmm when the connection ringbuffer is full it should just drop the client... didn't read that the server crashes
13:36
but still... sending packets to all clients each tick might be too much for the netcode. snapshots do this much more efficiently
Avatar
THATS WHY I AM SO MAD THAT WE DONT HAVE SKIN IN SNAP ANYMORE
13:37
sorry for caps
Avatar
[quakenet] redix BOT 2019-10-19 13:38:54Z
well... i agree on that
Avatar
[quakenet] Dune BOT 2019-10-19 13:38:56Z
maybe just send it less often
Avatar
[quakenet] redix BOT 2019-10-19 13:39:17Z
send it just every 2 or 3 ticks
13:39
or increase the network buffer size
13:39
or do both
Avatar
i asked oy, you cant increase it
13:39
(he said)
13:40
why does it crash there tho
Avatar
[quakenet] redix BOT 2019-10-19 13:40:32Z
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
13:40
try to increase this value. might work
Avatar
could you enable core dumps and give me a zipped version of the executable + core dump, @fokkonaut? Disord sucks btw.
Avatar
uhm, can we do that tomorrow? i dont have much time left today
13:43
would need some help for that
Avatar
doredump is created when the server crashes
13:44
cor
13:44
e
13:44
e
Avatar
basically executing ulimit -c unlimited before starting the server executable
Exported 122 message(s)