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-27 00:00:00Z and 2024-03-28 00:00:00Z
Avatar
Avatar
Chairn
he's actually my brother but he's no longer active on tw (but still alive :))
Ah :)
Avatar
Avatar
Chairn
why you looking for him ? ts server is probably outdated but i think it's still running
Yes, that's what I wanted to ask. The TS server is offline (for quite awhile too I believe)
Avatar
Provide a convenient way to install and update ddnet on windows.

Checklist

!Screenshot
  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [x] 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 in...
Avatar
chillerdragon BOT 2024-03-27 02:54:29Z
Which one? I made like x versions of that game. None of them are interesting btw. You control an ascii hashtag left and right…
Replying to @MilkeeyCat chillerdragon: how to play chidraqul xDDDD
Avatar
chillerdragon: one made with rust doesn't work for me
06:01
When i connect to server and press a it just moves to left all the time
06:02
And one in c++ i had to include different header file and add other lib to linker to make it work xd
07:55
@TsFreddie r u gen z
Avatar
i'm millennials i think
07:56
chinese counts generation a bit differently but I think i'm on the edge of millennials
Avatar
public bool -> lowkey fax 😆
07:57
707240e add windows installation with scoop - integer2bit 1147d28 Merge pull request #8157 from integer2bit/master - def-
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
veri good
Avatar
The Lehmer random number generator (named after D. H. Lehmer), sometimes also referred to as the Park–Miller random number generator (after Stephen K. Park and Keith W. Miller), is a type of linear congruential generator (LCG) that operates in multiplicative group of integers modulo n. The general formula is Xk+1=a⋅Xkmodm,{\displaystyle X_{k+1}...
Avatar
Avatar
Ryozuki
@TsFreddie r u gen z
bruh I thought I was still in #off-topic
Avatar
LCGs are usually badly behaved. Is this one any different? (edited)
Avatar
@Learath2 idk but found it interesting how simple it is
Avatar
Avatar
Ryozuki
@Learath2 idk but found it interesting how simple it is
All LCGs are rather simple. The only difference this has seems to be that c = 0
08:32
It is quite bizarre how seemingly unpredictable and random it becomes though yeah
Avatar
Given the dynamic nature of the area, it is difficult for nonspecialists to make decisions about what generator to use. "Give me something I can understand, implement and port... it needn't be state-of-the-art, just make sure it's reasonably good and efficient." Our article and the associated minimal standard generator was an attempt to respond to this request. Five years later, we see no need to alter our response other than to suggest the use of the multiplier a = 48271 in place of 16807.
08:34
nice quote
08:36
uint32_t lcg_parkmiller(uint32_t *state) { return *state = (uint64_t)*state * 48271 % 0x7fffffff; }
Avatar
Avatar
Ryozuki
Given the dynamic nature of the area, it is difficult for nonspecialists to make decisions about what generator to use. "Give me something I can understand, implement and port... it needn't be state-of-the-art, just make sure it's reasonably good and efficient." Our article and the associated minimal standard generator was an attempt to respond to this request. Five years later, we see no need to alter our response other than to suggest the use of the multiplier a = 48271 in place of 16807.
Xorshift is almost as simple, much better behaved and better performant
Avatar
u can avoid the div
08:38
uint32_t lcg_parkmiller(uint32_t *state) { uint64_t product = (uint64_t)*state * 48271; uint32_t x = (product & 0x7fffffff) + (product >> 31); x = (x & 0x7fffffff) + (x >> 31); return *state = x; }
Avatar
Yeah without the div it probably performs about the same
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
Avatar
Anything better than an LCG or xorshift is usually far too complex (PCG) or far too heavy (Arc4Random, Mersenne Twister, Fortuna)
Avatar
რილია 2024-03-27 09:29:33Z
C:/msys64/home/Melanin_m/SkyBlock/ddnet_SkyBlock/src/engine/server/server.cpp: In member function 'void CServer::UpdateDebugDummies(bool)': C:/msys64/home/Melanin_m/SkyBlock/ddnet_SkyBlock/src/engine/server/server.cpp:2690:39: error: 'class IGameServer' has no member named 'm_apPlayers' 2690 | GameServer()->m_apPlayers[ClientID]->m_IsDebugDummy = true;
Avatar
Avatar
რილია
C:/msys64/home/Melanin_m/SkyBlock/ddnet_SkyBlock/src/engine/server/server.cpp: In member function 'void CServer::UpdateDebugDummies(bool)': C:/msys64/home/Melanin_m/SkyBlock/ddnet_SkyBlock/src/engine/server/server.cpp:2690:39: error: 'class IGameServer' has no member named 'm_apPlayers' 2690 | GameServer()->m_apPlayers[ClientID]->m_IsDebugDummy = true;
რილია 2024-03-27 09:30:03Z
why i can't access to GameServer()->m_apPlayers[ClientID] in server.cpp ? (edited)
09:31
i want to add some bots to my server and update they inputs accordingly, but first i want to detect which one is debug dummy (edited)
Avatar
if it’s a private or protected member you cannot access it
09:36
mark it as public or use setters/getters
Avatar
რილია 2024-03-27 09:37:40Z
it's public
09:38
i wonder if it's abstract thing ?
09:39
the server.cpp in total is weird for me
Avatar
Nonono
09:42
The engine server doesn't have access to the internals of the gameserver
09:42
It accesses it through an interface, an abstract base class
09:43
Notice how it says IGameServer not CGameContext
09:45
If you need to access stuff from CGameContext in the engine there are two options. Either your code doesn't belong in the engine or you need to add a getter method in IGameServer and implement it in CGameContext
Avatar
Avatar
Learath2
If you need to access stuff from CGameContext in the engine there are two options. Either your code doesn't belong in the engine or you need to add a getter method in IGameServer and implement it in CGameContext
რილია 2024-03-27 09:47:17Z
can you give me an example of a getter in the code so i can mimic it ?
Avatar
Avatar
რილია
can you give me an example of a getter in the code so i can mimic it ?
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
რილია 2024-03-27 09:50:32Z
thank you
Avatar
The interface should be as minimal as possible. So if your code truly doesnt belong in the engine, just move it out
09:51
But I guess you just need a IsPlayerDebugDummy there. That should be fine
Avatar
Avatar
Learath2
The interface should be as minimal as possible. So if your code truly doesnt belong in the engine, just move it out
რილია 2024-03-27 09:51:24Z
i just want to detect which player is a debug dummy then i can control them
Avatar
quick c++ question. in what order will these variables be initialized? c++ class Foo { int a = 0, b = 0, c = 0; Foo() : a(c + 8), b(a + 3), c(b - 2) {} }
10:32
from outer to inner or the other way around? (edited)
Avatar
in the order they appear in the class iirc
10:33
so: int b = 0, a = 0, c = 0; this would change the order, for example
10:34
I think it's ridiculous it works that way tbh (edited)
Avatar
ah lol thx
Avatar
In the following code, when the ctor of X is called will the ctor of A or B be called first? Does the order in which they are placed in the body of the class control this? If somebody can provide a
Avatar
clangd was throwing warnings in my face
Avatar
I think this is what you're asking?
Avatar
Just so y'all know: Every time you push code, you appear on this real-time wall at the @github HQ.
poggers2 1
11:45
cool
11:46
haha germany is kickin
Avatar
Avatar
Peter0x44
I think it's ridiculous it works that way tbh (edited)
What way do you think it should work?
Avatar
I'm not sure but this is a pretty common "wtf" moment when most people learn
11:52
At least it was for me
Avatar
It is not very obvious, but I fail to see any other option
Avatar
usually compilers warn if your member initialization order doesn't match the order in the class
👍 1
Avatar
where does the menu code freeze the input upon opening a menu? ive been searching for half an hour
13:39
it seems to only set the input playerflags to PLAYERFLAG_IN_MENU but doing so manually doesnt seem to work
Avatar
unrelated: 2024-03-27 14:49:50 I chat: *** 'Teero' entered and joined the game 2024-03-27 14:49:50 I ddnet: cid=0 version=18010 2024-03-27 14:49:50 I sql: [3] load player data done on read database 0 2024-03-27 14:49:50 I hack: bot detected, cid=0 Chillerdragon: why is that still in there hahahaha xDDD
13:51
xd sure chillerbot.png is lyfe
Avatar
Hello, can i suggest something?
Avatar
Avatar
_,-°.°-,_
Hello, can i suggest something?
Can we make a skin whitelist (only a specified player/players can equip a skin)?
Avatar
no
✅ 1
Avatar
Hello, I also a suggestion as well
14:31
Add accounts
Avatar
Avatar
MilkeeyCat
Hello, I also a suggestion as well
i was about to
14:31
man
14:31
you troll
Avatar
too bad 😏
Avatar
Avatar
Teero
where does the menu code freeze the input upon opening a menu? ive been searching for half an hour
i figured it out
Avatar
holly hell, i never knew this ✗ sign shows whether the repo has uncommited changes, I always thought it's just for the look kek (edited)
owo 1
Avatar
the people expecting timeouts when connecting dummy, ger10 just seems to unwhitelist people for some reason - can some admin check?
Avatar
Avatar
MilkeeyCat
holly hell, i never knew this ✗ sign shows whether the repo has uncommited changes, I always thought it's just for the look kek (edited)
return nuts
17:49
print("gottem")
Avatar
@heinrich5991 i was trying to download this map from the collection but i get a 403 error, maybe you could help me? please xD: https://www.heinrich5991.de/teeworlds/maps/maps/Hot%20Beach_f09f84ce00ce67b216b6e122a75fdbbf59803f4266f18477be693907b8a100d0.map
Avatar
Avatar
meloƞ
the people expecting timeouts when connecting dummy, ger10 just seems to unwhitelist people for some reason - can some admin check?
@Davide
Avatar
Avatar
meloƞ
the people expecting timeouts when connecting dummy, ger10 just seems to unwhitelist people for some reason - can some admin check?
Did you use the link or joined just via the game? (by waiting 10 seconds on the connecting tab the first time) (edited)
Avatar
connecting the dummy gave me connection issues as if i had 800 ping (without actually displaying connection issues), but will display connection issues after approx 60sec. this happened to a few people already - visiting ger10.ddnet.org while staying on the server fixed it for everyone for now (edited)
Avatar
Okay, understood
18:08
Should be fixed now
Avatar
love ya
Avatar
Avatar
+KZ
@heinrich5991 i was trying to download this map from the collection but i get a 403 error, maybe you could help me? please xD: https://www.heinrich5991.de/teeworlds/maps/maps/Hot%20Beach_f09f84ce00ce67b216b6e122a75fdbbf59803f4266f18477be693907b8a100d0.map
Seems like the request is being blocked by some sort of firewall, maybe modsecurity or anything similar
Avatar
Why do the country selectors for servers always "reset" when launching the game?
Avatar
Avatar
Davide
Seems like the request is being blocked by some sort of firewall, maybe modsecurity or anything similar
Yeah its kinda weird
Avatar
Reported by APFFF on Discord:
Why do the country selectors for servers always "reset" when launching the game?
It doesn't always reset though. Seems like sometimes the selection is kept and sometimes it is changed mostly arbitrarily. Doesn't seem to affect the community filter itself.
Avatar
Avatar
Teero
@Patiga are there any examples on how do place some blocks with twmap? (edited)
I was not reachable at the time, are you talking about Rust or Python twmap? :)
Avatar
Avatar
Patiga
I was not reachable at the time, are you talking about Rust or Python twmap? :)
When twmap in new language? justatest
Avatar
In gleam for example
Avatar
the link to the datafile doc refers to an incorrect URL at https://ddnet.org/libtw2-doc/map/
21:00
shouldn't be map/datafile
Avatar
Avatar
Patiga
I was not reachable at the time, are you talking about Rust or Python twmap? :)
Rust. But it's already solved <3
heartw 1
Avatar
where is the boundery between cheating and dummy commands? your dummy automatcly watching you and hits you in time periods. he can mirror your movements. so what exactly sets away dummy commands from botting?
Avatar
chillerdragon BOT 2024-03-27 23:17:45Z
That’s skill issue on my side
Replying to @MilkeeyCat When i connect to server and press a it just moves to left all the time
23:18
@Teero: xd
Exported 109 message(s)