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-03-13 00:00:00Z and 2023-03-14 00:00:00Z
Avatar
Avatar
Jupstar ✪
What's your Mesa version and what's your hardware? But just look here https://wiki.ddnet.org/wiki/GFX_Troubleshooting
I'm not sure what's my Mesa version, Steam loads Vulkan, so I guess it's that, and I use an i5-3230M (it had a dedicaded GPU, but it fried)
00:34
I'll take a look in the wiki
Avatar
Oh, alright, it worked, thank you so much!
10:25
Bombay with ur antibot issou
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
must have generated code
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
in it companies for example in c# they accept warnings as errors
Avatar
yeah but thats I.T.
15:27
this is just some niche online game
Avatar
Avatar
Gewinum
in it companies for example in c# they accept warnings as errors
lol yeah its a meme
15:40
in my rust code i have all warns as errors, and i activate even more warnings
15:41
so that they are caught (edited)
Avatar
Avatar
Gewinum
in it companies for example in c# they accept warnings as errors
don't ask ryozuki about his rust projects
Avatar
Avatar
Ryozuki
so that they are caught (edited)
hide & seek cheats, funnier to spot warnings when compiler do not tell u
Avatar
Avatar
Voxel
wtf did i do LOLL
I think I remember how I reproduced this in my code, but it's really bad and suboptimal, so let me just redo it all really quickly.
Avatar
Avatar
Jupstar ✪
So u didn't do any Client modifications?
I misread that. I did modify the client, but it was for a completely different cause
19:00
@Jupstar ✪ this looks pog
19:01
who has a spare pcie4 tho
Avatar
It looks like GPU, but with M2 ssd's for video mem lol
Avatar
Okay, so I recreated my very poor attempt at force testing if a packet was sending without having to reinstall Wireshark on my PC again.
19:09
So what I thought was a good idea was overriding the killfeed and replacing the name with a random number. And so I sent out a random number through a packet, but then realized through testing that strcopy doesn't work with ints. So then I found snprintf (I didn't know sprintf would have also worked), and tried that.
Avatar
The result is that it works(?) but the number is psudeo-random. Two images taken after closing and reopening the custom client. (edited)
Avatar
You are not setting Kill.m_RandomNumber anywhere?
19:12
So the value will be undefined, basically whatever value was previously in the memory location of that object
19:13
The Kill.m_RandomNumber value you set in the upper if is unused, because the Kill object only exists within the scope of that if
19:14
For your KillMsgPlus you need to figure out which existing kill message it's supposed to apply to
Avatar
Avatar
heinrich5991
decide which to send first (probably the extension). when it arrives, store its data in a variable, and only take the action once you get the other packet
I thought that the two packets could interact with each other, if one was sent and then the other (referring to this message, with an older attempt at the PR)
Avatar
Not sure if you can assume that packets will arrive in the same order as they are sent
19:15
If you can then the issue is only that you store the value from that packet in a local variable only
Avatar
u should use dbg_print too, or whathever the name it has
Avatar
Simplest solution would be to make Kill static
19:17
static CKillMsg s_Kill; add this above both ifs, then use s_Kill instead of the other two local Kill variables
19:17
Not sure how to handle the case that the first message doesn't arrive though
19:18
In that case the new value (m_RandomNumber) would again be undefined
19:18
Or rather, it would be the previous value when it was present
Avatar
I'll try that (edited)
Avatar
Avatar
Robyt3
Not sure how to handle the case that the first message doesn't arrive though
I guess you have to set m_RandomNumber to a know value that marks it as undefined after you add the kill message to the array with m_aKillmsgs[m_KillmsgCurrent] = Kill;
Avatar
Okay, so it IS sending and reading, that's all that matters. I just think this tiny thing is a bit funny
19:34
Oh, that code snippet is unrelated (edited)
Avatar
Would be easier to add some dbg_msgs if you just want to check if the message is received
Avatar
Yeah, I'll do that
Avatar
Fwiw it'd be quite absurd to not receive a message sent from the server, that part definitely works
Avatar
quick question: Storage()->GetBinaryPath(PLAT_SERVER_EXEC, aBuf, sizeof(aBuf)); m_ServerProcess.Process = shell_execute(aBuf); like this is the code already implemented to start a server. i want to add a command like sv_name testmap that the server will start with a map WITHOUT USING configfile Is there a way to append the command inline or to execute a command from client to started server? I think only first idea will work because i can add information by startup but not after it because its get runned external, or? (edited)
Avatar
@Jupstar ✪ With which distribution did you get more fps in linux?
22:58
greenthing
Exported 48 message(s)