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 11/1/2023 12:00AM and 11/2/2023 12:00AM
Avatar
GitHub BOT 11/1/2023 1:44AM
Many Speedrunners often wanna see their run quickly without need of opening demo, to make that possible u could make it possible to follow ghost.
  • Good chance to also enable Multiview Ghosts, to compare multiple ghost precisely or with ur mates,
  • or maybe in the future to compare with the WR ghost of the Map.
Avatar
GitHub BOT 11/1/2023 2:31AM
Problem if 2 many mappers and/or long map names. "Arctic Festivity by louis, Im 'corneum, Silex, Voxel & Pipou + + + + | 2/5 ★" would be 2 long to show up so u cant see or vote the map we should increase this vote_desc_length to like 128? in src/game/voting.h enum { old VOTE_DESC_LENGTH = 64, VOTE_CMD_LENGTH = 512, VOTE_REASON_LENGTH = 16, MAX_VOTE_OPTIONS = 8192, }; old VOTE_DESC_LENGTH = 64, new VOTE_DESC_LENGTH = 128, change it to like 128...
Avatar
good morning. good night
3:27AM
and tomorrow work will be done
Avatar
I have a tag here
5:07AM
Anyone know why?
5:07AM
Can't find it
Avatar
tag, you're it! (edited)
Avatar
Avatar
Blade
Anyone know why?
Jupstar ✪ 11/1/2023 6:44AM
Because your Doppelganger was trolling us by showing his coding skills
Avatar
typedef ivec4 CColor; in the map format pepeW
9:29AM
How many maps might have color component values outside the 0-255 range?
Avatar
Jupstar ✪ 11/1/2023 9:33AM
i dunno, but some have values outside of range because of env calculations
Avatar
You mean calculated values? The values in the map should always be in 0-255 range, right?
Avatar
Avatar
Robyt3
How many maps might have color component values outside the 0-255 range?
I think none, twmap is strict there
9:41AM
well at least no ddnet maps
Avatar
Avatar
Robyt3
You mean calculated values? The values in the map should always be in 0-255 range, right?
Jupstar ✪ 11/1/2023 9:42AM
i dunno if we need to generally force it
Avatar
If it could cause rare issues with some drivers then it would be better to avoid I guess
9:43AM
It also breaks the editor if colors components are not in the 0-255 range though
9:44AM
Since all components are packed into one int at some point
Avatar
and I mean, colors only really make sense up to 255, no? thr only thing I can think of is trickery with envelopes, but that should be possible through other means anyways
Avatar
Avatar
Patiga
and I mean, colors only really make sense up to 255, no? thr only thing I can think of is trickery with envelopes, but that should be possible through other means anyways
Jupstar ✪ 11/1/2023 9:45AM
i mean u could say an env alpha of 2.0 allows to multiply all color values by 2
9:45AM
i dunno if this is nice
9:46AM
but if the color values are <= 0.5
9:46AM
it's not breaking anything
Avatar
Yeah, it's possible that clamping color values would change some maps that used this weird behavior with old envelopes. Color envelopes cannot have components outside 0.0-1.0 either in the latest client.
9:47AM
I don't know if it was ever possible to input an out of range color value in the editor, since we probably packed the components into an int since forever (edited)
Avatar
Avatar
Jupstar ✪
i mean u could say an env alpha of 2.0 allows to multiply all color values by 2
I thought we were talking about tiles layer colors or quad colors
Avatar
Jupstar ✪ 11/1/2023 9:49AM
yeah but like, why enforce it for those, but not for env?
Avatar
If the quad/layer color is 511 but an envelope limits it to 255 then it's fine, but it shouldn't be possible anymore for color envelopes to cause out of range values on their own, because they are already limited to the 0.0-1.0 range
Avatar
Jupstar ✪ 11/1/2023 9:51AM
but do you want to have it a validation check or what?
9:52AM
i'd say just be careful with rounding errors, if the editor uses floats or smth
9:52AM
that we dont use a u8 vec sucks here ofc
Avatar
Avatar
Jupstar ✪
yeah but like, why enforce it for those, but not for env?
the biggest upside I saw for envs is that high values allow you to create differen interpolation effects. was brightening with env values a thing? I don't remember
Avatar
At some point it should be added as validation, but it's not on my list right now. I just found out we use an ivec4 for colors
Avatar
I'm not sure if there is any map out there with an invalid value there
Avatar
Avatar
Patiga
the biggest upside I saw for envs is that high values allow you to create differen interpolation effects. was brightening with env values a thing? I don't remember
Jupstar ✪ 11/1/2023 9:54AM
there is one city map that accidentially caused this brighten effect because we changed from clamping to "i dont care"
9:54AM
but i'd say it's not used yet
9:55AM
I mean, with bezier curves, higher values should not be required anymore for different interpolation
Avatar
jotaro kujo 11/1/2023 10:00AM
Avatar
See commit messages.

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
  • [X] Considered possible null pointers and out of bounds array indexing
  • [X] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet...
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@Patiga Does it make sense to support map items with size 0 (i.e. only the type and ID meta data exist)? This would disallow items without any data.
Avatar
ChillerDragon BOT 11/1/2023 12:42PM
sos how to memory manage
12:42PM
12:42PM
CChat::RegisterCommand(const char *pName, const char *pParams, int flags, const char *pHelp)
12:43PM
this copies the string pointers in some vector. which works fine because RegisterCommand is called on fixed strings from ddracechat.h
Avatar
Avatar
Robyt3
@Patiga Does it make sense to support map items with size 0 (i.e. only the type and ID meta data exist)? This would disallow items without any data.
depends on the type I would say. I think env points can have 0 size, and I'll have to debug but I think there are also maps with ddnet bezier data with 0 size
Avatar
ChillerDragon BOT 11/1/2023 12:43PM
i now want to call RegisterCommand later in the code with some dynamic input. And I need to store that strings memory somewhere.
12:44PM
any suggestions on how to do that? would it be bad if RegisterCommand does a strcpy and allocates memory?
12:44PM
@Patiga sorry for hijacking your convo
Avatar
all good ^^
Avatar
Avatar
Patiga
depends on the type I would say. I think env points can have 0 size, and I'll have to debug but I think there are also maps with ddnet bezier data with 0 size
Ah, true, envelope points are a special case. That explains why I added checks to allow empty map items on vanilla, but I didn't remember why
12:46PM
Currently causes a malloc of size 0 in that case
Avatar
@Patiga if u want u can edit my pr
12:50PM
ill probs forget otherwise xd
Avatar
I think its a rather small change
12:52PM
but I'm not at home rn, will have to remember it later
Avatar
blazulite BOT 11/1/2023 1:48PM
hi
Avatar
Jupstar ✪ 11/1/2023 1:49PM
hai, moin
Avatar
lol I'm just testing this irc thing
1:50PM
looks interesting
Avatar
blazulite BOT 11/1/2023 1:50PM
swaggy
Avatar
Jupstar ✪ 11/1/2023 1:51PM
oldschool hipster
Avatar
Avatar
Jupstar ✪
oldschool hipster
lol
Avatar
blazulite BOT 11/1/2023 1:53PM
Wait a minute
1:54PM
I just realized... doesn't the ddnet chat works kinda like this?
1:54PM
like an irc thing
1:54PM
I still didn't checked the ddnet chat's code so I'm just guessing
1:54PM
in first place cuz of how mentions works
1:54PM
bridge: hi
Avatar
Jupstar ✪ 11/1/2023 1:58PM
u could argue both are rather simplistic chats xd
Avatar
Avatar
Robyt3
Thanks for checking. I think it's still better to fix the maps themselves instead of trying to read strings best effort (i.e. fix broken UTF-8 etc.) (edited)
heinrich5991 11/1/2023 1:58PM
it might be nice to show a warning when launching the map first
Avatar
blazulite BOT 11/1/2023 1:59PM
Jupstar ✪: makes sense
Avatar
Avatar
heinrich5991
it might be nice to show a warning when launching the map first
Already done, #7400 🙂
Avatar
The image name is only required for external images. For embedded images it was only used in log messages. This fixes rendering with various maps that have embedded images with invalid names. Show ...
Avatar
Avatar
Robyt3
@Patiga Does it make sense to support map items with size 0 (i.e. only the type and ID meta data exist)? This would disallow items without any data.
heinrich5991 11/1/2023 1:59PM
maybe for envelopes? they're stored in a weird way
Avatar
Avatar
Robyt3
Currently causes a malloc of size 0 in that case
heinrich5991 11/1/2023 2:00PM
a malloc of size 0 isn't a problem AFAIK
Avatar
Avatar
Robyt3
Already done, #7400 🙂
heinrich5991 11/1/2023 2:00PM
but not for internal image names?
Avatar
Avatar
heinrich5991
but not for internal image names?
No, I'm not sure it's would be that useful for users to know that a basically irrelevant string failed to load
2:02PM
I'd prefer fixing the majority of maps first before adding a warning message that will lead to countless bug reports
Avatar
Avatar
heinrich5991
a malloc of size 0 isn't a problem AFAIK
It's a problem for clang-tidy if it detects it (Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-unix.API])
Avatar
Avatar
Robyt3
It's a problem for clang-tidy if it detects it (Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-unix.API])
Jupstar ✪ 11/1/2023 2:02PM
it can return nullptr
2:02PM
that kinda sucks to work with
Avatar
Avatar
Robyt3
No, I'm not sure it's would be that useful for users to know that a basically irrelevant string failed to load
heinrich5991 11/1/2023 2:03PM
if it's no problem, then we should fix clang-tidy instead
Avatar
Yeah, if it returns nullptr on some implementations and we accidentally access the memory then that's bad
2:03PM
On other implementation it allocates some dummy memory that must be freed
Avatar
heinrich5991 11/1/2023 2:03PM
why do we access the memory if we allocate 0 bytes?
2:04PM
that's a bug even if it returns a non-null pointer
Avatar
Assuming all functions also check the data size then it shouldn't cause issues, but I don't think that's the case yet
Avatar
heinrich5991 11/1/2023 2:04PM
I don't see what this fixes
2:05PM
an access to memory of size 0 is a bug already
Avatar
Jupstar ✪ 11/1/2023 2:05PM
what if we have some logic that does if ptr != nullptr
2:05PM
independent of if we access it
Avatar
heinrich5991 11/1/2023 2:05PM
yes, that's a problem I can see
Avatar
Avatar
heinrich5991
a malloc of size 0 isn't a problem AFAIK
yeah, it's allowed. IIRC it was used to retrieve heap pointers directly
Avatar
i once tried to make a pr that added ui sounds
2:09PM
for hovering / clicking / contextual related things
Avatar
Avatar
Voxel
i once tried to make a pr that added ui sounds
Jupstar ✪ 11/1/2023 2:09PM
make cool menu music xdd
Avatar
i dont know how to make music
Avatar
Jupstar ✪ 11/1/2023 2:10PM
buy instrument (edited)
Avatar
i mean i have fl 20
2:13PM
but idk music theory
Avatar
Jupstar ✪ 11/1/2023 2:14PM
lmao
2:14PM
in the modern times of electronic sounds, ppl just move some sounds into their music editor until it sounds cool
2:15PM
the question is: do you have good taste 😏
Avatar
i can try and replicate good taste
Avatar
Jupstar ✪ 11/1/2023 2:15PM
epic
2:15PM
i mean you are an artist, i bet you have a better feeling what could work out than many xd
Avatar
not going to lie all the updates i wanna do completely go against the "making ddnet lightweight" thing.
2:16PM
i wanna so much crap but itd mostly be bloat
Avatar
Jupstar ✪ 11/1/2023 2:16PM
lightweight doesn't mean "not extendable"
Avatar
several music tracks, more weapons, a better skin system
Avatar
i gotta make more concept videos
Avatar
Avatar
Jupstar ✪
in the modern times of electronic sounds, ppl just move some sounds into their music editor until it sounds cool
what
Avatar
Avatar
Ewan
what
Jupstar ✪ 11/1/2023 2:39PM
Hi
2:44PM
@Jupstar ✪ images with normal maps
2:45PM
if we ever set up a lighting system we gotta get images that pair with normal maps
2:45PM
like in spelunkey
Avatar
Avatar
Voxel
if we ever set up a lighting system we gotta get images that pair with normal maps
Jupstar ✪ 11/1/2023 2:55PM
yeah interesting, u could try patigas godot ddnet renderer
2:55PM
and add lights to that to test around with
Avatar
oh yea good idea
3:04PM
time to learn godot LOL
Avatar
dont think music will ever work with current ddnet
Avatar
Avatar
Jupstar ✪
@Voxel here a present for you
not like a give a shit but this outputs images, right
Avatar
Avatar
Voxel
not like a give a shit but this outputs images, right
Jupstar ✪ 11/1/2023 3:11PM
it outputs pixels and width & height
3:11PM
i also have it as outputting images tho
3:11PM
don't use or read this code. Contribute to Jupeyy/dd-pg development by creating an account on GitHub.
3:12PM
you can do cargo build -p x-convert
3:12PM
where x is one of the items in that list
3:12PM
if u want i can also build them for u xd
3:12PM
on the other hand side.. you need to learn rust anyway
3:13PM
xDD
Avatar
im only asking because i still wanna do the whole remodel of the images things
3:16PM
ln 61 else if height % 4 != 0 { Err(anyhow!("width is not divisible by 4"))
3:16PM
lmao
Avatar
Jupstar ✪ 11/1/2023 3:17PM
xd
3:17PM
don't use or read this code. Contribute to Jupeyy/dd-pg development by creating an account on GitHub.
3:17PM
fixed in current version actually 😉
3:17PM
seems like i already noticed it when implementing the other splitters
Avatar
oh i forgot to see the link
3:20PM
the X * segment_width/height looks so clunky LOL
3:22PM
why not have it times by segment_width/height in the actual single_img function
Avatar
Jupstar ✪ 11/1/2023 3:22PM
which converter are you reading?
3:23PM
note that i automated all other converters using regex xd
3:23PM
and the content.py from ddnet
Avatar
game_splitter
Avatar
Avatar
Jupstar ✪
note that i automated all other converters using regex xd
that makes much more sense
Avatar
I should do a ddnet remake too, that seems to be the hype
Avatar
Jupstar ✪ 11/1/2023 3:27PM
epic
3:27PM
Learath & ?
3:28PM
whom do u team up with
Avatar
Do I need a duo?
Avatar
Jupstar ✪ 11/1/2023 3:28PM
currently we have Me + Robyte vs. Patiga + Zwelf vs Ryo + Voxel
Avatar
Avatar
Learath2
Do I need a duo?
Jupstar ✪ 11/1/2023 3:28PM
1 vs 2
3:28PM
what a pro
Avatar
Ryo and Voxel are making a ddnet remake?
Avatar
Jupstar ✪ 11/1/2023 3:28PM
yes
Avatar
Learath go with zogtib ;)
Avatar
Jupstar ✪ 11/1/2023 3:28PM
in c xDDD
Avatar
Avatar
Learath2
Do I need a duo?
every team has to have someone who gives you a smack and does nothing
Avatar
Avatar
Jupstar ✪
in c xDDD
Portable C99 💪
3:29PM
Or maybe I can get heinrich onboard
3:29PM
Though then it has to be in Rust
Avatar
Jupstar ✪ 11/1/2023 3:29PM
it's settled
3:30PM
Jupstar + Robyte ⚔Patiga + Zwelf ⚔Ryozuki + Voxel ⚔Learath + heinrich (edited)
Avatar
2v2v2v2
Avatar
Jupstar ✪ 11/1/2023 3:30PM
4 teams fng
3:30PM
xd
Avatar
was about to say it
Avatar
Jupstar ✪ 11/1/2023 3:31PM
lmao
Avatar
Hm, though with heinrich it'll also have to be fully backwards, forwards and multiverse compatible
Avatar
Jupstar ✪ 11/1/2023 3:35PM
xDDDDDDDDDD
Avatar
btw, has there been any discussion/solutions about accounts since the last comment on github in July?
Avatar
Nope
Avatar
sounds like it's time for the bimonthly accounts debate 😼
Avatar
It's biannual not bimonthly 😄
Avatar
Jupstar ✪ 11/1/2023 3:41PM
i have a plan for my implementation, but more than changing some fields and sql strings isn't really done
3:41PM
i got kinda distracted with other stuff xd
Avatar
GitHub BOT 11/1/2023 4:27PM
See #7370.

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
  • [X] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#us...
Avatar
hey is there a easy way to completely isolate instances of CGameWorld in the clientside prediction?
5:20PM
i want them to suffer for what they've done to me
Avatar
Avatar
Learath2
Ryo and Voxel are making a ddnet remake?
"""making"""
6:11PM
wait wtf why am i paired with ryozuki?? LOL
Avatar
Avatar
Jupstar ✪
in c xDDD
nuh uh ryo's doing all the coding
6:13PM
im the ideaman
Avatar
shrug. i guess if it becomes a serious thing ill make proper concept art for how everything should function.
Avatar
ideas man
6:23PM
lmfao
6:23PM
everyone needs an ideas man pepeW
Avatar
Avatar
Voxel
im the ideaman
cyberFighter 11/1/2023 6:34PM
gonna be real the only thing ddnet needs is sentry gun from tf2
Avatar
oh man cant wait for ddnet to have classes
6:34PM
the medic tee
Avatar
cyberFighter 11/1/2023 6:35PM
its just rifle but curved
Avatar
@Ryozuki i saw you typing
Avatar
have u never played infclass
Avatar
Avatar
Ewan
have u never played infclass
cyber forced me to grind for him
Avatar
Jupstar ✪ 11/1/2023 6:55PM
did the behavior of these buttons change?
6:55PM
i click square.. nothing happens
6:55PM
ah lol nvm
Avatar
Avatar
Voxel
cyber forced me to grind for him
cyberFighter 11/1/2023 7:25PM
thats not infclass
Avatar
Jupstar ✪ 11/1/2023 7:25PM
do we somewhere print the zoom level in the client? xd
7:25PM
i have the feeling u can't get its current value
Avatar
Yeah, doesn't look like we show it anywhere. Using zoom in console also doesn't seem to print the current value
Avatar
Avatar
Jupstar ✪
do we somewhere print the zoom level in the client? xd
No
Avatar
Avatar
Robyt3
Yeah, doesn't look like we show it anywhere. Using zoom in console also doesn't seem to print the current value
it sets it to the default zoom
7:47PM
bcs con zoom value is immediately converted and stored in ccamera so the original value is never kept
Avatar
Avatar
Ewan
the og is pretty much like m_Zoom = pow(ZoomStep, g_Config.m_ClDefaultZoom - 10) if ZoomStep = std::cos((30.0f * pi) / 180.0f) (about 0.866025, the constant the game uses) then u can reverse it w this m_ConsoleZoom = std::log(m_pClient->m_Camera.m_Zoom * std::pow(ZoomStep, 10)) / std::log(ZoomStep)
😃
Avatar
Avatar
cyberFighter
thats not infclass
mb
Avatar
cyberFighter 11/1/2023 7:53PM
jesus wavpack is fucking garbage
Avatar
Jupstar ✪ 11/1/2023 8:14PM
yeah
Avatar
T datafile: loading data. index=23 size=8 uncompressed=0 nouis
9:26PM
At least only one official map has invalid map settings
Avatar
GitHub BOT 11/1/2023 9:36PM
Using CMenus::PopupWarning will immediately set the popup and override the current warning, which can hide warnings when multiple are shown at the same time. Now all warnings are added to the queue with IClient::AddWarning.

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
  • [ ] Co...
Avatar
Avatar
Robyt3
At least only one official map has invalid map settings
in what way invalid?
Avatar
Not really invalid, but the string array data has size 0, which I consider an error now, as empty string arrays should not be packed into datafiles at all (edited)
10:03PM
In DeadCore 1
Avatar
ah, I get it
10:03PM
but it doesn't sound too bad, no?
Avatar
I checked for valid utf-8 in the settings too, but that's all good it seems (edited)
Avatar
Avatar
Patiga
but it doesn't sound too bad, no?
Yeah, I already fixed the map by resaving it, should be deployed by the bot to github at some point (edited)
Avatar
remember that every map update requires every player to redownload it
10:06PM
I do think issues in maps should get fixed, but some things might just not be worth it
Avatar
f7722eb Remove separate CDataFileWriter::Init/OpenFile functions - Robyt3 284390c Add assertions to ensure correct map item/data sizes are written - Robyt3 6471607 Add assertion to ensure correct item IDs are written - Robyt3 7343ca2 Add CDatafileHeader::SizeOffset to replace magic 16 - Robyt3 9b8eb9d Use for- instead of while-loop, improve comments - Robyt3 75debad Add freeze/unfreeze testing commands - Robyt3 ebe2dde Add gameclient warnings to queue instead of overriding others - Robyt3 9b75f85 Merge pull request #7405 from Robyt3/Client-Warning-Queue - def- 3ec5211 Merge pull request #7404 from Robyt3/Server-Testing-Commands-Freeze-Unfreeze - def- 80c4940 Merge pull request #7403 from Robyt3/Datafile-Writer-Refactoring - def-
10:44PM
no idea why there was a tag in the draft before i sent thn last one
10:44PM
justatest
Avatar
my brothers got no linux distributions this year
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
factory resetting them and using them as storage usbs
11:00PM
troll
Avatar
Explore this post and more from the NoStupidQuestions community
Avatar
why is that posted on "NoStupidQuestions" 💀
Avatar
Avatar
Voxel
factory resetting them and using them as storage usbs
cyberFighter 11/1/2023 11:36PM
free storage god damn
Avatar
cyberFighter 11/1/2023 11:36PM
linux has: linux only games
11:36PM
windows has: window only games
11:37PM
also that looks like a karma farm lol
Exported 244 message(s)
Timezone: UTC+0