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 2023-06-04 00:00:00Z and 2023-06-05 00:00:00Z
Avatar
8d7fada A Nouisification - ddnet-maps e291155 A Unbalanced 3 - ddnet-maps
Avatar
I have a bunch of nested folders for all my client and server configs. And most of the time I have to look up the paths before running exec myfolder/somesubfolder/config.cfg because there is no way to list files from the console or even better auto complete paths. It should autocomplete all active storage locations. This feature will leak the file structure but exec already leaks most file contents so thats not much worse from a security perspective i guess.
Avatar
i just went through a shitton of work writing code for ddnet that uses the STL without using exceptions because my stupid IDE said some one thing about it
06:35
and i automatically assumed exceptions were off
06:35
and then terminate called after throwing an instance of 'std::bad_function_call' what(): bad_function_call
06:35
😃
06:37
i wrote stuff like this #define TRY_CALLBACK(a, b, c) { dbg_assert(bool(b), a " callback has no candidate."); b c; } ... TRY_CALLBACK("Operation failed", fnOperationFailedCallback, (LOAD_ERROR_DIRECTORY_UNREADABLE, &it)) // instead of fnOperationFailedCallback(LOADLOAD_ERROR_DIRECTORY_UNREADABLE, &it); so i could handle this error without catching an exception
06:37
06:37
oh well
Avatar
cool that const char *GetPath(int Type, const char *pDir, char *pBuffer, unsigned BufferSize) in CStorage is not a part of the interface (edited)
07:18
so i can't get to it when i need to
07:20
oh nvm i see GetCompletePath
Avatar
ws-client BOT 2023-06-04 08:24:02Z
<ChillerDragon> @heinrich5991 do you remember why you marked sys.info client_version as optional?
08:24
Some Teeworlds stuff in Rust. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
08:24
08:24
<ChillerDragon> seems to be sent everytime on latest master
08:24
<ChillerDragon> was there a prior version?
08:25
<ChillerDragon> Its there since 5 years isnt that all 0.7 versions already?
08:25
<ChillerDragon> its already on the 0.7.0 git tag
08:26
<ChillerDragon> ops i messed up the spec link
08:26
Some Teeworlds stuff in Rust. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
08:27
<ChillerDragon> @Jupstar ✪ should links open in a new tab without having to ctrl+click?
Avatar
they should always open in new tab
Avatar
ws-client BOT 2023-06-04 08:27:29Z
<ChillerDragon> alr
Avatar
Avatar
Mr.Gh0s7
is this https://github.com/ddnet/ddnet/issues/2892 being worked on? I am interested on trying to implement it :) (edited)
Not that I know. You can try it, but I wouldn't say that it's a beginner friendly issue
👍 1
👻 1
🎩 1
Avatar
Avatar
Ewan
is ddnet against use of std strings in new code?
In the game loop yes, outside std::string is okay if the alternative would be to malloc/free some buffer anyway
Avatar
Avatar
Ewan
it's not a vector but it's similar
We only use v prefix for std::vector and not for other collections like std::set
Avatar
i'll use a (edited)
Avatar
a is array
Avatar
initializer list is an array
08:35
you iterate over it
08:35
unless you mean a raw array
08:35
seems weird to not classify other containers
Avatar
what are u even working on xd
08:36
i didnt read
Avatar
not important
08:36
also i didn't say
08:37
basically batch file loader that i can use to easily asynchronously load skins and assets (edited)
Avatar
you know whats great
08:37
it's june
08:37
and that means c++20
08:37
so u can use variadic template arguments and use constraints with it
Avatar
yea it's dope
08:38
but unnecessary
08:38
for this
Avatar
Avatar
Ewan
initializer list is an array
not really, we just use a for normal arrays and std::array and v for std::vector, we don't use prefixes for other iterable collections like std::set and std::list
08:41
buy better IDE i'd say
Avatar
then it tells u what type the variable is
Avatar
it does already
08:41
what's that got to do with it
Avatar
!rust good thing this discussion doesnt exist here
Avatar
chillerbot1 BOT 2023-06-04 08:41:55Z
@Ryozuki
Avatar
everything is simply snake case and good is
Avatar
Avatar
Ewan
what's that got to do with it
u say its silly
Avatar
using a ONLY for T[] arrays and v ONLY for std::vector specifically is weird
08:43
so specific and not general
Avatar
a is also for std::array
08:44
why does initializer list even exist at all
08:44
what problem does it solve over std::array
Avatar
easy replacement for variadic arguments
Avatar
yeah but how is that better than an std::array
Avatar
template <typename T> void doStuff(const std::initializer_list<T> &args) { for(const auto &it : args) { // stuff } } doStuff<int>({1, 5, 2, 7, 12});
08:45
idk
08:45
that's just what it's for
Avatar
yeah, but to me it looks like this is nothing a std::array couldn't do or a constexpr std::vector
Avatar
i don't know why it exists or why it's better
08:46
i just know that this is its use case
08:46
and if it exists alongside std::array and is for this specific purpose, i have reason to believe it is better suited to this purpose
08:46
otherwise it would not exist
Avatar
i guess they wanted to save the size template argument
Avatar
Using std::vector would be better here because you can just create a vector from an initializer list IIRC
Avatar
no need for dynamic size
Avatar
maybe they didnt like the fact that an vector can be dynamic
08:48
and forced compile time here (edited)
Avatar
It just looks like some testing code so in that case it's okay
Avatar
but since u need a template anyway, u can probs also simply use auto
Avatar
But for other code I'd avoid using different types so we don't need to convert as much between layers
Avatar
Avatar
Ewan
basically batch file loader that i can use to easily asynchronously load skins and assets (edited)
btw sounds really useful, esp. the assets are so dead ass slow 😂
👍 1
Avatar
Avatar
Jupstar ✪
why does initializer list even exist at all
It's mostly a language construct. It's the glue that allows you to initialize vectors/std::arrays with the pretty brace syntax
Avatar
it feels hacky indeed
10:40
a new syntax but then a template struct
Avatar
It also has some small guarantees that makes it lighter and trivial to optimize
Avatar
i mean i often use the brace syntax, but i never used the resulting template definition
Avatar
is there a client can join ddnet for cmd only?
10:41
i just want to use cmds to join a ddnet server
Avatar
ws-client BOT 2023-06-04 10:41:56Z
<ChillerDragon> what is cmd only?
10:42
<ChillerDragon> yes
10:42
<ChillerDragon> DDNet "connect ger.ddnet.tw"
Avatar
i want to add bot to my server
Avatar
ws-client BOT 2023-06-04 10:43:06Z
<ChillerDragon> 🤖
Avatar
ws-client BOT 2023-06-04 10:43:17Z
<ChillerDragon> ok what should the bot do?
10:43
<ChillerDragon> should it be server or client side?
Avatar
move and fire
Avatar
ws-client BOT 2023-06-04 10:43:39Z
<ChillerDragon> based on what
10:43
<ChillerDragon> move where fire on what
Avatar
players
Avatar
ws-client BOT 2023-06-04 10:44:03Z
<ChillerDragon> client or server side?
10:44
<ChillerDragon> client side this sounds kinda sus
10:44
<ChillerDragon> anyways it sounds like a technical thing to do
Avatar
Library for (ingame) teeworlds bots.. Latest version: 2.4.7, last published: 7 months ago. Start using teeworlds in your project by running npm i teeworlds. There are no other projects in the npm registry using teeworlds.
Avatar
ws-client BOT 2023-06-04 10:44:47Z
<ChillerDragon> do you know C++?
Avatar
ws-client BOT 2023-06-04 10:45:05Z
<ChillerDragon> what is the problem with the project you referenced?
10:45
<ChillerDragon> or do you want it server side?
Avatar
Avatar
Jupstar ✪
i mean i often use the brace syntax, but i never used the resulting template definition
If you want your function to take a brace initializer list, if you take a initializer_list even with O0, it'll be zero copy. If you take a vector instead you are up to the mercy of the compiler
10:45
That's the only use
Avatar
i just want to test connect a bot to a server with out modifiy the server itself (edited)
Avatar
Avatar
Learath2
If you want your function to take a brace initializer list, if you take a initializer_list even with O0, it'll be zero copy. If you take a vector instead you are up to the mercy of the compiler
but what if i simply use auto
10:45
which is allowed since c++20
Avatar
ws-client BOT 2023-06-04 10:46:00Z
<ChillerDragon> ok
10:46
<ChillerDragon> maybe dbg dummies is what you want
10:46
<ChillerDragon> im not really fllowing what execatly you need
Avatar
Avatar
Jupstar ✪
but what if i simply use auto
My inbrain compiler doesn't support templates yet, buuut I think it'll end up being an initializer list
Avatar
yeah, but at least i dont use this weird initializer list struct that seems like bloat in newer cpp versions 😂
Avatar
ws-client BOT 2023-06-04 10:47:56Z
<ChillerDragon> @Vinson do you want to start a client and connect it to a server? or do you want a server that connects clients to it self?
Avatar
well it has it sense
Avatar
It is currently crashing. And is nice for reaching code coverage in integration tests ``` 2023-06-04 12:48:10 I server: ClientID=0 rcon='dbg_dummies 10' Thread 1 "DDNet-Server" received signal SIGSEGV, Segmentation fault. 0x000055555561d373 in CPlayer::OnPredictedInput (this=0x0, pNewInput=0x7fffffffc010) at /home/chiller/Desktop/git/ddnet/src/game/server/player.cpp:514 514 if((m_PlayerFlags & PLAYERFLAG_CHATTING) && (pNewInput->m_PlayerFlags & PLAYERFLAG_CHATTING)) (gdb...
Avatar
btw why nobody did a Docker image for ddnet? (I mean an official one) (edited)
Avatar
Avatar
Jupstar ✪
yeah, but at least i dont use this weird initializer list struct that seems like bloat in newer cpp versions 😂
Mh, it only is sort of replaced by a constexpr array in newer cpp. So not sure how bloat it is
Avatar
Avatar
ws-client
<ChillerDragon> @Vinson do you want to start a client and connect it to a server? or do you want a server that connects clients to it self?
i want a client can connect to a server
10:51
but without graphics
Avatar
ws-client BOT 2023-06-04 10:51:36Z
<ChillerDragon> @Vinson okay then the npm package your referenced works fine
10:51
<ChillerDragon> have you tried it?
10:51
nope
10:51
i am install npm
Avatar
ws-client BOT 2023-06-04 10:51:54Z
<ChillerDragon> ye its good
Avatar
wow it works fine
Avatar
ws-client BOT 2023-06-04 10:57:09Z
<ChillerDragon> told ya
10:57
<ChillerDragon> enjoy botting axaxaxax
10:58
<ChillerDragon> note that if you automate walking towards players and shooting at them you need the permission of the server owner to run that
Avatar
Avatar
ReiTW
btw why nobody did a Docker image for ddnet? (I mean an official one) (edited)
^
Avatar
ChillerDragon BOT 2023-06-04 11:02:03Z
there was one irrc
11:02
IIRC
Avatar
ws-client BOT 2023-06-04 11:02:20Z
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
11:02
<ChillerDragon> or you mean pushed?
11:02
<ChillerDragon> because official ddnet servers run bare metal
Avatar
this one doesn't run anything
Avatar
ws-client BOT 2023-06-04 11:02:56Z
<ChillerDragon> and kog is full on private
Avatar
I meant a dockerfile that can be used by anyone
Avatar
ws-client BOT 2023-06-04 11:03:31Z
<ChillerDragon> i guess from the active ddnet devs there is not enough interest
11:03
<ChillerDragon> if you want one go pr one
Avatar
will prob later make one
Avatar
ws-client BOT 2023-06-04 11:04:37Z
<ChillerDragon> do you run tw servers in docker?
Avatar
If wg21 ever decides to accept P2447 std::span will replace all brace params so in C++26 explicit initializer_list constructors might become obsolete 😛
Avatar
yes I do
Avatar
ws-client BOT 2023-06-04 11:16:17Z
<ChillerDragon> which
Avatar
currently only blockworlds
Avatar
ws-client BOT 2023-06-04 11:17:53Z
<ChillerDragon> u also rn kubernetes?
11:18
<ChillerDragon> do you use docker docker? or podman?
Avatar
nah cuz not useful rn lol
Avatar
ws-client BOT 2023-06-04 11:18:20Z
<ChillerDragon> and why xd
11:18
<ChillerDragon> not useful ever*
11:18
<ChillerDragon> axaxax
Avatar
well docker is still shit to run teeworlds, but well when you know how to fix stupid things that docker does, it works fine
Avatar
ws-client BOT 2023-06-04 11:19:59Z
<ChillerDragon> what stupid things?
11:20
<ChillerDragon> why is it shit?
Avatar
For example I use a failover IP at OVH, but docker kinda doesn't support that
Avatar
ws-client BOT 2023-06-04 11:22:30Z
<ChillerDragon> i see
11:22
<ChillerDragon> and why do you want to use docker anyways?
11:22
<ChillerDragon> why not bare metal?
Avatar
I mean I'd still be able to contact the container with that IP, but the response will be NATed with the main IP lol
11:23
So had to add custom iptables rules
11:23
Cuz it's easier to deploy things
11:23
Once you know how to use
Avatar
ws-client BOT 2023-06-04 11:23:37Z
<ChillerDragon> how is docker easier to deploy?
11:23
<ChillerDragon> could you name a example what was harder specifically and now got easier?
Avatar
Pre-built images, you don't need to do everything by yourself
Avatar
ws-client BOT 2023-06-04 11:24:13Z
<ChillerDragon> like what?
Avatar
Eg mariadb image (edited)
Avatar
ws-client BOT 2023-06-04 11:24:31Z
<ChillerDragon> ah so you do not have to run the oneliner to setup a fresh mariadb server?
11:24
<ChillerDragon> like creating a user etc
Avatar
U just specify env vars, also I can easily isolate stuff
Avatar
ws-client BOT 2023-06-04 11:25:26Z
<ChillerDragon> what stuff tho?
Avatar
For eg my mysql container will only be on the same docker network as my game server, but won't be visible by the rest
Avatar
ws-client BOT 2023-06-04 11:25:45Z
<ChillerDragon> seems like additional complexity to me
11:25
<ChillerDragon> which rest?
11:25
<ChillerDragon> what else is there
Avatar
If I have other stuff to run
11:26
Wait
Avatar
ws-client BOT 2023-06-04 11:26:21Z
<ChillerDragon> like conflicting dbs?
11:26
<ChillerDragon> hm
11:31
this is an example of what u can do for eg
Avatar
ws-client BOT 2023-06-04 11:32:18Z
<ChillerDragon22> are you doing this?
11:32
<ChillerDragon22> and why?
Avatar
you can have a network for all your websites, all your www containers will be in 2 networks, a private one to access their database, and the 2nd network is for traefik
11:32
yes I do that, I just restrict at maximum the visibility of each databases
Avatar
ws-client BOT 2023-06-04 11:33:37Z
<ChillerDragon22> and thats for what?
11:33
<ChillerDragon22> security?
11:33
<ChillerDragon22> cant you just make your db not expose public ports and done?
Avatar
also traefik uses the docker socket, I use https://hub.docker.com/r/tecnativa/docker-socket-proxy to restrict the usage of it
Avatar
ws-client BOT 2023-06-04 11:33:57Z
<ChillerDragon22> seems so complicated
Avatar
Avatar
ws-client
<ChillerDragon22> cant you just make your db not expose public ports and done?
it is not exposed publicly, I meant to isolate it from other containers
Avatar
Avatar
ws-client
<ChillerDragon22> seems so complicated
it's not that hard lol
Avatar
ws-client BOT 2023-06-04 11:34:33Z
<ChillerDragon22> so other tw servers can not reach the db?
11:34
<ChillerDragon22> do you have a public infrastructure repo?
11:35
<ChillerDragon22> also TIL javascript can crash firefox xd
Avatar
Avatar
ws-client
<ChillerDragon22> so other tw servers can not reach the db?
for example yes
Avatar
ws-client BOT 2023-06-04 11:35:17Z
<ChillerDragon22> no for your infra
Avatar
I don't think I have
Avatar
ws-client BOT 2023-06-04 11:35:38Z
<ChillerDragon22> sad
Avatar
u mean u want to see how I setup all of that
Avatar
ws-client BOT 2023-06-04 11:36:25Z
<ChillerDragon22> i want to see every config file and the setup command
11:36
<ChillerDragon22> too evaluate how easy it really is
11:36
<ChillerDragon22> do you have the infrastructure tracked as code?
Avatar
chillerevaluater
Avatar
ws-client BOT 2023-06-04 11:36:57Z
<ChillerDragon22> all the traefik and dockerfiles?
Avatar
traefik is the most annoying to configure lmao
Avatar
ws-client BOT 2023-06-04 11:37:19Z
<ChillerDragon> i knew it xd
Avatar
but the rest is easy
Avatar
ws-client BOT 2023-06-04 11:37:37Z
<ChillerDragon> if you get a new server what do you do to replicate the setup?
11:37
<ChillerDragon> how long does it take you?
Avatar
takes me less than 30min
Avatar
ws-client BOT 2023-06-04 11:37:57Z
<ChillerDragon> thats pog
Avatar
I just backup all my docker-compose stuff
Avatar
ws-client BOT 2023-06-04 11:37:58Z
<ChillerDragon> but how
11:38
<ChillerDragon> so you have not tracked it yet?
Avatar
wdym by tracked
Avatar
ws-client BOT 2023-06-04 11:38:27Z
<ChillerDragon> check it in git
Avatar
ah it's not in a git repo
Avatar
ws-client BOT 2023-06-04 11:38:37Z
<ChillerDragon> if you decide to do so and publish it let me know im curious
11:39
<ChillerDragon> im yet to be sold on docker
11:39
docker-compose makes your life easier tho
Avatar
ws-client BOT 2023-06-04 11:39:31Z
<ChillerDragon> but if you show me a simple repo where the config files make sense and there is a readme with 3 commands to set it up and then i have a nice tw network with dbs etc id buy it
Avatar
I can make an example & show you
11:40
but later
Avatar
ws-client BOT 2023-06-04 11:40:25Z
<ChillerDragon> but until then i use my 13k lines of bash and bare metal to deploy tw servers
justatest 1
Avatar
ws-client BOT 2023-06-04 11:41:15Z
<ChillerDragon> minimal dependencies blazingly fast highly customizable
Avatar
I made a docker image for ddnet but never put it anywhere
11:41
Maybe I can polish it up and put it on the repo?
Avatar
ws-client BOT 2023-06-04 11:41:34Z
<ChillerDragon> lerato wants to join kog dev team
Avatar
well I removed alot
11:43
version: '3' services: db: container_name: db image: mariadb restart: always volumes: - /opt/volumes/bombay/mariadb:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: pw MYSQL_USER: tw MYSQL_PASSWORD: pw MYSQL_DATABASE: bw networks: - bombay v3royal: container_name: v3royal depends_on: - db image: bombay:latest restart: always volumes: - /opt/volumes/bombay/v3royal/data:/blockworlds/data networks: - bombay ports: - 149.202.19.227:8404:8404/udp phpmyadmin: container_name: phpmyadmin image: phpmyadmin restart: always networks: - traefik - bombay labels: traefik.enable: true traefik.http.routers.phpmyadmin.entrypoints: websecure traefik.http.routers.phpmyadmin.rule: Host(`url`) traefik.http.services.phpmyadmin.loadbalancer.server.port: 80 environment: - PMA_ARBITRARY=1 networks: bombay: external: true name: bombay traefik: external: true name: traefik but here's an example
Avatar
ws-client BOT 2023-06-04 11:43:12Z
<ChillerDragon> oh no
Avatar
it sets up bombay, a phpmyadmin that is on the bombay network & traefik
11:44
and from the bombay network only the v3royal server is exposed
Avatar
ChillerDragon BOT 2023-06-04 11:44:23Z
pls dont kill irc thank
11:44
I can send a pastebin if it's better
Avatar
Ew phpmyadmin user
Avatar
@Learath2 yes, well it's only cuz I have some mates that are noobs
11:45
overwise wouldn't have used it lol
Avatar
Make them learn sql
Avatar
xD they don't have time for it ig
Avatar
ws-client BOT 2023-06-04 11:45:22Z
<ChillerDragon> thanks for the docker compose leak
11:45
<ChillerDragon> pretty boring tho xd
Avatar
well ig easier than a bash script
11:45
if I want another srv I could easily duplicate the v3royal stuff & edit some lines
Avatar
ws-client BOT 2023-06-04 11:46:00Z
<ChillerDragon> i see
11:46
<ChillerDragon> yea not too bad i guess
11:46
<ChillerDragon> i just cp -r my 13k lines of bash
11:46
<ChillerDragon> and edit my config file
Avatar
yesterday I've added the support for env vars
Avatar
We scp some stuff over, edit some configs then hammer until it works
Avatar
ws-client BOT 2023-06-04 11:46:52Z
<ChillerDragon> HAMMER
Avatar
Very manual workflow here at ddnet inc.
Avatar
for eg: tw_srv: container_name: tw_srv image: bombay:latest restart: always environment: TW_sv_name: "This is a test server" ...
Avatar
ws-client BOT 2023-06-04 11:47:14Z
<ChillerDragon> isnt deen running his magic shell script on a new vps and its up and running after a cup of tea?
11:47
<ChillerDragon> i think id have to setup some tw servers with docker one day just for the memes
Avatar
Ideally I would write ansible playbooks for deploying these
Avatar
ws-client BOT 2023-06-04 11:48:26Z
<ChillerDragon> ew ansible
Avatar
yes that's the best option for you
Avatar
ws-client BOT 2023-06-04 11:48:34Z
<ChillerDragon> i somehow really dislike ansible idk why
Avatar
as you are a docker hater if I remember correctly
11:48
xD
11:48
or was it heinrich, forgot
Avatar
ws-client BOT 2023-06-04 11:48:54Z
<ChillerDragon> docker is propriatariy
Avatar
I'm disgusted by docker
Avatar
ws-client BOT 2023-06-04 11:49:07Z
<ChillerDragon> proprietary*
11:49
<ChillerDragon> so it bad
Avatar
But we have rootless podman to rescue
Avatar
ws-client BOT 2023-06-04 11:49:32Z
<ChillerDragon> @Ryozuki leak some emotes
Avatar
well luckily podman uses the same set of commands
Avatar
at docker
Avatar
ws-client BOT 2023-06-04 11:49:36Z
<ChillerDragon> like cammostripes
Avatar
Works + not proprietary + rootless
Avatar
idk if they have a docker-compose alternative
Avatar
ws-client BOT 2023-06-04 11:49:50Z
<ChillerDragon> pogman
Avatar
Avatar
ReiTW
idk if they have a docker-compose alternative
They do, it's podman-compose
Avatar
ws-client BOT 2023-06-04 11:49:59Z
<ChillerDragon> but little ecosys compared to docker
Avatar
ah, damn
Avatar
Avatar
ws-client
<ChillerDragon> but little ecosys compared to docker
They share the same ecosys, wym?
Avatar
ws-client BOT 2023-06-04 11:50:24Z
<ChillerDragon> its not as drop in as they claim
Avatar
It is very very drop in after you get through the setup struggles
Avatar
ws-client BOT 2023-06-04 11:50:54Z
<ChillerDragon> ..
Avatar
If you are ok with running it as root it's even better
Avatar
ws-client BOT 2023-06-04 11:51:14Z
<ChillerDragon> lerato how to debug js?
Avatar
spam console.log everywhere
Avatar
don't use nodejs
11:51
use deno
Avatar
ws-client BOT 2023-06-04 11:51:33Z
<ChillerDragon> i cant open console
11:51
<ChillerDragon> my browser crashes if i open page
Avatar
soon new laptop, idk if I stay on bloatdows 11 or I switch to a linux distro
Avatar
ws-client BOT 2023-06-04 11:53:30Z
<ChillerDragon> buy gnome pro
Avatar
What sort of unholy bug did you encounter that it directly crashes your browser? Damn
Avatar
ws-client BOT 2023-06-04 11:53:59Z
<ChillerDragon> ikr
11:54
<ChillerDragon> idk
Avatar
At that point your only hope is to attach gdb to the browser
Avatar
ws-client BOT 2023-06-04 11:54:07Z
<ChillerDragon> lmao
Avatar
he tried to mine btc or wut
Avatar
ws-client BOT 2023-06-04 11:54:15Z
<ChillerDragon> that sounds horrible
Avatar
use gentoo
11:54
be in control
Avatar
I was thinking about manjaro
Avatar
ws-client BOT 2023-06-04 11:54:46Z
<ChillerDragon> majaro is better than windows
11:55
this is better than windows
Avatar
ws-client BOT 2023-06-04 11:55:05Z
<ChillerDragon> its like ubuntu of arch users
Avatar
wtf lmaoo
Avatar
ws-client BOT 2023-06-04 11:55:20Z
<ChillerDragon> lmao hannamonatana
Avatar
maybe I could use templeOS
11:55
for my laptop
Avatar
ws-client BOT 2023-06-04 11:55:37Z
<ChillerDragon> i dunno bout that
Avatar
u dunno templeOS?
Avatar
Avatar
ReiTW
maybe I could use templeOS
I don't know if it can even boot on real hardware
Avatar
Avatar
Learath2
I don't know if it can even boot on real hardware
idk lmao, worth a try
Avatar
No network drivers or networking layer. You'll just have to do pcie commands by hand to send packets
Avatar
ws-client BOT 2023-06-04 11:57:16Z
<ChillerDragon> xd
11:57
<ChillerDragon> i mean i dunno if it is a good idea
11:57
<ChillerDragon> stick with linux
11:57
<ChillerDragon> or maybe some bsd
Avatar
Can you read words of god in linux?
Avatar
ws-client BOT 2023-06-04 11:59:38Z
<ChillerDragon> no but..
11:59
<ChillerDragon> i mean
11:59
<ChillerDragon> hm
12:03
<ChillerDragon> aaa leratoo!
12:03
<ChillerDragon> i found bugo
12:03
<ChillerDragon> i confused = and +=
12:04
<ChillerDragon> and i guess maffs fucked my ass due to it growing too big
Avatar
Oh btw there is one other way to debug that kind of thing. You can use the debugger statement
Avatar
ws-client BOT 2023-06-04 12:05:06Z
<ChillerDragon> yea i wasnt sure where to put it
12:05
<ChillerDragon> so i used binary search with commenting out until it stops hang
12:05
<ChillerDragon> and then i knew which lines to look closer at
Avatar
Smort
Avatar
Avatar
ws-client
<ChillerDragon> or maybe some bsd
bsd damn good
12:39
I've used freebsd in the past, it's amazing
Avatar
discord is dead
13:16
rip
Avatar
bcs its offline
13:17
completely
13:17
i bet he wrote the messages half hour ago or smth xD
Avatar
hmm? the #developer ?
13:18
ah yes ic now my msgs don't come trough either
Avatar
Avatar
ReiTW
I've used freebsd in the past, it's amazing
i used it too, and it lagged like shit 😂 every 10 seconds a complete freeze for at least 1 second
Avatar
Avatar
Jupstar ✪
i used it too, and it lagged like shit 😂 every 10 seconds a complete freeze for at least 1 second
never had issues
13:19
+ bsd was way better than linux in terms of network performance
13:19
prob why it's alot used by companies like Juniper etc..
Avatar
how did u measure that? lmao
Avatar
I didn't, I've read some blogs about it
Avatar
netflix invested into the network code afaik
Avatar
hmm? the #developer ?
Avatar
yeah i read it too before
13:21
but i guess on normal human network it makes no real difference 😄
13:21
discord hello
13:22
stop lag pls
13:22
i wrote my msgs at 15:20
Avatar
Avatar
Jupstar ✪
how did u measure that? lmao
this was also good some years ago
13:22
but I think since linux 5.x they optimized a lot
Avatar
lel
13:23
lel
13:23
yeah i read it too before
Avatar
ws-client BOT 2023-06-04 13:24:02Z
<Jupstar> irc more stable
13:24
<Jupstar> why does it send my messages twice now 😂
Avatar
yeah i read it too before
Avatar
ws-client BOT 2023-06-04 13:24:24Z
<Jupstar> great
Avatar
yeah i read it too before
Avatar
bb discord spam = big ban discord spam
Avatar
ws-client BOT 2023-06-04 13:26:09Z
<Jupstar> yeah i also read it too before
13:26
<ChillerDragon22> hellow
13:26
<ChillerDragon22> oh no NaN
Avatar
chillerdragon BOT 2023-06-04 13:26:30Z
yaml yaml: - sucks - so bad
Avatar
ws-client BOT 2023-06-04 13:26:54Z
<ChillerDragon> @Jupstar finally multi line code blocks
13:27
<Jupstar2> ah missed the chance
Avatar
fn no() -> i8 {}
Avatar
ws-client BOT 2023-06-04 13:27:37Z
<ChillerDragon> oh tru
13:27
<ChillerDragon> lang is same line as ``` not next? right xd
13:27
<ChillerDragon> aaaaaaaaaaaaaaaaa
Avatar
lel
Avatar
Avatar
ws-client
<ChillerDragon> @Jupstar finally multi line code blocks
couldn't you just write ``` directly in your chat?
Avatar
Avatar
Jupstar ✪
yeah i read it too before
spammer giga_chad
Avatar
oh god, dc ded 😢
Avatar
ws-client BOT 2023-06-04 13:29:07Z
<Jupstar> don't need to talk anymore
Avatar
Avatar
ws-client
<ChillerDragon> @Jupstar finally multi line code blocks
cool add replies and I'm gonna switch too ;)
Avatar
Avatar
Jupstar ✪
lel
this is also not from me 😂
13:29
what happens if discord resends a message that was a reply to another one xDD
Avatar
let's communicate with morse code
Avatar
today is the day to find it out
Avatar
ws-client BOT 2023-06-04 13:30:28Z
<Jupstar> yeah sounds great
Avatar
from the typing
Avatar
ws-client BOT 2023-06-04 13:30:40Z
<Jupstar> new features, im in
13:30
<ChillerDragon> @Mr.Gh0s7 not sure how to make replies with a single line message protocol under the hood xd
13:30
<Jupstar2> our*
13:31
<ChillerDragon22> xd
13:31
<Jupstar> discord does it for me
13:31
<ChillerDragon> jupsti want me to deploy web update?
Avatar
Avatar
Jupstar ✪
yeah i read it too before
spammer giga_chad
Avatar
everything is so out of context on discord side xDDD
13:32
Avatar
Avatar
Jupstar ✪
yeah i read it too before
spammer giga_chad
Avatar
Avatar
ReiTW
spammer giga_chad
😂 😂 😂 😂 😂 😂 😂 😂 😂 😂
13:32
and you call me spammer
Avatar
Avatar
ws-client
<ChillerDragon> @Jupstar finally multi line code blocks
cool add replies and I'm gonna switch too ;)
Avatar
ws-client BOT 2023-06-04 13:33:18Z
<ChillerDragon> this happens when you code with specs from da head
Avatar
Avatar
ws-client
<ChillerDragon> @Jupstar finally multi line code blocks
couldn't you just write ``` directly in your chat?
Avatar
Avatar
Jupstar ✪
lel
this is also not from me 😂
Avatar
ws-client BOT 2023-06-04 13:33:42Z
<Jupstar2> lmao, discord still auto sends some msgs
13:34
<ChillerDragon> @Chairn the problem was multiple lines and code highlight because irc only has single line so i had to virtually merge them to apply synatx to multi line code blocks
Avatar
Avatar
ws-client
<ChillerDragon> @Jupstar finally multi line code blocks
cool add replies and I'm gonna switch too ;)
13:34
from the typing
Avatar
today is the day to find it out
Avatar
Discord implemented ghosts! Ghost typers are out don't miss them
Avatar
ws-client BOT 2023-06-04 13:35:37Z
<Jupstar2> lets compress out messages to save bandwidth for discord
Avatar
everything is so out of context on discord side xDDD
13:36
today is the day to find it out
13:36
everything is so out of context on discord side xDDD
13:36
@Mr.Gh0s7 discord trolls u 😂
13:37
Avatar
ws-client BOT 2023-06-04 13:37:43Z
<ChillerDragon> lol discord as bugged as matrix xd
Avatar
ws-client BOT 2023-06-04 13:38:09Z
<Jupstar2> chillerdragon: irc has problems if i upload 2 images at once
13:38
<ChillerDragon> im sure they use kubernetes at discord and it bugged axaxax
Avatar
U cannOt StoP the Gh0stς
13:39
U cannOt StoP the Gh0stς
13:39
U cannOt StoP the Gh0stς
Avatar
nice it even dublicates images
Avatar
U cannOt StoP the Gh0stς
Avatar
feelsbadman 4 times now
Avatar
18000ms justatest
Avatar
From the lags from disc I feel like vscode lags too and now I double check that what I did actually happened kek
13:43
oh its fast again
13:45
Is it only #developer or discord in general?
Avatar
ws-client BOT 2023-06-04 13:45:17Z
<Jupstar2> i assume in general
13:45
<Jupstar2> at least some servers
Avatar
looks like cloudflare is in pain too
13:45
looks like cloudflare is in pain too
13:48
cool
Avatar
looks like cloudflare is in pain too
Avatar
ws-client BOT 2023-06-04 13:50:12Z
<ChillerDragon> what problems @Jupstar2
13:50
<Jupstar2> i uploaded 2 images
13:50
<Jupstar2> but only shows one
13:51
<Jupstar2> but maybe its the irc bridge
Avatar
it shows 2 to me
Avatar
ws-client BOT 2023-06-04 13:51:29Z
<Jupstar2> then u probs lot of content already :D
Avatar
yeah on discord its 2
Avatar
ws-client BOT 2023-06-04 13:51:52Z
<ChillerDragon> ah no i think i know what yo mean
13:53
<ChillerDragon> i guess never merge images then
13:53
<ChillerDragon> ah yea because of the message merge hmm
Avatar
guys let's join ALIVE fng 64 players so we can communicate ;)
Avatar
ws-client BOT 2023-06-04 13:55:37Z
<ChillerDragon> just ask jupsti for webchat pw
Avatar
!jupsti plz
13:57
!jupsti plz
Avatar
ws-client BOT 2023-06-04 13:58:09Z
<Mr.Gh0s7> noice
14:01
<ChillerDragon> ok nice images fixed
14:03
<ChillerDragon> the backlog is so nice to test stuff because you can reload the page without having to resend messages
14:04
<Mr.Gh0s7> pog
Avatar
ws-client BOT 2023-06-04 14:17:21Z
<ChillerDragon> @Ryozuki can you send a smol edlang snippet pls? annotated with ```edlang
14:18
<ChillerDragon22> o yikes &gt; html moment
Avatar
hey, it's the first weekend i'm getting a full night sleep
15:11
love it
15:11
good night everyone
Avatar
ws-client BOT 2023-06-04 15:12:10Z
<Mr.Gh0s7> good night!
15:12
<ChillerDragon> gn
Avatar
Prevent highlighting when edit box hovered but behind a popup menu.

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
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan o...
15:30

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
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addres...
15:35
Popup menus should be closed before escape is used to navigate back to the start menu.

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
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change...
Avatar
455d2e5 Handle escape to go to start menu after popup menus - Robyt3 cdfb24f Merge #6705 - bors[bot]
Avatar
efea2de Only highlight hovered edit boxes when they are the hot item - Robyt3 322e06e Extract CMenus::UpdateColors function - Robyt3 1c16d0e Extract CUI::DebugRender function - Robyt3 72108c4 Merge #6703 #6704 - bors[bot]
Avatar
Why is this like this for(auto &pLayer : m_vpLayers) { if(pLayer->m_Visible) { if(pLayer->m_Type == LAYERTYPE_TILES) { CLayerTiles *pTiles = static_cast<CLayerTiles *>(pLayer); if(pTiles->m_Game || pTiles->m_Front || pTiles->m_Tele || pTiles->m_Speedup || pTiles->m_Tune || pTiles->m_Switch) continue; } if(m_pMap->m_pEditor->m_ShowDetail || !(pLayer->m_Flags & LAYERFLAG_DETAIL)) pLayer->Render(); } } for(auto &pLayer : m_vpLayers) { if(pLayer->m_Visible && pLayer->m_Type == LAYERTYPE_TILES && pLayer != m_pMap->m_pGameLayer && pLayer != m_pMap->m_pFrontLayer && pLayer != m_pMap->m_pTeleLayer && pLayer != m_pMap->m_pSpeedupLayer && pLayer != m_pMap->m_pSwitchLayer && pLayer != m_pMap->m_pTuneLayer) { CLayerTiles *pTiles = static_cast<CLayerTiles *>(pLayer); if(pTiles->m_Game || pTiles->m_Front || pTiles->m_Tele || pTiles->m_Speedup || pTiles->m_Tune || pTiles->m_Switch) { pLayer->Render(); } } } at CLayerGroup::Render() on game/editor/editor.cpp
Avatar
what is your question? XD
Avatar
more specifically why is there two if under for which check for the same thing
Avatar
first loop render tile layers that are not gameplay related, mostly backgrounds and graphics one (edited)
19:17
second loop render tile layers that are gameplay related
Avatar
but it checks if they are not game layers
19:18
in the first if
19:20
well besides the if check which i dont understand chairn is right tho i guess
Avatar
I mean why are the if seperate. Wouldn't it better it checked (pLayer->m_Visible && pLayer->m_Type == LAYERTYPE_TILES) and then (pLayer != m_pMap->m_pGameLayer && pLayer != m_pMap->m_pFrontLayer && pLayer != m_pMap->m_pTeleLayer && pLayer != m_pMap->m_pSpeedupLayer && pLayer != m_pMap->m_pSwitchLayer && pLayer != m_pMap->m_pTuneLayer) under the same if?
Avatar
wow thats your question? xd
19:23
answer: who the fuck cares xD
Avatar
xD it's confusing though
Avatar
better tell me why (pLayer != m_pMap->m_pGameLayer && pLayer != m_pMap->m_pFrontLayer && pLayer != m_pMap->m_pTeleLayer && pLayer != m_pMap->m_pSpeedupLayer && pLayer != m_pMap->m_pSwitchLayer && pLayer != m_pMap->m_pTuneLayer) evaluates to true
Avatar
I am working on something that will probably use CLayerGroup::Render() should I merge those to for loops into one?
Avatar
the for loops cant be merged
19:25
as chairn said, it purposely renders the physics layers after design layers
19:25
so they are always visisble in editor
Avatar
ah so it's because of how pLayer->Render() works?
Avatar
mh?
19:26
it's so they are rendered last
19:26
which makes them visible
Avatar
yeah that's what I meant pepeH
Avatar
Avatar
Jupstar ✪
better tell me why (pLayer != m_pMap->m_pGameLayer && pLayer != m_pMap->m_pFrontLayer && pLayer != m_pMap->m_pTeleLayer && pLayer != m_pMap->m_pSpeedupLayer && pLayer != m_pMap->m_pSwitchLayer && pLayer != m_pMap->m_pTuneLayer) evaluates to true
even tho i still don't get this check 😂
19:27
if the pLayer is no physic layer, and the layer is a physic layer, render (edited)
19:27
wtf
Avatar
Avatar
Jupstar ✪
even tho i still don't get this check 😂
I think it checks for everything that's not in a "predefined" layer
Avatar
sry my iq is too low for this code
19:39
so it basically makes a copy of all layers
19:39
and checks against the loadedd version?
19:39
then the question would be, why would this ever be false 😂
Avatar
when the layer in question is GameLayer, FrontLayer etc
Avatar
yeah, nvm editor code is weird xD
Avatar
That condition almost makes me want to refactor it into a function
😬 1
Avatar
I'm pretty sure such a function already exists
Avatar
i miss ryozuki where is the daily: with rust you could use this and that
Avatar
Avatar
Mr.Gh0s7
I am working on something that will probably use CLayerGroup::Render() should I merge those to for loops into one?
no, because we have no choice but to use 2 loops to keep rendering order
20:53
another way could be to sort layers once and then iterate over sorted layers
this 1
Avatar
With Chrome 114 is the start of Google beginning to roll-out Maglev as their new mid-tier compiler for further enhancing the JavaScript browser performance.
Avatar
chillerbot1 BOT 2023-06-04 21:17:28Z
ChillerDragon
Avatar
Firefox dead🥹🥹
Avatar

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [X] Written a unit test (especially base/) or added coverage to integration test
  • [ ] 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-addres...
Avatar
It was incorrectly checked for UIElement.Rect(0)->m_Y != pRect->h, so any UI rect using m_HintCanChangePositionOrSize would be updated every frame (although, no UI element currently uses this hint). Additionally, checks for changed rounding size and corners are added so UI elements are updated when those are changed.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration opt...
Avatar
265f16e Fix UI element check with m_HintCanChangePositionOrSize - Robyt3 384a356 Merge #6707 - bors[bot]
Avatar
4032745 Fix color_cast between ColorHSLA and ColorHSVA losing alpha - Robyt3 85bfe19 Add test to ensure that color_casts keep the same alpha value - Robyt3 f178bdf Merge #6706 - bors[bot]
Avatar
I'll continue working on it tommorow.
Avatar
imagine having a huge ass map only to have to load it to preview so you can load it to edit
😅 1
Avatar
Avatar
Mr.Gh0s7
I'll continue working on it tommorow.
oh rly nice feature
23:47
im a map hoarder so that would be helpful for me
Avatar
Avatar
Mr.Gh0s7
I'll continue working on it tommorow.
@Ravie we need an executice decision
Exported 546 message(s)