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-26 00:00:00Z and 2024-03-27 00:00:00Z
Avatar
3dbd665 M Big-Jungle, M Spike It! - ddnet-maps
Avatar
! ๐–ฎ๐–ฆ เคˆโ•ฌ โ„.๐•Š.๐•‚๐”ธโ„ โœ” 2024-03-26 06:40:21Z
Hello, Excuse me, I don't know if I am asking in the right place or not My question is that when I create a new condition in "void CCharacter::HandleTiles" in the Character.cpp file and write for example if((m_TileIndex == 185) || (m_TileFIndex == 185)) { // do somethings } Does not work (edited)
Avatar
Avatar
! ๐–ฎ๐–ฆ เคˆโ•ฌ โ„.๐•Š.๐•‚๐”ธโ„ โœ”
Hello, Excuse me, I don't know if I am asking in the right place or not My question is that when I create a new condition in "void CCharacter::HandleTiles" in the Character.cpp file and write for example if((m_TileIndex == 185) || (m_TileFIndex == 185)) { // do somethings } Does not work (edited)
! ๐–ฎ๐–ฆ เคˆโ•ฌ โ„.๐•Š.๐•‚๐”ธโ„ โœ” 2024-03-26 06:48:06Z
But it works when I use numbers like 0-64 (tiles defined by ddnet)
08:10
c5b2202 Check inkscape filename matching actual filename - ChillerDragon c47019e Make docname check warning only - ChillerDragon 200a58b Fix all docnames - ChillerDragon a065be5 Merge pull request #57 from ChillerDragon/pr_check_filename - Jupeyy
Avatar
Avatar
meloฦž
you can use badblocks to search for blocks of memory which are either unreliable or corrupted
can i search it in windows instead
10:02
also, could it be some driver issues or smth?
Avatar
Unlikely, i dont know of any Windows Tool that does that (edited)
Avatar
Avatar
! ๐–ฎ๐–ฆ เคˆโ•ฌ โ„.๐•Š.๐•‚๐”ธโ„ โœ”
But it works when I use numbers like 0-64 (tiles defined by ddnet)
check mapitems.h, afair there's a function that validates indexes
Avatar
How can I get CRenderTools in render.cpp to pass it to my function? this doesn't work Function in the screenshot void CRenderTools::RenderTee
Avatar
Avatar
Sedonya
How can I get CRenderTools in render.cpp to pass it to my function? this doesn't work Function in the screenshot void CRenderTools::RenderTee
then Render's arguments should be wrong, or your context is messed up and this isn't actually CRenderTools
justatest 1
Avatar
do ddnet cfg files use some specific format?
15:57
i want to parse settings_ddnet.cfg so it would be useful to know if this kind of format is used anywhere else
Avatar
what do you want to parse it into :o
Avatar
i mean i just want to get commands from it
15:59
so like command + arguments
16:02
it seems simple
16:02
but
Avatar
i mean the format is just [command/setting] [value]
Avatar
or multiple values
16:04
and those values can be in quotes
16:04
but dont have to
16:04
so spaces are kind of important
16:04
its not that simple
16:07
and escape characters can be used
16:07
\
16:08
there has to be a library that does precisely what i want to do lol
16:11
i just dont know how to DuckDuckGo it
Avatar
multiple values for a single command are seperated by ; you can use \ in cfg files? TiL
Avatar
Avatar
meloฦž
multiple values for a single command are seperated by ; you can use \ in cfg files? TiL
no?
16:34
i guess they can be lol
16:35
but some arent
Avatar
ah gg i read it wrong, i meant seperate the commands itself (edited)
16:35
but in cfg files they can also by in seperate lines
16:36
or maybe even have to?
16:36
thats the point
16:36
idk what exactly is valid
Avatar
ok i created my own implementation
17:12
its a little unreadable but who cares lol
Avatar
it's definitely better than this justatest
Avatar
Avatar
MilkeeyCat
it's definitely better than this justatest
cum in the background?
Avatar
Avatar
MilkeeyCat
it's definitely better than this justatest
Have I just grown too used to it that this doesn't look bad at all to me?
Avatar
Avatar
Learath2
Have I just grown too used to it that this doesn't look bad at all to me?
is it not that bad?
18:14
cool then greenthing
Avatar
What part bothers you?
Avatar
every line i write bothers me
18:15
working with time in c++ is... fun pepeW
Avatar
If you are on C++20, std::chrono::zoned_time is much more fun to work with
Avatar
that format thing is in c++ 20 as well, right? (edited)
Avatar
im switching to c++20
18:17
greenthing
Avatar
Avatar
Ryozuki
but i dislike the bad faith argument that u cant do low level in rust
you cant do low level stuff even in C
18:18
most assembly instructions cannot be generated by compilers
Avatar
Avatar
Chairn
you cant do low level stuff even in C
true, depends on what low level people mean too xd
Avatar
especially SIMD ones
Avatar
for most peopel low level means managing memory and thats it
Avatar
Avatar
Chairn
most assembly instructions cannot be generated by compilers
There are builtins that can help you with that, you can write SIMD code without having to go down to inline assembly
18:19
but yeah, standard C does have limitations on what you can express at the lowest level
Avatar
Avatar
murpi
Who is laxa and is he still active?
long ago, he started playing around 2009 i guess and stopped few years later
18:20
he's actually my brother but he's no longer active on tw (but still alive :))
18:21
why you looking for him ? ts server is probably outdated but i think it's still running
Avatar
Avatar
Learath2
There are builtins that can help you with that, you can write SIMD code without having to go down to inline assembly
bit flips instruction and really specific intrinsics are never generated either
18:22
SIMD through builtins is just writting assembly in C, the compiler just generates the loads/stores and moves for you in some cases
Avatar
Well writing assembly in C is much more pleasant than learning how to properly inline assambly
18:26
again, you are right, just saying you can access some things without having to resort to assembly
Avatar
*can't i guess
18:27
I guess the double negative there wasn't the best choice of wording ๐Ÿ˜›
Avatar
anyway, i often look at the code generated if im worried about performances
18:28
on microcontrollers, i like to measure time with gpios on/off on the oscilloscope ๐Ÿ˜„
justatest 1
Avatar
Avatar
Chairn
anyway, i often look at the code generated if im worried about performances
only way to make sure indeed
Avatar
teeworlds/ddnet optimizes snap updates by not sending updates for tees which can be easily predicted, called "dead reckoning". can someone tell me which things are optimized out by it? also projectile interactions, or only single tee movement (no collisions) with only map collision interaction?
Avatar
chillerdragon: how to play chidraqul xDDDD
Avatar
Avatar
Patiga
teeworlds/ddnet optimizes snap updates by not sending updates for tees which can be easily predicted, called "dead reckoning". can someone tell me which things are optimized out by it? also projectile interactions, or only single tee movement (no collisions) with only map collision interaction?
Stuff inside character core is dead reckoned, nothing else as far as I'm aware
Avatar
Avatar
Learath2
Stuff inside character core is dead reckoned, nothing else as far as I'm aware
thx!
Avatar
@Discord Mod
Avatar
The Linux 6.9 kernel will be able to boot systems with large amounts of memory -- and in particular making use of HugeTLB pages -- much faster than with previous kernels, netting a noticeable reduction in boot times.
20:32
i already boot in 1 second
Avatar
I doubt you run a system with enough ram for this to matter ๐Ÿ˜„
20:42
true
20:42
justatest
Avatar
12TB seems legit
Avatar
linux al gaib!
Exported 90 message(s)