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-05-22 00:00:00Z and 2022-05-23 00:00:00Z
Avatar
Avatar
Cellegen | HU
@deen KEKW entities disappearing randomly, when reloading map
im having this bug as well
00:40
its random
Avatar
Avatar
Voxel
Trying to initally build a custom client on Windows with Visual Studio DDNet client by right-clicking the DDNet project (not the solution) and select "Select as StartUp project". does it mean Set as Startup project not select as? or am i doing something wrong
im scared to do this because i might break everything without knowing if it was right or not KEKW
Avatar
Avatar
Voxel
im scared to do this because i might break everything without knowing if it was right or not KEKW
It works fine, afaik it only sets the default project to be built
02:54
Maybe does more, idk
Avatar
i managed to get the whole thing working, almost now the hard part is to make the changes twinbop
Avatar
Definetly not well experienced with vs
Avatar
chillerdragon BOT 2022-05-22 06:12:48Z
Lol (@Ryozuki)
Avatar
@fokkonaut have you tested it?
Avatar
I have tested it now for you xD (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 08:45:27Z
yo @heinrich5991 while at refactoring logs can i request some feature from you? :)
08:46
it would be nice to have a config option that a server in idle does not do any logging. I have a bunch of empty servers running for years and their logfiles get polluted with "refreshing master server" "host lookup" etc
Avatar
``` [133/246] Building CXX object CMakeFiles/DDNet-Server.dir/src/engine/server/register.cpp.o FAILED: CMakeFiles/DDNet-Server.dir/src/engine/server/register.cpp.o /usr/bin/cmake -E __run_co_compile --tidy="clang-tidy;-warnings-as-errors=*;--extra-arg-before=--driver-mode=g++" --source=../src/engine/server/register.cpp -- /usr/bin/c++ -DCONF_DEBUG -DCONF_INFORM_UPDATE -DCONF_OPENSSL -DCONF_VIDEORECORDER -DGAME_RELEASE_VERSION="16.1" -DGLEW_STATIC -Isrc -I../src -g -fdiagnostics-color=al...
Avatar
how about max size of log file, so rotating the file after 1MB, and deleting old files, keeping only last 10?
08:54
but your suggestion with no output in idle would also be nice
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 08:56:29Z
i would like to check my log files after a long runtime and see if players joined and not only the last rotate 1mb full of masterserver refreshing logs
Avatar

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 if it works standalone, system.c especially
  • [ ] 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-addresssanitizer--u...
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:10:02Z
Can I store class names in variables in C++?
Avatar
chillerdragon BOT 2022-05-22 10:10:50Z
in ruby i can do this#!/usr/bin/env ruby class Foo end class_name = Foo f = class_name.new
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:11:43Z
I can create a instance of type Foo by saving the type Foo in a variable and then calling new on it
Avatar
5e4722e Bump teehistorian minor version due to different input handling - Zwelf b99d8dc Always apply last sent input - Zwelf 38c7a92 Already use second input - Zwelf 416af01 Sync chat/pause input with weapon and movement input - Zwelf 86f5728 Record player switch in teehistorian - Zwelf 44e94ee Keep last input on respawn when chatting or pausing - Zwelf bc17b29 Simplify chat check after rearranging player input - Zwelf 4a39c84 Fix comments - Zwelf 1738b0d Merge #5032 - bors[bot]
Avatar
Avatar
chillerdragon
in ruby i can do this#!/usr/bin/env ruby class Foo end class_name = Foo f = class_name.new
how about using templates?
Avatar
Avatar
[quakenet] ChillerDragon
I can create a instance of type Foo by saving the type Foo in a variable and then calling new on it
You can create a lambda (calling the constructor) and save it in std::function my_var. (edited)
Avatar
92df747 Ignore stun tool binary - ChillerDragon bb41d02 Merge #5188 - bors[bot]
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:41:18Z
Ou templates never bothered to understand those. Maybe thats what i want.
10:41
Lambda seems overkill.
Avatar
templates are best, ignore the haters
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:42:12Z
My current plan is to turn a int into a object. So i have a bunch of classes and they have ids and i kinda would like to skip the switch/if statement when creating a instance based on its id.
10:43
yea not sure if that idea is any smart tho
Avatar
sounds like a really weird design tbh xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:43:56Z
ikr
10:44
i think ill just go with the switch statement
Avatar
u generally should prefer to stay type safe if u need multiple classes and dont know the type. have one base class and do polymorphism on functions you usually use
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:44:50Z
yea i have a base class
Avatar
i dunno what exactly your usecase is, int into object sounds like u just want to overload all operators to act as an int
10:45
u can easily search the internet on how to do that
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:45:06Z
but when setting the base class pointer i only have an id
10:46
then i have to switch case the id and create a class dependen on that. but the class it self would hold that information so i would like to skip that step
Avatar
just write a virtual function "alloc" or smth
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:46:33Z
xd
Avatar
then u can allocate from the "real" class type
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:46:42Z
and what does it do?
10:46
how does it know the real class type
Avatar
i mean u kinda want to allocate an object of the class another object is from right?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:47:26Z
?xd
Avatar
the base class has allocate as virtual function the other classes that inherited from it, override it
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:47:33Z
yes
Avatar
Avatar
Jupstar ✪
u can easily search the internet on how to do that
https://github.com/rollbear/strong_type this one is known to used for that. It provides some base stuff to create custom types for different IDs. E.g. the lib makes it easier to create ObjectID, EventID, TypeID, etc types — all based on int but not interchangeable. (edited)
An additive strong typedef library for C++14/17/20 - GitHub - rollbear/strong_type: An additive strong typedef library for C++14/17/20
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:48:03Z
then i do NewClass(int id) which sets CBase *m_pThingy
10:48
im not going to use a fakin lib xd
Avatar
well anyway, maybe you should rethink your design
10:48
i doubt there is an situation where you really need this extra information
10:49
or are u writing some lib?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:49:26Z
yea i think my design is cursed
Avatar
It is small, one header only. "im not going to use a lib" == "I'm inventing wheels and want to ignore the others experience; code duplication is gooood"
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:49:40Z
nah im writin on ma ddnet fork
Avatar
Avatar
Kaffeine
It is small, one header only. "im not going to use a lib" == "I'm inventing wheels and want to ignore the others experience; code duplication is gooood"
^^
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:50:02Z
i just try to reduce additional typing effort when creating new classes
10:50
i currently have to register those classes in like 3 places
Avatar
but whoever uses the object knows the type anyway doesnt it?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:51:08Z
would be nice if one just has to create the cpp file and then enter the class name in some array and that array then handles intiialization and callback etc
Avatar
i mean you somewhere have a call like GimmeNewPistolProjectile
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:51:33Z
but i do GimmeNewPistolProjectile(int Type)
Avatar
and that function is where you could place the template or use the class type directly
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:51:50Z
then i gotta turn int Type into CYeetBullet or CFreezeBullet
Avatar
wtf xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:52:00Z
?xd
Avatar
really no idea what u want
10:52
but should not use int anyway
10:52
use an enum or smth
10:52
if u know all types
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:52:20Z
ea i use a enmum
10:52
actually
Avatar
pro
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:52:29Z
im rly tryharding refactor now
10:52
the thing is its dependend on user input
Avatar
i mean are u reading stuff from file or get the type over network?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:53:03Z
admin inters the int as rcon command
10:53
ENTERS
10:53
INTERS
Avatar
i'd still just do a switch(type) case PROJECTILE: return new CProjectile;
10:53
ok
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:53:37Z
but then every time i add new projectile i need to alter the switch
10:53
so much effort
Avatar
^^
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:54:26Z
i already have to maintain the fakin enum
Avatar
yeah i understand your problem, could just register to a object factory or smth
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:54:32Z
yeas!
10:54
object factory sounds good
Avatar
but its probs similar to what kaffeine sent 😄
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:55:17Z
i think ill just call a bash script that generates c++ code and hotloads a lib
10:55
that sounds sane
Avatar
chiller just look in engine/server/server.h at how the SendPackMsg works
Avatar
ez
Avatar
they also use templates
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:55:53Z
aaa templotes
10:56
template OS
Avatar
ez
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:56:20Z
u know TempleOS foxonaut?
10:56
its good meme
10:56
written in HolyC
Avatar
but i agree with u chiller, its easier to register ur type and dont care 😄
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:57:20Z
jupstar can u add the feature to c++ pls wherer i can do auto foo = CMyClassName and then new foo(my_constructor, args)
Avatar
typedef xd its just not a variable
Avatar
chiller just make a base class and then ez
10:57
let them inherit
Avatar
Avatar
[quakenet] ChillerDragon
but then every time i add new projectile i need to alter the switch
WIP: Infclass implementation based on the upstream teeworlds-0.7 codebase - teeworlds-reinfected/infcgamecontext.cpp at a8ab94219f3f2920527d1ffd9cb0a61f671c7a0f · InfectionDust/teeworlds-reinfected
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:57:57Z
then i could do auto aClasses = [CFoo, CBar] for(auto Class : aClasses) Class.new()
10:58
i got base
10:58
i got to 1st base
Avatar
xd
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:58:38Z
holy shit kaffein
10:58
that luks good
10:59
bra links soo loong
10:59
i gota zoom out soo far to click them xd
10:59
zooz
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 10:59:50Z
that looks lit
11:00
i think ill try switch first im in the middle of a refactor xd
11:00
but thanks a lot @Kaffeine
11:00
@fokkonaut fyi refactoring dummy code o.O
Avatar
again?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:01:28Z
ikr
11:01
to the moon
11:01
i wanna make robyt wet
Avatar
u can defs create allocators and then a list of allocators c++ class CBaseAlloc {virtual BaseClass* Get () = 0;} template<typename T> class CClassAlloc : CBaseAlloc {BaseClass* Get () override {return new T();}} somewhere CBaseAlloc *p1 = new CClassAlloc<typ1>() CBaseAlloc *p2 = new CClassAlloc<typ2>() std::vector<CBaseAlloc*> SomeStuff; for(auto& p : SomeStuff) p->Get(); smth like this
Avatar
i wanted to do that too, i think i would just make each dummymode a different class that inherits from ccharacter
Avatar
  • SomeStuff{p1, p2}
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:03:17Z
@fokkonaut i am actually moving the modes to player now because i thought it makes sense. To save state accross respawn. And also be able to set mode while the tee is not alive etc
11:03
this fakin c++ code so hard to read
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:04:23Z
also do not re heap allocate on every death
11:04
because heap is expensive
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:04:35Z
performance driven dragon
Avatar
then rewrite ddpp
11:04
xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:05:15Z
never
11:05
refactor > rewrite
11:05
change my mind
Avatar
just look where ur bottlenecks are
Avatar
nah u will always leave stuff behind
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:06:02Z
@Jupstar ✪ my bottleneck is in src/server
Avatar
and where exactly
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:06:15Z
*
Avatar
whole dir
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:06:19Z
da
Avatar
xd
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:06:52Z
it somehow even manages to take more cpu than a bitcoin miner
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:08:26Z
but im sure iterating over a list of classes to instanciate objects and check their id attribute against a interger to just create one new instance will help with perofmance
Avatar
why u even want to iterate
11:08
there are datatypes xd
11:09
std::map or unordered_map for huge lists
11:09
or use enums
11:09
then u can access directly with []
11:09
just make sure all enum types register a callback
11:09
the ids are probs not random
11:09
so u never need to iterate
11:10
id = 0 == first registered object
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:10:04Z
i probably should just stack allocate all classes even if only one is needed at a time
11:10
and then index the static array with enum xd
11:10
nothing beats the stack
11:10
memory is free anyways. My phone has more ram than the NASA pc that flew to the jupitar
Avatar
an already allocated heap object wont be much slower
11:11
a stack is also just a big dynamic allocated memory block xd
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:11:17Z
but allocating it takes time
Avatar
but why would u ever reallocate the allocator
11:11
do it at start of the server
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:11:39Z
that sounds so meta
11:11
maybe because i have no idea what your code does
Avatar
i dunno i just dont get wtf u are trying to do xD
11:12
u overthink your stuff a bit too much
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:12:33Z
tryna be smort
Avatar
if u use a object factory and never allocate the object other than over the factory u can also just add it to your switch statement
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:13:01Z
ikr :D
11:13
ima do the switch now
11:13
i will just hire a guy on fiver to change the code in the 3 places when i create a new instance
Avatar
ez
11:13
just implement a bash script that calls ruby code
11:13
problem solved
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:13:58Z
ikr
11:14
im so close
11:14
calling bash + ruby from c++
11:14
MATCH IN HEAVEN
11:14
you get buzzword from c++ and scaling from bash and the feature rich language from ruby
11:14
brrrrrrrrrrrrrrr
11:15
i swear im sober
11:17
jupjupjapstur when we get window splittin?
11:17
and can it have tmux bindings pls?
Avatar
we could add split screen support
11:18
but i dont think allocating multiple windows is a good idea for our needs 😄 just allocate 2 instances of the game
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:18:54Z
yes
11:19
but im a gnomie
11:19
i cant do window management
11:19
i depend on applications do it for me
Avatar
ok that totally convinced me ofc
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:19:37Z
also so much work to then spec my dummy from one client on the other one etc
Avatar
hello, i have a problem with the FSAA samples, is this known (gpu driver is ok)? i can't alt-tab or the client crashes, this is the case when the fsaa samples are greater than 0, which wasn't the case before. it causes a lot of lags, any idea?
11:20
mister jupstar i need u
Avatar
wasnt the case before what?
Avatar
before i updated the client from steam
Avatar
what is the current version?
11:20
16.1?
11:20
and 16.0.3 worked?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:20:58Z
@Jupstar ✪ imagine a spec_all command that auto splits as many screens as needed to spectate the whole server. :D
Avatar
would be funnyindeed, just need a cinema screen 😄
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 11:21:23Z
i would use it every 5 secs
11:21
like a nervous refelex
11:22
i would probably get brain damaged. But i need it!
Avatar
@nouaa but u can send me the %appdata%/teeworlds/dumps assert and crashlogs nonetheless
Avatar
Avatar
Jupstar ✪
16.1?
yep 10.1, and 10.0.3 worked great, my windows just crashed when i tried to alt-tab the game lmao
11:24
which file do you want in /dumps/
11:24
all?
Avatar
Avatar
nouaa
which file do you want in /dumps/
yes just send all
11:25
pm me
Avatar
Avatar
nouaa
yep 10.1, and 10.0.3 worked great, my windows just crashed when i tried to alt-tab the game lmao
[2022-05-17 20:06:28][datafile]: loading done. datafile=&#39;downloadedmaps/RedCastle2_de71ee62.map&#39; [2022-05-17 20:06:28][client]: loaded map &#39;downloadedmaps/RedCastle2_de71ee6...
Avatar
i also tried on vulkan and same issue
Avatar
Avatar
Jupstar ✪
so yeah, it works
Avatar
I'm not sure how the calls of CreateTextContainer()/DeleteTextContainer() can be related to the rendering system. The bugreport says it is on OpenGL 3.3 but I won't be relying on that.
Avatar
mhh
Avatar
Avatar
nouaa
so yeah, it works
does it always crash btw?
11:28
every time
Avatar
not always but 90% of the time
11:29
and when it does't, the screen is just black
Avatar
bcs there is no assert no crash log generated it seems
11:30
they are all from last month so i doubt they are what u experience rn
11:30
still interesting what kind of crashes u get
11:30
oh
11:31
u using a custom client?
Avatar
builded by my own? does it count?
Avatar
ddnet\src\game\server\entities\character.cpp(19): already used
11:31
yes but is it modified?
Avatar
i am asking only, bcs i wonder if these are actual ddnet crashes
11:31
ah ok
11:32
maybe u can quickly debug the problem?
11:32
its easier to see why it crashes in a debugger
Avatar
Avatar
Jupstar ✪
they are all from last month so i doubt they are what u experience rn
can it be due to a bad closing of the game? as i said my windows crashed and i had to reboot it, maybe the folders haven't saved the crash logs
Avatar
mhh dunno, possible but u said its even on OpenGL and only if u activate FSAA?
Avatar
yes, opengl and vulkan*
Avatar
and what fsaa is selected?
11:34
which number
Avatar
i tried some values, from 8 to 64 and same results
Avatar
ok really weird stuff
11:35
opengl fsaa defs didnt change between 16.0.3 and 16.1 but i changed the menu settings for it
11:35
but e.g. FSAA 4 doesn not crash?
Avatar
let me try
Avatar
its strange FSAA 8 crashes it, i think its the same as using FSAA 8 in DDNet 16.0.3
11:37
64 is "new" but should normally be clamped by the implementation internally
Avatar
it works with 4, but it crashes instantly with 64
Avatar
ok
Avatar
the crash seems to be random
Avatar
so its maybe not checked correctly for opengl
11:38
but vulkan should defs be checked
11:38
really weird
Avatar
now the client wont open anymore, do you want the dumps? (edited)
Avatar
sure
11:40
still no new logs apparently
Avatar
is this ddnet from steam?
Avatar
for me when using OpenGL and selecting FSAA 64, it automatically sets it back to 8
Avatar
should i take a video when it happens? xd
Avatar
a debugger would help more
11:45
but
Avatar
well, i have never debugged anything, how do i do it
Avatar
ah
11:46
can u open the client in a terminal?
11:46
or f1 log "test.txt"
11:46
logfile*
11:47
or since u are in steam add "logfile test.txt" to the start parameters
Avatar
send me the test.txt its in the local steam files
11:48
(after the client does not start) (edited)
Avatar
can't find it xD, where is it
Avatar
Avatar
Jupstar ✪
send me the test.txt its in the local steam files
oh
Avatar
[quakenet] xq BOT 2022-05-22 12:07:07Z
deen: Could you send me the tournaments file you're opening on this line? https://github.com/ddnet/ddnet-scripts/blob/master/servers/scripts/tournaments.py#L29
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 12:12:10Z
who u xq
Avatar
Apparently NVIDIA drivers don't fail on context creation if a unsupported FSAA count is used. (For me it does and automatically sets the FSAA sample to the first working FSAA number) Desktop OpenGL has no way to query the amount of FSAA it supports, so I just clamp it to 8 for OpenGL for now, since the client always allowed these values. Vulkan has a way to query it, and also uses it already. noaa could only reproduce it with OpenGL setting FSAA to 64 GLES 3 [has a way to query max FSA...
Avatar
@Jupstar ✪ hey thx for the credit but i think your missed up
Avatar
noaa = no anti aliasing
Avatar
jk
12:52
i felt dumb for a second
Avatar
^^
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 12:54:20Z
xq i didnt test it but this should be the file https://paste.zillyhuhn.com/Le
12:55
generated using this script https://paste.zillyhuhn.com/ib
13:00
time to release a tournament map with pipe character in the name to break the script axaxaxax
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:10:11Z
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/character.cpp at bb41d02c69881fa07aab8029c0ae0b06e8644395 · ddnet/ddnet
13:10
i feel like that happend after my lunch merge
Avatar
Avatar
[quakenet] ChillerDragon
nouaa also got it a few days ago
13:11
maybe its a new bug
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:11:32Z
i get it every time i connect a dummy
13:11
since the new commits from this morning
Avatar
rip
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:12:04Z
ddnet has no serverside dummys so its a me issue
13:12
but idk how those changes from today could even relate to anything
13:13
13:13
did i lose my last braincells or where are player instacnes allocated!?
13:13
ah got it
Avatar
character != player tho?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:13:49Z
13:13
watefek is a new parameter
Avatar
u can overload opeartors in c++
13:14
seconds best feature after templates
13:14
xd
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:14:18Z
but CPlayers constructors signature changed today
13:14
so thats sus
13:14
ok
13:14
if u say so i belive u
13:14
veri cool feature
Avatar
yes
13:15
so u say it changed
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:15:28Z
some constructor got new paras
13:15
ima do some print driven debugging
13:15
i keep you posted tho no worries
13:16
@Jupsatr u like my bash script?
Avatar
which one
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:16:14Z
i rly needed to write some shell as a break from this crazy c++ refactoring
13:16
i sent to this ranom irc dude 2min ago
13:16
click my fishy zllyhuhn.com links
13:16
parsing html in bash is bae
Avatar
sure, what can possibly go wrong
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:16:48Z
hrhr
Avatar
nice
13:17
regex extreme
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:17:08Z
pog
13:19
omg NextUniqueClientID += 1; is this C++ or is this C+=1
13:20
lets add ++ style enforcement to clang tidy
Avatar
lol true
13:20
++C tho
13:20
u dont need the copy of the object
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:21:13Z
wot
13:21
c++ is copy?
13:21
and ++c isnt?
Avatar
yes
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:21:26Z
wew
13:21
so ++c is masterrace
Avatar
c++ creates a copy and then increases c "silently"
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:21:40Z
nobody ever uses ++c tho
Avatar
while ++c increases c and returns the new value
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:21:43Z
does it even save?
Avatar
i usually write it in for loops 😄
13:22
if u find it in ddnet, it probs was me
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:22:28Z
but in loops its ever crazier
Avatar
its also nice sometimes in certain opeartors
13:22
Array[++c] = ..
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:22:38Z
because then its diff behavior isnt it?
Avatar
c++; ++c; is basically the same
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:23:00Z
yes as a single statement
Avatar
but int a = ++c; and int a = c++ is different
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:23:06Z
but not when u pass the value riguht?
13:23
yes
Avatar
yeah
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:23:20Z
and in a loop u kinda "pass the value"
13:23
arent u?
13:23
like to the comparison and shit
Avatar
also ++c returns c as reference
13:23
can be useful too if u want to overload stuff and keep the signature
13:24
of the function
13:24
for(int i = 0; i < 5; ++c)
13:24
there is no behavior change
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:24:45Z
im so gonna switch to ++c
13:24
and ill feel so gangster
Avatar
yes
13:25
good choice
13:25
lets get the ddnet mafia
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:25:32Z
but we all know wats best
13:25
`c="$((c+1))"
13:25
`
13:25
AAAAAAAAAAAA QUOTE
13:26
bash syntax is just beautiful
13:26
always quote your integers because they might be strings that word split axaxaxax
Avatar
who needs integers if u have strings
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:26:58Z
ikr
13:27
and who needs floats when u got strings
13:27
bash cant do fakin float maffs
13:27
u know why?
13:27
because floats buggy
Avatar
strings also have no boundry, so much better
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:27:43Z
and bash has no bugs
Avatar
int32... 32bit what nobos
13:28
true, bash is perfect
13:28
it even works without using shellcheck
13:28
thats how awesome it is
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:29:16Z
you shouldnt do that tho
13:29
did you ever check the bash man page?
13:29
it has good marketing
Avatar
ofc not xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:29:47Z
from he bugs section:
Avatar
i write bash until it works xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:29:50Z
It's too big and too slow.
Avatar
ez
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:30:09Z
Avatar
d1914fb Add 100 € donation by cris - def-
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:30:42Z
its deeply undervalued
13:30
invest in bash now
Avatar
make a pr rename BUGS into FEATURES
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:32:35Z
ddnet style
13:32
hrhr
13:32
btw i fixored the invalid id issue
13:32
it was indeed the new cplayer constructor
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:32:59Z
and the fishy fingerprinting ids
13:33
used to collect data for facebook
13:33
like watafak ddnet
13:33
NextUniqueClientID is literally spyware
Avatar
yeah true, a value between 0 and 63 sends way too much personal data
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:34:37Z
is it?
Avatar
lets obfuscate it
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:34:40Z
its not clamped
Avatar
ah
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:34:50Z
13:34
its permanent tracking id
Avatar
a value between 0 and 2³¹
13:35
even scarier
13:35
and then it overflows
13:35
boom
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:35:09Z
yes thats very specific
13:35
d
13:35
if one floods server with reconnect
13:35
its RCE
Avatar
its unsigned
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:35:59Z
its even unused
Avatar
xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:36:08Z
only the closed src ddnet spy patch uses it
13:36
this is literally sus
Avatar
yeah 😄
13:36
antichillerdragon source code
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:36:49Z
im on to something
13:36
if i disappear
13:36
ddnet sus
Avatar
i put that on my detective list
Avatar
um, where is NextUniqueClientID?
13:38
CPlayer::CPlayer(CGameContext *pGameServer, int ClientID, int Team) is the constructor I see for CPlayer
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:38:12Z
its in latest ddnet patch from today
13:38
brand new spyware
Avatar
turbosus
Avatar
learath is ddnet admin
13:38
dont trust him
13:38
xd
Avatar
Ah, it's for saving stuff in teehistorian safely
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:40:34Z
tinfoil dragon plushie
13:40
Avatar
Damn exposed
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:40:58Z
that commit message lmao xd
Avatar
nice plushie
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:41:48Z
ikr @SoulyVEVO made it
13:41
tru fan
Avatar
and sent it to u?
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:42:07Z
no :(
Avatar
:c
13:42
else would be a legend
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:42:19Z
he only sold me the image as nft
13:42
for 60 bucks
Avatar
fair enough
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:42:38Z
ik
13:42
itll be worth a zillion in a few years
13:43
u wanna buy it?
Avatar
I'll pay 1$ for it
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:43:32Z
wtf
13:43
thats insulting
Avatar
okok 5$ last offer
Avatar
if it would be my skin
13:43
i would pay 15$
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:43:53Z
for the nft? xd
Avatar
no
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:44:04Z
physical?
Avatar
yes
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:44:11Z
do u even have a tee?
13:44
gayfox?
Avatar
but make it extra soft pls
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:44:20Z
why me?
13:44
im not fakin soer
13:44
its soli
Avatar
yes but i also take nanami
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:44:36Z
skin changer
13:44
changing skin is like buying fake boobs
13:45
extra soft tho!
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:45:08Z
u look hot
Avatar
ikr
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:45:16Z
is it svg?
13:45
its so sharp
Avatar
its exported to smth high
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:45:37Z
ye ofc
13:45
"exported"
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:45:50Z
we all know ur client has a svg renderer you dont want to share
Avatar
hehe
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:46:08Z
and it uses electron
13:46
thats why u care about fps
Avatar
yes for the UI
13:46
xd
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:46:17Z
because u dont have any
Avatar
xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:46:22Z
:p
Avatar
just make everything else extremly fast
13:46
then u can use electron
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:46:38Z
dragon exposes everything
13:46
if electron was written in bash...
Avatar
It is common knowledge that Jupstar uses slave labour to draw the frames of the UI with pen onto his screen 144 times a second
Avatar
then they'd need to call it quantum instead of electron
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:47:12Z
haha true
13:47
humans is the best graphics engine
13:47
i have my slaves perform something theather like in my living room
13:47
they do live performance acting tees
Avatar
i really wonder if back in the antique, there were ppl with concepts like this using slaves to have a moving image
13:48
i mean they had the slaves, gotta use them somehow
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:48:53Z
i hope nobody ever finds these public irc logs
13:49
hi future employer i have no slaves in my basement
Avatar
1e6df0c Lower max allowed FSAA on OpenGL - Jupeyy 377d4c3 Merge #5190 - bors[bot]
Avatar
would be a funny time explaining yourself
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:50:55Z
we gotta rename master branch to main to be brandsafe
Avatar
+1
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:51:13Z
and use ukrainiski colors in ddnet logo
Avatar
oh yeah
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:51:23Z
+lgbtq flag
Avatar
absolutly
Avatar
After commit 3c597aff959aa8bc9bf22c6c65e6e071209cf183 a part of the map is not rendered. Expected menu looks like this (works on DDNet 16.1): !image The issue can be reproduced by joining an infclass server (Infclass or InfclassR gametype). The menu is only visible at the start of the round so you might prefer to join an empty server (e.g. "Training camp ..."). Previous issue:...
Avatar
as long as purple is in it
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:51:50Z
and we need more woman devs
13:51
otherwise sexist
Avatar
bcs purple is blue and red in one color its the best of the best
13:52
most ppl either like blue or red
13:52
i take both
13:52
nobos
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:52:31Z
purple > red > blue
13:52
change my mind
13:52
also ur skin is literally blue so watafaka
13:53
is there any known female contributor to ddnet codebase?
13:54
or only white old straight men?
Avatar
@unexploredtest:kde.org BOT 2022-05-22 13:55:28Z
Now you got me interested (<@749222324980416602_=5bquakenet=5d=20=43hiller=44ragon>)
i hope nobody ever finds these public irc logs
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:56:46Z
im not female btw
Avatar
@unexploredtest:kde.org BOT 2022-05-22 13:56:58Z
...
13:57
I kow xd
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 13:59:50Z
we have to make it more attractive for minorties
14:00
and deen has to stop post such images on snapchat
14:00
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:03:24Z
There are already a lots of minors in DDNet (<@749222324980416602_=5bquakenet=5d=20=43hiller=44ragon>)
we have to make it more attractive for minorties
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:03:43Z
like?
14:03
i am talkin just about dev team btrw
14:03
not all tw
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:03:57Z
Oh
14:04
I see
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:04:16Z
we gotta change the mindset that software development is a male job
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:04:47Z
how xd
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:04:55Z
xd
14:04
idk man
14:05
im half trolling tbh
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:05:18Z
xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:05:52Z
i guess not harrasing ppl based on gender is a good start
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:06:14Z
You're sus
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:06:41Z
._.
Avatar
fixes #5191

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 if it works standalone, system.c especially
  • [ ] 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-addresss...
♥️ 1
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:07:22Z
jk (<@749222324980416602_=5bquakenet=5d=20=43hiller=44ragon>)
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:07:28Z
I actually have no idea if one ever did not join ddnet development because of gender
14:07
im not sure how something like that even works
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:07:57Z
Like cause it's mostly male?
14:08
Huh idk, but you guys are friendly so that's a win
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:08:28Z
i think its less about ddnet being unfriendly to females but more that females just do not think about getting into tech because thats what society showed to them
14:08
so we gotta fake some female dev stats to inspire actul women to join
14:09
yes
14:10
we just have to make some ddnet news announemcnent that the ddnet development team reached a 70% percentage of female devs. And then someone for sure would show and and be like. WOW IM FEMALE TOO LEMME DEV
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:10:12Z
Oh and btw some people can have problems with the usage "females"
14:10
modern problems requires modern solutions xD
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:10:22Z
ou yikes
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:10:25Z
Idk why but some women are uncomfortable with it
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:10:33Z
eh wat to say then?
14:10
non male
14:10
feminine
14:11
ok neough trashtalk for today (not that including minorties is trash)
14:11
i go rq irc
Avatar
@lynn did you get a commit in ddnet yet?
Avatar
Jupstar ✪ BOT 2022-05-22 14:14:39Z
lol why does it say kde.org on discord
14:14
how did u get a job at kde xd
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:14:41Z
Lmao
14:14
Imagine DDNet being in news
Avatar
Jupstar ✪ BOT 2022-05-22 14:15:24Z
what do u mean
Imagine DDNet being in news
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:15:42Z
Cause I'm using the kde.org homeserver
lol why does it say kde.org on discord
Avatar
Jupstar ✪ BOT 2022-05-22 14:15:53Z
ah lol
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:15:55Z
I've signed up before the regitration closed up
how did u get a job at kde xd
Avatar
mh, why won't github build mine? 😦
Avatar
Jupstar ✪ BOT 2022-05-22 14:18:16Z
i need to infiltrate KDE's game department. They need better games eheheh
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:18:55Z
Wdym Kapman is the best game ever made
Avatar
Jupstar ✪ BOT 2022-05-22 14:19:24Z
xd but they need a 4k HDR version
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:19:37Z
xD
14:19
When I play it in 4K it just slows down
14:20
Like the character just moves slowly
Avatar
Jupstar ✪ BOT 2022-05-22 14:20:09Z
lol
14:20
pro coders at the work
Avatar
@unexploredtest:kde.org BOT 2022-05-22 14:20:49Z
DDNet is the only game that runs well in 4K for me
Avatar
warning: 'pt_guarded_by' only applies to pointer types; type here is 'std::shared_ptr<CHttpRequest>' [-Wthread-safety-attributes]
Um what
Avatar
ya no i only did something for the website
14:39
and weird to talk about the absence of female ddnet devs cus like 90% of the players are male. are there even 10 devs
14:40
and also the real issue is that girls keep getting raised by "girls" and not encouraged to do tech shit. then those girls grow up and eventually have kids and raise them that way
14:40
repeat the cycle
Avatar
how on earth is shared_ptr not a pointer type?
Avatar
and no doubt that tons of developers have been creepy dudes to women
14:40
across the industry
14:41
it's kinda like construction or business
14:41
if there's enough testosterone in the building it's bound to happen
14:43
tbh ur bound to get some trans devs at some point
Avatar
well there is some female coders in ddnet
Avatar
tons of us doin free open source shit all the time
14:44
active tho?
Avatar
in teeworlds*
Avatar
Avatar
lynn
and also the real issue is that girls keep getting raised by "girls" and not encouraged to do tech shit. then those girls grow up and eventually have kids and raise them that way
thats changing a lot in some areas
Avatar
chillerdragon BOT 2022-05-22 14:45:39Z
So we need to adopt females and raise them techy
14:45
Got it
Avatar
idk just like. i think it's both like, raising women to be people instead of just women + allowing women to feel like people instead of just women in the workplace
14:47
it's like a weirdly simple thing but lotta people are just like "OMG A GIRL"
14:48
my software dev cohort was 50/50 though
14:48
lotta girls
14:48
41b17e6 Disable IPO by default since it slows down linking a lot - def- e0a55f8 Use better available linkers (mold > lld > gold > ld) - def- 557253d Keep one C compiler flag for compiling zlib - def- c4377bb Always initialize vec2/3/4 - def- 3116494 Fix some uninitialized variables, found with valgrind - def- 8923b75 Disable link-time LTO-induced warning - def- 85ce4fc Merge #5185 - bors[bot]
Avatar
i kinda doubt its the males fault
Avatar
it's fs both
14:49
cus like. ive seen it
Avatar
also its not too uncommon that some jobs are preferred by one site
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:49:35Z
@lynn not sure if i get ur point tho. I was raised by a woman too. And yet my native language is x86 assembly
justatest 1
Avatar
idk if it's that weird of a point to say both men and women treat women a certain way
14:50
i think it's totally true
Avatar
everyone treats any gender a certain way
Avatar
imo most important is that male and female are around 50/50 in politics, bcs thats what represents all ppl
14:50
rest is more about own interests
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:50:46Z
ddnet admins all male?
Avatar
Learath has Lea in his name
14:50
😉
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:51:00Z
Rosita for admin
14:51
Learaths name is so cursed
Avatar
Everyone thinks I'm a girl because of the Lea
Avatar
and you are
Avatar
you have a pretty manly name to me
Avatar
everyone thinks sorah is a girl
Avatar
and she is
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:52:32Z
xd
Avatar
Avatar
louis
everyone thinks sorah is a girl
I don't
Avatar
sorah can be a girl if she wants to be
14:52
but he's not troll
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:53:06Z
mixing he and she.. wonderful
Avatar
Avatar
louis
everyone thinks sorah is a girl
it's the R34 skin
Avatar
Getting 5092 to build properly has been such a pain
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:53:40Z
wats R34
14:53
is it hot?
Avatar
@lynn would "trans girl" trigger you?
Avatar
anyway i still think guys get treated neutrally compared to women
Avatar
Avatar
Jupstar ✪
@lynn would "trans girl" trigger you?
wdym
Avatar
german wikipedia suggest to use it, since its biologically different
Avatar
well idk i don't personally care at all
14:54
some ppl do tho
Avatar
Avatar
lynn
idk if it's that weird of a point to say both men and women treat women a certain way
both men and women treat men a certian way too
Avatar
i would be weirded out if someone tried to think i was just a girl i think
Avatar
Avatar
lynn
anyway i still think guys get treated neutrally compared to women
what is neutral? you are sort of assuming the way society treats men is the "default"
Avatar
its true there are not many women, but in my classes they were always encouraged and never frowned upon, imho it may be more a problem rooted on parenting than the young generation having a bias
Avatar
The two are definitely treated differently, but I'm not sure what the "neutral" version would be 😄
Avatar
by neutral i mean in a connotation sense
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:56:12Z
@Learath2 i smell conflicts
14:56
Http::EscapeUrl wil def bite my butt
Avatar
[quakenet] xq BOT 2022-05-22 14:56:38Z
ChillerDragon: Thanks! :)
Avatar
men by default get drafted and go die, women by default get a chance to escape from war
14:56
hisnail
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:56:47Z
xq no warranty
Avatar
If I keep fixing the stupid PR up and you people keep adding stuff
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:56:53Z
but sure ur welcome :)
Avatar
i had pretty good experiences in school i guess
14:57
so i don't have like personal exposure
Avatar
[quakenet] xq BOT 2022-05-22 14:57:18Z
ChillerDragon: It's perfect, this script is super readable and maintainable.
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:57:24Z
pog
14:57
wait wat
Avatar
Please @heinrich5991 can we get #5092 done? If you don't like it I can just dump it
Avatar
This PR tries to rework the http interface to utilize the curl-multi interface. In the process we lost the IJob interface. I experimented with getting rid of the std::unordered_map using CURLOPT_PR...
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:57:42Z
did you just call my bash pipechain maddness readable? xd
14:58
make it non draft if your after merge?
Avatar
I like the multi stuff
Avatar
Avatar
Ryozuki
its true there are not many women, but in my classes they were always encouraged and never frowned upon, imho it may be more a problem rooted on parenting than the young generation having a bias
again i feel like that part is cool too
Avatar
I don't want to dump it
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:58:24Z
multimap
Avatar
but for the third time. guys in tech can be creepy
Avatar
what's the status of it? @Learath2
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:58:35Z
wat part
Avatar
and also women get talked over a lot
14:58
it tends to not happen so much now tho
14:58
like
14:59
we're way more PC than like 20 years ago
14:59
we don't wanna shut anyone up
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:59:17Z
wats PC
Avatar
politically correct
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:59:28Z
a
Avatar
that's probably not the right word but still gets the point across ig
Avatar
personal computer
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 14:59:56Z
trol
Avatar
why does #5186 have no reviewer?
Avatar
I'll still build the official builds with IPO=ON. CC @Kaffeine Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related c...
Avatar
ah lol
15:04
other pr includes it
15:05
this is really weird stuff xD
Avatar
Avatar
heinrich5991
what's the status of it? @Learath2
I'm patching CRegister to use it
Avatar
ah
Avatar
@heinrich5991 do you know how I can test quickly if I fucked it up?
15:15
will it just register with http if I launch it normally?
Avatar
yes
15:16
you need port forwarding though
15:16
otherwise it'll not successfully register
15:16
you can launch a local masterserver if you want to get around it
15:16
(that's what I did for testing)
15:18
execute RUST_LOG=mastersrv,info cargo run --release -- in src/mastersrv to start the local masterserver
15:19
build/DDNet-Server "sv_register_url http://localhost:8080/ddnet/15/register"
15:19
to make the server use the local masterserver
Avatar
hm, my port is forwarded, yet I can't seem to register even on master
Avatar
if you have a local rust installation, could you check with the local masterserver?
Avatar
@heinrich5991 I get no output at all from register if I launch with the command you gave
15:23
oh, cd'ing into build and running there seem to have fixed that
Avatar
hm 😦
Avatar
still won't succeed in registering
Avatar
hmmm?
15:24
what does it say?
Avatar
oh
Avatar
It seems to have both succeeded and not succeeded at the same time 😄
Avatar
[2022-05-22 17:19:55][register/6/ipv6]: ERROR: the master server reports that clients can not connect to this server. [2022-05-22 17:19:55][register/6/ipv6]: ERROR: configure your firewall/nat to let through udp on port 8305.
15:25
you need to ignore this message
15:25
it's always shown
Avatar
Oh, why? 😄
Avatar
idk how I managed to do it, but it's a pretty obvious bug in the code
15:25
just haven't fixed it yet
15:26
if you get status: success, all is good
Avatar
Okay, then I haven't broken anything
Avatar
perfect. sorry for the mess with the bug ^^
Avatar
Fingers crossed I think I have it this time 😛
Avatar
I should probably also deduplicate the messages from the different protocols…
15:29
no internet for a while
15:29
gl
Avatar
Q: Do you think it'd be worth to go through the code and get rid of uses of LOCK? std::mutex is like C++11
15:50
i mean as cppreference says, std::mutex is usually not used directly, but rather unique_lock, lockc_guard
15:50
so we should use those
15:51
and remove our own lock stuff
15:51
also its more dev friendly since more ppl are bound to know the std lib than our random functions
15:51
and probably safer
15:51
just do it
Avatar
JUST DO IT!!
15:52
i remembered some voice
Avatar
yesterday you said tomorrow
Avatar
idk where from
15:52
maybe some motivational video
Avatar
shipped macOS curl is too old to have curl_multi_poll what do you think I should do about that?
Avatar
shia labeouf
Avatar
Avatar
Learath2
shipped macOS curl is too old to have curl_multi_poll what do you think I should do about that?
ask deen to update
15:52
XD
Avatar
shipped as in the one shipped with macOS
Avatar
remove macos support xd
Avatar
I guess we should be shipping our own and I can just quit if curl version is too old to support curl_multi_poll
15:59
I could emulate multi_poll with multi_wait
16:03
I was supposed to study, spent 2.5 hours messing around with CI and merge conflicts
Avatar
another fun question: is NUM_EMOTICONS automatically calculated, or is it hidden somewhere in the code? i'm trying to add the extended emoticon selection but i want to make sure everything lines up nicely when i test it for the first time. (edited)
Avatar
Avatar
Voxel
another fun question: is NUM_EMOTICONS automatically calculated, or is it hidden somewhere in the code? i'm trying to add the extended emoticon selection but i want to make sure everything lines up nicely when i test it for the first time. (edited)
It's generated in network.py
16:04
I think
Avatar
i found it
Avatar
i mean NUM_EMOTICONS is just an enum variant
16:04
so yes it is
Avatar
Emoticons = ["OOP", "EXCLAMATION", "HEARTS", "DROP", "DOTDOT", "MUSIC", "SORRY", "GHOST", "SUSHI", "SPLATTEE", "DEVILTEE", "ZOMG", "ZZZ", "WTF", "EYES", "QUESTION"] it'll automatically add the NUM_EMOTICONS to the end while generating the enum
Avatar
that's useful!
Avatar
that's strange, if you add more to the emote list it uses the GUI icons instead, and you can't send the new emotes either
Avatar
It definitely wont be easy to add more to the emote list :D
Avatar
so my first plan is to make it so that the new emotes sends over flags that the server can read (substituting one new for one old), so that it doesn't completely flatline when i try to use one
Avatar
Iirc you need a change in content.py to create the extra sprites from the image
Avatar
yeah, i changed both the grid size and the container items in both content and seven/content
Avatar
Don't touch anything in seven/
16:24
That folder has to be the same as it is in 0.7 for sixup to work properly
16:25
If you added your new emote sprites in content I don't see why gui icons would be showing up on the wheel
Avatar
yeah, made a new sheet, which simply extends the 4x4 grid of 128px to 5x5
Avatar
Maybe do a clean rebuild? So generated stuff gets generated properly again?
16:27
Also I doubt just extending the sheet will give you the correct numbers in the enum, you might need to modify the generation a bit to force the old sprites to keep their original numbers
16:27
It might work if you extend the grid downwards, keeping the 4 width, though I haven't read the relevant code in a while, so take with a grain of salt
Avatar
i made the new tiles in an order that lets the old emotes still have the same id
16:29
but maybe it would be best to make it only extend downwards; for readability
Avatar
Ok took a look, extending either way is fine, it seems the order in content.py is the only thing that matters
Avatar
yeah the order of the original emotes were untouched
16:32
i want this edit to be backwards compatible, so making sure the original emotes are as accurate to the original code as they can be is necessary (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-05-22 16:56:59Z
@lickout
16:57
u here?
16:59
sos @lickout
16:59
u last
Avatar
Avatar
Voxel
that's strange, if you add more to the emote list it uses the GUI icons instead, and you can't send the new emotes either
at least it looks pretty full
lol 1
Avatar
oh no do i have to edit client_data.cpp??
Avatar
no it gets generated by the corresponding python files (as soon as you compile) @Voxel (edited)
17:04
in /datasrc
Avatar
im compiling but it's not autogenerating, for some reason
18:44
2677949 Add missing nanosecond conversions - Jupeyy 344eeaf Merge #5192 - bors[bot]
Avatar
If I want to keep a list of client IDs that need to be iterated over frequently, not so frequently adding or deleting a client ID, what do you think is the best option? Usually the list will contain 0 to 1 ClientIDs, but can have 63 maximum.
  • Use a vector and when deleting search index once to delete.
  • Set or unorderd_set?
It's about the list of players that are hooking you.
Avatar
bitarray?
Avatar
we do not want to iterate over all 64 posible clientIds because it is iterated very often
18:58
in snap()
18:58
I think a vector should be the fastest. (edited)
Avatar
a set is sorted anyway
19:00
or do you want that?
Avatar
for iterating a vector would perhaps be fastest and also easiest
Avatar
ye vector
Avatar
not needed currently I only added in https://github.com/ddnet/ddnet/pull/5063 to the character Snap function a loop to look up if a attached hook is in the view of the player... And fokkonaut told me to not use the complete list of all 64 players
Avatar
sounds reasonable
Avatar
is there a tutorial or documentation on how to build ddnet on mobile? (based on an old version)
Avatar
Avatar
nouaa
is there a tutorial or documentation on how to build ddnet on mobile? (based on an old version)
There is a way to build it on new version, but I haven't tried it yet: https://github.com/ddnet/ddnet/tree/master/scripts/android
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/scripts/android at master · ddnet/ddnet
20:44
seems complicated and you need to build all ddnet-libs first
Avatar
complicated is my other name
PepegaChatter 1
20:45
gigachad
20:45
thx deen
Avatar
Jupeyy reports 1600 -> 70 fps with ellipsis in scoreboard now For me it's 50 fps before this change, 160 with this change, 400 without ellipsis

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 if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics tha...
Avatar
It's really easy actually. Just use android studio and execute the two shell scripts
21:00
It's only hard if u don't use Googles android studio
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 if it works standalone, system.c especially
  • [ ] 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-addresssanitizer--u...
Avatar
Why is ellipsis so slow? Couldn't the shorted names be stored if necessary?
Avatar
atm we rerender all strings for each frame, limitation of our entire UI rendering system
21:32
And for ellipsis you have to backtrack/check multiple chars in advance if the rest fits
Avatar
Avatar
deen
And for ellipsis you have to backtrack/check multiple chars in advance if the rest fits
Couldn't the check actually be reduced to: 1. calculate the total length of the text 2. if it fits on the field length, render it completely without further calculations 3. otherwise subtract the length of the ellipsis from the total length of the text and render the characters up to this length 4. render as final ellipse i only had a rough look at your algorithm, it just seemed to me that you could save a few calculations that way.
22:07
mh I think that is not so much different xD than what you have done
Avatar
On official servers: `` Core was generated by ./DDRace64-Server_sql -f servers/8319.cfg'. Program terminated with signal SIGABRT, Aborted. #0 GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. [Current thread is 1 (Thread 0x7f3d59204700 (LWP 1347467))] (gdb) bt #0 GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007f3d5c2ac537 in __GI_abort () at abort.c:79 #2 0x000...
Exported 839 message(s)