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 10/26/2023 12:00AM and 10/27/2023 12:00AM
Avatar
Avatar
GitHub
Click to see attachment 🖼️
name is familiar
8:43AM
owo
Avatar
I need two more pieces, any ideas to optimise the font?
gigachad 1
9:07AM
two missing pieces for the last parameter closing bracked on int main
9:08AM
@Jupstar ✪ @Ryozuki this is important
Avatar
your semi is upside down 😇 (edited)
justatest 1
Avatar
maybe some ligatures? the N and C of include, the S and the T of stdio or the M and the A of main?
9:19AM
or, you could include cstdio which is shorter 🙂
Avatar
Avatar
Teero
I need two more pieces, any ideas to optimise the font?
This is new IDE? gigachad
poggers2 1
Avatar
Avatar
Mʎɹ シ
This is new IDE? gigachad
I will implement syntax highlighting and auto completion soon
poggers 1
Avatar
Avatar
Teero
I will implement syntax highlighting and auto completion soon
Killer of CLion
Avatar
Avatar
k2d222
or, you could include cstdio which is shorter 🙂
good fix but you cant use cstdio in c99 right?
Avatar
Avatar
Teero
@Jupstar ✪ @Ryozuki this is important
Jupstar ✪ 10/26/2023 9:35AM
Tf is that
9:35AM
Godot
9:35AM
With gi?
Avatar
Avatar
Jupstar ✪
With gi?
looks pretty real right?
Avatar
Avatar
Teero
looks pretty real right?
Jupstar ✪ 10/26/2023 9:56AM
Looks photo realistic at least. Hard to say if light would look like that in a static scene ^^
9:56AM
I couldn't tell if it's not a real photo from my phone
Avatar
Avatar
Teero
looks pretty real right?
Jupstar ✪ 10/26/2023 10:34AM
So what r u doing? Creating a coding game?
Avatar
Avatar
Jupstar ✪
So what r u doing? Creating a coding game?
😂😂😂
Avatar
Avatar
Teero
😂😂😂
Jupstar ✪ 10/26/2023 11:39AM
Don't tell me u had nothing better to do than doing this in rl xd
kek 1
Avatar
Avatar
Jupstar ✪
Don't tell me u had nothing better to do than doing this in rl xd
🤣🤣🤣😂
Avatar
💀 xD
Avatar
the new vim
Avatar
I started doing opengl again 🎉
11:41AM
The point that I rq everytime was the build system.
Avatar
just use cmake and ure fine ig? (edited)
11:42AM
I do it manually for now.
Avatar
First I gotta understand how it works, else I don't remember anything ;)
Avatar
Avatar
Teero
Click to see attachment 🖼️
more like 🥼 🎩
Avatar
Avatar
Mr.Gh0s7
First I gotta understand how it works, else I don't remember anything ;)
Do it on paper I dare u
Avatar
Jupstar ✪ 10/26/2023 11:43AM
U could also not do it cross platform
11:43AM
That makes it easier
troll 1
Avatar
Yeah for now it's only for linux (only at my machine but could work on others ¯\_(ツ)_/¯)
Avatar
Jupstar ✪ 10/26/2023 11:44AM
I also dislike working with build systems
Avatar
zogtib has made an implementation of the redo build system
11:44AM
But it triggers me every time because I can't grasp it xD (shell nobo)
Avatar
Avatar
Mr.Gh0s7
zogtib has made an implementation of the redo build system
a redo build system implementation. Contribute to gotroyb127/baredo development by creating an account on GitHub.
Avatar
Avatar
Mr.Gh0s7
But it triggers me every time because I can't grasp it xD (shell nobo)
Plus I hadn't work much with C and C++ besides tw so and I wanted to write it in C so the translation from C++ to C from the tutorial (https://learnopengl.com) also was difficult for me xD
11:49AM
But I kinda worked with OpenCascade CAD Kernel in C++ at first (I didn't know there was build123d which is in python) so I got a little bit more familiar
Avatar
Avatar
Mr.Gh0s7
But it triggers me every time because I can't grasp it xD (shell nobo)
POSIX shell makes redo seem ugly (although redo is not restricted in using it, just the scripts)
Avatar
teeworlds-like 3D game. Contribute to gotroyb127/deeworlds development by creating an account on GitHub.
Avatar
that's pretty simple, I'd say this is not even a just bad example but it even supports the opposite
Avatar
Avatar
zogtib
that's pretty simple, I'd say this is not even a just bad example but it even supports the opposite
no u
Avatar
Jupstar ✪ 10/26/2023 11:58AM
Just try to use no build system at all
11:58AM
Lmao
11:58AM
You won't need it for a simple project
Avatar
heinrich5991 10/26/2023 11:59AM
I wonder what you mean by "no build system" ^^ probably "a simple build system" like a project file in your IDE or a bash script?
Avatar
prob they mean something without support for incremental builds
Avatar
heinrich5991 10/26/2023 12:02PM
ah
Avatar
just c++ -o out.exe srf1.cpp srcf2.cpp ...
Avatar
Quick question. Do you have 2 mice in your disposal?
12:13PM
I am having an argument with @zogtib. I say that a game that would use 2 mice and no keyboard (maybe sometimes uses keyboard but not the main focus) would be really fun and innovative. zogtib says that using 2 mice wouldn't really change much and 2 mice are hard to find anyway. What do you think?
🎩 2
🇿 1
12:14PM
React with hat to vote for 2 mice and Z to vote for zogtib
Avatar
I have 0 mice, i just have a touchpad pepeW
Avatar
Avatar
MilkeeyCat
I have 0 mice, i just have a touchpad pepeW
get another laptop so you have 2
kek 1
Avatar
Avatar
Mr.Gh0s7
I am having an argument with @zogtib. I say that a game that would use 2 mice and no keyboard (maybe sometimes uses keyboard but not the main focus) would be really fun and innovative. zogtib says that using 2 mice wouldn't really change much and 2 mice are hard to find anyway. What do you think?
(I'm mostly saying that using 2 mice wouldn't help as much currently while also having great difficulties (no current support etc))
Avatar
We would make the support. You have to be the change you want to see in the world (ft. Ryozuki)
Avatar
Jupstar ✪ 10/26/2023 12:31PM
@Mr.Gh0s7 which ogl do you target?
Avatar
3.3 is the tutorial.
Avatar
Jupstar ✪ 10/26/2023 12:32PM
mh ok
Avatar
which do you recommend?
Avatar
Jupstar ✪ 10/26/2023 12:33PM
well opengl 4.5 ofc xD
Avatar
Jupstar ✪ 10/26/2023 12:33PM
besides new features, they often also fix stuff in a sense that they don't do it so overcomplicated
12:34PM
e.g. in newer opengl versions u can just bind a texture to a shader slot, instead of binding it to a slot and bind that slot to the shader
12:34PM
i dunno afaik they added a lot of these named bindings, instead of doing it as stateful as in older versions
Avatar
related but unrelated has there been Any game that utilizes svg rendering
Avatar
I'll look to it when I am done with the tutorial (maybe earlier too ;))
Avatar
Avatar
Voxel
related but unrelated has there been Any game that utilizes svg rendering
Jupstar ✪ 10/26/2023 12:35PM
well the problem with SVG is really, u either have very optimized clean SVGs or u waste perf
12:35PM
it's simply not a data format that targets max perf
12:35PM
and that's usually something desired by games
Avatar
fair enough
Avatar
Jupstar ✪ 10/26/2023 12:36PM
but i'd look out for 2d games
12:36PM
they might have it
12:37PM
for 3d i never seen it.. the maximum i've seen is clear text rendering(since fonts are also kind of SVGs/vector graphics)
12:37PM
but yeah, fonts are much less powerful ofc^^
Avatar
was thinking 2d since i recall us babbling about svg rendering in ddnet
Avatar
Jupstar ✪ 10/26/2023 12:38PM
i mean i'd defs like to test it out.. but lot of work just to already know that it's 100% slower xD
12:38PM
and only worth for zooming in
12:38PM
and what also is annoying is, integrating it into your renderer
Avatar
heinrich5991 10/26/2023 12:40PM
I mean a polygon mesh is kinda like an SVG
12:40PM
I think in 3d, voxels are rather rare
Avatar
Avatar
heinrich5991
I mean a polygon mesh is kinda like an SVG
Jupstar ✪ 10/26/2023 12:41PM
yeah true, but also simpler
12:41PM
SVGs support blur etc
Avatar
Avatar
heinrich5991
I think in 3d, voxels are rather rare
im right here 🥹
Avatar
Jupstar ✪ 10/26/2023 12:42PM
xd
Avatar
Jupstar ✪ 10/26/2023 12:43PM
but voxels are 3d pixels only right?
12:43PM
not vector graphics
12:43PM
i know a few games
Avatar
i mean 2d cubes are easy
Avatar
Jupstar ✪ 10/26/2023 12:43PM
xd
Avatar
Jupstar ✪ 10/26/2023 12:44PM
minecraft are textured voxels xdd
Avatar
Bus 003 Device 006: ID 0483:374b STMicroelectronics ST-LINK/V2.1 Bus 003 Device 005: ID 0483:374e STMicroelectronics STLINK-V3
12:56PM
epic
Avatar
good morning
1:02PM
❯ openocd -f interface/stlink.cfg -f target/stm32f3x.cfg Open On-Chip Debugger 0.12.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 1000 kHz Info : STLINK V2J37M26 (API v2) VID:PID 0483:374B Info : Target voltage: 2.902491 Info : [stm32f3x.cpu] Cortex-M4 r0p1 processor detected Info : [stm32f3x.cpu] target has 6 breakpoints, 4 watchpoints Info : starting gdb server for stm32f3x.cpu on 3333 Info : Listening on port 3333 for gdb connections
1:02PM
im a hacker
Avatar
ST sux
1:12PM
How many times I had to reset my stm32 card
Avatar
Avatar
heinrich5991
I mean a polygon mesh is kinda like an SVG
What sets apart svgs for me is that they have arbitrary quality. meshes don't really support curvature, so you need more and more complex meshes the closer the camera
Avatar
Jupstar ✪ 10/26/2023 1:22PM
@Ryozuki in case i forget to ask tomorrow: do you know any allocator (that i can pass to Vec, Arc etc. that supports some kind of "initial memory size" and then "alloc size if full".. so basically it should be dynamic but i want to allocate lot in advance, since i can estimate the roundabout size. Additionally would be nice if it's using a spinlock instead of normal mutex or whatever
1:22PM
only read tomorrow ofc xD
Avatar
Avatar
ReiTW
How many times I had to reset my stm32 card
ill get a microbit soon
1:30PM
thhe new rust embedded tutorial uses microbit
Avatar
Avatar
Jupstar ✪
@Ryozuki in case i forget to ask tomorrow: do you know any allocator (that i can pass to Vec, Arc etc. that supports some kind of "initial memory size" and then "alloc size if full".. so basically it should be dynamic but i want to allocate lot in advance, since i can estimate the roundabout size. Additionally would be nice if it's using a spinlock instead of normal mutex or whatever
hmm explain further
1:30PM
initial memory size? u can ask vec to preallocate using with_capacity
1:31PM
idk what u mean by alloc size if full
1:31PM
but maybe u want a bump allocator?
1:32PM
Pre-allocated storage for a uniform data type.
1:32PM
Slab provides pre-allocated storage for a single data type. If many values of a single type are being allocated, it can be more efficient to pre-allocate the necessary storage. Since the size of the type is uniform, memory fragmentation can be avoided. Storing, clearing, and lookup operations become very cheap. While Slab may look like other Rust collections, it is not intended to be used as a general purpose collection. The primary difference between Slab and Vec is that Slab returns the key when storing the value. It is important to note that keys may be reused. In other words, once a value associated with a given key is removed from a slab, that key may be returned from future calls to insert.
Avatar
heinrich5991 10/26/2023 1:32PM
why use a spinlock instead of a mutex?
1:33PM
afaik, normal mutexes only enter the kernel on contention
Avatar
ye a spinlock should be worse right?
Avatar
Avatar
Ryozuki
ill get a microbit soon
I was using micropython + some async lib for BLE
Avatar
but maybe he has no_std needs @heinrich5991
Avatar
The documentation was horrible af
Avatar
Avatar
ReiTW
I was using micropython + some async lib for BLE
i wont touch python
Avatar
Jupstar ✪ 10/26/2023 1:34PM
u should read it tomorrow keks
Avatar
Avatar
heinrich5991
why use a spinlock instead of a mutex?
Jupstar ✪ 10/26/2023 1:34PM
why not, i never want to enter any sleep
Avatar
i think slab is quite good when making trees
Avatar
Jupstar ✪ 10/26/2023 1:35PM
if the crates doesn't use a spinlock, it's probably a slow implementation
Avatar
Avatar
Ryozuki
i think slab is quite good when making trees
Jupstar ✪ 10/26/2023 1:36PM
well i need it as allocator i can pass to vec etc.
1:36PM
to rust std data types
Avatar
Avatar
Jupstar ✪
why not, i never want to enter any sleep
heinrich5991 10/26/2023 1:37PM
hm. in that case I'd still prefer a normal mutex. if contention is a bug, then I'd prefer the process to sleep over using a lot of CPU when that assumption is broken
Avatar
Avatar
heinrich5991
hm. in that case I'd still prefer a normal mutex. if contention is a bug, then I'd prefer the process to sleep over using a lot of CPU when that assumption is broken
Jupstar ✪ 10/26/2023 1:38PM
well additionally i don't trust the implementations. e.g. windows xd
1:44PM
a lockfree impl is also welcome, but probably doesn't work with a heap like data structure
Avatar
heinrich5991 10/26/2023 1:45PM
https://stackoverflow.com/a/70355738/870079 according to a random stackoverflow post, srwlock (which rust's mutexes use on windows) behave like futexes on linux
I'm trying to improve my understanding of synchronization primitives in C++. I've measured latencies of various concurrent operations, such as: For a raw std::mutex, the time between .unlock() and...
1:45PM
not sure if I trust a random stackoverflow post though
Avatar
Jupstar ✪ 10/26/2023 1:46PM
i just don't like that in theory the hybrid system can decide to go to the thread scheduler...
3:46PM
@heinrich5991
3:46PM
a crate with 23000 features
3:46PM
cargo features
Avatar
i like paulaner beer
Avatar
Jupstar ✪ 10/26/2023 4:20PM
xd
4:20PM
actually this is exactly this
4:20PM
it's a beer garden xd
Avatar
Jupstar ✪ 10/26/2023 4:21PM
when ppl tell their fairy tails about stuff that doesnt exist
4:21PM
xd
4:22PM
this is the crate btw
4:23PM
he made one feature per font icon
4:23PM
wtf
4:23PM
is wrong with some ppl
4:24PM
" Every icon is packaged as its own cargo feature to reduce build times." sure.. parsing 23000 features is soo much faster
4:24PM
lmao
Avatar
morning 🍵
Avatar
morning
4:31PM
foggy today
Avatar
@Ryozuki im in ddnet gentoo club, right? its been more than 1 month gigachad
Avatar
how are u enjoying it
Avatar
@MilkeeyCat put gentoo logo as pfp
Avatar
Avatar
Ryozuki
@MilkeeyCat put gentoo logo as pfp
and ill be as jupstar justatest
4:34PM
but with gentoo
4:35PM
today is definitely go + htmx thursday (edited)
Avatar
Avatar
MilkeeyCat
and ill be as jupstar justatest
Jupstar ✪ 10/26/2023 4:39PM
use this
4:39PM
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
not a huge voxel's fan (edited)
4:51PM
can put js logo tho (edited)
4:51PM
justatest
Avatar
Jupstar ✪ 10/26/2023 4:53PM
MilkeeyCat sadly doesn't fit. way too long name xd
Avatar
most ppl read my name as MickeyCat feelsbadman
4:54PM
xd
4:59PM
luckily im catalan
Avatar
ya but in barcelona
Avatar
Avatar
Jupstar ✪
use this
i want one tooo
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
i forgot you did that justatest
Avatar
wait he did that lmfao
5:13PM
i thought you would have
Avatar
Avatar
Ewan
i thought you would have
thats not in character
Avatar
Only consider STATE_ONLINE and STATE_DEMOPLAYBACK as ingame. Closes #7178.

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...
Avatar
hmm, admin impostor? there's a deen on every pol server, and a robyt as well
kek 5
Avatar
Avatar
Chairn
hmm, admin impostor? there's a deen on every pol server, and a robyt as well
sus
Avatar
Avatar
Chairn
hmm, admin impostor? there's a deen on every pol server, and a robyt as well
this is the same as what was happening to USA a few months ago, their names were also colors in case the admin names were temporarily banned
8:08PM
blue green yellow etc
8:08PM
same source iirc
Avatar
Avatar
Chairn
hmm, admin impostor? there's a deen on every pol server, and a robyt as well
oh look at that (i removed an image containing a link to a cheat client discord server as per chairn's request) (edited)
Avatar
Avatar
Ewan
Click to see attachment 🖼️
im getting flashbacks
8:31PM
deen's here too
Avatar
Jupstar ✪ 10/26/2023 8:32PM
yeah
8:32PM
annoying
8:32PM
@Robyt3 swing your master ban hammer
Avatar
someone's doign it already
8:32PM
no mod in lobby
8:33PM
or maybe this is how bans work if done on another server
8:33PM
never seen it
Avatar
Avatar
Ewan
oh look at that (i removed an image containing a link to a cheat client discord server as per chairn's request) (edited)
you might want to censor that link though
Avatar
i... guess so
Avatar
hopefully that bot can be detected and banned on usage ...
Avatar
unfortunately not
9:03PM
unless someone decides to add text blacklist features & auto-ban accordingly
Avatar
nah i mean the bot client he is talkin about
Avatar
oh this is actually a different client than i thought
Avatar
Avatar
Ewan
unless someone decides to add text blacklist features & auto-ban accordingly
yeah i was thinking about this just right now and came here to propose it, any message containing their discord invite link > ban gg
Avatar
many always wanted a /proteam 5 where u cant cheat 2p maps with help of support (like third player or dummy) where are any time min. and max only 2 players are allowed (besides 3p maps) to make sure of it my ideas would be
  • the team must kill itself before even making 1 move.
  • make a new table records_proteamrace [but it also needs cp1-25 (I think) GameId etc.. like in record_race]
  • 3p-10-64p maps need a command the map itself like
  • sv_playerperproteam 3 (sv_proteam 3)
Avatar
Avatar
Gwendal
yeah i was thinking about this just right now and came here to propose it, any message containing their discord invite link > ban gg
it is so very easy to make a new invite link, it would not be worth it
Avatar
ban for sending links
9:08PM
gg ez
Avatar
@Ewan I think they use a bot to spam every servers, it would probably make them struggle if they had to automatically create a new invite idk..
Avatar
if the person who made these bots did it the way a sane person would then it would be very easy to change the link
👍 1
Avatar
the thing is we would need mods to be able to say "hey this link is that spambot discord" so we can refresh the autoban/blacklist messages feature when they change inv ig
Avatar
Avatar
Ewan
or maybe this is how bans work if done on another server
Fast login and ban
9:11PM
gigachad
Avatar
well i would see it in the chat
Avatar
3 seconds is enough
9:12PM
owo
Avatar
Avatar
Ewan
someone's doign it already
I knew deen was a spambot
think_bot 4
9:40PM
c++23 is Rust--
9:40PM
change my mind
Avatar
🧠 + 🔧
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
are vectors just a fixed list of numbers
Avatar
fixed would be array
9:42PM
vectors are growable list
9:42PM
also its numbers in this case, its generic over the data type
Avatar
bruh i still libe in a world where c++20 is unsupported by all compilers xd
9:43PM
there's c++23
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
only thing more rusty about this is the bracket syntax for std print/format
10:21PM
initializer lists for std containers have existed for a long time
Avatar
Avatar
Ryozuki
c++23 is Rust--
You mean Rust++?
Avatar
Avatar
Ewan
only thing more rusty about this is the bracket syntax for std print/format
import
Avatar
oh yeah
10:27PM
missed that
Avatar
7312721 Remove redundant server browser refresh on client start - Robyt3 68e4819 Fix incorrect menu behavior when quitting/restarting - Robyt3 c325f83 Merge pull request #7373 from Robyt3/Client-Quitting-State-Fixes - def-
Exported 254 message(s)
Timezone: UTC+0