Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/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 2021-08-12 00:00:00Z and 2021-08-13 00:00:00Z
06:26
what's this
06:26
justatest
06:37
on which server?
06:39
it seems to be pretty common on chn today
06:40
happens during map switch it seems
06:42
ye idk. people only post screenshots with no context and they don't respond
06:44
two out of the three reports says they were switching maps. not sure if it is votes or /map
Avatar
big brother monkaS
Avatar
Meh, we really should be checking errno...
06:54
I know an error occured but only god himself knows what the error is
06:59
It could be that fflush returned EFBIG or ENOSPC though CHN1 seems to have a fair bit of disk still
Avatar
8298 8300 8304 8306 8324 8333 8339
07:08
Oh /dev/vdb1 49G 47G 0 100% /home πŸ˜„
07:08
@TsFreddie is this an active time for chn?
07:09
well it is 3PM
07:10
what do you want to do tho
Avatar
What server has a /home? Usually just /. @Learath2 can you reduce the time to delete th files in crontab?
07:11
on the affected servers
Avatar
how often are we deleting them rn?
Avatar
Avatar
deen
What server has a /home? Usually just /. @Learath2 can you reduce the time to delete th files in crontab?
CHN1
07:12
I removed a very large th file (10G) so things can keep working for now, I already have it synced
07:13
I will check the cron now
07:13
how long was a 10G play
Avatar
actually managed it myself from phone
Avatar
@deen the cron looks like it should happen every day at 2300, idk why those hung around for so long
Avatar
how old was it?
07:14
maybe server just kept running
Avatar
Ah that is possible, it was 10G after all
07:14
it was from aug10
Avatar
Last time 10GB was on japan with 1 month uptime
07:15
then it would only be deleted on august 17
Avatar
ah, we only delete ones older than 7 days
07:16
should we maybe reduce that to 3 days? I think all of us rsync nightly
07:16
Though I'm not sure what happens if a server runs for 4 days then
Avatar
the rsync can fail because of server downtimes
07:17
itβ€˜s 7 days from last modifixation, not creation
07:17
more important would be to have serverstatus track the disk usage on /home if itβ€˜s a partition
Avatar
Yeah, serverstatus was what threw me off too
07:25
@TsFreddie "start_time": "2021-07-25T16:30:05+0200", and last modification was august 10, do chinese people ever stop playing? πŸ˜„
Avatar
πŸ€” no if there aren't enough servers
Avatar
A month of uptime on that
Avatar
@deen should we maybe have all servers upload their th files to one server? Then we dont have to keep them for longer than needed on the leaf servers and we wouldnt all be fetching from it
Avatar
I talked with the ppl on japan a week ago to change to a different map if possible, a day later the server finally restarted after 1 month of uptime πŸ˜„
Avatar
@deen ddnet.tw has an invalid cert
Avatar
I'm looking into it
10:34
mh, expired but certbot didn't care for some reason
10:34
Validity Not Before: May 14 09:55:20 2021 GMT Not After : Aug 12 09:55:20 2021 GMT
10:36
hm a certbot update fucked it up
10:41
if your program takes more than a second to output it's help, you've fucked up
Avatar
Okay, fixed for a second, can someone check?
10:55
@deen I set both hookrace.net and ddnet.tw to less strict SSL checking on cloudflare for now, there seems to be a bug with certbot 0.31 but I couldn't fix it right now, need to leave
Avatar
why is font of strong weak indicator adapti[ve while nicknames' font not? (edited)
10:59
if i zoom in to nickname - it pixilizes
Avatar
Avatar
gerdoe
why is font of strong weak indicator adapti[ve while nicknames' font not? (edited)
take it or leave ittroll
Avatar
chillerdragon BOT 2021-08-12 11:26:07Z
How do you guys audit open source software? Are there some tools that scan for maleware and backdoors in source code? What does one look for when having untrusted source code?
11:28
i usually casually scroll through the code and act like i understand it :D i would love to automate this process to at least detect obvious traps placed by evil devs
Avatar
hi :D
11:36
So this would be a chat command that put you in the first empty team available, so u delete the situation of when u write /team 1 and it say its locked, then /team 2 and its lock, etc and directly ...
11:36
hows about this :D
11:36
its been 2months
11:36
πŸ‘€
11:36
idk how it work
11:37
i just submitted, but none happened
Avatar
There are issues back from 2019
Avatar
ye but mine is 'just' a cmd =-=
Avatar
Checklist In addition for #4005. Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configuration options Written a unit test if...
Avatar
Avatar
Astramast
i just submitted, but none happened
then learn coding
Avatar
Checklist In addition for #4005. Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configuration options Written a unit test if...
Avatar
Avatar
Deleted User
then learn coding
i start informatics sciences next year :D
Avatar
nice πŸ˜„
Avatar
Avatar
Astramast
i start informatics sciences next year :D
Informatics😴 😴 😴
Avatar
finds first empty team and gives it to you
Avatar
but can u explain how it works for ddnet client coding process ? (edited)
Avatar
like
11:40
who owns ddnet client ?
Avatar
no one, but def- maintains it
Avatar
Avatar
Astramast
but can u explain how it works for ddnet client coding process ? (edited)
U just write /team NUMBER and it checks the number, adding strings might be hard😴
Avatar
Avatar
Anime.pdf
U just write /team NUMBER and it checks the number, adding strings might be hard😴
no, not that
11:41
i mean
11:41
how works teeworlds
11:41
the system
11:41
who do what
Avatar
What system
11:41
Game works
Avatar
you have server-client structure
Avatar
game programming, releases etc
Avatar
to avoid ddos of motherhackers they added handshakes on every connect
Avatar
coding -> everyone who wants release -> deen
11:42
or compile yourself
Avatar
server sends packets to client, client renders everything
Avatar
Avatar
Deleted User
coding -> everyone who wants release -> deen
wtf
11:42
so i can code the cmd ?
Avatar
yes
Avatar
and it will be in the next rls ?
Avatar
And send the pull request after
Avatar
that's why he saaid you "code it yourseelf" lmfao xd
Avatar
If it gets accepted ur cmd will be in next release
Avatar
Avatar
Astramast
and it will be in the next rls ?
whoi knows
Avatar
Avatar
Astramast
and it will be in the next rls ?
it will ofc still be checked
11:43
i will need more info
11:43
is there somewhere where all explained ?
11:44
πŸ‘€
Avatar
Explained what
Avatar
like the wiki but for processes
Avatar
There is a documentation but i think noone use it
Avatar
no documentation rn
11:45
i think i speak very bad english
Avatar
touch everything yourself and then keep it in mind πŸ˜‰
Avatar
im not talking about the game itself
11:45
but all that is around
Avatar
Avatar
gerdoe
touch everything yourself and then keep it in mind πŸ˜‰
Can i touch utroll
Avatar
not in #developer wtf
Avatar
Avatar
Anime.pdf
Can i touch utroll
dont forget to keep it in mind if u success
11:46
troll
11:46
im requesting 2 kicks (edited)
Avatar
Avatar
gerdoe
im requesting 2 kicks (edited)
lmao have 7 accounts here
Avatar
are you asko_tv
Avatar
no '-'
Avatar
or am i ? troll
Avatar
Well, he is noby deen jao murpi lereath and 2 bots
11:48
weve been too far
11:49
lets re-center to #developer
11:49
I would like to know who do what (release, coding, distribution rights, teeworlds and ddnet related, who own what, etc)
11:50
If u take league of legends its very simple : Riot does everything and none can do something
11:51
But it seems that for ddnet its well more complex
Avatar
Avatar
Astramast
I would like to know who do what (release, coding, distribution rights, teeworlds and ddnet related, who own what, etc)
List of computer programming terms, definitions, commands, and glossary.
Avatar
also @Deleted User btw in wich language is ddnet and teeworlds coded 0-0 ? (edited)
Avatar
Avatar
Astramast
If u take league of legends its very simple : Riot does everything and none can do something
What is riot, lol for nobos
Avatar
c++
Avatar
Avatar
Astramast
also @Deleted User btw in wich language is ddnet and teeworlds coded 0-0 ? (edited)
C++ obviously
11:52
If u had ever opened github pagetroll
Avatar
Avatar
Anime.pdf
If u had ever opened github pagetroll
i know how to do some basic Python :D
Avatar
and i used github for a project on python (physics project)
11:54
thats all i can do
11:54
:D
11:54
gl hf
Avatar
Avatar
Astramast
If u take league of legends its very simple : Riot does everything and none can do something
google definition of open-source project
Avatar
Avatar
gerdoe
google definition of open-source project
Yes but yes
12:21
even if everynyan does what he want, i cant go change the teeworlds client on steam
Avatar
you can if oy will approve it
Avatar
oy ?
Avatar
so it's only depends on your skills annd fantasy
12:23
oy iis maintainer of teeworlds
Avatar
wtf is a maintainer
Avatar
google it
12:24
person who maintains the project
Avatar
Avatar
gerdoe
google it
cammostripes
12:25
imagine using google
12:26
anyway
12:26
if he maintains the project
Avatar
duckduckgo it?
Avatar
he owns teeworlds ?
Avatar
or the maintainer can change
12:26
i mean
Avatar
copyright is on Magnus Auvinen
Avatar
what make him the maintainer
Avatar
Avatar
Astramast
or the maintainer can change
maintainer declines or accepts features bugfixes and does it theyself too (edited)
Avatar
Avatar
Astramast
what make him the maintainer
teeworlds creator gave him rights to maintain it
12:29
do you want to beccome maintainer or what xd
Avatar
Avatar
gerdoe
do you want to beccome maintainer or what xd
nah
12:32
first i want to know who have the legal rights, etc
12:32
then u go down
12:32
to basic player
Avatar
does it mean anything rn
Avatar
Avatar
gerdoe
copyright is on Magnus Auvinen
but he made it free-to-use ?
Avatar
Avatar
gerdoe
does it mean anything rn
yes
Avatar
reread definition of open-source project xd
Avatar
Avatar
gerdoe
reread definition of open-source project xd
theres open-source projects where u have to pay to use the code
12:33
and only reading is free
12:33
¯\_(ツ)_/¯
12:34
so
12:34
we have the legal owner
12:34
the maintainer
Avatar
then read this i guess? every project has it's license
12:35
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/license.txt at master · ddnet/ddnet
Avatar
i guess its the maintainer that pay for the vanilla server
Avatar
astramast stop making associations with commercial games with their owners
12:35
how do you think there are so many modes around
12:36
so many clients
12:36
so many servers at least
Avatar
i know that everything is free
12:36
and that i could create my own ddrace network if i wanted to
Avatar
look to ddper
Avatar
thats not the point
Avatar
Avatar
gerdoe
look to ddper
ddper ?
Avatar
another ddnet-like shit for persian gamers
12:37
they even pay for vip there lmao
Avatar
Avatar
Astramast
thats not the point
then what do you want to know
Avatar
Avatar
gerdoe
then what do you want to know
so if i want to add something in vanilla teeworlds client, i contact the maintainer, and for ddnet client i contact deen
Avatar
NO YOU JUST MAKE CHANGES AND SEND PULL REQUEST TO THE REPO
12:39
oops caps
Avatar
and i can make a server for any mod if the mod concerned is free
Avatar
sorry about that
Avatar
Avatar
gerdoe
NO YOU JUST MAKE CHANGES AND SEND PULL REQUEST TO THE REPO
thats exactly what i said
12:40
'-'
Avatar
Avatar
gerdoe
sorry about that
.
Avatar
Avatar
Astramast
so if i want to add something in vanilla teeworlds client, i contact the maintainer, and for ddnet client i contact deen
but you said "contact the mainainer"
12:40
you don't need to actually xdd
12:40
justatest
12:41
who is the repo ?
Avatar
repository
Avatar
and also if a change is made in vanilla tw (like a new weapon) will it be added to ddnet ?
Avatar
not such changes
12:42
because new weapon will not be added because youu should to change 0.6 protocol for that
12:42
but ddnet supports legacy 0.6
12:42
so no way
12:43
wouldnt ddnet go to the next version ?
Avatar
ask them
12:43
until 0.8 comes i bet
Avatar
@murpi
Avatar
bcs no one likes 0.7 here
Avatar
why ?
Avatar
colour palette i suppose
Avatar
Avatar
gerdoe
colour palette i suppose
wtf ?
Avatar
no good antiping for now
12:44
and so on
Avatar
Avatar
murpi
?
wouldnt ddnet go to new version of vanilla tw if big new change in vanilla tw (new weapon, or smthing)
12:45
like a brand new 0.8
12:45
with an AK-47 (edited)
12:45
idk (edited)
Avatar
teeworlds will be dead by then
12:46
wtf
12:46
explain ;-;
12:50
ok forget it all
12:50
does someone knows where i can find how are cmds coded ?
12:50
so i can get started
12:50
and do it myself
Avatar
what do you want to do
Avatar
/team auto
12:51
/accept
Avatar
invite iexists
12:52
and /team auto in my pr
12:52
/team -1 but btw
Avatar
when someone invite u must know in wich team he is to join it
12:52
and if he is in /spec and alone u are fucked
12:52
also u cant bind it
Avatar
What kind of problems are those
12:53
i press f and i dont enter in my team
12:53
so i must enter the fking chat and i put another team
12:53
and i cant enter it again
12:53
so i enter another number
12:53
and its again already used
12:53
and i alt+f4
Avatar
just ask your mate?
Avatar
Avatar
<BΒ΅mM>
just ask your mate?
did u heard about dummy maps
Avatar
Those are some first world problems holy
Avatar
what
Avatar
Avatar
Stepfunn
Those are some first world problems holy
ok tell me better problem in ddnet for clients
Avatar
Account system
Avatar
Avatar
Stepfunn
Account system
do i look like i know how to code :D
Avatar
Better Ban/Punishment
Avatar
Avatar
Stepfunn
Better Ban/Punishment
?
Avatar
/swap
Avatar
In the name of Demacia i will punish u
Avatar
Avatar
<BΒ΅mM>
/swap
already exists
Avatar
its broken
Avatar
i know
Avatar
i dont get your dummy problem
Avatar
Avatar
Astramast
i know
u are just a pepega
Avatar
if you join on a dummy map just write /team (number)
Avatar
Stop it get some help
Avatar
switch on dummy
12:57
open chat, press "up" and enter
12:57
ez
Avatar
Avatar
<BΒ΅mM>
ez
thats freaky long
Avatar
no lol
Avatar
Avatar
<BΒ΅mM>
/swap
just get better at the game instead of letting ppl do the map for u
Avatar
writing /accept takes more time lol
Avatar
Avatar
<BΒ΅mM>
writing /accept takes more time lol
no because U BIND IT
Avatar
also you can just bind your favourite team
Avatar
just bind a random team number
Avatar
and press this button everytime
Avatar
everyone does taht
12:58
that
Avatar
Avatar
<BΒ΅mM>
just bind a random team number
no one thinked about that sweetie,
Avatar
everyone did
Avatar
ofc i have a button for that
Avatar
but it's just 0.5 sec solution
Avatar
just dont take /team 1
Avatar
Avatar
<BΒ΅mM>
just dont take /team 1
i took team 2
Avatar
yeah, thats mine
Avatar
instead of making 2 seconds solution with 4 binds instead of two
12:59
mine tooo lol
Avatar
/team 0 > /team 1
Avatar
Holy moly what is this discussion
12:59
So pepega
Avatar
lets just remove teams and play t0
12:59
more fun anyway
Avatar
Avatar
Stepfunn
Holy moly what is this discussion
go stream u scuttle
Avatar
Avatar
Astramast
go stream u scuttle
Pepega Clap
Avatar
Avatar
murpi
lets just remove teams and play t0
remove t0 instead
banhammer 5
13:00
where can i find how to create cmds ?
13:00
'-'
13:01
#1703
Avatar
Previous execution time: 650 ms / 661 ms total (98%) Now: 3 ms / 15 ms total (20%)
Avatar
Avatar
Astramast
where can i find how to create cmds ?
lurk ddracechatcommands.h
13:02
or ddracechatcmds.h
13:02
idr
Avatar
maybe look at chillerdragon's tutorials, he should have something about commands
Avatar
it's 0.7
Avatar
Avatar
gerdoe
it's 0.7
is it that different?
Avatar
I just thought basic server stuff like this should be more or less the same
Avatar
afair in 0.7 there is some sseparated commandhandler without making macros
13:07
you just registering and all
13:11
Avatar
@Astramast anyway isn't gerdoe already making exactly what you wanted xd
Avatar
U can even say he already did it
Avatar
Avatar
Anime.pdf
U can even say he already did it
then why isnit in da gaem
Avatar
Avatar
Ravie
@Astramast anyway isn't gerdoe already making exactly what you wanted xd
idk i didnt understood his issue
13:30
lmao
Avatar
CHAT_COMMAND("team", "?i[id]", CFGFLAG_CHAT | CFGFLAG_SERVER, ConJoinTeam, this, "Lets you join team i (shows your team if left blank)")
13:45
πŸ‘€
13:46
i dont understand anything im reading
13:46
Avatar
Οƒβ„“Γ­β™‘ 2021-08-12 13:46:58Z
Avatar
Avatar
Ravie
is it that different?
yes.
Avatar
Avatar
Astramast
then why isnit in da gaem
because maintainers should check it before puahing into production, maybe, they will decline this pr because this useless or ask me for another feature
14:21
who knows
Avatar
Avatar
Astramast
where can i find how to create cmds ?
hi
14:35
i made a blog post about this
14:35
its a series im making
14:37
actually not bad, proud of myself
14:37
greenthing
Avatar
I need Haskell advice
15:32
I want all possible ways to split a list into two parts
15:34
Example input: [5,4,3] Example output: [([],[5,4,3]), ([5],[4,3]), ([5,4],[3]), ([5,4,3],[])]
Avatar
never used haskell
15:35
monkaS
Avatar
I guess I could construct a range and use splitAt
Avatar
you could zip (inits x) (tails x)
Avatar
if you really want to flex map (\[a, b] -> (a, b)) . transpose . flip map [inits, tails] . flip ($) is eta-reduced
Avatar
Nice, it's shorter then what I came up with
16:12
May I ask why you would prefer the latter over the shorter solution? What's eta-reduced?
16:12
Edit: Nice, it's shorter than what I came up with
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Avatar
The purpose of eta reduction (also written (\eta)-reduction) is to drop an abstraction over a function to simplify it.
Avatar
Doesn't look simpler to me ^^
Avatar
Avatar
timakro
Example input: [5,4,3] Example output: [([],[5,4,3]), ([5],[4,3]), ([5,4],[3]), ([5,4,3],[])]
i can do that in Python
Avatar
im looking doing it for ddnet
16:14
in 7 days
Avatar
i dont do tw stuff
16:14
they abandoned
16:14
us
Avatar
well
Avatar
last time i saw someone on DM server was 3 years ago so...
16:16
maybe he meant eta abstraction?
16:16
idk
Avatar
Avatar
timakro
May I ask why you would prefer the latter over the shorter solution? What's eta-reduced?
absolutely no reason except that it's eta-reduced (so a closed expression for a function, which does not need the parameter x)
Avatar
Ahh
16:19
I get it
Avatar
sometimes eta-reduced functions look slightly more elegant
16:20
e.g. here you don't need to write x twice (or at all, really)
16:20
but it's kinda useless in practice
16:20
it's just fun seeing if you can write it this way
16:20
kinda code-golfey
Avatar
A specification for adding human and machine readable meaning to commit messages
16:23
i just gotta not be lazy and type a bit more than "ok" for every commit i do
16:23
monkalaugh
Avatar
Avatar
Astramast
last time i saw someone on DM server was 3 years ago so...
played dm today kek
Avatar
My actual problem: Example input: myKeyCommands = [("a b", 1), ("c", 2)] Example output: [("a b",1),("M-a b",1),("M-a M-b",1),("c",2),("M-c",2)]Got two solutions:[(let (a, b) = splitAt i (words k) in unwords $ map ("M-" ++) a ++ b, c) | (k, c) <- myKeyCommands, i <- [0..length $ words k]][(unwords $ map ("M-" ++) a ++ b, c) | (k, c) <- myKeyCommands, (a, b) <- zip (inits $ words k) (tails $ words k)]hmmmm
Avatar
what the hell, is that you guys called functional programming? xd
Avatar
Avatar
Astramast
theres open-source projects where u have to pay to use the code
That's not open-source, that's just source-available (edited)
16:59
recommended reading:
Avatar
when we choose "Blockworlds" entities in editor mode and select "unfreeze" tile that put hook-through instead of the real unfreeze. ps : sometime i had the unhookable instead of hook-through. https://user-images.githubusercontent.com/75568768/129269453-b88aa32c-de35-4d0e-b52a-9d282b8bacfb.mp4
Avatar
@Learath2 πŸ˜„
Exported 412 message(s)