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 2021-08-16 00:00:00Z and 2021-08-17 00:00:00Z
06:35
cmakeppl say is a bad idea
Avatar
@Learath2 are u sure the snap thing is optimized?
07:06
if i sent it everytime i receive it everytime
Avatar
It doesn't go over the network every time, the client only gets the changes
07:07
Then the client constructs the full snap applying the changes over the last full snap it has
Avatar
I think it's not that expensive to populate the internal structures every snap, but if you feel like it you can always use netmsgs instead and do it like you are doing right now
07:08
but then you need to carefully figure out where all the updates need to go so the client doesn't fall out of sync
Avatar
yeah snap is better
07:12
the other way looks rly error prone
Avatar
chillerdragon BOT 2021-08-16 08:33:38Z
@Anime.pdf: if you are annoyed by editing cmakelist you can run this helper script it will edit cmakelist according to your current source files https://github.com/lib-crash/lib-teeworlds/blob/master/bin/tw_cmake
Some helpers for the game teeworlds written in bash - lib-teeworlds/tw_cmake at master · lib-crash/lib-teeworlds
Avatar
@Learath2 maybe we should do smth about the CI that scans cpp code
08:46
it gets cancelled after taking 38 mins
08:46
xd
Avatar
let me test smth with CodeQL, but i doubt its gonna work
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
chillerdragon its true i get a black screen
09:08
when tabbing now
09:09
well not tabbing
09:09
when i open and close the game
09:09
this must be some sdl shit
Avatar
test with desktop fullscreen
Avatar
oh better now
Avatar
seems like smth about exclusive fullscreen was changed
09:11
create an issue on SDL github xd
09:12
2lazy
Avatar
@Deleted User i think its safe to merge #4080 now
Avatar
Fixes #3822 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 ...
Avatar
learath doesnt want to review?
Avatar
hmm idk
09:50
they are all on vacations
09:50
greenthing
09:50
we control ddnet now monkalaugh
Avatar
ok your virus is in ryo, now hack ddnet
10:07
"Warning: Code scanning cannot determine the alerts introduced or fixed by this pull request, because 1 analysis was not found." Very useful warning
10:07
Error: 1 analysis not found Warning: 1 analysis not found
10:08
2 issues with 1 pr
10:08
ez
10:08
beat me @Deleted User
10:08
greenthing
Avatar
mhh thats hard xd
Avatar
fedb935 [ci skip][skip ci][skip netlify] - bors[bot]
10:14
3d91628 Remove fetch-depth from CodeQL - Jupeyy b32a865 try1 - Jupeyy 9b0f697 try2 - Jupeyy eb1c197 try 3 - Jupeyy d5be7c5 try ninja - Jupeyy cc6ae05 [ci skip][skip ci][skip netlify] -bors-staging-tmp-4087 - bors[bot]
10:14
[ddnet/ddnet] New branch created: trying.tmp
10:14
3d91628 Remove fetch-depth from CodeQL - Jupeyy b32a865 try1 - Jupeyy 9b0f697 try2 - Jupeyy eb1c197 try 3 - Jupeyy d5be7c5 try ninja - Jupeyy 3c8028f Try #4087: - bors[bot]
Avatar
im making bors trying it
10:15
the try-ception is real here
10:15
monkaS
Avatar
chillerdragon BOT 2021-08-16 10:23:54Z
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/player.cpp at 6b9bdbc259d3d335f5c9ae2652243b877ab23196 · ddnet/ddnet
Avatar
isnt the score always negative in ddnet
10:37
u just see the time representation always
Avatar
chillerdragon BOT 2021-08-16 10:43:12Z
yea its sent as negative to the client
Avatar
a329014 [ci skip][skip ci][skip netlify] - bors[bot]
10:43
[ddnet/ddnet] New branch created: trying.tmp
10:43
3d91628 Remove fetch-depth from CodeQL - Jupeyy 55b6d27 Use ninja for building - Jupeyy a6f83a6 [ci skip][skip ci][skip netlify] -bors-staging-tmp-4087 - bors[bot]
10:43
55b6d27 Use ninja for building - Jupeyy 9eabbfc Try #4087: - bors[bot]
Avatar
chillerdragon BOT 2021-08-16 10:45:19Z
powerups ninja!
10:45
:ninja
10:45
omagawd
10:45
:ninja:
Avatar
chiller u dont use ninja?
Avatar
chillerdragon BOT 2021-08-16 10:45:35Z
yes that one
10:45
i dont use ninja
10:45
i use bam
10:45
bam
10:45
is not the same as make
10:45
or ninja
10:45
nobo
Avatar
chillerdragon BOT 2021-08-16 10:45:55Z
axaxaxax
Avatar
learn ur tools
Avatar
chillerdragon BOT 2021-08-16 10:46:00Z
ikr
10:46
yea anyways i use make
Avatar
um, try not to break anything while messing around with the codeql stuff, I'm not close to a computer right now
Avatar
you cant break a broken thing xd
Avatar
chillerdragon BOT 2021-08-16 10:46:41Z
hehe
Avatar
yeah xD
10:46
its theorically fixed now
Avatar
i think its the same problem we had a while ago
10:47
with cmake's paralell parameter
Avatar
I was envisioning a more catastrophic failure 😛
Avatar
chillerdragon BOT 2021-08-16 10:47:18Z
"envisioning"
Avatar
verb gerund or present participle: envisioning imagine as a future possibility; visualize.
Avatar
chillerdragon BOT 2021-08-16 10:47:43Z
yea i mean i understand it
10:47
but still would never use it
Avatar
why not
10:48
using these words u look smarter
Avatar
chillerdragon BOT 2021-08-16 10:48:08Z
Learath always flexin the native upperclas vocabs disrespecting our ghetto slang
10:48
i feel offended
Avatar
you are just derelict in your language learning
10:49
this sentence only works for north muricans
Avatar
chillerdragon BOT 2021-08-16 10:49:08Z
watafak
Avatar
chillerdragon BOT 2021-08-16 10:49:40Z
I dont speak london
Avatar
@Ryozuki ok works
Avatar
merge again
10:54
ah
10:54
u canceled it
Avatar
i squshed the commits
Avatar
does bors try run codeql?
10:55
i dont think so xd
Avatar
xd
10:55
but its green now since 5 tries
10:55
thats new record
Avatar
its doing its thing
Avatar
thats ok
10:55
it always failed the building
10:56
it worked
10:56
finally bors wont take 30 mins
10:56
at everything
10:56
xdd
Avatar
i still think github actions is too slow for aproject that compiles in 8 seconds xD
10:56
maybe we can self host ci
Avatar
would be cool if github allows to use private resources
Avatar
i think u can
Avatar
but only external right?
Avatar
You can host your own runners and customize the environment used to run jobs in your GitHub Actions workflows.
Avatar
not for github actions itself
Avatar
You can host your own runners and customize the environment used to run jobs in your GitHub Actions workflows.
10:57
u can
10:57
Your runner machine connects to GitHub using the GitHub Actions self-hosted runner application. The GitHub Actions runner application is open source.
Avatar
nice
Avatar
i wonder what specs the runner vps needs
10:58
i guess they allocate rly small resources on their runners
Avatar
that for sure
Avatar
maybe with a 5€ vps it goes rly fast
Avatar
that would be insanly fast
Avatar
amazing
10:59
i can pay for it i dont mind
Avatar
xd maybe test it before
10:59
its ok cuz
10:59
they bill hourly
10:59
so if it doesnt work its not much
11:00
i wonder if a self hosted runner can use pre existing instaleld software
11:00
so we can cut even more time
11:00
ah well
Avatar
probs not
Avatar
does the self hosted runner run windows stuff?
Avatar
i dunno, it runs all stuff in VM
Avatar
your VPS also has to support it probably
Avatar
how to know that
Avatar
look at the specs
Avatar
my old vps could, it costs around 8€ my current can't 2€ xD
Avatar
check here
11:02
11:02
oh amd is cheaper
Avatar
"We recommend that you only use self-hosted runners with private repositories. This is because forks of your repository can potentially run dangerous code on your self-hosted runner machine by creating a pull request that executes the code in a workflow. This is not an issue with GitHub-hosted runners because each GitHub-hosted runner is always a clean isolated virtual machine, and it is destroyed at the end of the job execution."
11:02
xDDD
11:03
so probs u dont want todo it
Avatar
3d91628 Remove fetch-depth from CodeQL - Jupeyy 55b6d27 Use ninja for building - Jupeyy d4e9b83 Merge #4087 - bors[bot]
11:03
cant u prevent forks from running code?
11:03
xd
Avatar
i often use it to check some stuff before creating prs or to share executables xd
Avatar
chillerdragon BOT 2021-08-16 11:07:29Z
@Deleted User: wats ur 2$ vps? specs? hoster?
Avatar
hoster is netcup.de and it was an easter discount
11:08
let me see the specs
Avatar
chillerdragon BOT 2021-08-16 11:09:01Z
infinite discount?
Avatar
yes
11:09
1,79 € /month
Avatar
chillerdragon BOT 2021-08-16 11:09:14Z
wow thats awesome
11:09
how much was the discount?
Avatar
Traffic ungedrosselt: 40 TB / Monat Festplattenverbund: 20 GB SSD (RAID10) Arbeitsspeicher: 2 GB Prozessor: 1 vCore around 1€ i guess
Avatar
chillerdragon BOT 2021-08-16 11:09:44Z
🍺 🇩🇪
Avatar
they current cheapest is 2.69€ atleast
Avatar
chillerdragon BOT 2021-08-16 11:10:00Z
how good is the cpu?
Avatar
well i dunno its a shared intel xeon second latest gen or smth
Avatar
chillerdragon BOT 2021-08-16 11:10:34Z
can it run crysis 2 ?
Avatar
its not really good, but i run fng and teamspeak on it
11:10
crysis 4 runs at around 100 fps, so not really good
Avatar
chillerdragon BOT 2021-08-16 11:10:57Z
xxD
Avatar
but i also have a homeserver, where we collect data from our solar panels etc
11:11
thats quite powerful
Avatar
chillerdragon BOT 2021-08-16 11:11:51Z
thats awesome!
Avatar
solar panels
Avatar
chillerdragon BOT 2021-08-16 11:12:10Z
i also dream about my "home server" having solar energy
Avatar
are they connected to the global electricity line or smth?
Avatar
yes
Avatar
here in spain they tax you
11:12
if u do that
11:12
tax the sun
Avatar
chillerdragon BOT 2021-08-16 11:12:31Z
xd
Avatar
i get 11 cents per kw/h
Avatar
chillerdragon BOT 2021-08-16 11:12:39Z
TAX THE SUN!
Avatar
The so-called sun tax limited the development of clean energy in Spain by imposing charges on the self-consumer of solar energy from his or her own home.
Avatar
chillerdragon BOT 2021-08-16 11:12:49Z
stonks
Avatar
but its cheaper to use the energy as much as possible
Avatar
The end of the "sun tax" has finally happened in Spain, with the removal of this tax by the government. In the past, this tax made it difficult and slowed down the self-consumption of electricity in Spain.
11:12
oh
11:13
they removed it?
11:13
xd
11:13
it was so idiotic
Avatar
chillerdragon BOT 2021-08-16 11:13:12Z
what hardware is ur home server and what does it run @Deleted User ?
Avatar
but here retired politicians go to the electricity companies to get their chair and money
11:13
so its all corrupted
11:13
last 2 days and today(cloudy)
Avatar
thats awesome
Avatar
chillerdragon: its intel skylake 6700k or smth
Avatar
is that grafana?
Avatar
yes
11:14
i hacked the encryption of our inverter(java code, was ez xD) my brother wrote the rest xD
Avatar
chillerdragon BOT 2021-08-16 11:14:36Z
what case? @Deleted User do u use a laptop/desktop/server rig ?
Avatar
well its a desktop CPU and also inside a desktop case if you mean that
11:15
we use it for jellyfin and grafana mostly
Avatar
chillerdragon BOT 2021-08-16 11:15:12Z
ah right
Avatar
ah and nextcloud
Avatar
chillerdragon BOT 2021-08-16 11:15:22Z
so u have some desktop tower standing around somewhere
Avatar
but mostly my brother, i dont like clouds xxD
Avatar
behind our TV XD
11:15
its invisible
Avatar
chillerdragon BOT 2021-08-16 11:15:42Z
noise?
Avatar
is it sunny often there?
Avatar
none
11:15
except it does heavy math
11:16
but it mostly runs idle, we bought some "green" motherboard that almost doesnt use electrity
11:16
mhh
Avatar
chillerdragon BOT 2021-08-16 11:16:19Z
"green" :D
Avatar
its sunny in summer yeah
Avatar
imagine here
11:16
its sunny always
Avatar
yeah
Avatar
but having ur own house is rare
11:16
u have a flat
Avatar
in spain they should just force ppl to have solar panels
11:16
such a waste of space
11:16
spain should go all in
11:16
with solar
Avatar
we make around 8000 kw/h per year i think
11:17
but most is from summer ofc
Avatar
chillerdragon BOT 2021-08-16 11:20:24Z
@Ryozuki: cant u also have solar in a flat?
Avatar
i doubt
11:49
sad
Avatar
but pls make extra image xD
12:02
not #3442
Avatar
@Deleted User u talking about the announcement right?
Avatar
yes
Avatar
yeah i planned it on a new image
12:03
hud.png
Avatar
Okay, I have today to do ddnet things, does anything need to be done?
Avatar
@Learath2 check the switch pr
12:03
and #4003
Avatar
For older OpenGL contexts @Learath2 can you check this? Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configuratio...
Avatar
chillerdragon: how to you run shell check, and can it automatically fix everfyhing without breaking anything(like is it stable/safe to use)
Avatar
chillerdragon BOT 2021-08-16 12:04:20Z
run chillerdragon.sh
12:04
it fixes it for u
Avatar
where is that xD
Avatar
chillerdragon BOT 2021-08-16 12:04:38Z
im here
12:04
send me shell scripts
Avatar
#4085
Avatar
This is mostly finished, adds the scripts and the minimal code changes needed. It does NOT add any functionalty. What is missing: Can't get opusfile to compile for 32bit (arm and x86), pr...
Avatar
chillerdragon BOT 2021-08-16 12:05:04Z
ah ye
12:05
i saw the pr and got rly hyped u added shell
12:05
:D
Avatar
bcs google hates everything except android studio xD
Avatar
chillerdragon BOT 2021-08-16 12:05:34Z
want me to fix it rn?
Avatar
but before using that i wrote it myself
12:05
no hurry
Avatar
chillerdragon BOT 2021-08-16 12:05:54Z
?
12:05
u rewrote android studio in shell?
12:06
xd
Avatar
no
Avatar
chillerdragon BOT 2021-08-16 12:06:08Z
why shell then
Avatar
i prepare all gradle stuff and cmake stuff to work
12:06
without android studio
12:06
bcs shell scripts are ez and striaght forward
Avatar
chillerdragon BOT 2021-08-16 12:06:43Z
wew ur into shell?
12:06
i thought its some android thing
Avatar
well not enough to pass shell check, whatever use it has
12:07
why cant the interpreter tell me whats wrong directly xD
Avatar
chillerdragon BOT 2021-08-16 12:07:10Z
u got me for that
12:07
so ur not workin on it rn? to avoid conflicts
12:07
oh boi thats a bunch of offenses :D
12:08
can i test if it wrks?
Avatar
sure
Avatar
chillerdragon BOT 2021-08-16 12:09:05Z
tutorial pls
Avatar
in scripts/android is a readme
Avatar
chillerdragon BOT 2021-08-16 12:09:30Z
oof android skd
12:09
ok watever i fix the safe stuff and let u test then
Avatar
the fact that I still have to compile with sed -i "" 's/10\.15/11.0/g' CMakeCache.txt annoys me so much
Avatar
what does that do
12:20
is it some macos hack
12:20
10.15 to 11.0
Avatar
i wonder why u cant just update everything
12:20
its like being on XP and complaining that it sucks xD
Avatar
Because big sur has dyld cache, can't debug weird sdl bugs when I can't even extract the frameworks anymore
Avatar
Avatar
Deleted User
its like being on XP and complaining that it sucks xD
it's more like being on windows 8 and complaining
Avatar
just static link newest sdl
12:22
we should also use SDL_main, then we can drop the macos files
12:24
sdl 2.0.16 also supports flashing window xd
12:24
on macos
Avatar
1dd91fe send switch state to the client - edg-l 8d9fa10 Merge #4084 - bors[bot]
Avatar
chillerdragon BOT 2021-08-16 12:36:08Z
@Deleted User: almost done how do push in ur branch? do i have to fork ur fork and pr against ur fork?
Avatar
oh, probably yes xD
Avatar
chillerdragon BOT 2021-08-16 12:38:30Z
oky
Avatar
ac5d731 Use GL_ARRAY_BUFFER - Jupeyy 3594d89 Merge #4003 - bors[bot]
Avatar
chillerdragon BOT 2021-08-16 12:48:50Z
@Deleted User: unused variable wat i do wit dis? is it some env var? doubt cuz _ prefix
12:49
image.png
Avatar
possible yes
12:49
ah
12:49
that can be removed i guess
Avatar
chillerdragon BOT 2021-08-16 12:50:48Z
oky
12:51
ez
12:51
image.png
12:53
gotta love githubs FEATURE not be able to fork a repo twice :D
12:53
image.png
12:53
yas light mode! deal with it
Avatar
well have you ever seen a fork with 8 prongs?
12:53
probably for the best
Avatar
Avatar
chillerdragon
yas light mode! deal with it
🔥 EYES 🔥
Avatar
Does @heinrich5991's comment on src/game/server/teams.h:L15 make sense to any of you? If a tee kills before hitting start the team will be marked UNFINISHABLE but why? If the tee leaves the team he can't very well start the race as he will have left the game/team
Avatar
i think he explained it in the pr
13:02
"Without this, you can complete the entire map with enough startline skipped tees and only drag the started tee through the entire map, killing everyone who hasn't touched the startline afterwards."
Avatar
Avatar
chillerdragon
image.png
you could copy branch but ok
Avatar
chillerdragon BOT 2021-08-16 13:03:19Z
@Deleted User: ah lol i already prd against ur repo once i think last time i did it smarter idk how tho
Avatar
i dunno, deen instantly merged it xxD
Avatar
i didnt even notice it
13:04
thanks alot chillerdragon 😄
Avatar
chillerdragon BOT 2021-08-16 13:04:04Z
pls test if it still werrks
Avatar
Avatar
Deleted User
"Without this, you can complete the entire map with enough startline skipped tees and only drag the started tee through the entire map, killing everyone who hasn't touched the startline afterwards."
Okay, this case does make sense, but the comment doesn't so that should be updated
Avatar
yeah
13:04
will test later
Avatar
chillerdragon BOT 2021-08-16 13:04:26Z
:)
13:05
@Deleted User: when add iOS and linux phones?
Avatar
linux is ez
Avatar
chillerdragon BOT 2021-08-16 13:05:20Z
ye?
Avatar
iOS is like shooting in your knee
Avatar
chillerdragon BOT 2021-08-16 13:05:32Z
ye !
Avatar
well i guess linux phone just use mesa dont they
Avatar
chillerdragon BOT 2021-08-16 13:05:41Z
but iOS has already been done
Avatar
the fact apple wants 100 bucks per year is already a joke
Avatar
chillerdragon BOT 2021-08-16 13:06:03Z
i still keep my old iphone5 because it has an tw app on it! not in the store anymore :D
Avatar
makes it impossible as solo dev
Avatar
chillerdragon BOT 2021-08-16 13:06:29Z
idk about linux phones but its possibly easier than iOS
13:06
still gotta adapt to touch no?
Avatar
i'd assume linux phone is just linux xD
Avatar
chillerdragon BOT 2021-08-16 13:06:55Z
yes it for example runs the same firefox
Avatar
if i'd have an iphone and some extra pc i dont need i'd try it there xD
Avatar
chillerdragon BOT 2021-08-16 13:07:12Z
but you cant play tw with only touch and no further edits
13:07
how do u hook and walk then?
Avatar
its not meant for any mobile feature
13:07
its just for building
Avatar
chillerdragon BOT 2021-08-16 13:07:56Z
oh?
Avatar
if someone wants to make a ddnet chat app he can now
13:08
e.g. watching and chatting
Avatar
chillerdragon BOT 2021-08-16 13:08:13Z
ah cool
13:09
i rly wanna get rid of my iphone but idk which linux phone to get
Avatar
the problem with linux phone is really they always use shit hardware
13:09
else i'd also like to try them out
Avatar
linux phone? not like there are many options out there
Avatar
chillerdragon BOT 2021-08-16 13:09:49Z
thought of pine and librem
13:09
ya
13:10
I am okay with worse hardware and a high price as long as it runs some nice open stuff
13:11
only has to be able to run teeworlds so i can do mobile tw gaming axaxaxax
Avatar
well my android phone is also open source except the graphic driver
Avatar
i have a pixel 3 but i wanna get a oneplus
Avatar
chillerdragon BOT 2021-08-16 13:11:47Z
i dunt like android
Avatar
mhh yeah also not huge fan of android tbh
Avatar
chillerdragon BOT 2021-08-16 13:12:06Z
not only because its google infected ik there is degoogled but also because its so different from linux
Avatar
i dunno, its weird to need java for everything that isnt in the NDK
13:12
always annoys me
Avatar
chillerdragon BOT 2021-08-16 13:12:39Z
ya
Avatar
A non started tee leaving the team makes the team unfinishable. This made a couple teams fail some with multiple hours in their timers. Without #3091 system messages are unreadable to some of our players and some players flat out ignore system messages. Ideas: 1. We could just kill such unfinishable teams 2. We could nag them with system messages every 10s until they switch to practice mode I don't see a way to address this case properly without falling victim to the case in https://g...
Avatar
chillerdragon: /home/jupeyy/Android/Sdk/ndk//home/jupeyy/Android/Sdk/ndk/23.0.7599858/wrap.sh/asan.sh/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android24-clang Dunno how, but it added wrap.sh/asan.sh XD
Avatar
chillerdragon BOT 2021-08-16 13:36:16Z
?
13:36
i need more context
Avatar
the path got destroyed somehow
Avatar
chillerdragon BOT 2021-08-16 13:36:59Z
which
Avatar
yeah dunno i'm currently looking
13:37
/make_android_opusfile.sh: Zeile 28: /home/jupeyy/Android/Sdk/ndk//home/jupeyy/Android/Sdk/ndk/23.0.7599858/wrap.sh/asan.sh/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang: Datei oder Verzeichnis nicht gefunden
Avatar
chillerdragon BOT 2021-08-16 13:37:30Z
Zeile
13:37
omg
13:37
german
Avatar
Deutsch
Avatar
chillerdragon BOT 2021-08-16 13:38:01Z
ANDROID_HOME=~/Android/Sdk
13:38
find "$ANDROID_HOME/ndk" | sort -n | tail -1
13:38
what does that print?
13:38
ah ye ofc
13:38
cuz i switched to find
13:38
i knew i forgot something on the find thing
13:38
ok sec
13:38
lemme force push
13:38
oh u merged
13:39
ok i pr new one
13:39
no u didnt i drunk
13:39
sec
Avatar
xDDDD
Avatar
chillerdragon BOT 2021-08-16 13:40:04Z
why do u export ANDROID_NDK_VERSION is that some needed env var?
Avatar
mhhhhh
13:40
cant remember, maybe the cmake toolchain used it
13:40
or gradle
Avatar
chillerdragon BOT 2021-08-16 13:41:02Z
Larq is an open-source deep learning library based on TensorFlow and Keras for training neural networks with extremely low-precision weights and activations, such as Binarized Neural Networks.
13:41
fak it is
13:41
how annoying
Avatar
i just program it to work, not to work perfect in shell xD
Avatar
chillerdragon BOT 2021-08-16 13:42:18Z
its not ur fault
13:42
Its just ls prints relative paths and find absolute
13:42
but ls bad and shouldnt be used
13:43
ANDROID_NDK is abs path so thats good but seems like ANDROID_NDK_VERSION is relative maybe it has to stay relative idk?
Avatar
no idea
Avatar
chillerdragon BOT 2021-08-16 13:43:58Z
probably not hm
Avatar
but they are only temporary exported anyway arent they
Avatar
chillerdragon BOT 2021-08-16 13:44:11Z
ok lets try
13:44
change ANDROID_NDK=.* to NADROID_NDK="$ANDROID_NDK_VERSION"
Avatar
NADROIDgang
Avatar
chillerdragon BOT 2021-08-16 13:44:57Z
image.png
13:45
fak off learath xd
13:45
in all files @Deleted User
Avatar
i dunno what problems it has
13:47
maybe the script renamed my directory or smth let me check xD
13:48
ah
13:48
it checks inside the dir
13:48
it should find the dir name
13:48
13:48
2 versions of NDKs
13:48
i want the highest one
Avatar
chillerdragon BOT 2021-08-16 13:48:44Z
wat?
13:48
i did buggo
13:48
u can fix
Avatar
now it goes into the dirs
Avatar
chillerdragon BOT 2021-08-16 13:49:03Z
ah
13:49
oke
13:49
-d
13:49
-type dir or somethkng like that
13:49
ye
13:49
find -type d
Avatar
ok
Avatar
chillerdragon BOT 2021-08-16 13:49:49Z
image.png
13:50
or wait
13:50
are there subdirs?
13:50
better work with depth
13:52
ANDROID_NDK_VERSION="$(find "$ANDROID_HOME/ndk" -maxdepth 1 | sort -n | tail -1)"
13:52
thats prolly best
13:53
@Deleted User: ^
Avatar
but that gives the full path doesnt it
Avatar
chillerdragon BOT 2021-08-16 13:57:20Z
yas
13:57
but it should work too
13:57
just do not concat it
13:58
just do ANDROID_NDK="$ANDROID_NDK_VERSION"
Avatar
the question is if there was a reason i exported it individually
Avatar
chillerdragon BOT 2021-08-16 13:58:25Z
no
13:58
lets just assume not xxxD
13:58
give it a try
13:58
u made one relative and one absolute
Avatar
in stackoverflow it shows me a comment that only shows the versions
13:58
like in the picture
13:59
yeah
13:59
absolute for building
13:59
relative isnt really a path
13:59
its the actual version
Avatar
chillerdragon BOT 2021-08-16 13:59:18Z
ooooh
13:59
then we might need it relative :D
13:59
how annoying omagawd
Avatar
did shell check even complain about that part
Avatar
chillerdragon BOT 2021-08-16 13:59:51Z
go use cd then :D
13:59
yes
Avatar
but why
Avatar
chillerdragon BOT 2021-08-16 14:00:04Z
one should not use "ls"
14:00
ls bad
14:00
for filenames
Avatar
i mean it worked, so how can it be wrong
14:00
xd
Avatar
chillerdragon BOT 2021-08-16 14:00:17Z
thats not how shellcheck works :D
14:00
all of ur code worked
14:00
it might break with funky file names
Avatar
mh ok xd
Avatar
chillerdragon BOT 2021-08-16 14:01:00Z
u can do $(cd "$ANDORID_HOME/ndk" && find ..)
Avatar
and then cd back?
Avatar
chillerdragon BOT 2021-08-16 14:01:20Z
not needed
14:01
subshell
Avatar
i guess i can just substract the path from the other
14:01
well ok
14:01
i'll try yours
Avatar
chillerdragon BOT 2021-08-16 14:01:44Z
ANDROID_NDK_VERSION="$(cd "$ANDROID_HOME/ndk" && find . -maxdepth 1 | sort -n | tail -1)"
Avatar
aslong it doesnt want exit 1 again
14:02
i saw u always exit 1 after cd
14:02
||
Avatar
chillerdragon BOT 2021-08-16 14:02:15Z
ah right
14:02
i think when using && it doesnt need it
Avatar
ok xD
Avatar
chillerdragon BOT 2021-08-16 14:03:10Z
image.png
14:03
yea makes sense we only do things that we want to do after the cd if the cd passed
Avatar
yeah ok 😄
Avatar
chillerdragon BOT 2021-08-16 14:04:13Z
but yea cd + find maxdepth is not much cooler than ls
14:04
xd
14:04
usually absolute paths are totally fine
14:04
or you use globbing
Avatar
mh seems like more stuff broke xD
Avatar
chillerdragon BOT 2021-08-16 14:06:44Z
oh no
14:06
go send
14:07
or do u want me to get the fakin sdk?
Avatar
it somehow removed a cd <somewhere> somewhere
Avatar
chillerdragon BOT 2021-08-16 14:07:48Z
wat errors yo get
Avatar
well it cant find files bcs its in the wrong dir
14:08
why is some code inside ( )?
14:08
is that like a context?
Avatar
chillerdragon BOT 2021-08-16 14:08:53Z
subshell
Avatar
ah
Avatar
chillerdragon BOT 2021-08-16 14:09:02Z
u did a lot of "cd foo;..;cd .."
Avatar
thats bad for cd 😄
14:09
yeah
14:09
i run around
Avatar
chillerdragon BOT 2021-08-16 14:09:27Z
u want to do "(cd foo)"
14:09
u want to do "(cd foo;..)"
Avatar
yeah i'll check all
14:09
should really use subshells more often
Avatar
chillerdragon BOT 2021-08-16 14:09:54Z
which files doesnt it find
Avatar
very useful
14:09
i already found it
Avatar
chillerdragon BOT 2021-08-16 14:09:59Z
yas
14:10
pro
Avatar
there was cd .. outside of the subshell
Avatar
shell programming looks fun
Avatar
chillerdragon BOT 2021-08-16 14:10:18Z
its the best
Avatar
xD
14:13
now i have build_x86 everywhere xD
14:13
bcs of that single cd ..
Avatar
chillerdragon BOT 2021-08-16 14:13:15Z
@Deleted User: i really recommend shellcheck integration in ur editor it will improve ur shell skill a lot. And its helpful since there is no compliation to check for mistakes like variable typos
Avatar
yeah maybe, but i really use it straightforward most of the time
14:13
not so much as a script language
14:13
just spamming commands somewhere
Avatar
chillerdragon BOT 2021-08-16 14:14:29Z
hrhrhrhr
14:14
image.png
14:14
image.png
Avatar
wtf xd
Avatar
chillerdragon BOT 2021-08-16 14:19:05Z
is it werking now?
Avatar
shellcheck can have false positives
Avatar
chillerdragon BOT 2021-08-16 14:19:36Z
yes
14:19
shellcheck is not perfect
14:19
i opend plenty of issues already
Avatar
nobo shellcheck
Avatar
chillerdragon BOT 2021-08-16 14:20:14Z
its a weird string ur priting tbh
Avatar
#!/bin/sh # Source: https://faq.i3wm.org/question/2172/how-do-i-find-the-criteria-for-use-with-i3-config-commands-like-for_window-eg-to-force-splashscreens-and-dialogs-to-show-in-floating-mode.1.html # i3-get-window-criteria - Get criteria for use with i3 config commands # To use, run this script, then click on a window. # Output is in the format: [<name>=<value> <name>=<value> ...] # Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion, # quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`, # reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807 PROGNAME=`basename "$0"` # Check for xwininfo and xprop for cmd in xwininfo xprop; do if ! which $cmd > /dev/null 2>&1; then echo "$PROGNAME: $cmd: command not found" >&2 exit 1 fi done match_int='[0-9][0-9]*' match_string='".*"' match_qstring='"[^"\\]*(\\.[^"\\]*)*"' # NOTE: Adds 1 backreference { # Run xwininfo, get window id window_id=`xwininfo -int | sed -nre "s/^xwininfo: Window id: ($match_int) .*$/\1/p"` echo "id=$window_id" # Run xprop, transform its output into i3 criteria. Handle fallback to # WM_NAME when _NET_WM_NAME isn't set xprop -id $window_id | sed -nr \ -e "s/^WM_CLASS\(STRING\) = ($match_qstring), ($match_qstring)$/instance=\1\nclass=\3/p" \ -e "s/^WM_WINDOW_ROLE\(STRING\) = ($match_qstring)$/window_role=\1/p" \ -e "/^WM_NAME\(STRING\) = ($match_string)$/{s//title=\1/; h}" \ -e "/^_NET_WM_NAME\(UTF8_STRING\) = ($match_qstring)$/{s//title=\1/; h}" \ -e '${g; p}' } | sort | tr "\n" " " | sed -r 's/^(.*) $/[\1]\n/'
14:20
its this
14:20
ups
Avatar
chillerdragon BOT 2021-08-16 14:20:46Z
or not priting idk
Avatar
you ruin us
Avatar
chillerdragon BOT 2021-08-16 14:21:04Z
?
Avatar
u not seeing it?
14:21
xd
Avatar
chillerdragon BOT 2021-08-16 14:21:26Z
i see it
14:21
but wat learath want now
Avatar
i mean i ruined irc
14:21
cuz spam
Avatar
chillerdragon BOT 2021-08-16 14:21:46Z
what is irc?
14:22
and why did he say "us" :D
Avatar
idk xd
Avatar
chillerdragon BOT 2021-08-16 14:22:23Z
there is not a single irc user left is there?
14:23
but the koala is activley improving shellcheck
14:23
its cool project!
14:23
For bugs Rule Id (if any, e.g. SC1000): SC2016 My shellcheck version (shellcheck --version or &#39;online&#39;): online I tried on shellcheck.net and verified that this is still a problem o...
14:24
Consider the following code: #!/bin/bash AWK=${AWK:-/usr/bin/awk} find /etc/{passwd,group,shadow,gshadow} &gt; /tmp/$$ [ &quot;$(wc -l /tmp/$$ | &quot;${AWK}&quot; &#39;{print $...
Avatar
its nto something that can be fixed
Avatar
chillerdragon BOT 2021-08-16 14:24:44Z
seems like u could add "sed" to some exception list in the code
14:25
image.png
Avatar
it probs can fix it for known famous cmds
14:25
but its not generic
Avatar
chillerdragon: the problem with the cd .. && find .... is that it doesnt return the find as string
14:26
nothing gets stored in the var
Avatar
chillerdragon BOT 2021-08-16 14:26:45Z
wat?
Avatar
do i need to printf the find?
14:26
ANDROID_NDK_VERSION="$(cd "$ANDORID_HOME/ndk" && find "$ANDROID_HOME/ndk" -maxdepth 1 | sort -n | tail -1)"
Avatar
chillerdragon BOT 2021-08-16 14:26:58Z
noooooo
Avatar
ah
Avatar
chillerdragon BOT 2021-08-16 14:27:23Z
if its emppty then there is no output
14:27
try running it by hand
Avatar
yeah nvm the find path
14:27
must be . probably
Avatar
chillerdragon BOT 2021-08-16 14:27:33Z
ah
14:27
find .
14:27
yas
Avatar
do i need to export stuff to subshells?
14:28
it ignores ANDROID_HOME
Avatar
chillerdragon BOT 2021-08-16 14:28:42Z
subshells inherit vars from parents
14:28
but parents not from childs
Avatar
ok weird
Avatar
chillerdragon BOT 2021-08-16 14:28:53Z
export wont help either
14:29
its like a scope
Avatar
cd "$ANDORID_HOME/ndk" fails
14:29
LOL XD
14:29
typo in there
Avatar
chillerdragon BOT 2021-08-16 14:29:50Z
ANDORIDgang @Learath2
Avatar
ah rip
14:30
it doesnt print it in colors anymore xD
14:30
and i thought i am the real hacker with that
Avatar
chillerdragon BOT 2021-08-16 14:30:15Z
wat colors?
14:30
image.png
14:30
@Ryozuki: whitelist sed
Avatar
printf "\e[31mDid not pass
Avatar
chillerdragon BOT 2021-08-16 14:30:34Z
oh it doesnt?
Avatar
yeah bcs its now inside printf "%s"
Avatar
chillerdragon BOT 2021-08-16 14:30:59Z
thats weird wtf
14:30
lemme check
Avatar
but doesnt matter too much xD
Avatar
chillerdragon BOT 2021-08-16 14:31:17Z
tbh i did lazy fix :D
14:31
it matters
Avatar
it just prints the color codes
Avatar
chillerdragon BOT 2021-08-16 14:31:27Z
want me to do properly?
Avatar
no i'll remove the colors
Avatar
chillerdragon BOT 2021-08-16 14:31:41Z
no domt
14:31
colors cool!
Avatar
i just thought like, its easier to read then
Avatar
chillerdragon BOT 2021-08-16 14:31:56Z
keep it
Avatar
i can just put it with the "%s" probably?
14:32
or does shellcheck not like that either
Avatar
chillerdragon BOT 2021-08-16 14:32:56Z
printf "\e[31mDid not pass android build type, using default: %s\e[30m\n" "${_DEFAULT_ANDROID_BUILD}"
Avatar
ok
14:33
i wonder if colors reset in subshells
14:33
would also be useful
Avatar
chillerdragon BOT 2021-08-16 14:33:49Z
they dont
Avatar
too bad
Avatar
Fixes #3963

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
  • [x] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresss...
Avatar
test ./23.0.7599858
Avatar
why is another change in my pr xd
Avatar
chillerdragon
Avatar
@Deleted User
Avatar
it adds ./
Avatar
chillerdragon BOT 2021-08-16 14:38:18Z
slow?
14:38
wat
14:38
yes!
Avatar
who is banning inthe game
Avatar
to the version xD
Avatar
chillerdragon BOT 2021-08-16 14:38:25Z
ah
14:38
ofc
14:38
hrmpf
Avatar
#reports
Avatar
Avatar
imdat
who is banning inthe game
^
Avatar
chillerdragon BOT 2021-08-16 14:38:49Z
omagawd then lets cut it off :D
14:38
it gets uglier and uglier haha
Avatar
@Deleted User
14:39
do you ban?
14:39
in ddnet
Avatar
ok fixed
Avatar
i have nothing todo with ddnet servers
Avatar
why ppl come to #developer about bans
14:39
makes 0 sense
Avatar
chillerdragon BOT 2021-08-16 14:42:15Z
@Deleted User: hrmpf put this below to cut it offANDROID_NDK="${ANDROID_NDK:2}"
14:42
@Ryozuki: should they go to wiki instead?
Avatar
nice 😄
14:47
to #reports
Avatar
chillerdragon BOT 2021-08-16 14:48:03Z
image.png
Avatar
ok lets see if the check fails or not 😄
Avatar
chillerdragon BOT 2021-08-16 14:49:02Z
sorri chillerdragon.sh auto style fixer can cause some buggos
Avatar
i feel like half of stackoverflow answers also wouldn't pass shell check xD
Avatar
chillerdragon BOT 2021-08-16 14:49:23Z
ofc not
14:49
i see style offenses everywhere :D
14:49
but its not only a shell thing is it
Avatar
yeah 😄
Avatar
chillerdragon BOT 2021-08-16 14:50:30Z
most other languages have so many linters that you can not even post a stack overflow answer that pleases half of them
14:50
for example javascript :D
14:50
semicolon or not
14:50
is the new spaces vs tabs
Avatar
ah
14:51
you didnt do build.sh
14:51
ok i'll try it
14:51
myself xd
Avatar
chillerdragon BOT 2021-08-16 14:51:25Z
i dont have that file
Avatar
its inside files
Avatar
chillerdragon BOT 2021-08-16 14:51:45Z
too hidden for me
14:51
u gotta pass -r to chillerdragon.sh
Avatar
xD
14:54
^----------^ SC2153: Possible misspelling: TW_KEY_NAME may not be assigned, but __TW_KEY_NAME is. how can i tell it, its false positive
Avatar
chillerdragon BOT 2021-08-16 14:54:29Z
so u wanna do it?
14:54
im here if u get confused but its usually well explained in the wiki
14:54
yea also thought about thar
14:54
its ur code :D
Avatar
i mean its always called as subshell
14:54
and the parent defines these
Avatar
chillerdragon BOT 2021-08-16 14:55:23Z
why do u have tw TWKEYNAME vars anyways
Avatar
they are used for signing the apk
Avatar
chillerdragon BOT 2021-08-16 14:55:48Z
and u escape them right?
Avatar
e.g. if you want to release on google play
Avatar
chillerdragon BOT 2021-08-16 14:55:58Z
maybe call it TW_KEY_NAME_ESCAPED then
Avatar
i assume so
Avatar
chillerdragon BOT 2021-08-16 14:56:45Z
ya the classic sed escape to pass to sed
14:56
i rly wonder if there is a better way
14:56
everytime i do it
Avatar
but the other is a new var
Avatar
chillerdragon BOT 2021-08-16 14:57:23Z
hm?
Avatar
it just things i call that script with these vars undefined
14:57
which isnt true
Avatar
chillerdragon BOT 2021-08-16 14:57:38Z
ah ye
Avatar
can i supress that easily?
Avatar
chillerdragon BOT 2021-08-16 14:57:57Z
there are magic comments
14:58
SHELLCHECK DISABLE=SCXX
14:58
dafaq markdown :D
Avatar
# shellcheck disable=SC1091
14:58
ok
Avatar
chillerdragon BOT 2021-08-16 14:58:26Z
but i wouldnt
Avatar
u used it too xd
Avatar
chillerdragon BOT 2021-08-16 14:58:31Z
rather name it _ESCAPED
14:58
i used it bcs i didnt find build.sh :D
Avatar
i really thing its more bcs it things its not defined
14:59
at all
Avatar
chillerdragon BOT 2021-08-16 14:59:19Z
no
Avatar
but i can also exit if one of them isnt defined
Avatar
chillerdragon BOT 2021-08-16 14:59:25Z
it expects UPPERCAED vars to be defined
Avatar
yeah
Avatar
chillerdragon BOT 2021-08-16 14:59:45Z
but if u have undefined UPPERCASED vars and a _UPPERCASE var it thinks u typo
14:59
so go with UPPERCASE_ESCAPED instead
15:00
also more descriptive innit?
Avatar
mhh
15:00
weird stuff
Avatar
chillerdragon BOT 2021-08-16 15:00:25Z
dont hate on da koala
Avatar
oh yeah its gone
15:01
its like c complaining about macro names xD
Avatar
chillerdragon BOT 2021-08-16 15:01:13Z
15:01
long live the koala
Avatar
chillerdragon: ok one last $(echo "$(echo ~)"|sed 's/\//\\\//g')
15:04
without echo it doesnt work
15:04
but shellcheck wants me to
Avatar
chillerdragon BOT 2021-08-16 15:04:46Z
it does
15:04
first echo
15:04
not second
15:05
wait or wat
15:05
ye first echo seems too much doesntit?
15:05
wait wat im confused
Avatar
yeah
15:05
but doesnt work xD
15:05
i need both xD
Avatar
chillerdragon BOT 2021-08-16 15:06:08Z
$(echo "$HOME" |sed 's///\//g')
15:06
system gedribbeld
Avatar
is that safe?
15:06
on all systems
Avatar
chillerdragon BOT 2021-08-16 15:06:37Z
well..
Avatar
BSD
15:06
Linux xD
Avatar
chillerdragon BOT 2021-08-16 15:06:52Z
i think $HOME is safer than ~ ;D
15:06
but idk
Avatar
ok xD
Avatar
chillerdragon BOT 2021-08-16 15:06:57Z
just my generall feeling
15:07
but ye home should be set
15:07
Assuming the machine is running a Linux kernel, sessions make use of the Bash shell and everything is using default configurations (no user has made any changes to config files), can we assume that...
15:07
yas
15:07
veri POSIX
15:07
much wow
Avatar
nice it passed, thanks again
Avatar
chillerdragon BOT 2021-08-16 15:15:29Z
poggers
Avatar
poggers
Avatar
chillerdragon BOT 2021-08-16 15:17:32Z
rip my commit :c force pusha
15:17
gotta get those commits in for mi ranking :D
Avatar
yeah i squashed else i need to rebase interactive for every change i do
15:23
would be annoying
Avatar
chillerdragon BOT 2021-08-16 15:23:41Z
i dont understand but its ok
Avatar
i can probably set you as author, but then you get the whole pr xD
Avatar
chillerdragon BOT 2021-08-16 15:23:54Z
no
15:23
dont
Avatar
chillerdragon BOT 2021-08-16 15:33:48Z
omagawd did someone touch switch code?
15:33
i get segfault in my fork since merge 1min ago
15:33
watafaka
Avatar
To reproduce: auth rcon and run sv_map ctf1 ``` [2021-08-16 17:35:33][sql]: load player data done on read database 0 Thread 1 "DDNet-Server" received signal SIGSEGV, Segmentation fault. 0x000055555559d9d1 in CCharacter::Snap (this=0x5555556e75c0 , SnappingClient=0) at /home/chiller/Desktop/git/ddnet/src/game/server/entities/character.cpp:1269 1269 int Status = (int)GameServer()->Collision()->m_pSwitchers[i].m_Status[Team()]; (gdb) bt #0 0x000...
Avatar
@ChillerDragon can you check if this fixes the issue?

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](ht...
Avatar
oh the switchers can be null
16:22
i never got a segfault in my not so extensive tests tho xd
16:24
@Learath2 putting fixes in title ndoesnt work u have to put it in description i think
16:24
ah nvm its in the commit msg
16:27
oh right, i didnt test it with a map without switches
16:27
such a common case
16:27
xd
Avatar
chillerdragon BOT 2021-08-16 16:28:28Z
xd u fast ryo
16:29
We should really have a CI that picks up such a crash
Avatar
well this crash can be picked up by loading a map
16:29
but most crashes are way rarer
Avatar
chillerdragon BOT 2021-08-16 16:30:01Z
im too lazy to look into github discussions but some1 should null the backend :D
16:30
load map and connect @Ryozuki
16:30
yes its a unrare crash but thats why we should be able to pick it up in the CI
Avatar
i just got so ussed to rust safeties
16:30
i forgot my null checks in c++
Avatar
chillerdragon BOT 2021-08-16 16:30:34Z
all it takes is a few maps and clients connecting to it
16:30
bro u know
16:30
devs are lazy testing
Avatar
chillerdragon BOT 2021-08-16 16:31:07Z
ye
16:31
thats why we need CI
16:31
nobody wants to test by hand
Avatar
yea headless client may work for testing non graphical stuff
16:31
go make it
Avatar
chillerdragon BOT 2021-08-16 16:31:34Z
like this
16:31
me?
Avatar
we could even make automated test cases
Avatar
chillerdragon BOT 2021-08-16 16:31:44Z
nah idk howot null gfx backends
Avatar
moving the tee
16:31
xd
Avatar
new maps need median time too
Avatar
chillerdragon do u rly merge latest changes into prod this fast
16:33
ur a madman
Avatar
chillerdragon BOT 2021-08-16 16:34:01Z
axaxax
16:34
was my first merge with upstream
16:38
a9c11d0 Check for null. Fix #4090 - Learath2 551369c Merge #4091 - bors[bot]
Avatar
im guilty monkalaugh
happy 2
16:43
maybe someone should look into #3806 i tried it yesterday but idk i gave up
Avatar
looks like an important thing
Avatar
oh
16:44
i can already tell ya, hard to fix
16:44
just rewrite swap and use timeout
16:44
and then swap names/clans etc
16:44
or save the whole team and load that
Avatar
Avatar
nori
Well, if you see "xdg_surface@29: error -1: Tried to set invalid xdg-surface geometry" you need to apply this patch https://github.com/libsdl-org/SDL/commit/ae7ee2a59c8d41d67c6bc80f25b6e52670dddbbf
Oh wow, that's exactly the error and could be the reason indeed. Thanks for the link, I'll try it in the next days and report back :3 Oh, and sry for being kinda harsh with my first answer .__.
Avatar
Has anyone taken a look at the absolute insanity that is the implementation for CDoor?
16:53
I have not once in my life seen something so weird
Avatar
Can any of you actually see how the hell the collision set at ResetCollision() ever gets removed? wtf
Avatar
what even means to reset collision
Avatar
This entire thing is just one huge "WAT". It like creates this pseudo layer to implement doors
Avatar
chillerdragon BOT 2021-08-16 17:51:49Z
there are no open source nvidia drivers right?
17:52
ah wait the nouveau
17:52
thing
Avatar
nouveau
Avatar
chillerdragon BOT 2021-08-16 17:52:12Z
yea right i know that
17:52
is it as good as the nvidia one?
17:53
seems like i dont have it installed
17:53
I cant handle that windowed anymore
17:54
how do i find which resposibility it is to fix that?
17:54
I have literally no idea which software even is causing blank screens when tabbing out
17:54
ddnet? SDL? linux? nvidia?
17:54
gnome?
17:54
xorg?
Avatar
Avatar
chillerdragon
is it as good as the nvidia one?
no
17:55
it's reverse engineered driver
17:55
it's not performant
Avatar
chillerdragon BOT 2021-08-16 17:55:21Z
hmm
Avatar
ive always had problems with nouveau drivers
Avatar
Avatar
chillerdragon
ddnet? SDL? linux? nvidia?
sdl
17:55
i bet it is
Avatar
its sdl probs
Avatar
chillerdragon BOT 2021-08-16 17:56:10Z
it might be SDLs responsibility to fix it but i doubt I did a SDL update that caused it
Avatar
i bet it chooses a bad matching framebuffer, chooose desktop fullscreen, if it fits its that
17:58
Last Updated: 2021-08-13 16:28 UTC
17:58
that could work as time
Avatar
nori mad af at SDL xd
Avatar
chillerdragon BOT 2021-08-16 17:58:43Z
xd
17:58
how do i downgrade
Avatar
i am actually not, they fixed my issue in an hour so :D
17:59
but i think i should repot flashwindow thing too
Avatar
chillerdragon BOT 2021-08-16 17:59:15Z
oh nice @nori go make issue for me thanks
17:59
wats flashwindow thing
Avatar
i mean they cant do more than close the issue so yeah
Avatar
urgency hint
Avatar
chillerdragon: do git bisect and they fix it in 5minutes
18:00
if you got the commit
Avatar
chillerdragon BOT 2021-08-16 18:00:29Z
first of all i gotta find out how to downgrade
18:00
or should i compile SDL from src?
Avatar
build yourself
Avatar
chillerdragon BOT 2021-08-16 18:00:39Z
and then use that
Avatar
its SDL xD
Avatar
chillerdragon BOT 2021-08-16 18:00:42Z
hrmpf
Avatar
it builds on nintendo ds
Avatar
chillerdragon BOT 2021-08-16 18:00:50Z
how do i even make ddnet use my sdl?
Avatar
cant be that hard
18:01
build sdl build ddnet
18:01
make install
18:01
or ninja install
18:01
🥷
Avatar
chillerdragon BOT 2021-08-16 18:01:18Z
xd
18:01
watafak where is even there git repo
Avatar
Simple Directmedia Layer. Contribute to libsdl-org/SDL development by creating an account on GitHub.
Avatar
chillerdragon BOT 2021-08-16 18:01:54Z
only zip on libsdl.org?
Avatar
you use arch right?
Avatar
chillerdragon BOT 2021-08-16 18:02:13Z
oh
18:02
wtf i searched on github first
18:02
yes i use arch
18:03
wat SDL uses github rly?
Avatar
2.0.17
Avatar
chillerdragon BOT 2021-08-16 18:03:51Z
wasnt learath sending some weird other sites
18:03
when he did his pr there
Avatar
ah
Avatar
they moved over
Avatar
they merged
Avatar
Automatic import of svn 'packages' repo (read-only mirror) - History for trunk - archlinux/svntogit-packages
Avatar
chillerdragon BOT 2021-08-16 18:04:06Z
ah
Avatar
they used to selfhost gitweb
Avatar
chillerdragon BOT 2021-08-16 18:04:26Z
@nori: build from source sounds more convienient to me tbh
18:04
but thanks
18:04
thats what i was searching
18:04
yea ok cool
18:04
even tho m$ im still github fan
Avatar
or actually maybe you can find older sdl package on cache i dunno where pacman cache pkgs
Avatar
chillerdragon BOT 2021-08-16 18:05:32Z
yea but i guess my goal is to bisect
Avatar
what is scripts/hash_passwords.py
Avatar
chillerdragon BOT 2021-08-16 18:08:09Z
hmm i uninstalled SDL
18:08
but ddnet client still launches
18:08
where does it get it from?
Avatar
i was about to make a mom joke
18:08
did u rebuild ddnet? maybe it gets it from ddnet-libs
Avatar
chillerdragon BOT 2021-08-16 18:08:39Z
ok go
Avatar
or smth
Avatar
chillerdragon BOT 2021-08-16 18:08:52Z
wat was otool -L on linux again?
18:08
i run ddnet from aur
Avatar
chillerdragon BOT 2021-08-16 18:09:07Z
not selfbuild
18:09
ty
Avatar
doesnt it install sdl
Avatar
chillerdragon BOT 2021-08-16 18:09:47Z
watfaka /usr/lib/libSDL is still there
18:09
but i did yay -R sdl
Avatar
when u install ddnet
Avatar
chillerdragon BOT 2021-08-16 18:09:50Z
how
18:09
ye
18:09
probably
18:10
how to uninstall then?
Avatar
chillerdragon BOT 2021-08-16 18:10:28Z
HoW tO uNinStaLl SoFtwaRe?!1
18:10
i dont wanna rm it :D
Avatar
whereis libSDL2
Avatar
chillerdragon BOT 2021-08-16 18:11:17Z
ik where it is
Avatar
sudo rm .. xd
Avatar
chillerdragon BOT 2021-08-16 18:11:40Z
in /usr/lib
18:11
hmm
18:11
that doesnt sound nice
Avatar
what could possibly go wrong
Avatar
chillerdragon BOT 2021-08-16 18:11:51Z
sounds like my packetmanger should do that
Avatar
yes
Avatar
chillerdragon BOT 2021-08-16 18:12:06Z
possibly coulkd go wrong me not being able to play ddnet anymore
Avatar
maybe older versions?
Avatar
maybe you uninstalled sdl instead of sdl2?
Avatar
was joke 😉
Avatar
lol tru
18:12
SDL 1
18:12
the best
Avatar
chillerdragon BOT 2021-08-16 18:12:43Z
aaaaaaaaaaaaa
18:12
ye
18:12
u so smart nori
18:12
🧠
18:12
why did i have sdl1?
18:13
:: removing sdl2 breaks dependency 'sdl2' required by blender :: removing sdl2 breaks dependency 'sdl2' required by ddnet-git :: removing sdl2 breaks dependency 'sdl2' required by ffmpeg :: removing sdl2 breaks dependency 'sdl2' required by fluidsynth :: removing sdl2 breaks dependency 'sdl2' required by qemu :: removing sdl2 breaks dependency 'sdl2' required by teeworlds
18:13
lets uninstall half my system axaxax
Avatar
why dont u just install an old version
Avatar
chillerdragon BOT 2021-08-16 18:13:27Z
watafak is fluidsynth
18:14
oh boi uninstalling ffmpeg is even more pain
Avatar
just
18:14
compile
18:14
and install xD
Avatar
chillerdragon BOT 2021-08-16 18:14:36Z
hahaha why does chromium need ffmpeg
18:14
yea maybe ur right
18:14
i wanted to make sure it uses right version
Avatar
when u start ddnet in terminal it tells ya
Avatar
chillerdragon BOT 2021-08-16 18:15:04Z
without having to check version number because im dislexic i cant read vers number
Avatar
[2021-08-16 20:15:08][sdl]: SDL version 2.0.15 (compiled = 2.0.15)
Avatar
chillerdragon BOT 2021-08-16 18:15:25Z
chroimum literally spying on me with ffmpeg watafak
18:15
ik ik
18:15
but when i install?
18:15
will it install same spot?
18:16
and overwrite my sys SDL?
Avatar
install without sudo and nothing can go wrong
18:16
and it will tell you where it wants to install
Avatar
chillerdragon BOT 2021-08-16 18:16:27Z
ok first of all i install SDL1 again
18:16
because i had it :D
18:16
SDL1 good!
18:17
ok lez overwrite
18:17
oh wait
18:17
if i overwrite and want my other back i gotta reinstall
18:18
which means i have to uninstall ffmpeg :D
Avatar
u dont just overwrite a sys file
Avatar
chillerdragon BOT 2021-08-16 18:18:47Z
make install wants to write to /usr/local/bin/sdl2-config
Avatar
see
18:18
its safe
Avatar
chillerdragon BOT 2021-08-16 18:19:02Z
? :D
Avatar
local
Avatar
chillerdragon BOT 2021-08-16 18:19:16Z
cuz of /local?
Avatar
yes
Avatar
chillerdragon BOT 2021-08-16 18:19:25Z
thats honey pot
18:19
if i give it sudo
18:19
it will rm -rf /
18:19
ok yolo ill do it
18:19
wish me luck
18:19
if you dont hear from me i died
Avatar
xd
18:20
if u want to remove do sudo make uninstall
Avatar
chillerdragon BOT 2021-08-16 18:23:48Z
-- Found SDL2: /usr/lib/libSDL2.so
18:23
ok how i tell cmake to use local now
18:23
learath
18:23
aaa
Avatar
don't fetch bundled libs :d
Avatar
delete cmake cache
18:25
just delete the whole build dir to be safe xd
Avatar
chillerdragon BOT 2021-08-16 18:29:57Z
I did
18:30
Can’t I somehow specify the path to the SDL lib?
18:30
Because now I have /usr/lib/sdl and /usr/local/sdl and it picks the wrong
Avatar
then your path variable is wrong
18:31
local should have higher prio
Avatar
chillerdragon BOT 2021-08-16 18:31:15Z
Oh
18:31
Weird
18:31
Is that done in path?
18:31
Isn’t path for executables?
Avatar
.bashrc probably
18:32
mh yeah then your library path
Avatar
chillerdragon BOT 2021-08-16 18:32:05Z
You mean PATH ?
18:32
Yea
18:32
I never touched that
18:32
Weird
Avatar
yeah indeed
18:34
/etc/ld.so.conf.d/x86_64-linux-gnu.conf
18:34
then sudo ldconfig
18:34
maybe same for libc.conf
18:35
or try to temporary set it with LD_LIBRARY_PATH probably when invoking cmake
Avatar
chillerdragon BOT 2021-08-16 18:39:02Z
That sounds good I’ll try when I’m home
Avatar
chillerdragon BOT 2021-08-16 18:56:08Z
LD_LIBRARY_PATH=/usr/local/lib cmake ..
18:56
hmm that didnt work
Avatar
ah right ddnet uses pkg config
19:08
local/lib/pkgconfig/
19:08
i think theres also a variable to set that
19:08
PKG_CONFIG_PATH
19:15
if that also doesnt work chillerdragon copy the libSDL2 stuff from build dir rename libSDL2-2.0.so.0.17.0 to your current version in /usr/lib and start DDNet LD_LIBRARY_PATH=$PWD ./DDNet
19:15
then u dont need to install anything xd
Avatar
also tested 2.0.17 now, but no blackscreens xdd
Avatar
Avatar
nori
Well, if you see "xdg_surface@29: error -1: Tried to set invalid xdg-surface geometry" you need to apply this patch https://github.com/libsdl-org/SDL/commit/ae7ee2a59c8d41d67c6bc80f25b6e52670dddbbf
Soo, I just compiled the latest sdl2 git-commit (including that diff) and ddnet is working !)) So, it will be also fixed with the next sdl2 release and is not ddnet related. Thanks again for clarifying that :3
Avatar
chillerdragon BOT 2021-08-16 19:35:48Z
Wait wat I am not the only one having the issue?
19:35
That’s nice to hear
Avatar
he's wayland user
19:40
gimp master
19:40
kinda discord like chat
19:40
but could actually work 😄
Avatar
looks cursed
Avatar
@Ravie you hate all new kinds of chat, bcs not compact, or could you imagine smth like this
Avatar
the current one is bad enough
Avatar
current one is fully okay
Avatar
current is medium after a while u get used to it, and the old look very horrible then xD
Avatar
it's not about compactness, it just looks bad xD
20:06
and even in 'old' mode there's this awful new wrapping :(
Avatar
mhh that would be solved above
20:07
but wrapping makes it much more readable
20:07
just fact
Avatar
nah it makes it way less readable for me
20:09
I even looked how chat looks in other games, nobody does it like this with a huge gap xD
Avatar
yeah but normally its more readable
20:09
bcs eyes dont go fully back left
20:09
you are an exception maybe
20:09
artists eyes
Avatar
well I read including the name of who sent the message
20:10
and naturally my eyes go back where I started reading
Avatar
most chat programs do it like above tho
20:10
name above message
Avatar
well games don't seem to
Avatar
in what game do you chat btw
20:11
more then rq and bb and gg
20:11
than*
Avatar
every online game has a chat
Avatar
yeah but in which game is it used alot
20:11
MMOs maybe
Avatar
well with how many games there are, it's unlikely that tw is the only one where you chat a lot
Avatar
ok mmos are also a bad example
20:12
they have chat bubbles most of the time
Avatar
lemme just elaborate why I don't like the other chat mode, dark background is redundant as letters already have an outline so it's just clutter, and tees serve no purpose so to me they're also just clutter
20:13
I like to keep it clean, disabled hud that isn't important to ddrace and so on
Avatar
mhh i'd say tees are good
20:13
makes it easier to see who writes
Avatar
I don't need to know what his tee looks like tho
20:13
there's a thing called nameplates
Avatar
yes, but then u read the name
20:14
skins are mostly unique
20:14
in color + skin combination
Avatar
why would you tell apart people in chat by their tee and not name ww
Avatar
best would be u test the new chat for 2 weeks
20:14
and switch back
Avatar
I already know why I don't like it tho
20:15
it's not some new=bad
Avatar
chillerdragon BOT 2021-08-16 20:15:39Z
back in ddnet 9.0.2 the world was ok
Avatar
but you would change nothing?
Avatar
Avatar
Deleted User
gimp master
about this?
20:16
or the current one
Avatar
the very old
Avatar
very very old or "old" with le gap?
Avatar
old with no wrapping
Avatar
that one is perfect, does everything it needs to with 0 clutter
Avatar
chillerdragon BOT 2021-08-16 20:18:43Z
can we go back to this pls?
20:18
image.png
Avatar
xd
Avatar
chillerdragon BOT 2021-08-16 20:19:00Z
hrhrhhr
Avatar
mhh i wish you could progamm, i'd love to see an ui by ravie xD
Avatar
Avatar
chillerdragon
image.png
no
20:20
u couldnt go хахаххаха
Avatar
chillerdragon BOT 2021-08-16 20:20:37Z
@Deleted User: go teach him
20:20
Ravie guud designer
Avatar
anyway, i'd love smth like discord, i also wouldnt miss the bg in the current chat
20:20
the tee is nice
20:21
and chat split from name and this : suck anyway
Avatar
chillerdragon BOT 2021-08-16 20:21:12Z
seing "love" and "discord" in one sentence hurts
20:21
hehe
Avatar
tee chat bubbles when
Avatar
with how fast chat goes in tw tho you don't need stuff like the hour and what not
Avatar
chillerdragon BOT 2021-08-16 20:21:37Z
voice chat when
Avatar
if you really wanna know the time you go into f1
Avatar
Avatar
chillerdragon
voice chat when
pog
Avatar
chillerdragon BOT 2021-08-16 20:22:13Z
please show coordinates of the chat message author as well
20:22
and current weapon
Avatar
so you're kinda just wasting every second or third line
Avatar
Avatar
chillerdragon
please show coordinates of the chat message author as well
no
Avatar
Avatar
chillerdragon
please show coordinates of the chat message author as well
hm makes sense to add it in f1
20:26
but snaps getting cat so idk is this even implementable (edited)
20:26
cut*
20:26
xd
Avatar
would be kinda cool if you could spec someone's spec xD
Avatar
0.7 anti-stalker mode is already annoying xD
Avatar
anti stalker mode?
Avatar
didnt it hightlight who specs you
20:29
or did they remove it again xD
Avatar
chillerdragon BOT 2021-08-16 20:30:22Z
no
20:30
thats rly cool!
20:30
i miss that
Avatar
is that removed?
Avatar
chillerdragon BOT 2021-08-16 20:30:43Z
back in the days when i still played 0.7 i really liked it
20:30
no
20:30
why would one
20:51
yay new GPUs to support
20:51
poggers
Avatar
ah yeah Intel GL to dx 12 works btw
20:53
i tested it on the intel laptop of the gf of my brother 😄
Avatar
but generally competition is good, so i let it come and see, their first show video shows some games, i wonder if it runs on that GPU actually xD (edited)
21:04
or if its just marketing
21:04
and if its just at 4k native resolution etc 😄
Avatar
why on earth does going through a "deactivate switch" tile activate the switch for a moment?
Avatar
is that new?
22:19
and is it just visual?
Avatar
no, its the server physics. like if you map a switch freeze right next to a switch deactivate
Avatar
oh, no wait, I accidentally used a timed switch with time 0 instead of normal ones (it doesnt show the number)
Avatar
is it intended that movement / jump is considered during deep freeze tick, but freeze isn't?
22:40
you can enter a tele+deep freeze tile and your A/D movement is preserved through the tele
22:40
but this is not the case for freeze
22:41
at this point it's a minor physics change so we cant change it but, was wondering if there are any maps that force this
Exported 1,162 message(s)