Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories β€” IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2024-12-13 00:00 and 2024-12-14 00:00
Avatar
English is a third language for some people, mind you
Replying to @risu I was going to stay quiet but since it's been misspelled three times in …
Avatar
Avatar
EGYT
English is a third language for some people, mind you
Well technically it is my third language sure
Avatar
doesn't mean you have to suck at it. πŸ‘€
Avatar
I'd generally expect non-native users to be better at spelling, not worse
00:16
learning to speak before learning to write is a handicap when it comes to remembering bullshit spellings (edited)
Avatar
I expect native British English enjoyers to be better at it than American English enjoyers.
Avatar
Avatar
jxsl13
doesn't mean you have to suck at it. πŸ‘€
I don't get why people get so defensive over it... like, showing eagerness to improve just makes you more respectable
Avatar
GitHub BOT 2024-12-13 01:43
eaa893d Minor refactoring of server vote handling - Robyt3 8f5f001 Fix server handling when vote creator leaves - Robyt3 0e9b9a8 Merge pull request #9384 from Robyt3/Server-Vote-Fixes - def-
Avatar
Who can create a script for fifo?
Avatar
Avatar
Evelyn
Who can create a script for fifo?
ddnet uses just a simple CreateNamedPipeW, just do CreateFileW with GENERIC_WRITE OPEN_EXISTING and WriteFile to write to it
01:57
whats so difficult youre stuck for 1 month on it
Avatar
Avatar
kebs
ddnet uses just a simple CreateNamedPipeW, just do CreateFileW with GENERIC_WRITE OPEN_EXISTING and WriteFile to write to it
(dont need to modify ddnet)
02:55
ive already written them a script to do tune randomization and a very loosely written guide on how to use it
Avatar
Avatar
Solly
#!/bin/env python3 from random import random from time import sleep MSGCOUNTDOWN = "%ss untill randomize" MSGRANDOMIZE = "tunes randomized" DELTA = 5 # seconds between each random FIFOPATH = "./fifo.fifo" TUNES = { ("ground_control_speed", 4.00, 14.00), # Maximum running speed on the ground. (Higher values make the character move faster). ("ground_control_accel", 0.50, 4.00), # Acceleration on the ground. (Higher values make the character speed up faster). ("ground_friction", 0.30, 1.00), # Ground friction. (Higher values make the character stop faster). ("ground_jump_impulse", 8.00, 18.00), # Jump force from the ground. (Higher values make the character jump higher). ("air_jump_impulse", 6.00, 16.00), # Jump force in the air. (Applies to double jumps; higher values allow higher jumps). ("air_control_speed", 2.00, 9.00), # Maximum speed when moving in the air. (Higher values allow faster air movement). ("air_control_accel", 0.50, 3.00), # Acceleration in the air. (Higher values allow quicker changes in air movement). ("air_friction", 0.70, 1.10), # Air friction. (Higher values reduce the character's air speed more quickly). ("gravity", 0.30, 0.80), # Gravity strength. (Lower values make the character float longer; higher values make them fall faster). } def write(s): with open(FIFOPATH, "w") as fifo: fifo.write(s) print(s) sleep(1) while True: out = "broadcast %s\n" % MSGRANDOMIZE for name, min, max in TUNES: value = min + random() * (max - min) value = round(value, 2) out += "tune %s %s\n" % (name, value) write(out) if DELTA > 3: sleep(DELTA - 3) for i in range(3): write("broadcast " + MSGCOUNTDOWN % (3 - i)) sleep(1) else: sleep(DELTA) @Evelyn
@Evelyn read this
Avatar
Avatar
Solly
(dont need to modify ddnet)
Yes you can do standalone with just these 2 functions
Avatar
Avatar
Solly
#!/bin/env python3 from random import random from time import sleep MSGCOUNTDOWN = "%ss untill randomize" MSGRANDOMIZE = "tunes randomized" DELTA = 5 # seconds between each random FIFOPATH = "./fifo.fifo" TUNES = { ("ground_control_speed", 4.00, 14.00), # Maximum running speed on the ground. (Higher values make the character move faster). ("ground_control_accel", 0.50, 4.00), # Acceleration on the ground. (Higher values make the character speed up faster). ("ground_friction", 0.30, 1.00), # Ground friction. (Higher values make the character stop faster). ("ground_jump_impulse", 8.00, 18.00), # Jump force from the ground. (Higher values make the character jump higher). ("air_jump_impulse", 6.00, 16.00), # Jump force in the air. (Applies to double jumps; higher values allow higher jumps). ("air_control_speed", 2.00, 9.00), # Maximum speed when moving in the air. (Higher values allow faster air movement). ("air_control_accel", 0.50, 3.00), # Acceleration in the air. (Higher values allow quicker changes in air movement). ("air_friction", 0.70, 1.10), # Air friction. (Higher values reduce the character's air speed more quickly). ("gravity", 0.30, 0.80), # Gravity strength. (Lower values make the character float longer; higher values make them fall faster). } def write(s): with open(FIFOPATH, "w") as fifo: fifo.write(s) print(s) sleep(1) while True: out = "broadcast %s\n" % MSGRANDOMIZE for name, min, max in TUNES: value = min + random() * (max - min) value = round(value, 2) out += "tune %s %s\n" % (name, value) write(out) if DELTA > 3: sleep(DELTA - 3) for i in range(3): write("broadcast " + MSGCOUNTDOWN % (3 - i)) sleep(1) else: sleep(DELTA) @Evelyn
I READ, I WROTE ABOUT THIS NEURAL NETWORK , I DID EVERYTHING WITH THIS TEXT
04:26
But I don't understand Python.
Avatar
Avatar
kebs
ddnet uses just a simple CreateNamedPipeW, just do CreateFileW with GENERIC_WRITE OPEN_EXISTING and WriteFile to write to it
I can't
Avatar
Why in the first place do you think asking the same people the same question would get different answers
Avatar
I don 't know , maybe they are different
Avatar
GitHub BOT 2024-12-13 05:30
a0027e0 A Multeasyvolvemap, A Multeasymapsolo - ddnet-maps
Avatar
ws-client BOT 2024-12-13 05:45
<ChillerDragon> Writing own logger in assembly is easier than figuring out how to use which exisiting logger system in python. Change my mind.
Avatar
Avatar
Evelyn
I READ, I WROTE ABOUT THIS NEURAL NETWORK , I DID EVERYTHING WITH THIS TEXT
05:58
(without "ONLY" it also kept the tune randomizer)
Avatar
ws-client BOT 2024-12-13 06:23
<ChillerDragon> @Evelyn is this what you want? https://tube.zillyhuhn.com/video.php?t=fifo_script.mp4&u=chiller
Avatar
python is shit
07:04
hot take
Avatar
i never loved it
Avatar
Avatar
jxsl13
hot take
Not a hot take
07:08
Well, it is good for scripting smth quick
07:08
But id rather use lua
Avatar
for small scripts it's great
07:09
write once
07:09
never read
Avatar
python is a scripting language and was meant to be one by the dev but people smh use it as their main language
07:10
that's the problem imo
Avatar
Where's that graph
07:10
Which is like a bell curve
07:10
With programmers on it
07:10
Hold my beer
Avatar
big brain meme
07:11
small brain
07:11
average brain
07:11
gaussian standard distribution
07:13
braught to you by "sollys funny doings, international"
Avatar
sattle for dream island
Avatar
now swap great with it sucks
Avatar
Avatar
jxsl13
now swap great with it sucks
i see youre obviously in the middle then
Avatar
lies
Avatar
Avatar
Voxel
sattle for dream island
thank u for getting my reference
Avatar
it's great, obviously
πŸ‘€ 1
Avatar
Avatar
Solly
thank u for getting my reference
bfdi was my childhood LOL
Avatar
MilkeeyCat 2024-12-13 07:21
Morning .unwrap() enjoyers and others
Avatar
(ah yes lets make everything handle errors gracefully... and also use .unwrap() everywhere)
Avatar
Morning anyhow users and others
Avatar
MilkeeyCat 2024-12-13 07:23
I use thiserror and it's great
Avatar
i handle errors with process.on("uncaughtException", e => console.error(e));
07:25
an error is just an unintended codepath being caught and can simply be ignored
Avatar
yea i'd probably use that in my own projects
07:26
talking about thiserror
Avatar
Avatar
MilkeeyCat
I use thiserror and it's great
Morning fmt.Errorf enjoyers and others (edited)
Avatar
Avatar
meloƞ
Morning fmt.Errorf enjoyers and others (edited)
❀️
❀️ 1
Avatar
The good part about python is the ethos that everyone makes things designed to let you do the least amount of work. Most languages are not like that, everything else about it is bad imo (edited)
🦈 1
Avatar
if err != nil enjoyers
Avatar
Avatar
jxsl13
if err != nil enjoyers
I'm more of an if err == nil guy myself greenthing
πŸ‘€ 1
07:29
My client is slowly growing written in go greenthing
πŸš€ 1
Avatar
I use both. depending on which one leads to a less nested happy path
Avatar
Avatar
jxsl13
I use both. depending on which one leads to a less nested happy path
YEP
Avatar
imagine if there was a system for making reports more valuable from people who report things well (negative reports like for spam or something) so a karma system and... then you make it so if the person has enuf karma you can insta ban them, wasnt indended but its just a thing and it isnt exploited ..... most of the time. the rest of the time people are spending full time jobs just dilligently reporting shit to get good karma accounts so they can sell them so people can ban other people they dont like
Avatar
What is this about?
Avatar
Avatar
Tater
What is this about?
my mind wonders
07:34
and sometimes it produces coherant ideas
07:35
this is not one of those coherant ideas
Avatar
Avatar
Solly
imagine if there was a system for making reports more valuable from people who report things well (negative reports like for spam or something) so a karma system and... then you make it so if the person has enuf karma you can insta ban them, wasnt indended but its just a thing and it isnt exploited ..... most of the time. the rest of the time people are spending full time jobs just dilligently reporting shit to get good karma accounts so they can sell them so people can ban other people they dont like
Semi related there's an interesting paper about how Twitter designed the "karma" system for their fact checking https://arxiv.org/abs/2210.15723 (edited)
poggers2 1
Avatar
https://arxiv.org/pdf/2210.15723 (if u cant find the button, it took me a min)
Avatar
Avatar
Bors Matyas
can i ask a quick question? when will there be: levels, leveled up by completeing maps. harder maps are locked for higher levels payed skins, you only own the basic skin by default, you can buy skins with real money gatcha system: the good skins are locked behind a gatcha system, where you open loot boxes and have to open 100 to get the skin you want
level could be used like points but mehgreenthing
Avatar
when accounts (and then elo system based match making because i cant deal with playing with novices no more)
07:39
(or atleast a soft pt limit on maps for the same reason)
Avatar
elo system in cooperation game is hard
Avatar
(or better noob filters)
Avatar
The easiest method would be to restrict servers to a point minimum tied to your account but I don't think people would like that
Avatar
yeah cuz my pts are abysmally low
Avatar
how many
Avatar
and what if u wanted to play after a while it would take too long to get up to the pt threshold
Avatar
5000 pts for moderate maps 85000 pts for brutal maps 299999 pts for dummy maps
πŸ’€ 4
Avatar
i have 1k x-x ( i play [1 star] brutals ) (edited)
Avatar
i can almost play moderates
brownbear 1
Avatar
not a good idea i enjoy playing with novices
Avatar
Avatar
Solly
i have 1k x-x ( i play [1 star] brutals ) (edited)
same but I'm not that bad
Avatar
I am bad
❌ 3
βœ… 3
Avatar
get on
07:42
witness our legendary run
Avatar
Avatar
Tater
I am bad
2v1 you arent bad
Avatar
saved
Avatar
Avatar
Teero
used /vote-kick
Teero called for vote to kick louis.place (No reason given) β€” 0s left (edited)
f3 7
f4 4
Avatar
huh???
Avatar
is this a troll thing
Avatar
No he gets kicked
Avatar
Avatar
Solly
is this a troll thing
Nah it kicks fr
Avatar
whaaaa why???
Avatar
Avatar
DDNet
Teero called for vote to kick louis.place (No reason given) β€” 0s left (edited)
Vote failed
Avatar
He reacted with checkmark to taters msg
Avatar
no i get that...
Avatar
but i mean giving this power
07:43
to this community
Avatar
Avatar
oxyzo
used /vote-kick
oxyzo called for vote to kick sollybunny (No reason given) β€” 0s left (edited)
f3 7
f4 2
Avatar
you're cooked
Avatar
Avatar
Solly
Click to see attachment πŸ–ΌοΈ
Is that what I'm thinking?
Avatar
it's over for u
Avatar
sorry...
Avatar
It's literally over
Avatar
bad bot
Avatar
Avatar
Gumba
bad bot
:(
Avatar
Good bye solly
Avatar
Avatar
DDNet
oxyzo called for vote to kick sollybunny (No reason given) β€” 0s left (edited)
Vote passed. sollybunny kicked by vote (No reason given)
Avatar
...
πŸ˜‚ 2
kek 2
Avatar
it doesnt actually kick
07:44
kek
Avatar
doesnt it?
Avatar
i still hate all of you
Avatar
Avatar
Voxel
doesnt it?
WHAT DO YOU THINK
Avatar
Avatar
Voxel
used /vote-kick
Voxel called for vote to kick oxyzo. (let find out) β€” 0s left (edited)
f3 8
f4 1
Avatar
Stop ban evading Solly
f3 1
Avatar
Avatar
Gumba
Stop ban evading Solly
Avatar
Avatar
Solly
used /vote-kick
Solly called for vote to kick 01000111g (No reason given) β€” 0s left (edited)
f3 4
f4 2
Avatar
Avatar
DDNet
Voxel called for vote to kick oxyzo. (let find out) β€” 0s left (edited)
Vote passed. oxyzo. kicked by vote (let find out)
Avatar
Avatar
DDNet
Solly called for vote to kick 01000111g (No reason given) β€” 0s left (edited)
who is that lol
Avatar
gumba
Avatar
Let's go #off-topic
Avatar
Avatar
DDNet
Solly called for vote to kick 01000111g (No reason given) β€” 0s left (edited)
Vote passed. 01000111g kicked by vote (No reason given)
Avatar
Avatar
Evelyn
Is that what I'm thinking?
?
Avatar
Heinrich waking up to find the children spamming the dev channel again.
brownbear 1
Avatar
Avatar
Evelyn
?
No it is not nothing
Avatar
Avatar
Teero
No it is not nothing
pancake
Avatar
@louis i dont mind carrying people (most of the time). its just not being able to rely on them to do what i find simple (which for me is save one person from freeze at any time before getting frozen and hammerflying upwards)
Avatar
Who can make a fifo script alone?
Avatar
Avatar
Evelyn
Who can make a fifo script alone?
AquaTriggered AquaTriggered AquaTriggered AquaTriggered AquaTriggered
πŸ‘ 1
Avatar
Can someone explain the relationship Evelyn has with chiller dragon? I don't understand what's happening with them
Avatar
Avatar
Evelyn
Who can make a fifo script alone?
Alone? Like in a cave?
Avatar
Avatar
Solly
@louis i dont mind carrying people (most of the time). its just not being able to rely on them to do what i find simple (which for me is save one person from freeze at any time before getting frozen and hammerflying upwards)
@louis i dont mind setting the bar really low (slightly lower than i have), i just want a bare minimum
Avatar
I don't know
Avatar
Avatar
Tater
Can someone explain the relationship Evelyn has with chiller dragon? I don't understand what's happening with them
Chiller seems to be some kind of sugar daddy for evelyn
😒 1
Avatar
I suspected it was the opposite tbh
Avatar
Avatar
Tater
I suspected it was the opposite tbh
hmm maybe
Avatar
i wanna brainstorm more hopeless ddnet hypothetical updates again but i got nothing
Avatar
Avatar
Evelyn
Who can make a fifo script alone?
you have a screeny of the script you want, and a video of chiller setting it up. i beg
Avatar
Not quite sure myself
Avatar
Can we crowd fund him a chatgpt subscription (edited)
πŸ‘ 1
Avatar
Avatar
Voxel
i wanna brainstorm more hopeless ddnet hypothetical updates again but i got nothing
A proper physics system
Avatar
Avatar
Tater
Can we crowd fund him a chatgpt subscription (edited)
x-x, its free bro
Avatar
Ddnet physics are limited and bad
Avatar
Avatar
Teero
A proper physics system
Send your hook line xd
Avatar
Avatar
meloƞ
Send your hook line xd
XD
Avatar
Avatar
Solly
x-x, its free bro
man now that loops back to slopes in ddnet
07:52
and how cursed it be to see tees going on them
Avatar
Slopes is kind of a good idea
Avatar
Avatar
meloƞ
Send your hook line xd
I want to make it actually smooth and not dependent on prediction xdd
Avatar
Avatar
Solly
you have a screeny of the script you want, and a video of chiller setting it up. i beg
And how to get the code from the screenshot
Avatar
Avatar
Tater
Slopes is kind of a good idea
We should make a bezier curve collision system
07:53
Like colliding with quads
Avatar
But better quads
Avatar
Avatar
Tater
Slopes is kind of a good idea
what behaviour do you want to have, ive always thought tees to be rubbery balls, they would either not slide (insane balance) or roll (edited)
Avatar
lets add logic blocks in ddnet and turn it into a game engine
Avatar
Well they don't bounce on the walls currently without tune
Avatar
Avatar
Solly
what behaviour do you want to have, ive always thought tees to be rubbery balls, they would either not slide (insane balance) or roll (edited)
They will climb slower than when going down
Avatar
Avatar
Evelyn
And how to get the code from the screenshot
you have the original it comes from, and its <50 lines
Avatar
Avatar
Voxel
lets add logic blocks in ddnet and turn it into a game engine
Ask TS Freddie to recreate it in godot
Avatar
And what does that mean
Avatar
Avatar
Teero
They will climb slower than when going down
gravity down > 0.5 * movement speed (45deg slope)
Avatar
Make ddnet turning complete
Avatar
Avatar
Teero
Make ddnet turning complete
Teelang
Avatar
Avatar
Solly
gravity down > 0.5 * movement speed (45deg slope)
*dot
Avatar
Avatar
Voxel
lets add logic blocks in ddnet and turn it into a game engine
Just add Lua tiles kek
Avatar
Avatar
Tater
Just add Lua tiles kek
XD
Avatar
Avatar
Teero
*dot
wher..... is the dot?
Avatar
Avatar
Tater
Just add Lua tiles kek
nouis
Avatar
Avatar
Tater
Just add Lua tiles kek
LOL
Avatar
Avatar
Tater
Just add Lua tiles kek
Boutta submit my first Bitcoin miner map in #📬submit-maps
πŸ’€ 2
Avatar
but yea i think itd be rly fun the simplest you could do is an AND block, where it checks if two or more switches are active, and if they are, activate that one
Avatar
Avatar
Teero
Boutta submit my first Bitcoin miner map in #📬submit-maps
ddnet is already turing complete, idk whats stopping u already
Avatar
Avatar
Solly
ddnet is already turing complete, idk whats stopping u already
Only up to 8bit
07:57
That's kind of not enough
Avatar
make it 64gb
Avatar
Avatar
Teero
Only up to 8bit
you have 64 tees aswell
07:57
they can store states
Avatar
Let the world see our divine presence
Avatar
@Tater aip tas is on the stage before last
Avatar
64gb ddnet rather a fuckton of features or all the skins are 4k quality
Avatar
Like half way
Avatar
Avatar
Teero
@Tater aip tas is on the stage before last
xd can't wait
Avatar
Avatar
Teero
@Tater aip tas is on the stage before last
Should I start beating it now?
Avatar
Avatar
Voxel
64gb ddnet rather a fuckton of features or all the skins are 4k quality
Twinbop 16K VR model
Avatar
There are some sweet doubles
Avatar
Avatar
Tater
Should I start beating it now?
yes
Avatar
Avatar
Tater
Should I start beating it now?
Based
Avatar
Avatar
meloƞ
Twinbop 16K VR model
saddo >>>
Avatar
Avatar
Tater
Should I start beating it now?
honestly i could do it rta
Avatar
Avatar
Tater
Should I start beating it now?
I didn't commit yet tho you're missing some stuff
Avatar
Avatar
Voxel
saddo >>>
Fnokurka >>>
πŸ˜ƒ 1
Avatar
Avatar
Teero
I didn't commit yet tho you're missing some stuff
The good commits are in my brain you'll never get those
Avatar
Avatar
Tater
The good commits are in my brain you'll never get those
okay chill even I wouldn't use my brain even in a competition
07:59
That would be unfair
Avatar
The good commits are my brand new 7950x cpu
Avatar
Avatar
Tater
The good commits are my brand new 7950x cpu
real?
08:00
Would be nice
Avatar
What kind of tps are you getting?
Avatar
Avatar
Tater
No 😭
;(
08:00
I wanna buy new pc
Avatar
But Juustart posted good info earlier
08:01
He gets more tps with more tees
Avatar
Avatar
Tater
He gets more tps with more tees
yea I also thought of some ideas to get multitee tas working
08:01
It is actually not hard
Avatar
Only another 1.5k loc to the file
08:02
And 1k to kitchen
Avatar
Avatar
Tater
Only another 1.5k loc to the file
hmmm not really maybe 100loc
Avatar
Avatar
Tater
And 1k to kitchen
I already support multi tee in kitchen
Avatar
oh ok
Avatar
For dragging
Avatar
multitee tas would be awesome i wanna do a fng one where theres like 37432 trickshots
Avatar
I need to adjust the saving format tho
Avatar
Avatar
Voxel
multitee tas would be awesome i wanna do a fng one where theres like 37432 trickshots
That's a lot of trick shots
Avatar
Like we need a more complex thing that it is now. Also backwards compat
Avatar
Just convert all your files
Avatar
We could do a json where one field are the raw inputs in bin
Avatar
Avatar
Tater
Just convert all your files
yeeee
08:04
My headache is fading too
08:04
This is nice
Avatar
Did you drink water
Avatar
Last night I drank water but my stomach didn't like it and then nausea
Avatar
Who can make a fifo script alone?
Avatar
Avatar
Evelyn
Who can make a fifo script alone?
you!
08:08
Next year I might host servers aswell, if i stumvle across sth called "fifo" script, I'll get back to u
Avatar
You are a hero
Avatar
chillerdragon BOT 2024-12-13 08:11
πŸ’€ 4
Avatar
ws-client BOT 2024-12-13 08:14
<ChillerDragon> okay so how much money will you donate to ddnet for the contents of this advanced script? @Evelyn
Avatar
just so that it works without my participation , also not say , but a broadcast
Avatar
coding slavery is illegal in some countries, I guess
Avatar
I don't know, I've already spent $40 on 1 coder. He said the project would take a week
Avatar
ws-client BOT 2024-12-13 08:15
<ChillerDragon> okay i can give you the code for free but if you want changes you better stop paying random coders and start donating to ddnet
08:15
<ChillerDragon> the code of the advanced script is:
08:16
<ChillerDragon> echo "say hello" >> uwu.fifo
Avatar
Avatar
chillerdragon
did I just see I AM LIBAN
Avatar
ws-client BOT 2024-12-13 08:16
<ChillerDragon> yes
Avatar
my brother
08:17
and I am TA
08:17
and together we used to be TA & LIBAN
Avatar
Avatar
ws-client
<ChillerDragon> echo "say hello" >> uwu.fifo
In any case, this is not what I wanted, it needs to be run on the hosting and manually every time, it does not output a command once at a certain time
Avatar
google: linux cronjobs
08:19
or are you on windows?
08:19
then rip
08:19
try a loop
08:19
and a sleep
Avatar
Why should I sleep right now
πŸ˜‚ 2
Avatar
a sleep
08:20
command
08:20
good luck
Avatar
sudo woidless sleep
Avatar
Avatar
Teero
Make ddnet turning complete
Lmao we should add custom curves into DDNet so it becomes turning complete
Avatar
Evelyn how much money do you have on hand right now
08:25
Free to give away for whatever
Avatar
Im willing to give you what you want as a runnable executable if you donate it to DDnet. free and open source (edited)
πŸ˜‚ 2
Avatar
Avatar
jxsl13
or are you on windows?
on windows there is a task scheduler which uses some xml format for configuration, but that's about as much as I know. And priority should be set at least to 7 iirc otherwise your command might not always be executed (edited)
Avatar
Avatar
meloƞ
Im willing to give you what you want as a runnable executable if you donate it to DDnet. free and open source (edited)
I have already paid 1 coder, he should create this script on Python for $ 40 and it will take a week
Avatar
money is basically gone
08:27
πŸ’Έ
Avatar
Why, he said it's a difficult project
Avatar
what exactly, opening a file and writing to it?
Avatar
It's new
Avatar
Your project takes ~30 lines in python and is a simple File I/O in a while loop. It's absolutely not worth 40$
Avatar
MilkeeyCat 2024-12-13 08:29
next time if you need to write to a file, donate to ddnet $40 and we will do it for you
Avatar
arch1t3cht 2024-12-13 08:29
madocheck
Avatar
either completely beginner programmer
08:30
or you got scammed
Avatar
arch1t3cht 2024-12-13 08:30
or both
Avatar
indeed
πŸ‘ 1
Avatar
Avatar
meloƞ
Your project takes ~30 lines in python and is a simple File I/O in a while loop. It's absolutely not worth 40$
Well, I can't write it myself.
Avatar
open chatgpt
Avatar
Avatar
MilkeeyCat
next time if you need to write to a file, donate to ddnet $40 and we will do it for you
So ddnet is a game, not a coder
Avatar
and write: please create apyrhon script that opens a file and writes 'broadcast message' to it every 10 seconds.
Avatar
Stop hating on Evelyn, its not that easy if u are a beginner. And the 40$ is fair considering random coder does not know anyrhing about ddnet and its codebase, no?
❌ 1
Avatar
it's a python script
Avatar
that writes to a file
Avatar
while(true): Sendsomethingtofifo Sleep(x) Where x is a changeable value at runtime
Avatar
Avatar
jxsl13
and write: please create apyrhon script that opens a file and writes 'broadcast message' to it every 10 seconds.
import time file_name = "broadcast_log.txt" try: while True: with open(file_name, "a") as file: file.write("broadcast message\n") print("Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ записано Π² Ρ„Π°ΠΉΠ».") time.sleep(10) except KeyboardInterrupt: print("\nΠ‘ΠΊΡ€ΠΈΠΏΡ‚ остановлСн.")
Avatar
Avatar
Gumba
Stop hating on Evelyn, its not that easy if u are a beginner. And the 40$ is fair considering random coder does not know anyrhing about ddnet and its codebase, no?
it is a fair point that when the programmer does not know nothing, he or she would need time for understanding stuff
Avatar
Avatar
Evelyn
import time file_name = "broadcast_log.txt" try: while True: with open(file_name, "a") as file: file.write("broadcast message\n") print("Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ записано Π² Ρ„Π°ΠΉΠ».") time.sleep(10) except KeyboardInterrupt: print("\nΠ‘ΠΊΡ€ΠΈΠΏΡ‚ остановлСн.")
now use that and put your fifo file instead of "broadcast_log.txt"
08:37
python your_script.py (edited)
Avatar
Avatar
meloƞ
Im willing to give you what you want as a runnable executable if you donate it to DDnet. free and open source (edited)
LMFAO you're making this guy spend his last dime for some code
πŸ”₯ 1
Avatar
why do u need a script for that Evelyn. Cant u just do nano fifo.txt, then write ur msg and save it
Avatar
fifo file
Avatar
i guess bash script would be also fine
Avatar
sends broadcasts to ddnet server
08:39
true
Avatar
and server checks each x seconds for new lines in that file?
08:39
thats pretty cool
Avatar
Avatar
Ewan
LMFAO you're making this guy spend his last dime for some code
That's why j Said free to give away for whatever greenthing
Avatar
there is already a fifo file that the server creates
08:40
all you need to do is write to it
Avatar
Avatar
Gumba
and server checks each x seconds for new lines in that file?
Marzzzello wrote a python script to translate in-game chat via log file and fifo that echos messages back translated. Really cool indeed
Avatar
melon making big bucks with his newly acquired Go skills
Avatar
Avatar
jxsl13
melon making big bucks with his newly acquired Go skills
kekw
Avatar
selling binaries
Avatar
I don't take money for my coding, it's a hobby and I want it to stay that way
Avatar
I will take money in your stead justatest
08:42
for your work
Avatar
Avatar
meloƞ
I don't take money for my coding, it's a hobby and I want it to stay that way
3Head Salesman
Avatar
oh no
08:43
i become a gpt developer now
Avatar
TsFreddie evolves into GPTFreddie
Avatar
enjoying using gpt to make a blender addon
08:43
InsaneCat
08:43
it's pretty sick actually
Avatar
Avatar
TsFreddie
i become a gpt developer now
people in my uni are in their masters, then they sit in course, upload the exercise sheet pdf to chatgpt and legit think they learned something. Its fr over
Avatar
they are over
08:44
not it
08:44
hehe
Avatar
greenthing too bad gpt wasn't really there when i was in college
08:45
i do use copilot-ish autocomplete tho, but this is first time i just let a gpt model make something from scratch
πŸ‘ 1
Avatar
I dunno, it helps with some code, but currently it seems that people are even too bad to write the right prompt. If u dont know anything, you cant properly ask for it
Avatar
and i feel like i can just make blender addons now after looking at what it has done
πŸ‘ 1
Avatar
Avatar
Gumba
I dunno, it helps with some code, but currently it seems that people are even too bad to write the right prompt. If u dont know anything, you cant properly ask for it
nah, they are just training the next generation of project managers
brownbear 1
Avatar
I am tutor for some undergraduate Introduction to R course. And they had to hand in some tasks, which i'd be able to do with gpt in 10mins, they had two weeks time and the code didnt seem gpt written (they werent able to instruct it or did it themselves for practice (big ups))
Avatar
i hate R
08:49
not in the sense i don't like R, cuz i never have used it. i hate it everytime someone studies fin they just ask me to do their homework even tho i don't even know their stuff.
Avatar
Avatar
Evelyn
import time file_name = "broadcast_log.txt" try: while True: with open(file_name, "a") as file: file.write("broadcast message\n") print("Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ записано Π² Ρ„Π°ΠΉΠ».") time.sleep(10) except KeyboardInterrupt: print("\nΠ‘ΠΊΡ€ΠΈΠΏΡ‚ остановлСн.")
(idk the specifics of fifo, but i think that should be a "w" not "a")
Avatar
oh the fifo thing is still going on?
Avatar
¯\_(ツ)_/¯
Avatar
Avatar
Gumba
I am tutor for some undergraduate Introduction to R course. And they had to hand in some tasks, which i'd be able to do with gpt in 10mins, they had two weeks time and the code didnt seem gpt written (they werent able to instruct it or did it themselves for practice (big ups))
atleast the way i use chatgpt youd never be able to tell its chatgpt code
πŸ‘ 1
08:54
since often i dont really bother specifying specifics since its quicker to just edit waht i know it can give me
08:55
and also i make it into my own style, (copy and pate from wikipedia sorta stuff) (edited)
08:55
also remove the large amount of comments it likes producing
Avatar
a is append, I guess
09:00
should work as well, maybe
Avatar
Avatar
jxsl13
a is append, I guess
when you open a file with "w" you overwrite previous content. this doesnt apply with fifo (first in first out), i guess it does "append" when you write to a fifo pipe, but ive never seen anyone do it before (now i have) and opening as "w" (which is what echo ... > ... will do) works for me
Avatar
help
09:12
script write text to fifo
Avatar
Avatar
Evelyn
help
Let me get home and i'll do something for you, just please stop asking the same thing for 3 weeks every day AquaTriggered
09:13
Will be home in like 4-6 hours depending on my colleagues
Avatar
I just checked this script on Windows on a regular local server, entered fifo.fifo in the script and on the server sv_input_fifo fifo.fifo, the script told me that the message was written to a file, and I actually checked and it is there
09:14
Avatar
chillerdragon BOT 2024-12-13 09:15
I don’t understand what that means specifically
Replying to @Evelyn In any case, this is not what I wanted, it needs to be run on the hostin…
Avatar
ws-client BOT 2024-12-13 09:21
<ChillerDragon> @Evelyn cd /root/DDNetPP/build && curl https://paste.zillyhuhn.com/J2 > woidless.sh && chmod +x woidless.sh then start the server with ./DDNetPP "sv_input_fifo server.fifo" and then run the script with ./woidless.sh it will broadcast and send chat every 10 seconds
Avatar
Avatar
ws-client
<ChillerDragon> @Evelyn cd /root/DDNetPP/build && curl https://paste.zillyhuhn.com/J2 > woidless.sh && chmod +x woidless.sh then start the server with ./DDNetPP "sv_input_fifo server.fifo" and then run the script with ./woidless.sh it will broadcast and send chat every 10 seconds
and can I not start the server for this , but just register it in the rcon
Avatar
ChillerDragon you're supposed to be a dragon! There's a limit to chillness! Be menacing!
Avatar
arch1t3cht 2024-12-13 09:41
pepeW
10:38
done lol
Avatar
Avatar
risu
ChillerDragon you're supposed to be a dragon! There's a limit to chillness! Be menacing!
this
Avatar
ws-client BOT 2024-12-13 11:39
<ChillerDragon> @Evelyn sadly you have to restart your server first. Seems like sv_input_fifo can not be updated after server start. I can't believe you don't have a fifo file in your config after all this time trying to do fifo ._.
11:40
<ChillerDragon> If someone wants an easy pr to ddnet putting m_Fifo.Init(Console(), Config()->m_SvInputFifo, CFGFLAG_SERVER); into a chain hook should be a quick win to allow setting sv_input_fifo without server restarts
Avatar
go risu!
Avatar
Avatar
Evelyn
I just checked this script on Windows on a regular local server, entered fifo.fifo in the script and on the server sv_input_fifo fifo.fifo, the script told me that the message was written to a file, and I actually checked and it is there
Fifo doesn't work the same on Windows. It creates a named pipe on Windows that you send commands to, e.g. with scripts/send_named_pipe.ps1 (edited)
Avatar
Avatar
ws-client
<ChillerDragon> @Evelyn sadly you have to restart your server first. Seems like sv_input_fifo can not be updated after server start. I can't believe you don't have a fifo file in your config after all this time trying to do fifo ._.
How can I specify 2 parameters at once to start ddnetpp, for example, so that the server starts using my config, and fifo also works
Avatar
Avatar
Evelyn
How can I specify 2 parameters at once to start ddnetpp, for example, so that the server starts using my config, and fifo also works
"sv_input_fifo fifofilename; sv_map Kobra 4"
13:37
Or a config file you put all these in
Avatar
MilkeeyCat 2024-12-13 13:39
@Learath2 do you usually use &buf[i] or buf + i if buf was uint8_t buf[...];?
Avatar
Avatar
MilkeeyCat
@Learath2 do you usually use &buf[i] or buf + i if buf was uint8_t buf[...];?
Usually buf + i. Sometimes I'm in the mood for &buf[i] though
Avatar
MilkeeyCat 2024-12-13 13:45
I wanted to rewrite little bit of my compiler to add ir to it and at this point I touched every part except lexer
Avatar
Avatar
Learath2
Or a config file you put all these in
Recommend πŸ‘
Avatar
@deen @Pioooooo says he's getting pretty bad lag daily. can we reduce the server count on each server a bit?
Avatar
Which servers?
Avatar
i usually play on chn 6&9 and could experience lagging when there're many players in the evening
Avatar
he can probably tell you. i'm not exactly sure
14:38
chn 9 is ddosed and currently down btw
Avatar
CHN servers are always annoying because they don't have enough bandwidth
Avatar
did we removed the 32 cap?
14:39
on smaller servers
Avatar
yeah so i think if we could provide less server with better bandwidth
Avatar
or that
14:40
32 cap is more efficient tho imo
Avatar
what's that cap
14:40
max tee in a server? (edited)
Avatar
yes
Avatar
oh yeah that should also do
Avatar
cuz with that bandwidth we can hit max bandwidth even just with two or three 64 player servers
14:41
reducing to 4 servers per host is probably not a good idea
Avatar
How compressed is Teeworlds traffic? Time to make life into backwards compatibility hell and design a new low bandwidth protocol :P
Avatar
Avatar
risu
How compressed is Teeworlds traffic? Time to make life into backwards compatibility hell and design a new low bandwidth protocol :P
i'm trying to do a LOD thing to reduce bandwidth on tee that you don't interact with.
14:42
the protocol itself is varint deltaed & huffmaned and should be pretty good already
14:42
not many games have delta compression too the level that teeworlds has
Avatar
My demos directory is 3GB justatest
Avatar
wondering how cn bandwidth price end like this
14:45
i've deleted like 20G demos already
14:45
since i started playing the game less than 1 year ago
Avatar
Avatar
risu
My demos directory is 3GB justatest
demo is not delta compressed iirc?
14:46
i might be wrong
Avatar
I recently upped my max demos from 100 to 1000 and replay recording is on too
Avatar
demo is full snapshots stitched together
14:47
again i might be wrong
Avatar
Let me see, what if I simply gzipped some of them... (edited)
Avatar
demo can compress 50% usually. but you can't really do that kind of compression live on rolling data tho (like most of the data is in the future and haven't arrived yet)
14:48
justatest
Avatar
ok gzip got a particularly big demo from 117M to 9.3M risu@canopy:auto$ du -h Patchwork_2024-11-29_04-14-01.demo 117M Patchwork_2024-11-29_04-14-01.demo risu@canopy:auto$ du -h Patchwork_2024-11-29_04-14-01.demo.gz 9.3M Patchwork_2024-11-29_04-14-01.demo.gz
Avatar
that's too big to begin with
14:51
justatest
Avatar
well it is hours of straight failure :)
14:51
oh wait it might include like five hours of sitting afk in freeze
Avatar
probably lots of compressable repetitions too πŸ‘€
Avatar
yeah definitely a particularly compressible file
14:52
but like, compressing demo files by default doesn't seem like a bad idea...
Avatar
am particularly worried about that 128 player pr tho
14:53
chn can't run that
14:53
justatest
Avatar
Avatar
TsFreddie
demo can compress 50% usually. but you can't really do that kind of compression live on rolling data tho (like most of the data is in the future and haven't arrived yet)
Well you can totally do stream compression but it probably won't compress as well as a static file and will increase latency idk how much it'd add though, and obviously hardware dependent so...
14:54
gotta be careful to not piss people off with degraded performance
Avatar
like to replace huffman or add it after huffman
Avatar
I think huffman is part of gzip...
Avatar
tw have its own huffman implementation builtin
Avatar
a combination of LZ77 and Huffman
Avatar
also varint delta compressions tend to have a lot of 0s and lots of varint coded bytes. so huffman should be pretty good at it already tbh
Avatar
In many other games you'd assume client prediction on at all times
14:58
so if you know client prediction would predict correctly based on the already sent data you send nothing
14:58
only send packets when someone's inputs change
Avatar
that's part of what delta compression does
Avatar
I should really look at the protocol before I talk about it...
Avatar
the delta drops non changing snapshots completely.
14:59
and only sends delta based on client's acked snapshot
Avatar
How much is sent in terms of inputs and how much is sent in terms of positions and velocities?
Avatar
not sure about input. but the pos and vel is delta encoded. so if server knows the client received info about a tee at x = 4378 and it is x = 4380 this tick, it sends one byte containing x = 2 and let the client math it out
Avatar
Yeah I was thinking more that since the client knows the position and velocity and the player's inputs, they need to be sent nothing about position changes for as long as their inputs stay the same
Avatar
i think tw also does that
Avatar
but this requires prediction and the mere fact that cl_predict 0 works and doesn't make the game completely unplayable means that too much is being sent by the server
15:05
unless setting cl_predict 0 tells the server to send more info
Avatar
maybe it is supposed to do that but our prediction is broken since that part is still kept compatible with original teeworlds
15:07
also i think it just sends less frequently instead of just not sending it untill something changes? idk. haven't check that part out in ages
Avatar
yeah sending less frequently makes sense
Avatar
i remember it being a part of character core tho
Avatar
I feel like with cl_predict 0, pressing jump and holding it should result in (visually on my end) my tee flying up into the sky and getting occasionally teleported back to the ground
15:09
like that would tell me that networking is efficient
15:09
or actually no, flying up into the sky and then after a moment getting teleported to the ground and staying there
15:11
though with this, small network lags would be more dangerous
15:11
If something gets dropped it won't be almost immediately fixed by the next snapshot
15:12
not like small lags weren't already deadly
Avatar
Avatar
risu
If something gets dropped it won't be almost immediately fixed by the next snapshot
actually nvm we listen to ACK for that very reason
15:13
ye i think teeworlds protocol is pretty thought through
15:14
i just mean vanilla teeworlds by itself in a vacuum without any mods of course
15:15
before any modders yell at me for missing info in the vanilla protocol.
Avatar
the fact that I can play like normal on FIN servers with cl_predict 0 because my ping might as well be 0
15:29
bro playing sitting on top the physical server
Avatar
Hi, Is there a way for the server to know if the client has antiping enabled?
Avatar
no
πŸ˜” 1
15:34
afaik
Avatar
I just finished Just Fly 1 with cl_predict 0, cl_predict_dummy 0, cl_antiping 0 (because I don't know how these three settings interact) this should not be possible I'm pretty sure we could slim down the amount of data sent over network a fair bit (edited)
Avatar
if you fully break teeworlds compat, we could do a lot of things
πŸ‘ 1
15:39
justatest
Avatar
The client and server would have to agree to enable low bandwidth mode
15:40
and it's yet another thing to maintain so I definitely understand why we wouldn't want to do that
15:41
and you probably would have to double check every ddnet prediction AND moving them to the core prediction AND add a compat route for it
Avatar
Yeah, prediction would have to be SOLID
15:42
if prediction is wrong for a moment it's going to feel very bad
Avatar
AND mods would have to strip them to not get screwed
Avatar
Avatar
risu
I just finished Just Fly 1 with cl_predict 0, cl_predict_dummy 0, cl_antiping 0 (because I don't know how these three settings interact) this should not be possible I'm pretty sure we could slim down the amount of data sent over network a fair bit (edited)
i just tested, these settings makes pseudoflying super easy
15:42
whatatimetobealive
15:42
filthy low ping enjoyers
15:43
i get 60+ on every server
Avatar
~30ms stable
Avatar
china is too huge and the three ISPs don't like to route between each other
15:43
huge PITA
Avatar
I love the slightly cruncy feeling of 25 network ticks per second
Avatar
Avatar
risu
I love the slightly cruncy feeling of 25 network ticks per second
if you cut the bandwidth by more than 50%, we could up that to 50 without any damage
Avatar
Are you telling me to do it?
Avatar
idk. sounds like you wanted to
15:45
justatest
Avatar
I kinda want to
Avatar
I also kinda want you to
Avatar
You'd love me forever for making CHN less of a pain?
Avatar
nah, chn will run into bandwidth problem in other ways
Avatar
I mean at least it'll be cheaper per player
Avatar
i doubt you can fully make a 5mbps link feel like the current 100mbps+ links on other servers
Avatar
yeah I'd be surprised
Avatar
nankudo α΅ƒα΅—α΅—α΅ƒαΆœα΅ 2024-12-13 15:47
how can i get speed in the client? i.e. not even speed exactly, but how many blocks will i fly further if i unpress the walk button
Avatar
You want to make cheats that will tell you where you land? :P
Avatar
Avatar
risu
I mean at least it'll be cheaper per player
greenthing my dream is to just make enough money so i can just rent a datacenter and lend a rack to ddnet
Avatar
Avatar
TsFreddie
greenthing my dream is to just make enough money so i can just rent a datacenter and lend a rack to ddnet
See this is why we need hats and lootboxes!
Avatar
Avatar
risu
You want to make cheats that will tell you where you land? :P
nankudo α΅ƒα΅—α΅—α΅ƒαΆœα΅ 2024-12-13 15:49
no, just for debug πŸ™‚ (edited)
Avatar
isn't velocity info display a config
15:49
or is that not it
Avatar
Make a 0.1% chance drop for a golden tee, make it raytraced, drop everyone's fps to double or single digits when a whale enters render range
Avatar
nankudo α΅ƒα΅—α΅—α΅ƒαΆœα΅ 2024-12-13 15:50
no
15:51
how many more blocks will I have to treat
Avatar
Avatar
risu
Make a 0.1% chance drop for a golden tee, make it raytraced, drop everyone's fps to double or single digits when a whale enters render range
0.5 fng has a thing like that
15:51
i forgot what it was called
Avatar
I just tried and setting my game to 25fps definitely feels worse than turning off prediction (edited)
15:53
I can still hf tho
15:53
50fps is downright tolerable
Avatar
we do have people who can't stand fps lower than 1000 you know
Avatar
I normally play 288fps cap on 144Hz display
Avatar
there are definitely players staying on older versions cuz our update made it not possible to hit 1000fps on their machine anymore
Avatar
HmMmmm idk how good I'd be at working on that, I've only really worked with fps targets in the hundreds
15:57
(a game ran like crap on my potat iGPU so I rewrote all the shaders to look better and run like 4x faster)
15:58
(the secret was avoiding texture samples like the plague because iGPU has like no memory bandwidth)
Avatar
justatest pro shader dev
Avatar
not really pro I just wrote the graphics in shaders, not using textures at all lol
15:58
hmm let me see if I have screenshots
Avatar
that's pro-er than sampling tho
15:58
justatest
15:59
unless you are just doing a single dot product and solid colors
16:00
in my mind i just imagine those 64kb demo scenes with fully procedural shader texturing and tracker musics
16:01
i would love to get into those but i'm a bit too old to pickup a shader hobby.
Avatar
let me get a couple screenies
Avatar
oh no i googled demoscene 2024 and the first thing that pops up are people are disappointed with ai generated content
16:03
but how do you ai generate demoscenes....
Avatar
Don't mind the judgement line, I didn't get to writing nice shaders for that part
Avatar
usc?
16:06
dude just casually dropping usc screenshots
Avatar
HELL YEAH
Avatar
do you have a controller
Avatar
Avatar
TsFreddie
usc?
I knew you were based
16:07
No, I play keyboard πŸ˜”
16:07
I'll get a controller some day
Avatar
dude i make private network for bemani games
16:07
justatest
Avatar
Waddya think? Looks nicer than almost all USC skins I've seen imo but that's just me tooting my own horn
Avatar
Avatar
TsFreddie
dude i make private network for bemani games
HOLY BASED
Avatar
it does look cool
Avatar
(and yes my old laptop was so potato that default skin was unplayably slow)
16:08
There are no textures in that entire screenshot lol
Avatar
i had a sound voltex phase
16:08
but it was gone tho
Avatar
except the arrows on the judgement line, I didn't get to those as I said
Avatar
Avatar
TsFreddie
i had a sound voltex phase
yeah I don't play much anymore either
16:09
got to like barely clearing some 18s at my best
Avatar
i still have this tho
16:09
Avatar
Aww cute
16:09
See the reason I don't have a controller is that I wanted a fancy one
Avatar
how fancy
16:10
gamo2's controller isnt terribly expensive i think
16:11
i had one but i sold it
16:11
it's too big (edited)
Avatar
Yeah I looked at that one it had a wacky name that I forget
Avatar
Avatar
nankudo α΅ƒα΅—α΅—α΅ƒαΆœα΅
how can i get speed in the client? i.e. not even speed exactly, but how many blocks will i fly further if i unpress the walk button
nankudo α΅ƒα΅—α΅—α΅ƒαΆœα΅ 2024-12-13 16:11
help pls πŸ˜”
Avatar
#off-topic btw
Avatar
it would've been fancy enough for me
Avatar
Avatar
TsFreddie
dude i make private network for bemani games
Why private? Why not just play local?
18:32
Also hey, it's been a while :)
Avatar
Avatar
Pathos
Why private? Why not just play local?
cuz arcade need to connect to a network to function at all. local servers are private servers
18:42
or maybe unofficial servers i guess
18:45
im just saying you need to make a server or find one to play those "games" and i made one.
19:41
so very true
Exported 583 message(s)
Timezone: UTC+0