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 2019-06-06 00:00:00Z and 2019-06-07 00:00:00Z
Avatar
ChillerDragon 2019-06-06 08:00:56Z
@heinrich5991 so what about braces? Do we have a style guide for that?
Avatar
always braces
08:54
even if it's not in a style guide
Avatar
ChillerDragon 2019-06-06 09:21:13Z
i tried to enforce that in my mod when i started. but latley i found that no braces is easier to read and less lines. I think it is a style question. So ddnet code base wants braces always?
09:21
a
09:21
if (true) {
09:21
// foo
09:21
} else
09:22
printf("bar");
09:22
sorry for multiple lines but my client cant do it -.- uhm i think that is really ugly if the if has braces and the else doesnt
09:22
but it is in ddnet code all over the place
Avatar
definitely don't remove braces from code that has it, especially when you're not doing anything else with it
09:52
I prefer having braces everywhere, I will ask for braces if the other branch also has braces, or if we have a dangling else
Avatar
not having braces is cancer and inconsistent as hell mostly (edited)
Avatar
ChillerDragon 2019-06-06 11:21:36Z
ok good to know so braces everywhere -.-
11:25
oh and heinrich you mentioned this no style changes if you did no other changes multiple times now. I see it makes sense to have cleaner commit messages. But how are we going to improve the style then? I mean demo.cpp for example has even these javascript style braces with opening brace starts in same line as if. And this is really irritating while reading the code imo.
11:28
we have 4175 if ( while ( and for (s .-.
Avatar
or if its so short it doesnt need braces maybe u can use ternary
Avatar
ChillerDragon 2019-06-06 11:29:55Z
yy sure but that is mostly not the case if u use normal people variables
11:30
onbgy vars can always us tenary: a = bs ? fc : tt
11:30
ok good point
Avatar
ChillerDragon 2019-06-06 11:32:30Z
i could even imagine u use braces for a new namespace because u run out of var names <2 characters xd
11:33
then i can start using undescores
Avatar
ChillerDragon 2019-06-06 11:33:23Z
:troll:
Avatar
Is this interesting for ddnet? I think no? https://github.com/teeworlds/teeworlds/pull/2148
This fixes #541 Depending on the order of character spawn, players have stronger or weaker hook on each others. The reason is that velocity calculation of characters is order dependent: Example: pl...
Avatar
ChillerDragon 2019-06-06 11:34:04Z
nah weak is needed by maps
Avatar
i got a slightly different fix by @qshar to remove weak hook and its generally been a good thing
11:34
idk how itd work on ddnet
Avatar
How does qshar do it?
Avatar
ill let him decide if its okay to post it here
Avatar
ChillerDragon 2019-06-06 11:35:19Z
imo weak is a feature. In ddrace weak is used sometimes. And imo also in other gametypes like vanilla/block/fng giving a stronger who to the person who survived longer makes sense to me.
Avatar
@noby weak hook was removed for a day until it was deemed map-breaking
Avatar
oh, okay
Avatar
ChillerDragon 2019-06-06 11:35:57Z
sucks that they fix it in vanilla -.-
Avatar
it makes sense
11:36
it's a clear bug
Avatar
ChillerDragon 2019-06-06 11:36:23Z
yes but it can be seens as ferature
Avatar
If ddrace will ever be on 0.7 or higher we need to reimplement lots of bugs xD
Avatar
ChillerDragon 2019-06-06 11:36:33Z
yes
11:36
lol the issue is from Ubu o.O
11:37
he was waiting 7 yrs for this pr haha
Avatar
a lot of issues linger this long
Avatar
ChillerDragon 2019-06-06 11:37:51Z
ikr
Avatar
remember the date of the last actual release that wasn't just security fixes
Avatar
ChillerDragon 2019-06-06 11:38:02Z
no
11:38
xd
11:38
it was before i was born
11:38
if u look at 0.6
11:39
so heinrich what about style in demo.cpp? are we planning to leave everything as it is until someone rewrites the whole file?
Avatar
I can search for a commit to remove week hook if you need, its not a secret of course
Avatar
that looks more like the fix i saw
11:59
does it have different results than the method fokkonot posted
Avatar
deen
12:07
you copy pasted
12:07
from our mod
12:07
caught you
Avatar
@fokkonaut lol you should know this
Avatar
what?
Avatar
The strong weak thing
15:04
I just sent a link of the pr in vanills
Avatar
ChillerDragon 2019-06-06 15:04:56Z
i guess n0b0 means that you should know that missing weak breaks maps since you are a expirenced player @fokkonaut
15:05
yea
15:20
Sorry i wasnt clear enough😬
Avatar
ChillerDragon 2019-06-06 20:14:36Z
uhm @fokkonaut was there a knownn bug with shiftes names?
20:15
Avatar
ja
Avatar
ChillerDragon 2019-06-06 20:15:38Z
ah k
Avatar
Appearently the nameplates are sometimes, rarely(when the client is open for a long time) and not reproducable not centered. Related file: src/game/client/components/nameplates.cpp src/engine/clien...
Avatar
@Deleted User seems like its not always starting in the tee center
20:17
look at Pfandflasche
Avatar
ChillerDragon 2019-06-06 20:17:05Z
woudlt call 20 min long
Avatar
how
20:17
20:17
this is not 20 mins xd
Avatar
ChillerDragon 2019-06-06 20:17:49Z
ah its 22
20:17
22:17
20:17
xd
Avatar
how
Avatar
is it 36 min race time or play time?
Avatar
ChillerDragon 2019-06-06 20:18:21Z
time in germany
20:18
xd
Avatar
what does Played sas?
20:18
say*
Avatar
how can u play less than ur race time
Avatar
ChillerDragon 2019-06-06 20:18:34Z
i thouight its played
20:18
but my client is so old it only shows the clock
20:18
22:18 european time
20:18
xd
20:18
i red wrong
20:19
its more than 30 min all fine xd
Avatar
???? xd
Avatar
ChillerDragon 2019-06-06 20:22:21Z
im not as good with numbers as u @archimede67
Avatar
xd
Avatar
ChillerDragon 2019-06-06 20:23:13Z
Avatar
@fokkonaut is centered for me
20:29
maybe not the newest client?
Avatar
ChillerDragon 2019-06-06 20:29:59Z
its 1 tee
Avatar
yeah but still, newest client?
Avatar
ChillerDragon 2019-06-06 20:30:23Z
no
🤖 1
Avatar
ah
Avatar
@Deleted User Pfandflasche is not centered xd
Avatar
@fokkonaut it is for me
20:47
and he uses old client
20:48
its not the same bug like urs.. urs might not even be a bug in terms of coding, but an overflow or something like that
Avatar
bcs its pretty impossible to reproduce
20:48
dude
20:48
stop ignoring
Avatar
ChillerDragon 2019-06-06 20:49:06Z
fokko troll
Avatar
Im just saying this is not centered
Avatar
its not centered at all xd
Avatar
its an old client
Avatar
yeah
Avatar
ChillerDragon 2019-06-06 20:49:24Z
@Deleted User its not in the middle
Avatar
@archimede67 even posted the fix
Avatar
@ChillerDragon stop playing on old
20:49
u nobo
Avatar
ChillerDragon 2019-06-06 20:50:02Z
lehgacy swagger
Avatar
chiller reporting fixed bugs 👌
Avatar
ChillerDragon 2019-06-06 20:50:59Z
boi i pinged fokko because i wasnt sure if its reported already -.-
Avatar
reminds me of your mute "fix"
Avatar
ChillerDragon 2019-06-06 20:51:30Z
xd
Avatar
ChillerDragon 2019-06-06 20:52:19Z
i have the feeling jao doesnt forget that -.-
Avatar
every time you complain about bugs I will remember it
Avatar
ChillerDragon 2019-06-06 20:54:28Z
mute was clearly a feature
Avatar
why i had one day in editor so many crashes ?
Avatar
ChillerDragon 2019-06-06 20:54:51Z
latest version?
20:54
see thats why im not updating
20:55
crashes in editor sukk -.-
Avatar
best bug report
Avatar
but in last version they fixed some bad bugs and created new stuff (edited)
Avatar
ChillerDragon 2019-06-06 20:56:24Z
how to reproduce @Deleted User
Avatar
kms ¿ (edited)
Avatar
@ChillerDragon you will need to update if you want the replays feature 😄
Avatar
ChillerDragon 2019-06-06 20:56:54Z
no edit in developer pls
Avatar
ChillerDragon 2019-06-06 20:57:09Z
cherry pick git magic @archimede67
Avatar
ChillerDragon 2019-06-06 20:57:44Z
into good ol ddnet 6 client
Avatar
first version of ddnet ♥ troll (edited)
Avatar
@Deleted User what did you do before crashing editor
Avatar
zoom out a bit and release after mouse 1 and crashed , at least i save after i do somethink , i didn't lose progress
21:01
Avatar
are you sure you have the latest version?
Avatar
yes
Avatar
tell me the version
Avatar
is there a txt bug report ?
Avatar
strange
Avatar
zoom makes a difference?
21:04
can't reproduce
Avatar
me neither
Avatar
can you do it consistently
Avatar
ohhhh i remember i also was spectating someone in game ...
Avatar
did you have a tile selected also
Avatar
there was a bug with this but it should be fixed in latest ver
Avatar
yeah
Avatar
i found demo xD
Avatar
ChillerDragon 2019-06-06 21:09:05Z
dont think that it helps xd
21:11
lol 1st demo i crashed editor in 30 seconds 😄
Avatar
what do you want us to do with that??
Avatar
ChillerDragon 2019-06-06 21:12:08Z
dont be mean @archimede67
Avatar
nah but how can a demo help as it doesn't record editor
Avatar
ChillerDragon 2019-06-06 21:12:38Z
men he tried
Avatar
xd
Avatar
ChillerDragon 2019-06-06 22:16:59Z
xd
22:19
they name shifted back xd
22:19
without reconnect from me or pfandflasche
22:20
what was casuing it that it behaves so weird?
Exported 187 message(s)