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-07-08 00:00:00Z and 2022-07-09 00:00:00Z
Avatar
An in development statically typed systems programming language; with sustainability at its core. We, the community of users, maintain it. - GitHub - nim-works/nimskull: An in development staticall...
08:32
there is some drama at nim
08:33
Avatar
who actually added ninja animation to fng? is it server? it was not so before i think, when you were frozen in fng and pressed shoot, that the ninja animation played (without you moving). can others see it? (fng)
Avatar
nice change
09:29
wait maybe it's just antiping
09:30
not working anymore, weird
09:30
with hammer it works
Avatar
Looks a little uninspired to me ngl. More descriptive commit messages and some refactoring? I have a feeling it's more just a dramafork
Avatar
A shame, not many people with that skillset interested in working with niche languages like nim. Splitting them up leaves even less for both projects
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:23:46Z
i am planning on having some projects on gitlab in addition to github. Anyone ever did that? Two git hosters? Any advice on how to keep it in sync and not messy
Avatar
i have a self hosted gitlab server xd
14:24
i dunno, i dont see any problem
14:25
but i dunno if you can automatically sync if u mean that
14:26
but generally, git allows u to set any remote havent had any problems with that
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:26:36Z
go leak ur setup?
14:26
how did you name your remotes whats your workflow?
Avatar
git remote add origin git@... git remote add backup git@...
14:27
one is gitlab from home server one is a simple vps
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:27:25Z
do you do like git pull origin master git push backup master ?
Avatar
yeah basically
14:27
tho tbf i dont use these repos very often
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:28:01Z
i see
Avatar
just some educational projects i did during my lifetime 😄
14:28
stuff i dont want to loose but also dont care lot about
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:28:19Z
im just wondering if i can get my self in trouble if mix something up
14:28
i assume i should always pull and push both
Avatar
if u dont force push its relativly saFE
14:29
i mean one is always before the other right?
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:29:04Z
but if i commit two different commits two the two remotes
Avatar
oh ok
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:29:16Z
i can get it incompatible without forcepush
14:29
thats the trap
Avatar
well thats already more confusing xD
Avatar
have one be the primary and push not too often to the other (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:29:26Z
because i work from multiple devices
Avatar
best is u use different branches
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:29:35Z
eww different branches
14:29
yea picking a primary is probably wise
Avatar
yeah bcs when the branch doesnt exists in either one u cannot simply push
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:30:16Z
like allowing new commits to be only pushed to one and then the other only mirrow
14:30
MIRROR
Avatar
but have to do git push --set-... remote branch
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:30:44Z
-u
Avatar
yeah
14:30
^^
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:30:58Z
no -u
14:31
lez see how good my gitlab ci skills are hehe
14:31
wish me luck
14:31
or send ddnet gitlab cis if you got any
Avatar
with self hosted github its really ez
14:31
bcs u can run your CI without any virtual mashine or smth so no need to install packages etc
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:32:01Z
SELFHOFTSED GITHUB
14:32
watefek
Avatar
its like normal compile on your computer
14:32
gitlab* XD
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:32:11Z
xd
Avatar
i leaked github
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:32:15Z
leak gh code
Avatar
hehee
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:32:30Z
omg ur the reason gh is always down
14:32
stop hax them
Avatar
hardest part bout self hosting is config, bcs gitlab is preconfigured to handle like 3000 users xD
14:33
uses like 8gb RAM default ez
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:34:23Z
woot
14:34
sounds like java
14:34
ik it isnt
Avatar
javascript bro
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:35:03Z
roby on rails
Avatar
the defintion of wasting ram xd
14:35
yeah true
14:35
ruby is used lot too
Avatar
gitlab is js?
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 14:35:35Z
gitlab is ruby on rails
14:35
ROBY
Avatar
gitlab uses different workers
14:35
its more a collection of tools + the web thing itself
14:37
config file is 3k lines xd
14:48
self hosted
14:48
and abandon github and gitlab
Avatar
Avatar
Ryozuki
why would you use this over gitlab
Avatar
bcs its made in rust
Avatar
I plan in replacing the cgit i have on git.edgarluque.com to use sourcehut
Avatar
Avatar
bluesky
why would you use this over gitlab
lightweight better
14:51
sourehut is rly nice
14:51
and u can flex on the kids
14:51
like using vim
14:51
it also comes with a paste service
14:52
a builds service
Avatar
a man page service
14:52
etc
14:52
builds.sr.ht dispatch.sr.ht git.sr.ht hg.sr.ht lists.sr.ht man.sr.ht meta.sr.ht paste.sr.ht todo.sr.ht
14:52
u can self host all
14:52
sr.ht is a distributed system in which each service (e.g., git.sr.ht, builds.sr.ht) runs independently with its own database and resources, communicates with other services through their respective APIs and webhooks, and is highly tolerant to the temporary or permanent absence of its peers. This type of design allows you to choose and deploy any subset of services depending on your needs, making it ideal for both large-scale deployments and small-scale installations.
Avatar
i can just tell you. nothing is as ez as setting up a gitlab instance
14:53
(as long u dont run other stuff that can conflict with it)
Avatar
gitlab also likes ur ram a lot
Avatar
ram is there to be used
Avatar
but on small vps u dont wanna waste
14:55
this is not ur local pc
14:55
and gitlab recognizes there is a problem itself
Avatar
u just need to strip down some config
14:55
puma uses too much resource for example
Avatar
idk bro
14:56
ima try sourcehut
Avatar
ok
Avatar
Avatar
Ryozuki
ima try sourcehut
wait, you dont use it already? (edited)
Avatar
no im using cgit
14:58
which is probs the most lightweight shit u can use
14:58
and super fast
14:58
its bare C
14:58
but there is no pull requests
14:59
i jut use it to mirror my github repos
14:59
in case microsoft decides to cut the world
Avatar
well if its used privat do you even need a pr
Avatar
im happy freedesktop moved away from that to gitlab xd
15:00
BASED
Avatar
for me i would rather use gitlab and spend the time configuring it for my needs. got a nice GUI and shit
Avatar
nice teeworlds projects
Avatar
who needs gui
15:01
but sourcehut has a gui
15:01
and cgit kinda too
Avatar
tbh any kind of selfhosting is overkill xD
Avatar
Avatar
Ryozuki
and cgit kinda too
Yeah, pretty nice 😆
Avatar
its just bcs we want to flex
Avatar
i like how simple cgit is
Avatar
Avatar
Jupstar ✪
tbh any kind of selfhosting is overkill xD
who knows
15:02
it is until it isnt
15:02
when github ceases to exist
Avatar
I mean, simplicity is good, but when managing projects i prefer having something that alot of people can work with.
Avatar
the thing is
15:02
self hosted needs a way to improve discoverability
15:03
github is what it is cuz u can easy discover projects
Avatar
I think gitlab is more known than sourcehut and cgit but i could be terribly wrong
Avatar
sourcehut is used by really big nerds
15:03
like the hacker news crowd
15:03
which btw hackernews is down rn
cammo 1
Avatar
Avatar
Jupstar ✪
its just bcs we want to flex
xD
15:05
issues
Avatar
Avatar
Ryozuki
when github ceases to exist
You never know, better have backup systems for everything👽
Avatar
good thing is
15:05
in sourcehut u dont even need to register
15:05
u can just send a mail
15:05
xd
15:07
some music is dope
Avatar
guess who went on a family weekend, forgot his laptop charger and depleted his battery in the train unconsciously
Avatar
probably not you
Avatar
chillerdragon BOT 2022-07-08 15:15:47Z
image: ubuntu:22.04 stages: - build - test build_cmake: before_script: - apt-get update -y - apt-get upgrade -y - apt-get install pkg-config clang cmake ninja-build libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libvulkan-dev glslang-tools spirv-tools libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libx264-dev libpng-dev libcurl4 libcurl3-gnutls libcurl4-openssl-dev libcurlpp-dev libogg-dev libopus-dev libopusfile-dev valgrind -y stage: test script: - mkdir build && cd build - cmake .. - make -j$(nproc)My first somewhat working prototype of gitlab pipeline in case anyone ever needs a .gitlab-ci.yml for ddnetIf i continue making this nicer i might try PRing against ddnet eventho its on github
Avatar
& how fast is gitlab CI compared to github?
15:18
when benchmarks
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 15:20:01Z
it takes 5min to register your own local device as runner so it can run the NASA speeds you are used from home
15:20
or you create dedeicated raspi4 runner machines. Then the pipeline might finish even before you commited
15:22
this pipeline took 7 minutes to run but its poorly optimized because most of the time is spend installing deps. You can simply pre build a docker image with the deps and upload that and run the pipeline in there.
Avatar
yeah self hosted runner is fast ofc, but is at least kinda risk for the person hosting it, even with a VM
15:27
but true, we also update the deps in our CI, why arent the CI images just always up to date
15:27
would be much easier
15:28
apt is also not the quickest packet manager xd rip
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 (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
[quakenet] ChillerDragon BOT 2022-07-08 15:55:24Z
My CI uses arch btw
Avatar
My CI is built in rust
Avatar
@heinrich5991 i squashed
Avatar
Learath's CI runs in electron
Avatar
ah, i forgot to remove easter egg 🙂
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 16:01:13Z
axaxax electron
Avatar
ok, rebase finished
Avatar
Whats the purpose of docker
Avatar
Add a very simple CI for gitlab. This is for ddnet forks that are hosted on gitlab. They can quickly get started with a simple ddnet pipeline that checks the build. And can be extend by adding files in .gitlab/*.yml without getting git conflicts with this upstream repository.
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 16:11:56Z
I don't think docker has any purpose
16:12
Its the most useless tech
16:12
but if you HAVE to use it. Make sure to not get any bloat docker version. Just use this simple 100 lines of docker implementation https://github.com/p8952/bocker
Docker implemented in around 100 lines of bash. Contribute to p8952/bocker development by creating an account on GitHub.
Avatar
Okay but what does it do thi
16:14
tho*
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 16:14:35Z
docker is literally a scam. Someone could think docker helps with security or reproducibility. Because everyone can spin up a containered environment which is seperate from the host and the same for every person running it.
16:14
.. until it isnt
Avatar
Ye, thats what i've heard
Avatar
[quakenet] ChillerDragon BOT 2022-07-08 16:15:35Z
on linux its using the namespaces feature if i remember correctly to seperate contexts. On mac it just eats disk space. And on windows it does not work at all
16:16
actually not sure bout windows
16:16
i think it might work if you buy some docker desktop app :D
16:16
just use WSL on windows 🤷
16:16
docker could be cool if it would work as everyone wants it to work :)
Avatar
Docker actually makes it ez to mass deploy stuff i guess
Avatar
85c78a9 Use for-each loop in CHud::ResetHudContainers to reduce duplicate code - Robyt3 1efd52b Merge #5589 - bors[bot]
Avatar
is that a common issue u had when switching from idk.x to 16.2?
16:42
(update button)
Avatar
No, that should not happen. What was your old version?
Avatar
fccf89d Add basic extensible gitlab CI - ChillerDragon f6febca Merge #5590 - bors[bot]
Avatar
otherwise the dll is in the 16.2 download on https://ddnet.tw/downloads
Avatar
For #5143 Maybe it helps identifying the problem earlier, maybe not^^

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+UBSa...
Avatar
do we want this? I assume it only compiles bcs MAX_NAME_LENGTH was included in a different header that was included before hud.h was included
17:02
but hud.h itself cannot find it(on its own)
17:03
@Robyt3 maybe ur include fixup? ^
Avatar
Avatar
Jupstar ✪
@Robyt3 maybe ur include fixup? ^
I never added all the includes that would be necessary to make every file standalone, so if you remove one include you might have to add others that were previously included by it
17:05
that would be a large change and also likely have a negative effect on the compile time again
Avatar
how much compile time did we save?
17:09
i prefer to have a working IDE tbh
Avatar
hm, thinking about it it's probably minimal because the #pragma once / header guards would prevent duplicate includes / macro expansion anyway
17:12
I think deen made the headers compile standalone at some point so the include fixup must have broken that
18:10
this guy
18:10
made TIS-100 inside infinifactory
18:10
lmao
18:10
insane
Avatar
I fist did that change to fix the weapon display in the new HUD. But it turned out that did not fix the Weapon display anyway (only partially on remote server but not local). And since we now have a better fix for the weapon display (by sending the correct weapon) we do no longer need to overwrite the predicted data. rename ReadCharacterCore back to Read (Since we do not need ReadCharacter that I introduced) fixes #5309 probably fixes #5559 (I can still not reproduce) ## Checklis...
Avatar
would be nice if we can get a preview bot for the #📬submit-skins channel, that creates a png, with all 6 eyes that look in 6 different directions, and feats in different stats (edited)
Avatar
1dacb33 rename ReadCharacterCore back to Read; Do not overwrite predicted - C0D3D3V 067e820 Merge #5592 - bors[bot]
22:06
Avatar
@deen hey, could you please allow cross-origin for https://ddnet.tw/testmaps/ and https://ddnet.tw/mappreview/ for my site https://mapview.patiga.eu ? :)
Avatar
should work now @Patiga
Avatar
thanks, will test in a sec! heartw
22:38
I'd suggest to focus on the start tile initially
Avatar
those are local, ?ddnet=Tutorial should work once I upload
22:39
thought the same, it will also center on the middle of all spawns
Avatar
Doesn‘t work on Safari mobile for me, Firefox desktop works fine
Avatar
huh, interesting
Avatar
Also, Rust to wasm, cool 🙂
Avatar
aye, the most pain I had is figuring out mobile html ^^
Avatar
@Jupstar ✪ now that it works nicely on mobile, wanna have a look at my fully undocumented twgpu rust crate? ^^
23:06
still only map renderer so far
23:07
will be away for the next few weeks, so I don't really have much time for implementing stuff, but feature requests are still very welcome :)
Avatar
is the site down rn?
23:20
shows a white page for me
Avatar
should be up
23:21
which link are you on, are you on mobile and on which browser?
Avatar
ah that is a dead link now, it happens so fast 😅
Avatar
still white
Avatar
ouch, I will need to have a look at it then
23:25
ah, there was also someone else for who the tilemaps didn't render
23:26
I'll have to learn what kind of devices have which problems, I think @Jupstar ✪ has experience in that direction ^^
Avatar
a69dc59 Huge variable naming format - Chairn b8840c4 Replaced magic number with MAX_CHECKPOINTS - Chairn 5345e55 Merge #5545 - bors[bot]
Avatar
Avatar
Patiga
ouch, I will need to have a look at it then
i lied it works now
Avatar
As Tezcan reported on Discord, if a DDNet server is reachable via a different port than it listens on (e.g. because a NAT remaps the port to some other port), the new masterserver registration fails because the new masterserver only contacts the server on the port that it reports. This could be fixed by making the server ask a STUN server for its public UDP port.
Avatar
Avatar
Patiga
ah, there was also someone else for who the tilemaps didn't render
I don't see any tiles, firefox windows
Exported 258 message(s)