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-04-14 00:00:00Z and 2022-04-15 00:00:00Z
Avatar
how work color?
00:14
why 0.0 to 1.0?
Avatar
Francesco v.m.k 2022-04-14 01:26:04Z
hey quick question if i want to start working on the ddnet code which ide shuld i use?
Avatar
it seems most ddnet developers use notepad
justatest 2
02:37
so maybe that
02:37
otherwise visual studio code is ok
Avatar
Avatar
Francesco v.m.k
hey quick question if i want to start working on the ddnet code which ide shuld i use?
anything with c++ support
Avatar
Avatar
Francesco v.m.k
hey quick question if i want to start working on the ddnet code which ide shuld i use?
Most of us use some form of advanced text editor instead of a full fledged ide. VSCode and Vim are probably the most popular two
Avatar
chillerdragon BOT 2022-04-14 06:58:59Z
Is this a troll or where did you get that statistic from haha? (@baby frog)
it seems most ddnet developers use notepad
Avatar
Avatar
bencie
hey, what uses so much memory? downloadedskins / downloadedmaps / demos / maps / ghosts maybe? i deleted all my assets but my gfx mem stays really high and i crash when trying to enter assets tab
more skins more ram/vram as far as i know they arent lazy loaded
Avatar
chillerdragon BOT 2022-04-14 07:40:23Z
Did you try running a headless client to save vram? hehe
Avatar
Avatar
c0d3d3v
I would prefer to use VS-Code instead of VS, its more light, faster and easier to use and to configure (edited)
vscode and vs are not the same kind of tool
07:56
vscode is by default a simple text editor while vs is an ide
07:57
also some people would recommend vscodium so you don't have all the shit from microsoft
07:57
same afterall
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 08:26:25Z
i use both vscodium and vscode but do not notice much of a difference. I setup vscodium to use the m$ extensions tho so i can get all those proprietary vscode-stories extensions :D
Avatar
because vscodium is the same, they've forked it to remove microsoft's trackers
Avatar
Last I used vscodium was also using a much less equipped extension store with sometimes out of date extensions, so that's the only difference I found
Avatar
Avatar
Learath2
Last I used vscodium was also using a much less equipped extension store with sometimes out of date extensions, so that's the only difference I found
ye that used to happen
08:34
doesnt happen now
08:34
im using vscodium now
08:34
and neovim
Avatar
damn I remember using code:blocks when starting to learn C++ (edited)
Avatar
The first time I was learning C++ Dev-C++ was a thing
08:37
Apparently it's still a thing and it's open source and still developed 😄
08:37
Written in Delphi
Avatar
nowadays I use Intellij products
08:37
or sublime text 4, easy to use & very light
Avatar
I used to use sublime 3 a lot, then the author mostly abandoned it, so I went to vscode
08:40
I actually have a sublime license even iirc
Avatar
well sublime text
08:40
u go on github, in 2 minutes you find tons of licenses
Avatar
Pirateman
Avatar
I have a full priced license as I'm a good citizen
08:43
80$ for a license upgrade from 3 to 4 is criminal, only a 20$ discount if you have an old license lol
Avatar
rn I'm working on a program that helps to automate a business process, it's called Bonitasoft
08:43
pretty cool, as I hate web dev, the bad news it's using java
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 08:55:21Z
@Learath2 yea just activate the official ms store and u good in vscodium. On arch thats one aur package hehe. What is even your main system nowerdays? Mac? Also lol paying for sublime
Avatar
Gentoo, but I honestly don't code much nowadays
08:57
I spend my days trying to get myself to study and staring at walls contemplating what went wrong in life
Avatar
i started the journey to a sane website https://github.com/edg-l/ddnet-web-modern
A rework of the ddnet.tw website with the objective to make it more maintainable by others and modernize it. - GitHub - edg-l/ddnet-web-modern: A rework of the ddnet.tw website with the objective t...
09:05
(dont expect much, it has nothing rn)
09:07
no more versioning css files every time, just checksum the file kekw
09:07
aPES_Violin
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 09:09:05Z
@Learath2 dark..
Avatar
https://github.com/ddnet/ddnet/pull/4970 Fixes ``` Direct leak of 205848 byte(s) in 1 object(s) allocated from: #0 0x4a200d in malloc (/home/runner/work/ddnet/ddnet/san/DDNet-Server+0x4a200d) #1 0xc7fe3f in net_udp_create /home/runner/work/ddnet/ddnet/src/base/system.cpp:1640:41 #2 0xbf2d0b in CNetServer::Open(NETADDR, CNetBan*, int, int) /home/runner/work/ddnet/ddnet/src/engine/shared/network_server.cpp:55:13 #3 0x568cdc in CServer::Run() /home/runner/work/ddnet/d...
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 10:01:38Z
@Jupjapjapstur sos idk gfx where to call DeleteBufferObject its implemented but never called o.O
10:02
i mean it seems to be called in vulkan but not for opengl
10:02
why is the gfx code so hard to read? ._.
10:06
10:06
lmao my card name is a bunch of garbage :D and wetefek is llvm card? :D
Avatar
google
Avatar
google pipe
Avatar
Avatar
baby frog
it seems most ddnet developers use notepad
Funny
10:36
just because in 2007 there was no other editor other than nano on Linux xd
Avatar
Avatar
Learath2
The first time I was learning C++ Dev-C++ was a thing
Oh, dev c++, my eyes
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 10:39:54Z
wot there was no vi in 2007?
Avatar
I'm jocking
10:40
Idk
10:42
I'm joking because I hope it's not true that most people use notepad as c ++ is an object language very close to C which is basically machine language
Avatar
Fixes these memory leaks on my system (default opengl 3.0.3 renderer debian 11) ``` Direct leak of 72 byte(s) in 1 object(s) allocated from: #0 0x4eac0d in operator new(unsigned long) (/home/chiller/Desktop/git/ddnet/asan/DDNet+0x4eac0d) #1 0x537ebc in CCommandProcessorFragment_OpenGL2::Cmd_Init(CCommandProcessorFragment_GLBase::SCommand_Init const*) /home/chiller/Desktop/git/ddnet/src/engine/client/backend/opengl/backend_opengl.cpp:1672:21 #2 0x51f4ed in CCommandProcessorF...
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 10:49:37Z
?xd
10:49
C is high level language not machine language
Avatar
Avatar
[quakenet] ChillerDragon
wot there was no vi in 2007?
vi exists since 1976
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 10:55:08Z
yea thats what i thought
10:55
I dont understand why nano has any relevance
Avatar
It's the newbie friendly editor of linux
Avatar
because every stupid tutorial says use nano
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:04:14Z
its not like vi is harder than nano
11:04
it has one additional step of pressing "i" to go in insert mode then its exactly the same
11:05
Yea but i see how that can add additional complexity for users who are not interested in other vi features even if its just one letter
Avatar
none use vi anymore hollande
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:05:28Z
yea vi vim whatever
Avatar
vi nowadays on recent distros gets aliased to vim
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:05:53Z
how did i lose my stack agian? :c gdb shows an empty stack watefak
Avatar
maybe the sun hits your computer well
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:06:13Z
buggy address -.-
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:06:49Z
yikers buffer overflow
11:08
wait wot io_read does not nullterm
11:08
trol tw code
Avatar
Avatar
Learath2
Most of us use some form of advanced text editor instead of a full fledged ide. VSCode and Vim are probably the most popular two
Francesco v.m.k 2022-04-14 11:10:19Z
so notepad++?
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:10:39Z
yes
Avatar
Eh we've come so far since notepad++
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:10:59Z
textedit > all
11:11
change my mind
Avatar
you're bad, ee is the best text editor
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:13:04Z
dafaq das
Avatar
easy editor
11:13
ee
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:13:55Z
send link
11:14
freebsd is life
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:14:57Z
yummy emacs keys
11:15
looks better than nano when looking at just the man page
Avatar
nano is too easy
Avatar
Francesco v.m.k 2022-04-14 11:17:22Z
guys how does the color system work on set color? why is the range 0 to 1? sorry if its a bit of a noob question
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:17:38Z
which color system
11:18
Many rgbas in the code use a float from 0-1 to represent the color range
Avatar
Francesco v.m.k 2022-04-14 11:18:45Z
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f); this one
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:18:48Z
so rgb(0, 0, 0) is black and rgb(0, 0.5, 0) is light green
11:18
ye
Avatar
Avatar
Francesco v.m.k
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f); this one
That's white
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:19:09Z
thats white at no transparency
11:19
what do you want as color?
Avatar
ig u can imagine it as 255 * x, x being ur value in float (edited)
Avatar
0-255 in what you'd normally be used to is mapped to 0-1
Avatar
Francesco v.m.k 2022-04-14 11:19:40Z
ok ok thanks guys ima test it out
Avatar
(So 0.5 would be about 128)
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:20:02Z
quiqq maffs
Avatar
@Francesco v.m.k just get ur values from 0 to 255 & divide each by 256 & u get ur floats (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:20:35Z
i am really losing motivation to fix this mf of ub here
Avatar
Tell ub, I tell fix
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:20:50Z
nice
11:21
Something is off with this mf
Avatar
Avatar
ReiTW
@Francesco v.m.k just get ur values from 0 to 255 & divide each by 256 & u get ur floats (edited)
Francesco v.m.k 2022-04-14 11:21:33Z
thanks i just tried it out and it works thanks a lot
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:21:35Z
Chillers contribution fork of DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/serverbrowser.cpp at 843acf6a5a80ef445ff134c90bee374212673464 · ChillerDragon/ddnet
11:22
i tired some debug printing but that looks odd. Maybe dbg_msg can not do newlines
11:23
11:23
and asan goes nuts with this diff xd
Avatar
Francesco v.m.k 2022-04-14 11:23:56Z
hey im making a skin editor i wanted to know if anyone has already made it
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:24:04Z
```
11:24
[2022-04-14 13:23:25][json]: pbuf 0x62f000134400 52456
11:24
[2022-04-14 13:23:25][json]: abuf='{
11:24
[2022-04-14 13:23:25][http]: https://master4.ddnet.tw/ddnet/15/servers.json failed. libcurl error: Could not resolve host: master4.ddnet.tw
11:24
```
Avatar
spammer, doesn't work
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:24:19Z
wait can i even send multiple code lines from irc?
11:24
fak
Avatar
try to add manually the \n? lol
Avatar
fdrgsfdgfdg
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:25:25Z
ah no its the grep that swallows the lines after omg im like 2iq
11:26
not sure if its an issue with the json-parer lib but even if i update that lib to latest master its still having ub
Avatar
Avatar
[quakenet] ChillerDragon
[2022-04-14 13:23:25][http]: https://master4.ddnet.tw/ddnet/15/servers.json failed. libcurl error: Could not resolve host: master4.ddnet.tw
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:27:34Z
dats asan with my dbg print patch https://paste.zillyhuhn.com/d3
11:28
ah nvm
11:28
scratch that xd
11:30
maybe the json lib sucks at utf8 and the ddnet info contains funny map names
11:34
na
Avatar
Avatar
[quakenet] ChillerDragon
maybe the json lib sucks at utf8 and the ddnet info contains funny map names
Francesco v.m.k 2022-04-14 11:42:09Z
i don't think that's the problem you should at least get something like M■d■s■a or stuff like that if the char is not supported
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 11:42:33Z
no its not the problem
Avatar
does someone know why vscode thinks this xD
Avatar
ah because __cplusplus needs to be >= 201703L
12:14
xD ez fix "C_Cpp.default.cppStandard": "c++17"
Avatar
[quakenet] ChillerDragon BOT 2022-04-14 13:16:14Z
nvm its not a ddnet issue its the lib indeed
Avatar
was server browser filtering by ping was deleted? (edited)
13:45
take it back
Avatar
removed in #4391
Avatar
Avatar
c0d3d3v
does someone know why vscode thinks this xD
in the mean time you can rename it to apStrings ;D
Avatar
so weird to have ur ide in a non english language
14:29
its way better to have everything in engllish
14:30
better error reporting, better error googling
14:30
ide/editor/compiler
Avatar
didnt even know there is a german version xd
14:40
should install
Avatar
I'm trying to implement, that you can add sounpacks as assets in .teeworlds/assets/soundpacks. But I can't find where the sounds are loaded in the sourcecode. Can anyone give me a hint? (edited)
Avatar
Look at sound files i guess
17:15
Also check out the python code
17:15
In datasrc
17:15
Make sure u have compiled
17:15
So u can see the generated source files from python
17:16
They are under the src dir in your build dir
Avatar
ok, ty
Avatar
it is in sound.cpp CSound::LoadWV I also looked it up a few days ago. I wanted to implement a assets tab for soundpacks 😄 but if you want to try it, I will wait for your initial implementation 😄 @cauldron (edited)
19:20
the sounds get loaded in sounds.spp CSoundLoading::Run
Avatar
Avatar
Jupstar ✪
in the mean time you can rename it to apStrings ;D
ok 😄 ...
Avatar
can you guys get a new ger2 server
21:48
its literally so bad
21:48
its the worst server ive ever played in on ddnet
Avatar
@c0d3d3v do you have some time to devote to me that I want to set vscode well?
23:03
who use vscode for dev ddnet client?
Exported 178 message(s)