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-03-15 00:00:00Z and 2024-03-16 00:00:00Z
01:18
fn bathroom_stall() { let mut i = 1; matches!(2, _|_|_|_|_|_ if (i+=1) != (i+=1)); assert_eq!(i, 13); }
Avatar
very good
Avatar
Today i had a c class and we were talking about if statements. There was such an example: int i; if (i = 3) { printf("i equals 3") } pepeW
Avatar
Avatar
Teero
Click to see attachment 🖼️
owo
Avatar
chillerdragon BOT 2024-03-15 07:26:24Z
No way. Where was the example? In a book?
Replying to @MilkeeyCat Today i had a c class and we were talking about `if` statements. There w…
07:29
libtw2 or twmap? Python or rust? And by block you mean tile in a map?
Replying to @Teero Patiga are there any example on how do place some block with libtw?
07:32
If you want python twmap here is a 100 line example on how to set tiles https://github.com/ChillerDragon/teeworlds-reverse-gametiles/blob/master/reverse-gametiles.py
Tool for mappers that like to map with gametiles first. It generates tiles based on gametiles so the opposite of what "Game Tiles" button does in the editor. - ChillerDragon/teewo...
Avatar
chillerdragon: i think professor wrote it himself. He is abso fucking lutely clueless
07:32
Idk how he still has a job
Avatar
chillerdragon BOT 2024-03-15 07:36:12Z
On like a sheet? What do your materials look like?
07:37
Yea for me teaching C in high school seems like a crazy concept anyways. We had nothing technical what so ever. We did 1 day of html if you signed up for it.
07:38
I can not imagine how a class looks like full of non interested teenagers when the topic is C. Nobody writes actual code I assume. So the teachers also don’t have to be elite hackers.
07:38
@MilkeeyCat: did you correct your prof?
07:40
You got that easily with all examples I named
Replying to @heinrich5991 need custom headers, custom status, custom sending delays, etc.
07:40
Assuming your reply to (null) was my message xd
07:43
Also if it’s http 1 the protocol is plaintext you can implement it probably in 4 lines vanilla go lang no dependencies
Avatar
chillerdragon: i didn't care, i was reading about pratt parser at the moment xd
Avatar
Avatar
MilkeeyCat
Today i had a c class and we were talking about if statements. There was such an example: int i; if (i = 3) { printf("i equals 3") } pepeW
feelsbadman
Avatar
i does equal 3 there :p the printf is missing a \n though
Avatar
Avatar
heinrich5991
i does equal 3 there :p the printf is missing a \n though
And a semicolon xd
Avatar
Avatar
chillerdragon
libtw2 or twmap? Python or rust? And by block you mean tile in a map?
Do you not see edits on irc?
09:15
it's already solved thanks to imilchshake
Avatar
But for clarification my question was to place tiles with twmap rust
Avatar
Avatar
deen
There are some stats and raw data in https://ddnet.org/stats/
ty
Avatar
Avatar
chillerdragon
Yea for me teaching C in high school seems like a crazy concept anyways. We had nothing technical what so ever. We did 1 day of html if you signed up for it.
chillerdragon: we had a bunch of haskell and C# at school, I think it was good 🙂
Avatar
Haskell monkaStop
Avatar
Avatar
chillerdragon
Yea for me teaching C in high school seems like a crazy concept anyways. We had nothing technical what so ever. We did 1 day of html if you signed up for it.
We did java a little bit but not much really. I remember the code from the book had so many bugs. I have no idea how our teacher got a CS degree in the first place. She was kind of lost and when she didn't understand smth she'd ask me and a colleague of mine. (edited)
Avatar
chillerdragon BOT 2024-03-15 13:12:48Z
Wtf
Replying to @heinrich5991 chillerdragon: we had a bunch of haskell and C# at school, I think it wa…
13:13
lmao
Replying to @Teero We did java a little bit but not much really. I remember the code from t…
Avatar
wtf lmao
🐴 5
13:15
goofy ass average fps
Avatar
@MilkeeyCat ur still in high school?
Avatar
Avatar
louis
@MilkeeyCat ur still in high school?
No, in university :p
brownbear 1
Avatar
Reported by @bencie on Discord:
hey, i keep timing out and crashing when attempting to rejoin. this happened to me 2x in a Firewatch 2 run on ger10
``` DDNet.exe caused an Access Violation at location 00007FF759B3C98C in module DDNet.exe Reading from location 00000271A7A08A14. 0x000000014023c98c: CCollision::GetTileIndex(int) const at src/game/collision.cpp:979 (inlined by) CCollision::GetMoveRestrictions(bool ()(int, void), void*, vector2_base, float, int) const at src/gam...
Avatar
Avatar
MilkeeyCat
No, in university :p
which one?
Avatar
Avatar
zhn
which one?
Pretty bad one 😬
Avatar
Avatar
MilkeeyCat
Pretty bad one 😬
HUH
Avatar
In the editor, currently if you create new quads and sounds layers or have quads and sounds layers that are empty and then save the map, it will not save those empty layers. This then leads to missing layers and you can wonder where they went. I don't think this is needed (and it surprised me when I discovered this), as we can optimize the map if we need to to clear any empty layers afterwards but not while saving in the editor. Now it will correctly save those layers as well. ## Checkl...
17:41
The unknown address log message got printed very often because many servers have 0.6 and 0.7 addresses but only 0.6 addresses are considered valid by the client. See https://github.com/ddnet/ddnet/pull/8099#discussion_r1525420552.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
...
17:45
Has happened independently and randomly with server, client and tests only in the clang-san CI over the last few days. ``` [] Setup [] Launch server ./integration_test.sh: line 194: 6318 Segmentation fault (core dumped) $tool ../DDNet-Server "sv_input_fifo server.fifo; sv_rcon_password rcon; sv_map coverage; sv_sqlite_file ddnet-server.sqlite; logfile server.log; sv_register 0; sv_port $port" > stdout_server.txt 2> stderr_server.txt tail: cannot open 'server.log' fo...
17:46
  • Remove unnecessary branch and temporary variable usage at the end of the function.
  • Move variable declarations closer to usages.

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that...
Avatar
Avatar
MilkeeyCat
Today i had a c class and we were talking about if statements. There was such an example: int i; if (i = 3) { printf("i equals 3") } pepeW
With the single =?
19:00
The disrespect people have for C drives me mad, go teach whatever other language you know if you hate it so much
Avatar
Avatar
Learath2
With the single =?
Yea
19:02
I like C owo
Avatar
nRx:
Avatar
ChillerDragon:
Avatar
Avatar
Learath2
The disrespect people have for C drives me mad, go teach whatever other language you know if you hate it so much
Still, a bunch of education regarding C is HORRIBLE Things like sanitizers should be mentioned on page 1, right after "gcc builds code" and such
20:12
Plenty of people are set up for failure
Avatar
gcc should invoke -Wall by def
Avatar
Oh yes, that too
20:25
Also worth noting, some warnings depend on optimizations
20:26
So probably -O1 or -O2 on top of that is good
Avatar
Shouldn't this be "Reload" or somethin'?
Avatar
Avatar
HamidReza
Shouldn't this be "Reload" or somethin'?
There already was a lengthy debate about the name before this was added: #5823
Avatar
Automatically reloads the image from mapres folder based on its current name, that's just a quicker "replace" which is convenient while experimenting on image contents, some mappers a...
Avatar
Interesting actually
20:45
Though I believe "Reload" would be a better fit.
Avatar
It does say "reload" in the tooltip FWIW
Avatar
Yeah but "Readd" looks weird I thought it was a typo until I checked the src
Avatar
Makes sense to me because that's what it really does, it add the image again
20:48
"Reload" could mean it reloads the image from the same map again
Avatar
24caf08 Minor refactoring of net_addr_from_url - Robyt3 bcfc61b Merge pull request #8105 from Robyt3/Base-net_addr_from_url-Refactor - archimede67
Avatar
hi
Avatar
Avatar
HamidReza
Shouldn't this be "Reload" or somethin'?
theres a bug in this image, is it a default one?
21:47
Avatar
Avatar
cyberFighter
theres a bug in this image, is it a default one?
Yes
21:51
How did u even see that lol
Avatar
eagle eyes
🐴 1
21:53
ok my game just crashed because i logged into my account in fokkonauts server
Avatar
Avatar
cyberFighter
Click to see attachment 🖼️
Looks similar to #8101, thanks for the report
Avatar
Reported by @bencie on Discord: hey, i keep timing out and crashing when attempting to rejoin. this happened to me 2x in a Firewatch 2 run on ger10 DDNet.exe caused an Access Violation at location ...
Avatar
oh i thought it was only because of the mod
22:03
it has like a feature where you can choose different designs of the map and you like change map without leaving the server or anything
22:03
and i crashed while the map was loading
Avatar
ah, it's probably related to that
22:04
the other crash was on GER10 which might have weird map loading for protection
Avatar
ok thanks
Avatar
havent seen it yet
Avatar
Avatar
Ryozuki
havent seen it yet
fern is mad
Avatar
im hyped for next episode now
Exported 87 message(s)