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-01-22 00:00:00Z and 2024-01-23 00:00:00Z
Avatar
chillerdragon BOT 2024-01-22 00:10:48Z
Replying to @Baran Nashor can someone make a feature that saves automatically when team members ge…
00:11
Yes c:
Replying to @Learath2 That's a good idea actually, an emergency save
Avatar
text error

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 affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/d...
Avatar
Hey I'm helping someone use my twgpu tools (to generate images of maps). they managed to make it work on their own pc, but want to run it on a vps. however, whenever they run anything wgpu-related, they get stack smashing errors. I'm not sure if they installed graphics drivers correctly. first, wgpu went "no suitable adapter found", then they followed this https://askubuntu.com/questions/429596/how-to-choose-the-vga-when-setting-up-the-x-server, and now everything results in a stack smash https://cdn.discordapp.com/attachments/969013185577381888/1198793524452261930/image.png?ex=65c03278&is=65adbd78&hm=8f1bf15c62ee0f85b7b6b6c07d096ba4c4abad145470156d5cb50592c048b28d& https://cdn.discordapp.com/attachments/969013185577381888/1198790258322591854/image.png?ex=65c02f6e&is=65adba6e&hm=47399799db95d36f273d90a4b97fb83ad5fefb2c04d6a3864669a853c8a8797f& https://cdn.discordapp.com/attachments/969013185577381888/1198797064247713812/image.png?ex=65c035c4&is=65adc0c4&hm=8ee3ee129f0793c490ff2b0aa5605d3edd124708abbdce3655a7fcf23e92dd05& wgpu-info is a simple tool that only lists the available adapters for wgpu https://crates.io/crates/wgpu-info other rust binaries still run normally, such as my map tools
I have 2 options of VGA: lspci | grep VGA 00:02.0 VGA compatible controller: Cirrus Logic GD 5446 00:03.0 VGA compatible controller: NVIDIA Corporation GK104GL [GRID K520] (rev a1) It's an instan...
01:16
I honestly have no experience at all with vps and graphics drivers, so if anyone has an idea, that would be awesome ^^
01:18
I haven't tried to get them to debug the crash further yet, maybe that is necessary? First wanted to see if someone here has the solution cached
Avatar
ws-client BOT 2024-01-22 01:25:07Z
<ChillerDragon> "has the solution cached" love that phrase haha
01:26
<ChillerDragon> can wgpu run on the cpu? Might be slower but sounds less driver issue painy
01:27
<ChillerDragon> i can offer you to run the same thing on my debian 12 vps and debian 12 laptop if it helps @Patiga
Avatar
I think there are cpu graphics drivers exist, which wgpu could use
01:27
maybe mesa?
01:32
ChillerDragon: its for someone else, I'm pretty sure they want to run it on their own server
01:33
but thanks for the offer :)
Avatar
ws-client BOT 2024-01-22 01:35:26Z
<ChillerDragon> oh no not for production i mean to test the issue if i can reproduce it etc
Avatar
Avatar
Patiga
I haven't tried to get them to debug the crash further yet, maybe that is necessary? First wanted to see if someone here has the solution cached
I used mesas lavapipe, which is vulkan software renderer, in my vps to run try the off screen capabilities of dd-pg engine. What was directly a problem is that the mesa 22 and lower didn't work at all on the vps CPU I unsafely upgraded them and it worked without problems
08:28
But I'm pretty sure it was no stack smashing.. But maybe you can try your tool on your main computer using a software renderer?
Avatar
e466ef5 Version 18.0 - def- d093c31 Update translations for upcoming DDNet 18.0 - def- 55e82e2 Update German translations - def- 8a5d164 Fix multiple editor undo/redo issues - archimede67 ed7b013 Update Swedish translations for 18.0 - furo321 f612688 Update russian.txt - gerdoe-jr 49ffdfe Update brazilian_portuguese.txt - rffontenelle e633bdb Update traditional_chinese.txt - By622 68a1bbb Update simplified_chinese.txt - By622 bda0855 Fix warning title being uninitialized in some cases - Robyt3 c3835dc Divide /tp into /tpxy and /tpto - gerdoe-jr c6537e7 /tpto -> /tp and /teleport - gerdoe-jr ce7060e Fix style - def- 6888f75 Update config_variables.h - k-i-o
Avatar
Could try to also get this issue
Avatar
Avatar
Patiga
Hey I'm helping someone use my twgpu tools (to generate images of maps). they managed to make it work on their own pc, but want to run it on a vps. however, whenever they run anything wgpu-related, they get stack smashing errors. I'm not sure if they installed graphics drivers correctly. first, wgpu went "no suitable adapter found", then they followed this https://askubuntu.com/questions/429596/how-to-choose-the-vga-when-setting-up-the-x-server, and now everything results in a stack smash https://cdn.discordapp.com/attachments/969013185577381888/1198793524452261930/image.png?ex=65c03278&is=65adbd78&hm=8f1bf15c62ee0f85b7b6b6c07d096ba4c4abad145470156d5cb50592c048b28d& https://cdn.discordapp.com/attachments/969013185577381888/1198790258322591854/image.png?ex=65c02f6e&is=65adba6e&hm=47399799db95d36f273d90a4b97fb83ad5fefb2c04d6a3864669a853c8a8797f& https://cdn.discordapp.com/attachments/969013185577381888/1198797064247713812/image.png?ex=65c035c4&is=65adc0c4&hm=8ee3ee129f0793c490ff2b0aa5605d3edd124708abbdce3655a7fcf23e92dd05& wgpu-info is a simple tool that only lists the available adapters for wgpu https://crates.io/crates/wgpu-info other rust binaries still run normally, such as my map tools
BTW has wgpu no surface less mode if using vulkan back end? Normally u don't need any x server. At least not directly.. The mesa drivers have it as dependency. But that's mostly because of the surface extension
08:45
In other words. Surfaces are a extension. Without this extension vulkan is really more a communication api for the gpu
Avatar
79cf3b4 Update config_variables.h - k-i-o 45ab8e9 Merge pull request #7842 from k-i-o/patch-1 - def-
Avatar
Avatar
Jupstar ✪
BTW has wgpu no surface less mode if using vulkan back end? Normally u don't need any x server. At least not directly.. The mesa drivers have it as dependency. But that's mostly because of the surface extension
afaik, no surfaces are no extension, and there is no feature for it. you can ofc not use the surface struct, but the feature resolving happens at the device initialization, right?
Avatar
Avatar
Jupstar ✪
I used mesas lavapipe, which is vulkan software renderer, in my vps to run try the off screen capabilities of dd-pg engine. What was directly a problem is that the mesa 22 and lower didn't work at all on the vps CPU I unsafely upgraded them and it worked without problems
this sounds good, that should hopefully work
Avatar
Avatar
Jupstar ✪
But I'm pretty sure it was no stack smashing.. But maybe you can try your tool on your main computer using a software renderer?
yeah the stack smashing is rly weird imo, how could the graphics driver installation fail so drastically
Avatar
Avatar
ws-client
<ChillerDragon> oh no not for production i mean to test the issue if i can reproduce it etc
good point, I'll get back to that if all else fails 👍
Avatar
Avatar
Patiga
afaik, no surfaces are no extension, and there is no feature for it. you can ofc not use the surface struct, but the feature resolving happens at the device initialization, right?
For vulkan you have to explicitly enable the surface extension. Which in case of winit or SDL is a call to these APIs to fetch the correct extension name
08:59
So if you don't have this control. Then probably not possible
08:59
But yeah it happens at instance creation
Avatar
Avatar
ws-client
<ChillerDragon> (((!(tw7.msg == "sys.input")) && !(tw7.msg == "sys.snap_single")) && !(tw7.msg == "sys.input_timing")) && !(tw7.msg == "sys.snap_empty")
ChillerDragon: interesting, wouldn't have thought it to be possible ^^
11:37
ChillerDragon: but wait, where are the packets that also contain snaps but also interesting other packets?
Avatar
ws-client BOT 2024-01-22 12:10:35Z
<ChillerDragon> @heinrich5991 yep i also realized i didnt post my updated even more complicated filter :D
12:10
Get rid of input and snapshot noise using a wireshark filter for the libtw2 teeworlds traffic dissector - wireshark_libtw2_no_noise.txt
12:11
<ChillerDragon> it now keeps snaps if the packet also contains non snap packets. I do it by only filtering out snaps if the amount of chunks is the expected amount
Avatar
this looks better
12:13
<ChillerDragon> sadly i didnt find a way to filter this. But its rare and its a false negative so thats not so bad.
12:14
<ChillerDragon> wireshark filters do have some count methods so it is probably possible to check if input_timing is in there twice but i did not bother yet
Avatar
ws-client BOT 2024-01-22 12:33:04Z
<ChillerDragon> lmao open source china firewall i love it
12:33
OpenGFW is a flexible, easy-to-use, open source implementation of GFW on Linux - GitHub - apernet/OpenGFW: OpenGFW is a flexible, easy-to-use, open source implementation of GFW on Linux
12:33
bd1dfd8 Version 18.0 - def- 8e3aa70 Merge pull request #281 from ddnet/pr-18.0 - def-
Avatar
ws-client BOT 2024-01-22 12:33:54Z
<ChillerDragon> oldest commit 2days ago. And 1.6k github stars wtf. This shit is hotter than elon musk tweets
12:34
I am worried that the Chinese government will learn from this project and strengthen GFW, thereby causing losses to Chinese software developers. Such as not being able to access their projects or b...
12:34
<ChillerDragon> gold
12:34
<ChillerDragon> @TsFreddie u worried too fred? :D
12:36
<ChillerDragon> but it is kinda scary if this thing keeps trending like this. It might be the new normal that some bored front desk employee at a cafe or hotel starts looking at the traffoc of the customers
Avatar
Tja
Avatar
Avatar
ws-client
<ChillerDragon> but it is kinda scary if this thing keeps trending like this. It might be the new normal that some bored front desk employee at a cafe or hotel starts looking at the traffoc of the customers
))) new normal
13:16
u mean old normal?
Avatar
ws-client BOT 2024-01-22 13:17:12Z
<ChillerDragon> I dont think its a thing. What is common as of right now that a bunch of fancy routers (at least in germany) show which sites the traffic goes to.
13:17
<ChillerDragon> I could see how much traffic at work was porn :D and seen such stats in a few places
13:18
<ChillerDragon> but i never heard of something so sophisticated such as the GFW. That it starts to analyze the packets deeper and migh even show which urls on a specific host are accessed
13:19
<ChillerDragon> Starbucks employees might now see my rcon password for gCTF servers o.O
13:19
<ChillerDragon> popping up in some fancy gui
13:20
<ChillerDragon> okay thats unlikely but i mean they might see what youtube videos i watch
13:20
<ChillerDragon> which is already pretty disturbing
13:24
<ChillerDragon> dude but how has this new repo so many stars?! was it force pushed?
13:24
<ChillerDragon> it has like 0 upvotes on hackernews
13:24
<ChillerDragon> is github algo now more viral than tiktok or what?
13:25
<ChillerDragon> maybe its trending on some chines sites. Again fred help
13:25
13:25
<ChillerDragon> also not trending on X
Avatar
what's gfw? My internet is bad can't open websites...
Avatar
great firewall? (edited)
Avatar
ws-client BOT 2024-01-22 13:26:27Z
<ChillerDragon> the chines firewall yes GREAT FIRE WALL
Avatar
Avatar
MilkeeyCat
great firewall? (edited)
yep 🙂
Avatar
ws-client BOT 2024-01-22 13:26:40Z
<ChillerDragon> the one that uses block chain and AI to block club penguin in china
Avatar
To block nearly every western company
Avatar
I can't tell if you're joking or not justatest
Avatar
Discord, Facebook, Google all is blocked due to GFW
13:27
So Tencent can build their own service called Bilibili and QQ 😄
Avatar
if u can play ddnet there its not that bad 😏
Avatar
ws-client BOT 2024-01-22 13:28:11Z
<ChillerDragon> also github is blocked so basically no dev tooling works in china
Avatar
Avatar
MilkeeyCat
if u can play ddnet there its not that bad 😏
Well, its illegal in China. The game itself has no license in china
Avatar
ws-client BOT 2024-01-22 13:28:25Z
<ChillerDragon> many ppl depend on github urls espeially raw.githubusercontent.com
Avatar
Avatar
Avolicious
So Tencent can build their own service called Bilibili and QQ 😄
i never in my life read correctly bililibilili xd
Avatar
AFAIK: To sell games in china, you have to get approval by authorities, thus you need a license
Avatar
Avatar
MilkeeyCat
i never in my life read correctly bililibilili xd
Yeah, its their "youtube"
Avatar
ws-client BOT 2024-01-22 13:29:15Z
<ChillerDragon> dude 12yo fred went to da polis station to register his tw server
13:29
<ChillerDragon> just china things
Avatar
But it seems that their services are pretty stable
Avatar
chillerdragon BOT 2024-01-22 13:31:41Z
Yes china best. I use weechat a lot
Avatar
Hello @heinrich5991 @Learath2 @deen How can I apply for community feature?
Avatar
chillerdragon BOT 2024-01-22 13:32:45Z
Write hand written letter to Dennis Felsing Müllerstraße 6 62621 Berlin And attach copy of passport
Avatar
leak?
Avatar
chillerdragon BOT 2024-01-22 13:34:42Z
opsi thought it’s private chat
Avatar
That is not my address
Avatar
chillerdragon BOT 2024-01-22 13:34:58Z
xd fun police
Avatar
Avatar
chillerdragon
Write hand written letter to Dennis Felsing Müllerstraße 6 62621 Berlin And attach copy of passport
PII data, please remove
Avatar
Avatar
deen
That is not my address
BlaiZephyr | meloƞ 2024-01-22 13:38:39Z
not yet, chiller knows you'll move to berlin in approx 5 years to exactly that adress!
Avatar
chillerdragon: can you even remove messages? kek
Avatar
it seems not XDD
Avatar
chillerdragon BOT 2024-01-22 14:36:29Z
No irc has no such feature. And I also didn’t add a fake remove. Well matrix has one. So I could delete my matrix messages idk what exactly your asking about :D Anyways everything posted in this channel stays in irc logs forever
Replying to @MilkeeyCat chillerdragon: can you even remove messages?
Avatar
Copying it here from #bugs It seems like you can't rotate quads anymore with ctrl+left click It works in 17.1.1 at least ctrl+click does nothing anymore
Avatar
Make GH issue
Avatar
It seems like you can't rotate quads anymore with ctrl+left click. It works in 17.1.1 at least. ctrl+click does nothing anymore.
15:07

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 affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar
Avatar
Pipou
Copying it here from #bugs It seems like you can't rotate quads anymore with ctrl+left click It works in 17.1.1 at least ctrl+click does nothing anymore
press r
15:17
i beblieve
Avatar
r and move mouse
15:21
again r to stop rotating
Avatar
Do I really have to write why I want that feature?
  • This would allow servers to have more dynamic IP addresses without favorites being lost
  • Fricking SSL support allowing servers to verify themselves, this prevents phishing attack by servers pretending to be another one.
  • Multiple servers under one domain, allowing interesting new architectures. This could make it possible for a server to send a player to a different one (with a smart loadbalancer)
related: #2851
Avatar
Avatar
louis
press r
Lol wtf
15:40
Ctrl click was simpler (edited)
Avatar
i've spent like 2 mins getting used to r, it's not bad
15:46
752e837 Update spanish.txt - n0Ketchp ddd3d25 Merge pull request #7844 from n0Ketchp/patch-16 - def-
Avatar
heh, are we going blender style? :D
15:49
r to rotate, g to move, s to scale
Avatar
Is it possible to unable the fact that quads align to one another?
15:53
Also, would it be possible to improve the performance when zooming out in the editor (make it as smooth and as fast as the in-game zoom)
Avatar
is it possible to make it visible if someone is spectateing you?
Avatar
BlaiZephyr | meloƞ 2024-01-22 16:06:44Z
what exactly
Avatar
if i select someone with shift for spectating show it for him that i spectate him
16:08
like in hearthstone
Avatar
Avatar
Pipou
Is it possible to unable the fact that quads align to one another?
Yes, it is in the settings menu, the last two options are about that feature
Avatar
Avatar
Pipou
Copying it here from #bugs It seems like you can't rotate quads anymore with ctrl+left click It works in 17.1.1 at least ctrl+click does nothing anymore
Is this considered as a bug?
16:17
Or was it simply replaced by "r"
Avatar
I have no idea, it's less practical @archimede67
Avatar
Avatar
BlaiZephyr | meloƞ
not yet, chiller knows you'll move to berlin in approx 5 years to exactly that adress!
berlin zip codes start with 1
Avatar
chillerdragon BOT 2024-01-22 16:21:55Z
heinrich casually doxing an entire city
16:22
Blender keybindings are pog
Replying to @Patiga r to rotate, g to move, s to scale
Avatar
ws-client BOT 2024-01-22 16:23:13Z
<MilkeeyCat> `https://yes.no`
16:23
<MilkeeyCat> whoops justatest
Avatar
chillerdragon BOT 2024-01-22 16:23:42Z
Filtered by GFW
Avatar
OpenGFW
Avatar
chillerdragon BOT 2024-01-22 16:23:55Z
Can’t reach in my censor country
Avatar
რილია 2024-01-22 16:23:57Z
hello there
Avatar
they already adapted
Avatar
რილია 2024-01-22 16:24:16Z
what will happen if i use for in a tick()
Avatar
chillerdragon BOT 2024-01-22 16:24:34Z
It will cause lags if it’s too slow
16:24
But computers are fast
Avatar
რილია 2024-01-22 16:25:00Z
what if the for takes 50 tick's to get don ?
Avatar
Avatar
fokkonaut
Hello @heinrich5991 @Learath2 @deen How can I apply for community feature?
by not pinging everyone
Avatar
there are lot of fors in tick
Avatar
chillerdragon BOT 2024-01-22 16:25:24Z
As lerato always says: clock cycles are free. Hardware gets better so write slower code!
Avatar
Avatar
Jupstar ✪
there are lot of fors in tick
რილია 2024-01-22 16:25:26Z
yeh i see
Avatar
chillerdragon BOT 2024-01-22 16:26:06Z
You need a big ass for to take 50 ticks even on a raspberry pi
16:26
Just don’t use while (true) axaxaxax
Avatar
Avatar
chillerdragon
As lerato always says: clock cycles are free. Hardware gets better so write slower code!
and use more ram
Avatar
რილია 2024-01-22 16:26:32Z
can you explain the process step in step ?
Avatar
even if u dont need it
Avatar
რილია 2024-01-22 16:26:49Z
how it will be done
16:27
it will make another tread for that for ?
Avatar
for (auto four = 4; four < 4 + 4; four += 4) { ... }
Avatar
chillerdragon BOT 2024-01-22 16:27:26Z
Just download more tame
16:27
Ram
16:27
It won’t
16:27
You have to do it your self
Avatar
Avatar
რილია
it will make another tread for that for ?
lmao
Avatar
რილია 2024-01-22 16:28:07Z
will it mess up the tick speed ?
Avatar
no
Avatar
chillerdragon BOT 2024-01-22 16:28:25Z
C++ is not web scale
16:28
If you turn it on it doesn’t scale right up
Avatar
it depends fully on your for loop
16:28
if u download four k teeporn then yes
Avatar
chillerdragon BOT 2024-01-22 16:29:04Z
Doing 100 iterations with simple operations inside is smooth af
Avatar
Avatar
chillerdragon
C++ is not web scale
it's so web scale
Avatar
Avatar
რილია
will it mess up the tick speed ?
just show your code
Avatar
Avatar
Jupstar ✪
just show your code
რილია 2024-01-22 16:29:30Z
no
Avatar
u always ask questions, i dont even know what u doing
Avatar
chillerdragon BOT 2024-01-22 16:29:34Z
Web scale would turn for loops into threads xaxaxax
Avatar
Avatar
რილია
no
why not
Avatar
Avatar
Jupstar ✪
why not
რილია 2024-01-22 16:30:01Z
the code is personal stuff
Avatar
Avatar
რილია
the code is personal stuff
yeah for sure
16:30
what r u working on?
Avatar
chillerdragon: i renamed those variables owo
Avatar
chillerdragon BOT 2024-01-22 16:30:41Z
he switched to client side hehe
Avatar
Avatar
Jupstar ✪
what r u working on?
რილია 2024-01-22 16:31:02Z
just wondering about for for a second
Avatar
chillerdragon BOT 2024-01-22 16:31:36Z
Cool thanks I’m on da phone will look tomorrow @MilkeeyCat
Avatar
i can't foresee your thoughts about using for tho using four fors inside each other can cause a for-ception. which is bad for performance
16:32
perFORmance
16:32
to be precise
Avatar
chillerdragon BOT 2024-01-22 16:33:00Z
foresee lmao
16:33
yeah just use recursion it’s faster
Avatar
რილია 2024-01-22 16:33:37Z
i will show my code
16:33
but don't suggest anything
Avatar
for four seconds
Avatar
რილია 2024-01-22 16:33:49Z
it's lazy
Avatar
chillerdragon BOT 2024-01-22 16:34:22Z
Lazy code pog
Avatar
რილია 2024-01-22 16:34:34Z
void CCharacter::ExplodingProcess() { if(m_ExplodingProcessStartTick == -1) { m_ExplodingProcessStartTick = Server()->Tick(); for(int i; (i <= 16) && m_ExplodingProcessStartTick*(16*10) >= Server()->Tick();) { if((i*10)+m_ExplodingProcessStartTick == Server()->Tick()) { GameServer()->SendEmoticon(m_pPlayer->GetCID(), i, -1); i++; } } } return; }
Avatar
chillerdragon BOT 2024-01-22 16:34:59Z
0fps code
Avatar
well 1. you dont init int i
16:35
that's already a bug
Avatar
chillerdragon BOT 2024-01-22 16:35:19Z
Oh true
Avatar
რილია 2024-01-22 16:35:22Z
i couldn't test it, cus it's crash the sv, but not shuting it down
Avatar
chillerdragon BOT 2024-01-22 16:35:22Z
loool
16:36
Also where did the i++ go?
Avatar
bro i am too stupid to read your code xD
Avatar
რილია 2024-01-22 16:36:04Z
i know this loop took long to be done
Avatar
chillerdragon BOT 2024-01-22 16:36:07Z
Is this chatgpt
Avatar
Avatar
Jupstar ✪
bro i am too stupid to read your code xD
git gud santatrollet
Avatar
it looks like u only increase i under a certain condition
16:36
that sounds pretty scarry
Avatar
chillerdragon BOT 2024-01-22 16:36:43Z
Yes
16:36
And the condition involves i
Avatar
what if that condition is never true?
Avatar
chillerdragon BOT 2024-01-22 16:37:14Z
It goes to 0 fps
Avatar
რილია 2024-01-22 16:37:27Z
i wanted to cycle throgh all the emotes every 10 tick's that's all
16:38
if the tee is in exploding process
16:39
and the 16 is the maximum emoteicons i guss
16:40
15 maybe
Avatar
okay first things first: this code should never take longer than 1 tick to run (in reality it will only take a tiny fraction of a tick), assuming that it is bug-free
16:41
are you open to suggestions now, or was that the answer you were looking for?
Avatar
Hi everyone, I've been told by Avolicious that I'd need to apply to be part of the newest community feature (and suggested to open an issue). I think the community feature is part of this issue #5654. What do we have to provide to be considered as trusted and part of that newest feature ?
Avatar
Avatar
Patiga
okay first things first: this code should never take longer than 1 tick to run (in reality it will only take a tiny fraction of a tick), assuming that it is bug-free
რილია 2024-01-22 16:45:25Z
but what if it takes more than 1 tick to be done, yes im open
16:45
my fucking masages don't get sent
Avatar
Avatar
Patiga
okay first things first: this code should never take longer than 1 tick to run (in reality it will only take a tiny fraction of a tick), assuming that it is bug-free
რილია 2024-01-22 16:47:41Z
if it don't take more than 1 tick it's like every other statements in the tick, am i right ?
Avatar
Avatar
რილია
but what if it takes more than 1 tick to be done, yes im open
then there is a bug, causing the loop to last much much longer than it should
16:49
like jupstar already said, the variable i is not set to any number, causing undefined behavior
16:49
but honestly I also struggle to understand the code at all
Avatar
რილია 2024-01-22 16:50:17Z
the code is lazy
16:50
like me
16:51
can you involve tick in your for() ? (edited)
16:52
ah man i get it now
16:52
you can't, cus you never gonna go to the next tick in the for (edited)
16:53
thanks ❤️
Avatar
the problem is that it doesn't seem to make sense to me @რილია assuming that CCharacter::ExplodingProcess is called every tick, and m_ExplodingProcessStartTick is set externally to the tick when the tee explodes, you could simply do: 1. calculate tick_duration = server_tick - current_tick, that is the tick duration since the exploding started 2. do a if tick_duration < 150 { return; } to make the animation last only 3 seconds 3. emoji = tick_duration % 16 4. send that emoji I don't think you need a for loop for this
Avatar
Avatar
რილია
you can't, cus you never gonna go to the next tick in the for (edited)
exactly :)
Avatar
Avatar
Patiga
the problem is that it doesn't seem to make sense to me @რილია assuming that CCharacter::ExplodingProcess is called every tick, and m_ExplodingProcessStartTick is set externally to the tick when the tee explodes, you could simply do: 1. calculate tick_duration = server_tick - current_tick, that is the tick duration since the exploding started 2. do a if tick_duration < 150 { return; } to make the animation last only 3 seconds 3. emoji = tick_duration % 16 4. send that emoji I don't think you need a for loop for this
რილია 2024-01-22 16:55:28Z
yeh this is smart and also fast
heartw 1
Avatar
at 2., it should be > 150, not < 150
Avatar
Avatar
რილია
and the 16 is the maximum emoteicons i guss
There is NUM_EMOTICONS, which is 15.
heartw 1
Avatar
1a652ab Add 88€ funding for USA3 by YupHio - def-
Avatar
If you had countries selected, then press None => then you can't select countries anymore, but the countries you selected previously are still part of the filter process. That easily leads to 0 servers, without intuitively understanding why it happens
Avatar
can i safely assume that this is a fake server now?
17:49
37.221.67.9:8303
Avatar
37.221.67.9:8303 is not a DDNet or KoG server.
Avatar
@Avolicious
Avatar
there is another TUR #1 server with different ip
17:50
@heinrich5991 too ^
17:51
195.85.201.173:8303
17:51
(real server)
Avatar
195.85.201.173:8303 appears to be a KoG server. DDNet and KoG aren't affiliated. Join their discord and ask for help there instead. https://discord.kog.tw/
Avatar
Yeah, its fake
Avatar
bb = big ban
Avatar
ban backwards = nab
18:04
@Mr.Gh0s7 btw, now that you are here. Is your new fng server still a thing?
18:04
has oreo ever played it? xd
Avatar
dfng?
Avatar
i dunno how you called it
Avatar
Avatar
Jupstar ✪
@Mr.Gh0s7 btw, now that you are here. Is your new fng server still a thing?
I mean it's up but we (me and zogtib) kinda stopped developing it xD
Avatar
ok xd
Avatar
I think oreo has played it though :)
Avatar
Avatar
Mr.Gh0s7
I mean it's up but we (me and zogtib) kinda stopped developing it xD
It's kinda like ALIVE servers rn
18:08
😬
Avatar
the main reason i lost interest in dev fng is, that i want more client support
18:09
end of 2024 is the time for fng
Avatar
yeah same
18:11
dd-pg is the future!
Avatar
Avatar
Mr.Gh0s7
dd-pg is the future!
you have a good taste 😏
Avatar
რილია 2024-01-22 19:06:28Z
https://drive.google.com/file/d/1E_9cr3Kj4wk_3GKM-4wjl_SSzByNg51h/view?usp=drive_link can someone explain this, i tried to compile my source on a linux server as always
19:08
and why downloading and building the rust packages take ages ?
Avatar
Avatar
რილია
and why downloading and building the rust packages take ages ?
you have network problem maybe (edited)
Avatar
რილია 2024-01-22 19:08:37Z
fucking rust
Avatar
@BlaiZephyr | meloƞ and I wrote an SQL query to figure out how many new players started in 2023: SELECT name, total_points, t FROM ( SELECT r.name, MIN(r.timestamp) AS t, SUM(m.points) as total_points FROM race AS r JOIN maps AS m ON r.map = m.map GROUP BY name ) AS subquery WHERE t BETWEEN '2023-01-01' AND '2023-12-31' AND total_points > 50; Use it here: https://db.ddstats.org/ It assumes that someone is only a new player if their first finish was in 2023 and they have collected more than 50 points in total Unless there is an error in this query, this results in 24273 new players. Obviously this excludes people who started playing on existing account names and it definitely includes alt names (edited)
Avatar
Avatar
რილია
https://drive.google.com/file/d/1E_9cr3Kj4wk_3GKM-4wjl_SSzByNg51h/view?usp=drive_link can someone explain this, i tried to compile my source on a linux server as always
რილია 2024-01-22 19:10:26Z
why i never get this before, i didn't changed anything on those files
Avatar
Avatar
Scrumplex
@BlaiZephyr | meloƞ and I wrote an SQL query to figure out how many new players started in 2023: SELECT name, total_points, t FROM ( SELECT r.name, MIN(r.timestamp) AS t, SUM(m.points) as total_points FROM race AS r JOIN maps AS m ON r.map = m.map GROUP BY name ) AS subquery WHERE t BETWEEN '2023-01-01' AND '2023-12-31' AND total_points > 50; Use it here: https://db.ddstats.org/ It assumes that someone is only a new player if their first finish was in 2023 and they have collected more than 50 points in total Unless there is an error in this query, this results in 24273 new players. Obviously this excludes people who started playing on existing account names and it definitely includes alt names (edited)
BlaiZephyr | meloƞ 2024-01-22 19:11:33Z
only 520 - considering the steam release - feels low af
Avatar
Avatar
BlaiZephyr | meloƞ
only 520 - considering the steam release - feels low af
wdym. This is just new players in 2023. Steam release was in 2020 👀 (edited)
Avatar
BlaiZephyr | meloƞ 2024-01-22 19:11:57Z
but i guess we can assume people not to reach 50 points before quitting if they dont like the game
Avatar
sounds like skill isssue
Avatar
BlaiZephyr | meloƞ 2024-01-22 19:13:31Z
well steam has over 30 million players - over 6 million active ones: https://www.statista.com/statistics/1330211/steam-peak-concurrent-players/ only 500 feels low at that point, also considering ddrace beeing a good rated free2play game (edited)
In January 2023, gaming platform and digital storefront Steam reported 33 million peak concurrent players, up from 30 million peak concurrent players in the preceding year.
Avatar
maybe the SQL is actually wrong 💀
19:16
found the issue
19:16
there is a rogue WHERE name
19:18
new number is 24273 in 2023 (edited)
Avatar
Avatar
Scrumplex
new number is 24273 in 2023 (edited)
რილია 2024-01-22 19:18:37Z
yes
Avatar
it seems rather high tbh
19:19
but considering that there are 200.000 unique usernames it might be realistic
Avatar
რილია 2024-01-22 19:19:52Z
how many names is there ?
19:20
all the names who ever played ddnet
Avatar
oh sorry
19:20
the 200.000 was unique names in 2023
19:21
there are 1.153.219 different usernames in the whole database select count(distinct Name) from race (edited)
Avatar
BlaiZephyr | meloƞ 2024-01-22 19:21:54Z
1.138.483 is the number i get ? :D
Avatar
Avatar
Scrumplex
there are 1.153.219 different usernames in the whole database select count(distinct Name) from race (edited)
რილია 2024-01-22 19:22:16Z
how this is not wrong ? must be more than this
Avatar
Avatar
BlaiZephyr | meloƞ
1.138.483 is the number i get ? :D
19:22
now it's cached for me tho (edited)
19:23
adding spaces to query to bypass cache results in the same number each time
Avatar
Avatar
რილია
how this is not wrong ? must be more than this
რილია 2024-01-22 19:24:05Z
the number is can't cover even the chinese people
Avatar
Avatar
რილია
the number is can't cover even the chinese people
why not? :O
Avatar
რილია 2024-01-22 19:24:39Z
there are too many players and they have unique names ?
Avatar
BlaiZephyr | meloƞ 2024-01-22 19:24:44Z
hmm..
Avatar
Avatar
BlaiZephyr | meloƞ
hmm..
oh i just count all players
19:25
no matter which maps they played
Avatar
BlaiZephyr | meloƞ 2024-01-22 19:26:14Z
ah well then yeah you get 1153219
Avatar
რილია 2024-01-22 19:26:25Z
maybe it count the players with standard names
Avatar
so there are 20000 players who only played fun or 0p race maps
Avatar
Avatar
რილია
https://drive.google.com/file/d/1E_9cr3Kj4wk_3GKM-4wjl_SSzByNg51h/view?usp=drive_link can someone explain this, i tried to compile my source on a linux server as always
რილია 2024-01-22 19:27:24Z
someone heeelp
Avatar
Avatar
რილია
someone heeelp
19:27
you need to share the file as public
Avatar
Avatar
Scrumplex
Click to see attachment 🖼️
რილია 2024-01-22 19:28:14Z
hah
Avatar
Avatar
BlaiZephyr | meloƞ
but i guess we can assume people not to reach 50 points before quitting if they dont like the game
that would take 10-50 novices
Avatar
Avatar
Scrumplex
Click to see attachment 🖼️
რილია 2024-01-22 19:28:59Z
can you see it now ?
Avatar
Avatar
cyberFighter
that would take 10-50 novices
BlaiZephyr | meloƞ 2024-01-22 19:29:06Z
or one 5* insane - ez
Avatar
50 points is really a lot if u are new
Avatar
Avatar
რილია
can you see it now ?
yup. How did you install rust?
Avatar
Avatar
cyberFighter
50 points is really a lot if u are new
yes. But if someone just tries the game once they probably wont have 50 points
Avatar
it would probably take them a bit for 50 even if they like it imo
19:30
or if they look at other modes too
Avatar
Avatar
Scrumplex
yup. How did you install rust?
რილია 2024-01-22 19:30:43Z
i just did regular cmake stuff, like cmake -B build -C . and make .
Avatar
but its fine
19:30
lul
19:31
imagine some gigachad getting 50 points and THEN leaving
Avatar
there is a problem with the sql query though. Anyone who starts out near the end of the year and doesnt make it to 50 points is forever excluded from this
Avatar
why does that happen
Avatar
If you use windowed fullscreen you cannot use another screen except screen 0. If you do, a second window which does not update is rendered on the choosen screen and the game is rendered on screen 0 normally. Happens with OpenGL and with Vulkan. Happens with Windows 10. Can anyone confirm it also happens on Linux/macOS?
Avatar
another screen as in like another monitor?
19:33
i could try it on linux
Avatar
yeah, other monitor in the graphics settings
Avatar
I can try on windows 11
19:36
19:37
when switch to second monitor it's change to windowed mode and resolution is still follow my first monitor that doesn't support on my second one
Avatar
I meant "windowed borderless" sorry
Avatar
Avatar
cyberFighter
why does that happen
oh nvm actually
Avatar
I guess the fix would be the same here
Avatar
oh okay let me try again
Avatar
Avatar
რილია
i just did regular cmake stuff, like cmake -B build -C . and make .
yeah but dont you need to download and install rust first?
Avatar
Would probably work if we switch to windowed first and then switch back after changing the screen
Avatar
Avatar
Robyt3
Would probably work if we switch to windowed first and then switch back after changing the screen
yeah it's fix it
19:39
cuz when i manually put to window fullscreen on second one it's fine for me
Avatar
Avatar
Scrumplex
yeah but dont you need to download and install rust first?
რილია 2024-01-22 19:40:04Z
no, it get installed with cmake, i compiled my source about 6 times, this is the first time i getting this, and i never changed anything in *.rs files
Avatar
Avatar
Vexar
cuz when i manually put to window fullscreen on second one it's fine for me
If you start with Windowed Borderless and not screen 0 then it's still broken though
Avatar
Avatar
Robyt3
If you start with Windowed Borderless and not screen 0 then it's still broken though
no it's fine with windowed borderless on screen 1
Avatar
Thanks for testing, maybe it's a me-problem or specific to Windows 10 then
19:42
This issue also happens only to me for some reason #6578
Avatar
After restarting the client from within the client itself (via auto-updater or restart command added in #6577), the game window is entirely missing with Fullscreen mode: Windowed or Windowed Fullsc...
Avatar
maybe but it would be nice to when switch to other screen it set to highest resolution
Avatar
it's happened to me too but In my own custom client so I had to replace restart with quit after update done
19:44
And there is also a bug
19:44
enter text in chat for example a then enter b
Avatar
Avatar
Vexar
maybe but it would be nice to when switch to other screen it set to highest resolution
Seems like this fixes the issue for me. When I set the correct resultion windowed borderless also works on other screens.
Avatar
and when you press up it's show b but press escape button on your keyboard and again open chat and press up it's show a instead of b
Avatar
Avatar
Robyt3
Seems like this fixes the issue for me. When I set the correct resultion windowed borderless also works on other screens.
in my case my monitor highest resolution isn't same so it's goes out of monitor on second monitor
Avatar
Avatar
Vexar
and when you press up it's show b but press escape button on your keyboard and again open chat and press up it's show a instead of b
Not sure I understand correctly, do you use cl_chat_reset 0?
Avatar
Avatar
Robyt3
Not sure I understand correctly, do you use cl_chat_reset 0?
oh it's fixed on DDNet 18.0
Avatar
Autorule doesn't work anymore
Avatar
Autorule doesn't work. I tried to change it multiple times but it says "none" (the rule file of the same name as the image contains rules). I tried the same thing on 17.1 and autorule works there.
Avatar
shell_register_application: Error opening registry key: The system cannot find the specified file. client: Failed to register application
Avatar
i always thought about it more as a meme, but at some points i would personally find that useful, its just a small QoL as you can just copy paste, but i'd find it useful in some scenarios - espacially because i share a lot of links in interactive Discord (ddnet)
Avatar
Instead of cleaning the countries/types filters based on all available communities' countries/types, only consider the countries/types of currently selected communities. Ensure countries/types are always cleaned when updating the server browser filter in the UI. This fixes that countries/types which are not available for the selected communities were still affecting the server filtering, causing no servers to be shown in some cases. Closes #7847.

Checklist

  • [X] Tested the change ...
Avatar
e466ef5 Version 18.0 - def- d093c31 Update translations for upcoming DDNet 18.0 - def- 55e82e2 Update German translations - def- 8a5d164 Fix multiple editor undo/redo issues - archimede67 ed7b013 Update Swedish translations for 18.0 - furo321 f612688 Update russian.txt - gerdoe-jr 49ffdfe Update brazilian_portuguese.txt - rffontenelle e633bdb Update traditional_chinese.txt - By622 68a1bbb Update simplified_chinese.txt - By622 bda0855 Fix warning title being uninitialized in some cases - Robyt3 c3835dc Divide /tp into /tpxy and /tpto - gerdoe-jr c6537e7 /tpto -> /tp and /teleport - gerdoe-jr ce7060e Fix style - def- 6888f75 Update config_variables.h - k-i-o 0aa2e9f Update spanish.txt - n0Ketchp 0cba5c5 Fix countries/types filters excluding all servers - Robyt3 a5c8941 Version 18.0.1 - def-
21:53
Avatar
Did anyone try to add ImGui to ddnet? Cuz default GUI sucks
Avatar
Avatar
angular
Did anyone try to add ImGui to ddnet? Cuz default GUI sucks
and u think imgui is better???
22:56
oh yea i discovered u can plug any stdio compliant language server into qt creator
22:56
so i can do like this
22:57
with build in syntax highlighting and custom build steps you can do quite a lot
22:58
no formatting for rust tho the only format plugins that exist rn use astyle, clang-format and uncrustify
Exported 362 message(s)