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 2022-08-18 00:00:00Z and 2022-08-19 00:00:00Z
Avatar
lots of chinese servers lost connection to masters
03:14
rip
Avatar
Avatar
Voxel
@Jupstar ✪ I was told you know a bit about this
Just look how the server browser verified symbol did it
05:09
Maybe do label overwrites it or smth like that
Avatar
Avatar
Jupstar ✪
Just look how the server browser verified symbol did it
I did look at how the verified symbol was made. All it is is just two unicodes on top of each other.
Avatar
Avatar
Jupstar ✪
Maybe do label overwrites it or smth like that
Maybe. The verified symbol uses DoLabelStreamed, meanwhile I just used DoLabel (edited)
Avatar
Avatar
Voxel
I did look at how the verified symbol was made. All it is is just two unicodes on top of each other.
U can add it to the props struct with default value and remove wherever it overwrites it
Avatar
@Jupstar ✪ any idea what might cause this? [2022-08-18 01:18:03][vulkan]: device lost [2022-08-18 01:18:03][vulkan]: vulkan error: Submitting to graphics queue failed.: device lost [2022-08-18 01:18:03][assert]: src\engine\client\backend\vulkan\backend_vulkan.cpp(1114): Submitting to graphics queue failed.: device lost It happened 4 times randomly in the last 6 months
06:51
hmm actually it may be from using nvidia overlay to record. I'm pretty sure it only happened when I did that (edited)
Avatar
:\
Avatar
Putting this here to remind myself later (Now that we're changing the icons, why not have there be actually different icons for the different elements?)
Avatar
All of your sketches look better than anything I ever drawn (edited)
Avatar
It's because it's digital
Avatar
any file which aren't generated by the client cannot be accessed like that
08:28
perhaps the .map files only, but anything else needs permissions at least
Avatar
Avatar
Cellegen
any file which aren't generated by the client cannot be accessed like that
isnt there literally a fuction in the code that detects what type of file it is
08:45
theres an enum AND a endswith thing
Avatar
file.endswith('.map') etc.
Avatar
dunno what the function is called in C++ tho (edited)
Avatar
Avatar
Cellegen
perhaps the .map files only, but anything else needs permissions at least
eh?
Avatar
if (filename[filename.lenght-1] == 'p' and filename[filename.lenght-2] == 'a' and filename[filename.lenght-3] == 'm' and filename[filename.lenght-4] == '.') { }
Avatar
LOL, is that actual code we have?
Avatar
Should be replaced with an str_endswith if so
Avatar
Avatar
Learath2
LOL, is that actual code we have?
I hope not lol
Avatar
That's just my solution
Avatar
Avatar
Learath2
Should be replaced with an str_endswith if so
i checked, we do use endswith (fortunately)
09:19
when i get back on computer im going to try and make file_icons.png obsolete troll (which is harder than it sounds for me)
Avatar
Where are all the console commands described in the sources?
Avatar
config_variables.h
09:23
i think thats what u mean right
Avatar
Or rather, where the code of each rcon command is described
09:26
i need to edit super command, addweapon and jetpack (edited)
Avatar
I am not an expert but maybe src/game/server/ddracecommands.cpp ?
Avatar
that's exactly what I was looking for, thanks
Avatar
I'm looking at the c++ codebase for the first time 🙂 I have seen multiple times an int be used instead of a bool, why is that?
Avatar
Are there any sources with more server administration functionality?
09:50
It's hard for me to rewrite the code to give someone a jetpack or something else
Avatar
Avatar
k2d222
I'm looking at the c++ codebase for the first time 🙂 I have seen multiple times an int be used instead of a bool, why is that?
Depends on what you do
10:34
When you have 32 bits you can store 32 booleans
Avatar
Avatar
ReiTW
When you have 32 bits you can store 32 booleans
well here for example IsStrokeCommand is only used there
Avatar
Avatar
k2d222
well here for example IsStrokeCommand is only used there
This one is probably just an artifact of migration from C way back in the day
Avatar
ok.. there are quite a few then. It doesn't matter too much I suppose, but I found it a bit confusing
Avatar
Avatar
Learath2
This one is probably just an artifact of migration from C way back in the day
Or that, didn't know tw was C only before
Avatar
This functionality was lost in 082e26d5b In my case I have a lot of symlinks in the maps folder (Downloads, ddnet-maps, map_archive) On windows, I have neither tested this behavior before nor after this patch. Could someone maybe try it out there?

Checklist

  • [ ] 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 t...
Avatar
Avatar
ReiTW
When you have 32 bits you can store 32 booleans
11:59
i heard some funky stuff about this tho
12:01
I recently asked a question on Programmers regarding reasons to use manual bit manipulation of primitive types over std::bitset. From that discussion I have concluded that the main reason is its
12:02
sizeof(bitset<8>) => 8 sizeof(uint8_t) => 1
12:02
zero cost abstractions in c++ hehe
12:06
afterall C++ has too many stuff
12:07
but bitset doesnt optimize as well
12:07
xd
Avatar
I guess that's more for simplicity ?
Avatar
its cuz
Avatar
u cant use operator[] to index bits
12:07
the answer explains it
Avatar
that BMTH song has a six impala remix
Avatar
#off-topic ?
Avatar
it's not good tho imo lol
Avatar
Hm, I thought bitset did optimize properly for sizes that are = 0 (mod 8)
Avatar
If you are using bitset in a way that does actually make it clearer and cleaner than bit-fiddling, like checking for one bit at a time instead of using a bit mask, then inevitably you lose all those benefits that bitwise operations provide, like being able to check to see if 64 bits are set at one time against a mask, or using FFS instructions to quickly determine which bit is set among 64-bits.
>
I'm not sure that bitset incurs a penalty to use in all ways possible (ex: using its bitwise operator&), but if you use it like a fixed-size boolean array which is pretty much the way I always see people using it, then you generally lose all those benefits described above. We unfortunately can't get that level of expressiveness of just accessing one bit at a time with operator[] and have the optimizer figure out all the bitwise manipulations and FFS and FFZ and so forth going on for us, at least not since the last time I checked (otherwise bitset would be one of my favorite structures).
Avatar
Huh, doesn't std::bitset have member functions that implement these operations in an optimal way? I'm sure std::bitset::any uses an FFS
Avatar
If you genuinely need to access a bunch of bits with a random access pattern which, for some reason or other, needs to check and set just one bit a time, then it might be ideally implemented for such a purpose. But my point is that almost all use cases I've encountered didn't require that, and when it's not required, the old school way involving bitwise operations tends to be significantly more efficient.
12:14
idk
Avatar
hm, you can't get it to emit a clz, so finding the first set bit is annoying
12:18
but any, all, none all seem to be implemented in a sane way
12:21
I guess you could technically do to_ulong followed by a builtin_clzl
12:22
Hm, not that I could get gcc to emit a clz with a loop and an ulong
Avatar
b580b83 List symlinks in list_dir - Patiga ecc5ca5 Merge #5750 - bors[bot]
14:25
its upgrade time
Avatar
Metasploit?
16:52
young hacker
Avatar
he also uses telegram, probably a catalan secessionist
Avatar
Maybe
16:57
Wtf
17:00
₽id0r
Avatar
Avatar
CrazyDevNEW
₽id0r
monkalaugh
Avatar
Avatar
CrazyDevNEW
Wtf
what's wrong?
Avatar
API Log4j
17:15
it's not log4j
17:16
it's log4cpp
Avatar
may be. I didn't read the documentation
Avatar
Hey, which maps have the most finishes? Excluding race stuff
Avatar
Avatar
Ar1gin
it's log4cpp
I very quickly went through the documentation and fashioned a few keywords: “C ++”, “API”, “Java Log4j”
Avatar
Avatar
Steinchen
Hey, which maps have the most finishes? Excluding race stuff
#mapping
Avatar
Avatar
CrazyDevNEW
I very quickly went through the documentation and fashioned a few keywords: “C ++”, “API”, “Java Log4j”
Avatar
idk if that fits into mapping
17:20
mapping and maps are 2 different things
Avatar
Avatar
Steinchen
Hey, which maps have the most finishes? Excluding race stuff
i'd say flappy bird
Avatar
Avatar
Chairn
i'd say flappy bird
Nope, only new best time counts
17:22
nerfed it
Avatar
@Discord Mod
✅ 1
Avatar
Jupstar ✪ BOT 2022-08-18 20:17:23Z
Zwelf:
Avatar
Contribute to ortegaalfredo/kscope development by creating an account on GitHub.
Avatar
there's a python program to kill your hdd as well
21:12
or kill your vps' hdd
Avatar
feature idea: soft reset
21:31
soft reset will teleport you back to the last checkpoint, and it could be toggled within a map setting or tile or whatnot
21:31
cause sometimes a map doesn't work with teleport tiles so you're forced to make it faily
Avatar
allow practicing players to teleport to any cp location using a custom command: /tp [number], instead of having access in rcon (edited)
Avatar
Avatar
Cellegen
allow practicing players to teleport to any cp location using a custom command: /tp [number], instead of having access in rcon (edited)
Practice mode really needs kill tiles to act as /r and on dummy maps make dummy's /r not teleport it to the start of the map
Exported 114 message(s)