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-16 00:00:00Z and 2023-03-17 00:00:00Z
Avatar
Avatar
heinrich5991
m_VictimRenderInfo is probably an array or a pointer? e.g. if it's an array, you need to index it first, like m_VictimRenderInfo[1].m_CustomColoredSkin
I thought I did index. Or, am I also doing that wrong? Basically I have an outside buffer to store each tee skin that will be packaged inside the kill message. c++ CKillMsg Kill; ... Kill.m_VictimID = pMsg->m_Victim; if(Kill.m_VictimID >= 0 && Kill.m_VictimID < MAX_CLIENTS) { Kill.m_VictimTeam = m_pClient->m_aClients[Kill.m_VictimID].m_Team; Kill.m_VictimDDTeam = m_pClient->m_Teams.Team(Kill.m_VictimID); str_copy(Kill.m_aVictimName, m_pClient->m_aClients[Kill.m_VictimID].m_aName); if(m_Sendable = 0) { m_aVictimSkinBuffer[m_VictimSkinCurrent + 1] = m_pClient->m_aClients[Kill.m_VictimID].m_RenderInfo; m_VictimSkinCurrent = (m_VictimSkinCurrent + 1) % (MAX_KILLMSGTEAM - 1); } else m_aVictimSkinBuffer[0] = m_pClient->m_aClients[Kill.m_VictimID].m_RenderInfo; } (edited)
03:59
m_Sendable is another packet, which determines the actions of each packet delivery. If m_Sendable is 0, it's in a write state that only fills in all the buffers. If m_Sendable is 1, then it's in a read state, which makes sure the first item in the buffer is the person who died / gets strong. It will package the buffer, alongside the size of the team, or the maximum allowed in the killfeed buffer.
04:00
Wait, did I not- NO I FORGOT TO IMPLIMENT THE BUFFER
Avatar
do you still get a compiler error?
04:04
if so, it would be nice if you could also copy-paste that
Avatar
I want to fix this buffer first, then test to see if that was the problem.
04:04
There was meant to be a buffer outside of CKillMsg Kill, but currently it's writing to nothing.
Avatar
I don't understand what buffer means in this context
Avatar
In the CKillMessages class, outside of struct CKillMsg, I made another global array to store tee skins for each team member that died. c++ CKillMsg m_aKillmsgs[MAX_KILLMSGS]; int m_KillmsgCurrent; CTeeRenderInfo m_aVictimSkinBuffer[MAX_KILLMSGTEAM]; int m_VictimSkinCurrent;
Avatar
Avatar
heinrich5991
if so, it would be nice if you could also copy-paste that
Yeah, there's still an error. c++ int KillerSkinsValid = 0; for(int i = 0; i <= Kill.m_TeamSize; i++) { Kill.m_VictimRenderInfo[i] = m_aVictimSkinBuffer[i]; if(!m_aVictimSkinBuffer[i].m_CustomColoredSkin && m_aVictimSkinBuffer[i].m_OriginalRenderSkin.m_Body.IsValid()) KillerSkinsValid++; } bool KillMsgValid = (Kill.m_VictimRenderInfo.m_CustomColoredSkin && Kill.m_VictimRenderInfo.m_ColorableRenderSkin.m_Body.IsValid()) || (KillerSkinsValid == Kill.m_TeamSize); (edited)
Avatar
Kill.m_VictimRenderInfo[i]
04:11
Kill.m_VictimRenderInfo.m_CustomColoredSkin
04:11
one of these is wrong
04:11
either m_VictimRenderInfo is an array or it is not
Avatar
Oh my god. I thought that was Kill.m_KillerRenderInfo, which doesn't have an array. (edited)
04:12
Oh my god
04:12
I'm blind
04:15
It compiles
Avatar
\o/
Avatar
Now that I have the backbone done, I just need to do the actual debugging of the packet sending, which won't be too hard.
Avatar
It's still riddled with bugs, but this is the closest I can get right now. Pretend these are like, teams of 4 dying (edited)
Avatar
Avatar
Voxel
I thought I did index. Or, am I also doing that wrong? Basically I have an outside buffer to store each tee skin that will be packaged inside the kill message. c++ CKillMsg Kill; ... Kill.m_VictimID = pMsg->m_Victim; if(Kill.m_VictimID >= 0 && Kill.m_VictimID < MAX_CLIENTS) { Kill.m_VictimTeam = m_pClient->m_aClients[Kill.m_VictimID].m_Team; Kill.m_VictimDDTeam = m_pClient->m_Teams.Team(Kill.m_VictimID); str_copy(Kill.m_aVictimName, m_pClient->m_aClients[Kill.m_VictimID].m_aName); if(m_Sendable = 0) { m_aVictimSkinBuffer[m_VictimSkinCurrent + 1] = m_pClient->m_aClients[Kill.m_VictimID].m_RenderInfo; m_VictimSkinCurrent = (m_VictimSkinCurrent + 1) % (MAX_KILLMSGTEAM - 1); } else m_aVictimSkinBuffer[0] = m_pClient->m_aClients[Kill.m_VictimID].m_RenderInfo; } (edited)
Why if(m_Sendable = 0)? I think it need be if(m_Senable == 0) or if(!m_Senable)
Avatar
Avatar
Mʎɹ シ
Why if(m_Sendable = 0)? I think it need be if(m_Senable == 0) or if(!m_Senable)
I already changed that to if(!m_Sendable)
Avatar
Oh, oke
Avatar
In this post, we will discuss recent results from Immunant and Galois in extending C2Rust to emit memory-safe Rust in certain cases. With this work we aim to shift a meaningful part of the translation burden from the human to the machine. Up until now, C2Rust has only been able to translate C to unsafe Rust that is no safer than the original inp...
07:51
@Learath2 convert ur c to rust today!
Avatar
ChillerDragon BOT 2023-03-16 09:13:04Z
Convert your bash to rust today! https://github.com/ChillerDragon/bash-to-rust
THIS IS JUST A LITLE TROL. Contribute to ChillerDragon/bash-to-rust development by creating an account on GitHub.
Avatar
Avatar
ChillerDragon
Convert your bash to rust today! https://github.com/ChillerDragon/bash-to-rust
I want this btw
09:31
Please code bash God
Avatar
Avatar
Voxel
It's still riddled with bugs, but this is the closest I can get right now. Pretend these are like, teams of 4 dying (edited)
Imagine if team of 64 will die justatest
Avatar
ChillerDragon BOT 2023-03-16 11:56:52Z
imagine we add 128p support
Avatar
Add ScrollRelative function to initiate relative scrolling programmatically, to realise scroll regions that scroll when the mouse is being dragged at the edge. Add DoEdgeScrolling to encapsulate all the necessary edge scrolling logic based on the position of the mouse. The edge scrolling starts at a fixed distance from the edges. The scrolling speed is dependent on the distance of the mouse from this border.

Checklist

  • [X] Tested the change ingame (in combination with #6426) ...
Avatar
Avatar
ChillerDragon
imagine we add 128p support
imagine you would start to use the servers you bought to the full capacity aka. 1024 players support
Avatar
?XD
Avatar
First step: Add comprehensive tests for all the physics Second step: Improve physics performance without changing any of the physics
Avatar
ChillerDragon BOT 2023-03-16 12:32:27Z
sounds like a good plan robster
Avatar
66ad953 Extend CScrollRegion to support scrolling when mouse at edge - Robyt3 5d1eab1 Merge #6428 - bors[bot]
Avatar
chillster
Avatar
Avatar
Robyt3
First step: Add comprehensive tests for all the physics Second step: Improve physics performance without changing any of the physics
I think @Zwelf is working on that, actually 🙂 the first step, that is
Avatar
Avatar
Anime.pdf
Imagine if team of 64 will die justatest
its only gonna show 4
Avatar
Yeah, these are the current ones: https://gitlab.com/zwelf/twgame/-/blob/92bf54c557491581071e8e287d9b11f234144efe/validator/tests/validator.rs#L65-300. I'm planning to add a whole bunch soon (started a new test map yesterday for that)
Avatar
ChillerDragon BOT 2023-03-16 14:51:12Z
lmao rust maximalists infilitrated my bash research https://stackoverflow.com/a/58994637/21335246
Just take this code as an example. Pretending it is an HTML/text file, if I would like to know the total number of times that echo appears, how can I do it using bash? new_user() { echo "Prepa...
14:52
cool stuff @Zwelf
Avatar
> >
None of the existing answers worked for me with a single-line 10GB file. Grep runs out of memory even on a machine with 768 GB of RAM!
15:05
lmao
Avatar
ChillerDragon BOT 2023-03-16 15:25:50Z
ikr
15:27
Q: "how to use grep?" A: "rewrite your own grep in rust because grep bad"
15:28
that guy probably also rolled his own crypto because openssl is bad even on his 700GB ram machine xd
Avatar
ChillerDragon BOT 2023-03-16 16:01:15Z
oh boi i wrote a 100 line py script and then a 200 line bash script that releases it to pypi xd
Avatar
Avatar
Voxel
It's still riddled with bugs, but this is the closest I can get right now. Pretend these are like, teams of 4 dying (edited)
remind me when i get home to have there be a 64 long tee string
16:37
for the funnies
Avatar
ChillerDragon BOT 2023-03-16 17:01:47Z
@Voxel home yet? i want the funnies!
Avatar
not for another 5 hours
Avatar
Avatar
ChillerDragon
lmao rust maximalists infilitrated my bash research https://stackoverflow.com/a/58994637/21335246
kinda weird that grep runs out of memory
18:25
there's no reason for it to hold matches, just count it
18:26
Avatar
the logo is chatGPT's?
Avatar
why would u be sad
18:27
if we have a robot that is as inteligent as a human we finished the game of life
Avatar
Avatar
Chairn
the logo is chatGPT's?
yes
Avatar
its openai logo
Avatar
more like the robot will finish our life
Avatar
they made chatgpt
Avatar
u can still be a CS student
18:29
but its just for yourself
18:29
not to solve any mistery
18:29
thats what i call true freedom
18:31
e sports are also in great demand even tho we know that computers are better at them 😉 (edited)
Avatar
@Jupstar ✪ true
18:35
like chess
18:35
even tho it makes cheating easier
18:35
at the max level
Avatar
ChillerDragon BOT 2023-03-16 18:38:12Z
chess hype atm is bigger than openai hype
18:38
change my mind
Avatar
@Jupstar ✪ look what i got on a mail from linkedin
18:39
tbh im not convinced, a mmorpg? XD
Avatar
ChillerDragon BOT 2023-03-16 18:39:32Z
take the stonks job
Avatar
i generally dont trust these ppl xd
Avatar
yeah lul
Avatar
they make it sound nice and then they find excuses
Avatar
ChillerDragon BOT 2023-03-16 18:40:05Z
tell the headhunter you want 50% of what he gets from the company
18:40
then take the job and quit
18:40
ez money grab
Avatar
also when they mention another language, specially JS, besides rust, you WILL most probably use little rust there
18:40
my life power comes from using rust
Avatar
master servers slow
Avatar
ChillerDragon BOT 2023-03-16 18:48:16Z
yea they slow cuz rust
18:49
ryo come to munich our company empowers devs to use as much rust as they want
Avatar
when i look at jobs in my region rip xD c#, delphi, java
18:53
the 1990 gang
Avatar
Avatar
ChillerDragon
chess hype atm is bigger than openai hype
Avatar
rekt by stats
Avatar

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/ddnet/ddnet/#using-addres...
Avatar
ChillerDragon BOT 2023-03-16 19:38:19Z
close tho
Avatar
typescript 5 is out
19:38
i wont share the url cuz its a microsoft link
19:38
and ew
19:38
dimitropoulos
Avatar
ChillerDragon BOT 2023-03-16 19:38:55Z
ms > discord
19:38
change my mind xd
19:40
19:41
ouuu 0.7 arguably relvant according tho this graph xd
19:41
Avatar
i have never seen a graph that looks like that
Avatar
Avatar
ChillerDragon
Click to see attachment 🖼️
Tbh I Google teeworlds even if I mean ddnet xd
Avatar
New ddnet players: What's teeworlds?
20:40
^ high quality blog
Avatar
d08f784 Don't add duplicate consecutive commands to console history - Robyt3 5241c4c Merge #6425 - bors[bot]
Avatar
3808a23 Always enable editor panning and zooming when GUI is hidden - Robyt3 cc612a7 Merge #6423 - bors[bot]
Avatar
@ChillerDragon
23:05
THE ARMY
justatest 2
Avatar
chillerdragon BOT 2023-03-16 23:38:53Z
Xd
23:39
Does it fit on 4:3?
Avatar
idk havent tried
Exported 124 message(s)