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 2023-06-13 00:00:00Z and 2023-06-14 00:00:00Z
04:00
I just want to build with MSVC
Avatar
building works for me I think
04:03
unless it was a recent change that broke it
Avatar
Avatar
Ewan
I just want to build with MSVC
honestly. looks like it's just missing the data folder
Avatar
i always manually copy it
Avatar
Yeah i know the issue exactly
04:15
it's the VS generator
04:15
i forgot it does that
04:16
vs puts the binary in a subfolder with build type
04:16
data is just put at the base of the build dir
Avatar
technically this is a cmakelists issue but i wouldn't blame anyone for it
Avatar
i still always copy it and it's workable
Avatar
are you not using cmake?
Avatar
cmake does that with vs generator
Avatar
i don't think we have other build system configured anyway.
Avatar
Avatar
Jupstar ✪
Pic or did not happen
dont believe me?
Avatar
Avatar
fokkonaut
dont believe me?
Yes
Avatar
I can show u later but why
Avatar
Why would I believe someone
Avatar
chillerdragon BOT 2023-06-13 06:28:55Z
believe what
06:29
Ah screenburn ye I also doubt that haha
Avatar
Avatar
fokkonaut
I can show u later but why
Nonono, show everyone
06:32
I want to see, too
Avatar
How cool would it be if maps had area boxes that could color correct the screen? This is post processing BTW Pulsar called it useless but ngl I think this would make maps feel more immersive
👍 2
Avatar
For a thing like that to look consistent, we'd need to introduce some concept of lighting
Avatar
only downside is that people dont know what color theory and proper lighting is so there would be a lot of
Avatar
Avatar
Jupstar ✪
For a thing like that to look consistent, we'd need to introduce some concept of lighting
maybe. i mean, i only see it as boxes that work similar to sounds
06:54
idk how lighting in ddnet would work but id love to know (edited)
Avatar
ws-client BOT 2023-06-13 06:56:45Z
<Jupstar> mhh yeah it's not that easy. I thought about it when i thought about a good looking 2D ray tracer (which obviously makes no sense in 2D)
06:57
<Jupstar> ambient light is ez. is the question if it should affect certain areas only
06:58
<Jupstar> for caves to look dimmer we'd need some concept like a sun. but that makes 0 sense in 2D 😂
06:59
<Jupstar> we could analyze how much of the sun is blocked while rendering before rendering the tee
06:59
<Jupstar> so a cave would require to have a background tile layer
07:00
<Jupstar> towards cave entries more sun would generally be in the scene
Avatar
when i think of lighting i think about glow tiles too basically like, a tileset with a set color and emittion amount saying this because glow mapres suck so hard there's always creases and it never looks natural
Avatar
ws-client BOT 2023-06-13 07:03:02Z
<Jupstar> yeah but obv that also doesnt really make sense.. e.g. are there tiles that can completely block the emitting light rays? or does it always leak into the tiles
Avatar
oh yeah good point. i was going to say it would be layer determined but i guess if the emittion is big enough there should be ways to block the lighting
Avatar
lel, didn't know the last one 😄
Avatar
That last one is a cute idea, I wonder if it's sane
Avatar
I heard it works
10:14
not sure if practical though
Avatar
you can also pick random points in a square that are also in the quarter circle to get pi
10:20
Anyone know how to test C code similarly to googletest that is c++ only?
Avatar
you can use C++ to test C code
Avatar
isn't there a risk to change behavior?
10:22
if i compile my code with g++ instead of gcc, i got loads of errors
Avatar
no, I mean just compiling the test code with g++
Avatar
Note that i will need to compile C code from students, so i think a pure C solution is preferable
Avatar
does it have a given interface?
Avatar
ah, so i compile my test with g++ and retrieve only their code through a library maybe?
Avatar
doesn't need to be a library
Avatar
they should have 2 functions: int aes_encrypt(char* data, int size, char* key, int keysize); int aes_decrypt(char* data, int size, char* key, int keysize); // OU avec AES CBC implémenté int aes_encrypt(char* data, int size, char* key, int keysize, int mode); int aes_decrypt(char* data, int size, char* key, int keysize, int mode);
10:24
ill try that then 😉
Avatar
yes, declare that as extern "C" in your header file and you should be good
10:24
compile the student's code with -c to an object file
10:25
and then link it with your test cde
Avatar
I was thinking of them sending me their header and also 2 static libraries: one normal, and one with the sanitizer, then i can just link with my testcode
Avatar
hmm. you don't want to have the source code?
Avatar
Virus
Avatar
but yea, that'd work, too
Avatar
nah, they will all have different makefiles and their own test files
10:26
so i wouldn't know which .o to get
10:27
it will also be a live evaluation, so i can't take 5 minutes for each group to find correct files and stuff (edited)
Avatar
Make files for single algorithm? Xd
Avatar
ah ^^
Avatar
Or do they use extern stuff
Avatar
I will ask them for extern C header and static lib, seems easier so that i can just link directly
Avatar
ws-client BOT 2023-06-13 10:28:40Z
<Jupstar> the static lib can also have deps
Avatar
they won't have
Avatar
ws-client BOT 2023-06-13 10:28:57Z
<Jupstar> then u can also take their source code
10:30
we didn't standardize anything except global API, so i don't wanna fumble through their code
10:30
live evaluation
Avatar
ws-client BOT 2023-06-13 10:30:40Z
<Jupstar> then u need to take shared libraries
Avatar
why shared? static works fine too
Avatar
this would be way easier with rust, cargo, normalized way of doing things already and builtin unit testing
10:31
justatest
Avatar
ws-client BOT 2023-06-13 10:31:43Z
<Jupstar> then i hope for you that they dont have external deps
Avatar
Avatar
Ryozuki
this would be way easier with rust, cargo, normalized way of doing things already and builtin unit testing
i don't make the teaching program
10:32
there will be none, it's just basic c stuff with file IO and AES algorithm
Avatar
why not just provide urself a project skeleton
10:32
with a makefile u made
10:32
good old make
Avatar
ws-client BOT 2023-06-13 10:32:23Z
<Jupstar> and then u could take their source code again^^
Avatar
because we also evaluate this
Avatar
what is "this"
Avatar
their own makefile
10:33
so in computer design class u evaluate makefile skills?
10:33
xd
Avatar
it's not computer design class, it's C project class
Avatar
ws-client BOT 2023-06-13 10:33:22Z
<Jupstar> its plain c
Avatar
actually, it's math-info project
Avatar
C project class lol
Avatar
ws-client BOT 2023-06-13 10:33:31Z
<Jupstar> u dont really need makefiles lmao
Avatar
so they already made AES with Haskell, now with C
10:33
should be easier
10:33
xd
10:33
idk haskell
10:34
do processors have aes intrinsics
10:34
like instructions
Avatar
do they use em in c
10:34
can u do that with haskell
Avatar
there's a possible extension that they can use, i proposed it to some advanced groups
Avatar
im only supervising the c part
Avatar
i also think the linux kernel provides a interface for that
10:35
if u enable it when compiling
10:35
but i understand u want them to impl it itself
10:35
xd
Avatar
ws-client BOT 2023-06-13 10:35:38Z
<Jupstar> rust would link extern "Rust"
10:35
<Jupstar> !rust *
Avatar
chillerbot1 BOT 2023-06-13 10:35:41Z
@Ryozuki
Avatar
extern "Rust" exists i think
Avatar
ws-client BOT 2023-06-13 10:35:59Z
<Jupstar> yes
Avatar
Intel® Intrinsics Guide includes C-style functions that provide access to other instructions without writing assembly code.
10:36
AES extension on x64
Avatar
there also exists extern "x86-something"
Avatar
introduced in 2009 apparently or 2008
Avatar
ws-client BOT 2023-06-13 10:36:47Z
<Jupstar> no wonder x86 is so huge 😂
Avatar
we also ask them to compare performances, own implementation are usually at 1MB/s at start, then they manage to reach 10MB/s. With AES extension, they reach 1GB/s 😄
Avatar
ws-client BOT 2023-06-13 10:37:28Z
<Jupstar> i'd aim for 2GB/s
10:37
<Jupstar> else im unhappy
Avatar
not possible
Avatar
ws-client BOT 2023-06-13 10:37:43Z
<Jupstar> that's what u say
Avatar
type HandlerFunc = extern "x86-interrupt" fn(_: InterruptStackFrame);
Avatar
maybe possible if you cipher independent block
10:37
so that you break dependencies
Avatar
ws-client BOT 2023-06-13 10:38:13Z
<Jupstar> @Chairn first i'd buy you a new PC. then add multi threading
10:38
<Jupstar> and then it's 16GB/s
Avatar
xd troll
10:38
@Chairn imagine having jupstar as student
10:39
nagging all day
10:39
i problably would nag all day
10:39
smth C this smth C that
10:39
ub here ub there
Avatar
jupstar buying pcs for people is such a jupstar move
Avatar
ws-client BOT 2023-06-13 10:39:30Z
<Jupstar> i am defs a horrible student
10:40
<Jupstar> the funny thing is. i in fact did smth like that
justatest 1
Avatar
see? jupstar moves
Avatar
i also nagged to the teacher
Avatar
ws-client BOT 2023-06-13 10:40:20Z
<Jupstar> i had to create a java program. and just for fun aimed for most effective perf :D
Avatar
ws-client BOT 2023-06-13 10:40:30Z
<Jupstar> i think he didnt understand the code xD
10:40
<Jupstar> man i should search my old tasks
10:41
<Jupstar> i bet i did weird stuff, bcs i always hated the homeworks
10:41
<Jupstar> to death
10:41
<Jupstar> boring af
10:41
homework is shit to do
Avatar
ws-client1 BOT 2023-06-13 11:56:21Z
<flamer> aaa
Avatar
ChillerDragon BOT 2023-06-13 11:56:23Z
opsi
Avatar
ws-client BOT 2023-06-13 12:03:01Z
<Jupstar > OMG
12:03
<Jupstar > chillerdragon
12:03
<Jupstar > u didnt
12:03
<Jupstar > u didnt even tell me
12:03
<Jupstar> but its still a bit buggy, but nice progress "Jupstar is typing ..." after reload 😂
Avatar
ChillerDragon BOT 2023-06-13 12:22:01Z
yes i just fixed the stuck bug
12:22
lemme deploy
Avatar
ws-client BOT 2023-06-13 12:23:24Z
<ChillerDragon> its now fixed
12:23
<ChillerDragon> the problem was the "is typing" state is tracked by the backend on a trust me bro basis from the client
12:24
<ChillerDragon> the client sends when it stops typing :D but that doesnt happen if you timeout without saying u stopped typing now its kinda fixed
12:24
<ChillerDragon> you gotta relogin since i restarted the backend
Avatar
chillerbot1 BOT 2023-06-13 15:16:57Z
@Jupstar ✪
Avatar
ws-client BOT 2023-06-13 15:17:03Z
<ChillerDragon> pingers from other channel poggers2
15:17
<ChillerDragon> @heinrich5991 when bridge #off-topic?
Avatar
Chillerdragon is creating a next-gen webclient as discord alternative?
Avatar
ChillerDragon BOT 2023-06-13 15:19:27Z
ye its a web frontend for irc that looks like discord
15:20
but ffs i broke something really bad with this new feature xd
Avatar
ws-client BOT 2023-06-13 15:24:20Z
<ChillerDragon> !pig
Avatar
chillerbot1 BOT 2023-06-13 15:24:20Z
pog
Avatar
ws-client BOT 2023-06-13 15:24:23Z
<ChillerDragon> ok nice fixed
16:17
possible improv?
16:17
ops wrong link before
Avatar
Why is there no abuse email for googles ip range? Do they get special treatment because monopoly?
16:32
My ip is used in one spoofed attack and hetzner is up my ass because they got abuse mail. We get a gbps-ful of traffic from 8.8.4.4 I want to complain too
Avatar
It's spoofed traffic anyway, so why complain?
16:37
Popular to spoof since people whitelist those ips in their firewall for DNS
16:38
abuse emails seem to be a joke anyway, I mostly get back "address doesn't exist" or "mailbox is full"
Avatar
idk we are being annoyed, I want to share our pain with them
Avatar
!c nice xd
Avatar
chillerbot1 BOT 2023-06-13 16:47:55Z
ChillerDragon
Avatar
chillerdragon BOT 2023-06-13 16:51:07Z
You sure 8.8.4.4 is not just responses to your dns requests? Don’t think a response counts as attack
Avatar
Sure, we're just sending multi-GB/s of DNS requests and google is failing to limit us 😄
Avatar
chillerdragon BOT 2023-06-13 17:18:56Z
Ok fair
17:22
Wait hetzner is sending you emails because your ip was used in a spoofing attack? A attack that was fully out of your control? That doesn’t make much sense. Or do you mean these emails about you running services that might be used in reflection attacks? Because those we get at work and there is something we can do about it so it’s making sense imo.
17:25
So it’s probably someone ddosing you and spoofing google ip to not get ip blacklisted? (@deen)
Sure, we&#x27;re just sending multi-GB/s of DNS requests and google is failing to limit us 😄
17:26
Imagine using evil corp dns anyways… real OGs use duckDNS
Avatar
Regression from #6530.

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
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddn...
Avatar
@Learath2 just wanted to comment, we are back to cxx with the bindings
18:51
some stuff turned weird xD
Avatar
the bad thing with cxx is that u make unique pointers everywhere, so allocations everywhere for everything
Avatar
Avatar
Ryozuki
the bad thing with cxx is that u make unique pointers everywhere, so allocations everywhere for everything
You technically don't have to, ur also allowed raw pointers across the boundary, and you can define non-opaque structs that can go across the boundary
Avatar
my coworker mentiones it might be a red zone thing
18:53
but we are not sure
18:53
a pointer address changed doing stuff, with the context allocated from rust
18:53
we couldnt figure out why
Avatar
wym a pointer address changed?
Avatar
Avatar
Learath2
You technically don't have to, ur also allowed raw pointers across the boundary, and you can define non-opaque structs that can go across the boundary
yeah but in mlir u can get Value(s) and Type(s) and Location(s) by value a lot
18:54
since they are trivially copiable
18:54
or smth
18:54
llvm returns them by val
Avatar
Avatar
Learath2
wym a pointer address changed?
the Context in mlir is just a unique ptr inside
18:54
when we created a Location with it
18:54
and Location has a getContext method too
18:55
the getcontext returned a context with a pointer with a 100 byte offser more or less
18:55
it changed +-50
18:55
offset*
18:55
anyway it was bound to be a disaster anyway xd
18:55
allocating in rust and using in c++
18:56
there must be smth weird
Avatar
Avatar
Learath2
You technically don't have to, ur also allowed raw pointers across the boundary, and you can define non-opaque structs that can go across the boundary
u can use raw pointers if the api returns pointers/refs ye
18:57
but the api mostly just returns by value
18:57
in mlir there are operations, they almost always have results, these results return Value by value
18:58
and thus thats a allocation for every operation result
18:58
a operation can also have multiple results
18:58
anyway
Avatar
i should make more ddnet feature concept images (edited)
Avatar
Avatar
Voxel
i should make more ddnet feature concept images (edited)
add them to the wiki if u want too
Avatar
Avatar
Voxel
i should make more ddnet feature concept images (edited)
u should make a beter ddnet logo 😂
Avatar
i allow the wiki to be ur ddnet concept art storage
19:00
xd
Avatar
Avatar
Jupstar ✪
u should make a beter ddnet logo 😂
its impossible
19:00
the current logo is perfect
🚨 1
Avatar
Avatar
Ryozuki
add them to the wiki if u want too
really? what page?
Avatar
no page
19:02
u can simply upload
19:02
@Voxel u can show em in ur user page if u want
19:03
@Voxel oh
19:03
19:03
i uploaded some of urs in the past
19:03
xd
19:04
lmao
Avatar
Avatar
Jupstar ✪
u should make a beter ddnet logo 😂
what about the current logo is so bad? (edited)
Avatar
Use templated str_copy function in most cases to specify the correct buffer size. Fixes two cases where the buffer size was hard-coded to a number. Fix buffer size not being checked when copying auto mapper configuration name. Loading an auto mapper configuration with a name longer than 128 bytes could cause an out-of-bounds write. Increase sizes of some text buffers that were potentially too small.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it...
Avatar
Avatar
Voxel
what about the current logo is so bad? (edited)
do u also like it? i think it looks cheap i just feel like it doesnt represent teeworlds. Choice of colors, the default tees I like the blue rings tho xd
Avatar
Avatar
Jupstar ✪
do u also like it? i think it looks cheap i just feel like it doesnt represent teeworlds. Choice of colors, the default tees I like the blue rings tho xd
i cant think of anything better
19:14
i mean the only thing i WANT to improve are the menu images
19:14
😃 1
Avatar
progress so far
19:17
cute twinbop
Avatar
can it twerk?
Avatar
Avatar
Anime.pdf
can it twerk?
Avatar
Avatar
Voxel
progress so far
anyways im gonna continue this
Avatar
Avatar
Voxel
Click to see attachment 🖼️
Avatar
Avatar
deen
operating system. Yes, sounds like the gfx troubleshooting would help you
@deen i already installed the drivers and everything was working fine again. Until now that i tried to save a map in editor, then it suddenly crashed my game and now it says that i need to update my GPU drivers. How do I do that?
Avatar
Avatar
RealTaco
@deen i already installed the drivers and everything was working fine again. Until now that i tried to save a map in editor, then it suddenly crashed my game and now it says that i need to update my GPU drivers. How do I do that?
You can find the new drivers on the amd or nvidia website
20:23
or use older opengl version in settings
Avatar
b13e807 Fix editor save dialog entries not selectable with mouse anymore - Robyt3 fa57258 Merge #6736 - bors[bot]
21:04
lets buy this as ddnet
21:04
for research purposes
21:04
Avatar
generate ddnet maps with it
Avatar
itd only be good at gores
Avatar
bbe9f23 Refactor str_copy usages and buffer sizes in editor - Robyt3 1830867 Merge #6737 - bors[bot]
Avatar
Happend on RUS server Dump: ``` 2023-06-13 16:21:04 I sql: SQLite statement: INSERT OR IGNORE INTO record_race_backup( Map, Name, Timestamp, Time, Server, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cp8, cp9, cp10, cp11, cp12, cp13, cp14, cp15, cp16, cp17, cp18, cp19, cp20, cp21, cp22, cp23, cp24, cp25, GameID, DDNet7) VALUES ('HDP_OnOff', 'Dima4qlc', DATETIME('2023-06-13 16:21:04', 'utc'), 1169.00, 'RUS', 15.82, 28.46, 51.04, 72.74, 89.24, 149.38, 162.70, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,...
Avatar

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [X] Written a unit test (especially base/) or added coverage to integration test
  • [X] Considered possible null pointers and out of bounds array indexing
  • [X] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresss...
Avatar
Avatar
deen
or use older opengl version in settings
Now what
Avatar
Remove the custom skins you have
Avatar
^ or archive them in a seperate folder
22:30
just not in the folder ddnet reads from
Avatar
This otherwise breaks file loading because the file extension is expected in this input buffer even when the input is not rendered. Regression from #6736.

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
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ...
Avatar
Avatar
RealTaco
Now what
Remove some Skins or Mapres, whatever part is bigger. I recommend getting rid of 4k Assets as priority
22:51
Also main reason why I don't wanna include a "download all" button on skins.tw
Avatar
since when was it EEnumName instead of ENUM_NAME? i feel like i read on the wiki it was the latter
Avatar
9a57def Add templated str_append function for arrays with fixed size - Robyt3 410ccda Move templated str_copy next to basic function - Robyt3 3069733 Add tests for str_append and for templated str_copy - Robyt3 3ad581a Ensure proper buffer size is used with DDNet server filter - Robyt3 0d45120 Merge #6739 - bors[bot]
Exported 293 message(s)