we have a tradition at work, where at 13:00 we have a "coffee break" which means we play TW for 30 minutes against each other
12:24
yesterday we leveled up our game by having voice chat in discord for both red and blue teams. now we want to auto assign players and get some stats from the game
oh yea my project is a mess and @jxsl13 work shows that it is possible to work way cleaner with just python but i created some crazy shell pipes to achieve that
13:09
was the easiest for me and it is working fine in production since years
If you don't like it this way I could also code a more general PopupModal which can be configured to render anything.
Lambdas would be perfect to clean this up...
I see the server log has no escaping or anything. I changed my name to include spaces and single quotes and this is how the server log looks like [game]: team_join player='1:wa' vi k' team=0
18:14
how am I supposed to get the player id and nick from that 🤔
i for example have one server in 0.6 and one in 0.7 and i use the same sqlite3 database and i got a blocking error once cuz both tried to access the db
18:20
i think most utf8 and unicode madness errors are solved nowerdays
18:20
but this was a issue for a long time
18:21
and if you start parsing be aware that not every connection message is followed by a disconnect message. There might be disconnects without connections in the log if the client gets kicked during connection phase etc.
ChillerDragon I cant figure out how you track player names.. I just named myself player='99:hax' and your mod correctly recognizes me and doesn't get confused
19:43
do you store the player name on connect and then rely on just the player id for all other events?
19:44
the server sends lines like this [game]: pickup player='0:wa' vi' item=1 (payer name there is "wa' vi") but the single quotes aren't escaped :<
19:49
when a player joins the first line in the logs with their name is "[game]: team_join player='0:playername' team=0". If i can assume the player id and name is between the first and last single quote I can store the player details and later just match the player based on the id (i think)
What about improving the server side bot? It is a great idea to keep it joined when the server is empty and for balancing purposes, but it's bit too dumb, it keeps falling down all the way around.
nheir/rand bots are one of the best bots right now, but they are too strong, they all behave the same, they don't have any strategies as humans in-game, just "get flag, kill and destroy", so it makes it boring after a while