Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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-09-07 00:00:00Z and 2023-09-08 00:00:00Z
00:13
You think i would have this issue if i went with X670 (edited)
00:18
Im pretty sure my CPU has those lanes
Avatar
Sorry chiller for the edits damn
Avatar
ah should i use LVM for my raid or my motherboard’s feature
Avatar
im going to see if wayland will cooperate
Avatar
c599715 A Lost_Ground, M Pablik 2, M Pablik 3 - ddnet-maps
Avatar
chillerdragon BOT 2023-09-07 05:47:04Z
05:47
axaxax Heinrich being troled by a fellow bot
Avatar
chiller fix my xorg
Avatar
Avatar
Ewan
ryo do u know why all my VTs are frozen and showing the openrc init console
no
06:18
read logs idk
Avatar
logs are sad
Avatar
u must have done smth wront
06:19
but what idk
Avatar
did u add the flag as i said
Avatar
didt kernel
06:19
dist
06:19
i think that just re-emerges the gpu driver anyway
06:19
and i dont think its a driver issue
06:19
cuz works fine on root
Avatar
sudo emerge @modules-rebuild
06:19
what
06:20
root works fine with desktop?
06:20
did u rly add ur user to the video group
06:20
or search if u need to be in a group
06:20
added to group
06:21
groups ewan wheel audio video users plugdev
06:22
these stupid logs are entirely inconclusive. gnome doesn't log without systemd afaict and gdm/x logs have the same contents
06:22
and their contents are... some error about my xbox controller, and nothing else
06:22
i sent earlier
Avatar
Avatar
Ewan
im lost
gdm log (same as x log)
06:24
i followed the non-root xorg wiki page to a tee
06:24
looked at the gnome and x pages and they don't seem to have anything relevant
Avatar
what are ur global use flags again
06:26
Hold on a moment
06:27
USE="elogind dist-kernel -qt5 -kde gtk gnome -systemd fish X wayland screencast lm-sensors contrib mount alsa pipewire pulseaudio xinerama opengl vulkan udev fontconfig vorbis opus vdpau bluetooth lvm readline"
06:30
do u sort ur use flags
Avatar
by non root u mean when u login from ur display manager right
Avatar
elogind should be running bcs it's enabled as a service in openrc but i can't know for sure because i can't access a shell until i'm logged in
Avatar
u most likely have smth wrong with the DM then
06:31
which one u using
06:32
i could try swapping it for lightdm or smth
Avatar
did u flw this
Avatar
wait a sec i do another rep
06:32
xdd
06:32
Tech support at gym
06:32
amazing
Avatar
Avatar
Ewan
Yes
the conf part too
06:35
?
06:36
root@machine ~# cat /etc/conf.d/display-manager # We always try and start the DM on a static VT. The various DMs normally # default to using VT7. If you wish to use the display-manager init # script, then you should ensure that the VT checked is the same VT your # DM wants to use. # We do this check to ensure that you haven't accidentally configured # something to run on the VT in your /etc/inittab file so that # you don't get a dead keyboard. CHECKVT=7 # What display manager do you use ? # [ xdm | greetd | gdm | sddm | gpe | lightdm | entrance ] # NOTE: If this is set in /etc/rc.conf, that setting will override this one. DISPLAYMANAGER="gdm"
Avatar
maybe try another
06:36
ssdm
Avatar
which is lightest
06:36
ssdm or lightdm
Avatar
try ssdm first
06:36
its the one in the guide
06:36
lightest is no DM at all, like me
06:36
i think lightdm is unmaintained
06:37
o rly
06:37
i used lightdm for a while
06:37
i made my own greeter
Avatar
or maybe it was xdm
06:37
idj
06:37
idk
Avatar
sddm is kde
06:40
holy shit
06:40
it was actually gdm
06:40
??????
Avatar
ly is nice
06:42
did u try ssdm or another
Avatar
display manager with console UI. Contribute to fairyglade/ly development by creating an account on GitHub.
06:42
@Ewan did u flw this at all
Avatar
maybe not
06:43
actually yeah
06:43
looks familiar
Avatar
Avatar
Ryozuki
did u try ssdm or another
you mean me? Then yes I've tried a few of them but they were kinda slow and I didn't like the design
Avatar
Grant permissions for gdm to access the X server: user $xhost +SI:localuser:gdm
Avatar
Avatar
Teero
you mean me? Then yes I've tried a few of them but they were kinda slow and I didn't like the design
i meant ewan but nice to know
06:43
before going without DM i tried a terminal one
06:43
but i prefer none
06:43
maybe it was ly
Avatar
so you just have a script to start your gui?
Avatar
i've never seen this article in my life
Avatar
Avatar
Teero
so you just have a script to start your gui?
its called xinitrc
06:45
but ye
Avatar
dont be usin that
06:45
use .xinit with startx
06:45
securer or something
06:45
according to the internet
Avatar
a script that sets dbus, ssh agent and startx
Avatar
or is the file called xinitrc. i dont remember
Avatar
.xinit is .xinitrc
06:45
bruv
Avatar
Avatar
Ryozuki
its called xinitrc
.
06:46
how comfy
Avatar
my setup is mostly following the Gentoo guide for non dm
Avatar
i got my wayland fractional scaling and everything
06:46
excellent
Avatar
ur using wayland?
06:46
did u setup audio
06:46
use pipewire not pulse
Avatar
i set up pipewire
06:47
(im pretty sure)
Avatar
good ur modern
Avatar
i got a news about it
06:47
and followed the instructions
Avatar
hard to tell in gnome shell cuz it does both
Avatar
install rustup
Avatar
its needed trust me
Avatar
so anything that needs a bash compatible shell will use the /bin/sh symlink right
Avatar
do u have gcc
Avatar
so $SHELL can be a non bash compat
06:48
yea i have gcc
Avatar
i guess
Avatar
need fish shell
06:49
how 2 delete pkg
Avatar
if u followed guide for term it will work tm
06:49
ok so u need to understand
06:49
how portage works
06:49
and what --oneshot means
Avatar
listening
Avatar
whenever u emerge smth without oneshot
06:49
it will be added to the world file
06:49
pkgs there are kept if u use --depclean
06:50
with oneshot they are not added to world
06:50
oneshot is useful in some cases
Avatar
do i remove it from world file and then depclean?
06:50
the pkg
Avatar
to remove from file u do
06:50
emerge --ask --deselect dksndbhe
06:50
then depclean
06:51
u usually one want pkgs in world file that are binaries u use or libraries u use directly, e.g to build ddnet urself without portage
Avatar
Now tell me what dksndbhe means xdd
Avatar
i think is spam
Avatar
this allows u to not have duplicate depa and to portage to manage deps with more freedom
06:51
thanks for coming to my ted talk
06:52
so are dependency pkgs for directly requested pkgs oneshotted
06:52
and that' why it's depclean
Avatar
its like this
06:54
u founs X on github and u wanna build it urself
06:54
without portage
06:54
u need Y library
06:54
u install that library without oneshot because u need it kept
06:54
oneshot is useful when big upgrades happen
06:54
anyway u should read about portage
06:55
soon
Avatar
So oneshot is used for compilation dependencies mostly?
Avatar
this is ur bible
Avatar
Avatar
Teero
So oneshot is used for compilation dependencies mostly?
ye, but portage manages comp deps for u anyway
06:55
let me see again
Avatar
gdm not working even after that command
06:56
might just use startx
06:56
i miss windose
06:56
oneshot best practices forum
Avatar
how 2 go back to startx/xinit
06:57
add to end of profile or what
Avatar
oh god
Avatar
it's 1 am
Avatar
startx init is more complex and requires u to know what u doing more or less
06:57
use another dm
06:58
is it not just this
Avatar
i guess
06:59
but look at gnome
Avatar
Avatar
Ewan
it's 1 am
Good morning mister otherworld
07:00
07:01
lmfao?
Avatar
ChillerDragon BOT 2023-09-07 07:08:12Z
watf
Avatar
he's a man of god
Avatar
ChillerDragon BOT 2023-09-07 07:08:24Z
cursed homescreen
07:09
Ewan still xorg broken?
07:09
go buy gnome pro it comes with Wayland license included
Avatar
xorg working
07:13
gdm not working
Avatar
Gentoo issues
Avatar
xorg working the whole time it seems
07:14
never occured to me that gdm would be the problem and not log it
Avatar
ChillerDragon BOT 2023-09-07 07:15:55Z
gdm bloat
07:16
edg-l left #edlang
07:16
:c
07:16
CherryEx elo UwU
07:18
man my computer takes a long time to reboot
07:18
is it waiting for disk self checks or something
Avatar
chiller its cuz i dont y use bouncer
07:21
benny the bouncer
07:25
this is really something
Avatar
ChillerDragon BOT 2023-09-07 07:26:23Z
xd
Avatar
it's beautiful
Avatar
ChillerDragon BOT 2023-09-07 07:26:36Z
yea lightdm less bloat
Avatar
it is also not working though
07:27
what if sddm is the only one that works
07:27
ugly ass display manager
Avatar
ChillerDragon BOT 2023-09-07 07:27:27Z
did you try bdsm?
Avatar
not in a while
Avatar
ChillerDragon BOT 2023-09-07 07:27:48Z
xd
Avatar
prostate issues
07:27
you know
Avatar
ChillerDragon BOT 2023-09-07 07:27:58Z
lol
Avatar
i wonder how i can get my VTs to stop freezing
Avatar
Avatar
Ewan
Click to see attachment 🖼️
epic
Avatar
Avatar
Ewan
what if sddm is the only one that works
maybe ur missing smth
Avatar
how does it freeze bte
07:43
and by VT u mean ur terminal or the tty
Avatar
when dm opens, all VTs but the one the dm/de is on go to the same screen (what i see on boot, openrc init stuff) (edited)
07:45
and they're all unresponsive to input
07:45
no cursor blink either
07:48
now somethinge lse is broken
Avatar
by VT u mean tty then???
07:48
whatever
07:48
i should have many ttys
07:48
each bound to a vt
Avatar
how can a tty go to the "same screen"
07:48
whay does that meam
07:48
mean
Avatar
all vts on the same tty
07:49
how can a tty be on the same tty
Avatar
what do u want from me
Avatar
i asked u if a vt is a tty
07:49
im just confused by what u sayin
Avatar
i press ctr alt f1 it shows me the same thing as if i pressed ctrl alt f5 or snth
Avatar
and what is that same thing
07:49
a login ?
Avatar
no not a login
07:50
the openrc init text shit
Avatar
make screen shot xd
07:51
this
07:51
if dm/de uses vt 7, this is on 1-6
07:51
no blinking cursor, unresponsive to keyboard input
Avatar
and now sddm is taking me into a black screen with a x shaped mouse pointer. great
Avatar
somehow i broke something
07:52
without doing anything
07:53
interesting how u get so many problems
07:53
when i did it i had no issues
07:55
did u flw this properly
07:55
use flags and all
07:55
brb
08:07
im just gonna re-emerge all the shit involved
08:07
and go to bed
Avatar
Ewan reminds me that I only have minor issues compared to other ppl
08:21
I think I'm gonna install gentoo just to flex on ewan
Avatar
that deescalated quickly
Avatar
@Ewan whats ur firefox version btw
Avatar
No I added a 😃 so he knows it’s a joke
Avatar
Avatar
Ryozuki
@Ewan whats ur firefox version btw
Dunno
Avatar
check it
08:22
pls
Avatar
102.15.0esr
Avatar
oh u got esr
Avatar
Why u ask
Avatar
i thought u didnt sync
08:23
cuz i have 107
Avatar
can u show
08:24
dmesg output
Avatar
it's pretty big bro
08:26
what uwanna see
08:26
107.82 KB
08:26
idc
08:26
i send it all
08:26
just have it
Avatar
Still didn't get your setup done? 😭
Avatar
i was so close
08:26
i had gnome working in sddm
08:27
but then a gamma ray flipped a bit in my computer and broke it
Avatar
Did you follow the gnome under openrc guide? Gnome is pretty tied to systemd nowadays and you need some tinkering
Avatar
have you asked chat gpt
08:30
It would just say install systemd or@smth
Avatar
imagine using gentoo, but then also gnome xd
Avatar
Wdym by that
Avatar
kinda ironic xd
08:31
It’s not a minimalist distro. It’s just super flexible
Avatar
i dunno, gnome is made for ppl that want easy as possible. at least to me feels like a tablet WM
Avatar
GNOME ui makes sense to me tbh
Avatar
@Ewan so what is the issue anyway?
Avatar
Gentoo is peak Software and then..
Avatar
that too XD
Avatar
If something is working, then stops working, it's almost always something you've done 😄
08:32
I have an idea
Avatar
Avatar
Learath2
@Ewan so what is the issue anyway?
Some misconfigurations that I can’t identify are making it so that GDM can’t start X as a non-root user (yes I looked at the article)
08:33
Then ryo proposed it could be GDM’s fault, so I installed SDDM as a test and it worked as ewan
08:33
Then I went to get lightdm which i prefer to sddm and it broke again
Avatar
i wouldnt be surprised if chillerdragon sooner or later starts x11 for DDNet and kills it afterwards again.. because bloat
Avatar
Do you people think making the pitch of different sounds like hammering and stuff a little bit random to add variety would sound cool?
08:33
Like in mc
Avatar
Avatar
Teero
Like in mc
where is it used there? for cows?
08:34
i think for static material it would suck (e.g. footsteps)
Avatar
I'll try it when I'm home (edited)
Avatar
Avatar
Jupstar ✪
where is it used there? for cows?
Basically for everything
Avatar
ChillerDragon BOT 2023-09-07 08:44:38Z
wat even is x11 for ddnet
Avatar
Anyone here has seen spoofing that worked with sv_vanilla_antispoof 1? Asking for @AAR
Avatar
ChillerDragon BOT 2023-09-07 08:45:05Z
whats @discovd?
08:45
is that a name?
08:45
yes
Avatar
ChillerDragon BOT 2023-09-07 08:45:44Z
i have yet to reproduce spoofing in 0.6.3 :D
08:46
what did discovd discover?
08:46
spoofing that affects vanilla clients on ddnet servers?
Avatar
Avatar
Teero
Basically for everything
the pitching must be pretty weak then ^^
Avatar
@deen does that mean existing clients getting something spoofed into their connection, or connection spam from random IP addresses?
08:47
because the former isn't protected against by sv_vanilla_antispoof 1
Avatar
@Jupstar ✪ sometimes a sheep goes määäh and sometimes it goes möööh (edited)
Avatar
(I've seen something similar-ish by just using proxies and connecting until established, the timeout duration is long enough that the server gets filled)
Avatar
Avatar
Teero
@Jupstar ✪ sometimes a sheep goes määäh and sometimes it goes möööh (edited)
yeah, that's true, but that's also kinda realistic considering it's a "voice"
08:48
but metal hammered on other metal will probably sound the same xd
Avatar
Well maybe grenade launcher should sometimes do blöp and sometimes blop
Avatar
i'd find it interesting for tee noises
Avatar
high pitch tee screaming intensifies (edited)
Avatar
female tee UH male te uhhhh
Avatar
Avatar
Learath2
If something is working, then stops working, it's almost always something you've done 😄
Yeah
08:51
But I’d sooner say it was a gamma ray
Avatar
Avatar
Jupstar ✪
female tee UH male te uhhhh
justatest
08:51
I don wanna introduce that issue to ddnet (edited)
Avatar
Avatar
Jupstar ✪
female tee UH male te uhhhh
tw sx mod?!?
Avatar
the xxx module
Avatar
Fix my gdm
08:53
I give u ssh access
08:53
Better be fixed when i wake up
Avatar
post it here
Avatar
Free for all
Avatar
Why not
Avatar
I’d have to port forward bro
08:54
Too much work
Avatar
ChillerDragon BOT 2023-09-07 08:54:20Z
dont post it here! lerato will wipe your drive
Avatar
I'll secretely install arch
Avatar
Good luck
08:54
SSH daemon doesn’t have that kind of lifespan
Avatar
Without rebooting xddd
Avatar
ChillerDragon BOT 2023-09-07 08:55:02Z
if you manage to install arch via ssh thatd be pro
Avatar
I don't think it's possible though
Avatar
ChillerDragon BOT 2023-09-07 08:55:19Z
only noobs need to reboot
Avatar
I can see it happening with one of those arch install scripts. You just have to get everything right the first time
Avatar
ChillerDragon BOT 2023-09-07 08:55:26Z
ez linux kernel hotreloading
Avatar
Avatar
ChillerDragon
if you manage to install arch via ssh thatd be pro
I did that on a vps
Avatar
Avatar
Ewan
I can see it happening with one of those arch install scripts. You just have to get everything right the first time
no problem ;)
Avatar
of a provider that didn't offer arch support
09:00
what do they do when you break it
09:01
god damn it heinrich not again
Avatar
Avatar
heinrich5991
@deen does that mean existing clients getting something spoofed into their connection, or connection spam from random IP addresses?
Connection spam from random IPs
09:01
Do we have any protection for that?
Avatar
it's simply VPN IPs, but not spoofed
09:03
at least on my server i banned the IPs that connected and the attack stopped
Avatar
Avatar
deen
Connection spam from random IPs
we don't have protection from clients being able to receive packets on those IP addresses
09:06
for clients that cannot receive packets on those IP addresses, connection establishment should be impossible
Avatar
Avatar
Ewan
god damn it heinrich not again
I was afk, don't think I did anything(?)
Avatar
Surely the host was upset when you bricked your VM for the 4th time before getting the arch install right
Avatar
I didn't brick it IIRC
Avatar
Avatar
Ewan
Surely the host was upset when you bricked your VM for the 4th time before getting the arch install right
why would they care? xd
09:09
on my vps i can install a new OS or reset the current one the whole day if i have nothing better to do xd
Avatar
Avatar
heinrich5991
I did that on a vps
I did this with devuan
Avatar
Avatar
Ewan
Surely the host was upset when you bricked your VM for the 4th time before getting the arch install right
You just re-image it from their web panel. Atleast that's how I did it until I got it working
Avatar
One change that should probably be included in this PR is to use OnRender(CUIRect View) instead of Render(bool Tileset).

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...
Avatar
marmare is robyte v2
Avatar
marmare is robyte for editor xd
Avatar
i guess CXXFLAGS='-march=native -mtune=native'
09:50
i add this locally
09:50
xd
Avatar
there is a cmake-kit.json next to workspace. u could create a new kit, that is e.g. called "Max Perf"
09:50
@Jupstar ✪ btw u use llvm right
09:50
did u try this
09:51
clang -O3 -mllvm -polly
09:51
it enabled the polly optimizer
09:51
gentoo llvm doesnt come with poly for my sadness
09:52
Automatic OpenMP code generation To automatically detect parallel loops and generate OpenMP code for them you also need to add -mllvm -polly-parallel -lgomp to your CFLAGS. clang -O3 -mllvm -polly -mllvm -polly-parallel -lgomp file.c
Avatar
i didnt use polly, but i tried openmp for some stuff. But it didn't really do anything noticeable
Avatar
this works with openmp too
09:52
but polly is a polyhedral optimizer
09:52
LLVM Framework for High-Level Loop and Data-Locality Optimizations
09:52
Polly can also exploit OpenMP level parallelism, expose SIMDization opportunities.
Avatar
i should try some day
09:53
on my debian vps it has polly
Avatar
did u run benchmarks xd
09:54
we should have benchmarks
09:54
but its hard
09:55
if we have benches that can run headless
09:55
im willing to provide daily runs
09:55
on my server
09:55
so we see change over time/commits
Avatar
would be funny to look at but yeah kinda annoying to do.. wanted to do once. but lost motivation 😄
09:56
even if we find 3 fps loss somewhere. i'd be way too lazy to check if it's worth it xd
09:56
and to be relatively good, u also need different hardware
09:57
nah we just need latest processor
09:57
and a 4090
Avatar
tru
Avatar
Avatar
Jupstar ✪
at least on my server i banned the IPs that connected and the attack stopped
@AAR you can try that ^
Avatar
@Jupstar ✪ does vulkan always make a 1.1 context
10:03
or can it make 1.3
10:04
2023-09-07 12:03:05 I gfx: Created Vulkan 1.1 context. 2023-09-07 12:03:05 I gfx: GPU vendor: NVIDIA 2023-09-07 12:03:05 I gfx: GPU renderer: NVIDIA GeForce RTX 3080 2023-09-07 12:03:05 I gfx: GPU version: Vulkan 1.3.242 (driver: 535.104.5.0)
10:04
we should use latest shiniest stuff
10:04
justatest
Avatar
vulkan like opengl is downward compatible but it requests a 1.1 context.. if the driver decides to do 1.3 instead that's probably not forbidden
Avatar
what exactly does m_MixingRate do in sound.cpp?
Avatar
I think no one touched this code in ten years
Avatar
oh yeah
10:05
i checked that code some time ago
10:05
xd
10:05
sound is untouched barring 1 change to fix a race condition iirc
10:06
soon proximity chat in tw (edited)
Avatar
u should first update
10:06
the wave lib we use
10:06
forgot the name
10:06
of the lib
Avatar
wavpack
Avatar
yeah pls change the format to smth more common xD i think the 16 bit requirement is kinda annoying to use
Avatar
there's no newer version of the exact library we use AFAIK
Avatar
robyte mentioned it
Avatar
we already include support for opus, I think (edited)
Avatar
lets switch to vorbis higher quality
Avatar
Avatar
Teero
what exactly does m_MixingRate do in sound.cpp?
what you should know is, that we do mixing our own
Avatar
wavpack tiny decoder's latest version is 4.40 AFAICT
Avatar
what about simply using sdl audio
Avatar
we use sdl_audio already
10:08
does it support reading file formats?
Avatar
i multiplied mixing rate by 1.5x and now my game froze,....
Avatar
Due to popular demand, here is a simple multi-channel audio mixer. It supports 8 channels of 16 bit stereo audio, plus a single channel of music. It can load FLAC, MP3, Ogg, VOC, and WAV format audio. It can also load MIDI, MOD, and Opus audio, depending on build options (see the note below for details.)
Avatar
interesting
Avatar
sdl always had support libs
10:10
it also has sdl image
10:10
This is a simple library to load images of various formats as SDL surfaces. It can load BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PPM/PGM/PBM), QOI, TGA, XCF, XPM, and simple SVG format images. It can also load AVIF, JPEG-XL, TIFF, and WebP images, depending on build options (see the note below for details.)
Avatar
we already use SDL_sound though
Avatar
i think SDL_sound is from sdl itself
10:10
but it doesnt mix for u
10:11
oh
10:11
its a lib?
10:11
sdl mixer looks more updated
Avatar
Avatar
deen
@AAR you can try that ^
i cant do that because ips are keep changing
Avatar
Avatar
AAR
i cant do that because ips are keep changing
maybe try to find an online VPN IP list and ban all (but over external software, bcs ddnet's banning system is extremly unefficient)
Avatar
are you sure it's IP spoofing and not just an attacker with a lot of available IP addresses?
Avatar
ahh mixing rate is default 48000
10:12
that makes sense
Avatar
Avatar
heinrich5991
are you sure it's IP spoofing and not just an attacker with a lot of available IP addresses?
i dont think its spoofed ip its proxy or vpn i think because we have protection with device mikrotik and much
Avatar
Avatar
Jupstar ✪
maybe try to find an online VPN IP list and ban all (but over external software, bcs ddnet's banning system is extremly unefficient)
can u send me a link?
Avatar
google.com
Avatar
MACRO_CONFIG_INT(SndRate, snd_rate, 48000, 5512, 384000, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Sound mixing rate") this mf here
Avatar
Avatar
Teero
MACRO_CONFIG_INT(SndRate, snd_rate, 48000, 5512, 384000, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Sound mixing rate") this mf here
yeah, it's basically your speakers sample rate
Avatar
it works XDD
10:32
wait ill send vid
10:33
haha this is fun
10:37
yo wtfff
10:37
XDD
10:37
😂
10:37
slowing down is even more fun
10:38
XDDD
10:38
this is genius
Avatar
ChillerDragon BOT 2023-09-07 10:41:34Z
anyone ever had trouble with increasing the bashhistory size? Mine seems capped at 2k lines .. my HISTSIZE and HISTFILESIZE are both over 9k and set in /etc/bash.bashrc ~/.profile and ~/.bashrc histappend is on
Avatar
just use fish
10:41
^^
10:41
should be no problem to increase history size though
10:42
oh, you have a problem with it, sorry
10:42
nvm
Avatar
ChillerDragon BOT 2023-09-07 10:44:23Z
i like bash :c
10:46
who even is @AAR and what is he doing?
Avatar
teeworlds ASMR
10:48
it just segfaulted at the end
Avatar
Avatar
ChillerDragon
who even is @AAR and what is he doing?
The turkish community seems to be just attacking eachothers servers all day
Avatar
ChillerDragon BOT 2023-09-07 10:51:58Z
he is turk?
Avatar
ChillerDragon BOT 2023-09-07 10:52:06Z
ah hi
10:52
what are you hosting?
10:52
ddnet server
Avatar
ChillerDragon BOT 2023-09-07 10:52:21Z
official ddnet turk servers?
10:52
i see
Avatar
nah deen is not accepting
Avatar
ChillerDragon BOT 2023-09-07 10:52:38Z
inofficial turk ddnet servers
10:52
why does deen even care about you then?
10:52
so nice of deen :)
10:53
leak some ip or server name
10:53
i wanna check it out
Avatar
just search arx3000 or turkey in internet on ddnet
Avatar
ChillerDragon BOT 2023-09-07 10:54:02Z
got it
10:54
ah only 1 server
Avatar
ChillerDragon BOT 2023-09-07 10:54:22Z
i cant connect ffs
10:54
did you activate some firewall?
Avatar
nah u need to wait
Avatar
ChillerDragon BOT 2023-09-07 10:54:42Z
is it a feature? :D
10:54
or attack?
Avatar
nah because of attack
Avatar
ChillerDragon BOT 2023-09-07 10:54:56Z
rip
Avatar
Avatar
Learath2
The turkish community seems to be just attacking eachothers servers all day
seems like a nice community
Avatar
ChillerDragon BOT 2023-09-07 10:55:11Z
turkey moment
10:55
@Learath2 have you tried fixing ddos for ddnet servers?
10:55
there seems to be a problem with it on turkey servers
Avatar
turk hosts are broken
10:56
xD
Avatar
ChillerDragon BOT 2023-09-07 10:56:32Z
@Learath2 have you tried putting kaspersky into ddnet server?
10:56
oh its the host?
10:56
rip turks .-.
Avatar
have u tried turning it off and on again
Avatar
ChillerDragon BOT 2023-09-07 11:01:50Z
all
11:02
its a universal fix to all problems
11:02
@Learath2 have you tried turning the ddos off?
Avatar
where are the sounds actually played?
11:03
i cant find it
Avatar
check grenadeexplosion
11:03
or smth like that
Avatar
yea there are Play and PlayAt functions in client/sound.cpp
11:04
but they dont really call anything.
11:04
maybe some update function plays all of the sounds when neccessary
Avatar
if(g_Config.m_SndGame) m_pClient->m_Sounds.PlayAt(CSounds::CHN_WORLD, SOUND_PLAYER_AIRJUMP, 1.0f, Pos);
11:05
honestly we should change this
11:05
and put the if inside playatr
11:05
so we never forget
11:05
actually let me pr this
Avatar
where is the actual call to SDL?
Avatar
@Teero iirc
11:07
it works with a callback
11:08
static void SdlCallback(void *pUnused, Uint8 *pStream, int Len) { (void)pUnused; #if defined(CONF_VIDEORECORDER) if(!(IVideo::Current() && g_Config.m_ClVideoSndEnable)) { Mix((short *)pStream, Len / sizeof(short) / 2); } else { mem_zero(pStream, Len); } #else Mix((short *)pStream, Len / sizeof(short) / 2); #endif }
11:08
this is the callback given to sdl
11:08
mix does the work
11:08
// Set 16-bit stereo audio at 22Khz Format.freq = g_Config.m_SndRate; Format.format = AUDIO_S16; Format.channels = 2; Format.samples = g_Config.m_SndBufferSize; Format.callback = SdlCallback; Format.userdata = NULL; // Open the audio device and start playing sound! m_Device = SDL_OpenAudioDevice(NULL, 0, &Format, &FormatOut, 0);
11:08
here is the sdl call with callback
11:08
im such a pro
11:08
joking
Avatar
ah ok cool
Avatar
this makes it harder to miss

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.c...
Avatar
monthly contribution done
11:21
gg
11:22
this actually fixes a place where that config wasnt checke
11:22
d
Avatar
@heinrich5991 according to the variable description
12:09
snd_game is for game sounds
12:09
snd_enable is for all sounds
12:10
i guess game sounds means hammer? xd
12:10
but the fact not all call sites had this, is a bug, and more reason for this change
12:11
OH wait
12:11
i am chanbging snd_game
12:11
im blind
Avatar
my brain is off today
Avatar
Avatar
Ryozuki
monthly contribution done
Not anymore ;)
Avatar
true sadge
12:23
Posted by u/ZheDoktor 21 hours ago Can I mute "rust programing language" in google? Question I swear to god everytime im trying to look for anything related to rust the stupid programing language pops up. Is there a way to blacklist it from searches or something? Cuz its darn annoying. Also to moderators. While the content is not technicaly rust related i believe it is important to find a solution so more people can find stuff related to game.
12:23
ironic
Avatar
chillerdragon BOT 2023-09-07 12:25:58Z
xd
12:27
justatest
Avatar
chillerdragon BOT 2023-09-07 12:28:11Z
weeb
Avatar
@Learath2
Avatar
50d0efb Add "render cut to demo" - furo321 06146aa Merge pull request #7140 from furo321/render-cut-to-video - def-
12:38
Im looking at @Ryomura (edited)
Avatar
chillerdragon BOT 2023-09-07 12:38:29Z
xd
12:38
uwu
Avatar
@Ryozuki
Avatar
chillerdragon BOT 2023-09-07 12:38:45Z
@Learath2: when anime pfp
Avatar
Avatar
Teero
Click to see attachment 🖼️
its a true legend
12:39
look at gh
12:39
@Teero u messed 2 pings today btw xd
12:44
@Patiga can u update vek dep to 0.16 in twmap or reexport it?
Avatar
ChillerDragon BOT 2023-09-07 13:07:52Z
is anyone running a big endian system here?
Avatar
No
Avatar
ChillerDragon BOT 2023-09-07 13:11:37Z
:c
13:11
how can i test some endiannessiness then
Avatar
Why
Avatar
ChillerDragon BOT 2023-09-07 13:11:56Z
i wanna know if my code works on big endian
13:12
and by my code i mean code i found on stackoverflow
13:12
i am certified copy paste engineer
Avatar
Ok good luck. Are you working with binary data or what
Avatar
ChillerDragon BOT 2023-09-07 13:13:40Z
im planning to
13:13
right now im just printing binary
Avatar
In which language
Avatar
ChillerDragon BOT 2023-09-07 13:14:04Z
x86
13:14
idk is that a language=
Avatar
Yeah why not xd
13:15
Maybe use a serialize lib, so u dont have to care
Avatar
ChillerDragon BOT 2023-09-07 13:15:54Z
i will just swap the broken code
13:16
assume the dude on so used big endian
13:16
and nobody else is using it
13:16
so its gonna work epic
Avatar
Good idea
Avatar
ec248f5 Add 10 € donation by Gumba - def-
Avatar
how can i fix this :D?
14:31
Avatar
Avatar
AAR
how can i fix this :D?
i dont think we can
Avatar
Have u applied a ip ban list now?
14:34
Share some of their ips
14:35
I want to know if they are known vps ips(or whatever)
Avatar
Avatar
Jupstar ✪
I want to know if they are known vps ips(or whatever)
let me check 1 min
Avatar
ChillerDragon: x86 is always little endian
14:38
but endianness in the token stuff is such a red herring
14:38
you simply reproduce the bytes you got on the wire
14:38
there is no endianness here
Avatar
Avatar
Ryozuki
@Teero u messed 2 pings today btw xd
where?
Avatar
@AAR dont share ips
14:41
common sense pls xd
Avatar
Avatar
Jupstar ✪
Share some of their ips
for this
Avatar
u can dm him
Avatar
@Ryozuki what did I miss?
14:44
Ah messed
14:44
Not missed xd
14:45
can't even read
Avatar
not sure if sharing IP addresses is bad, but I removed them for now
14:45
3/5 were marked as proxies for me btw
Avatar
Avatar
heinrich5991
not sure if sharing IP addresses is bad, but I removed them for now
share ur ip then brownbear
14:48
1.1.1.1 this is mine gigachad
Avatar
note that the above wasn't tied to any names
14:49
but here: 95.89.10.229. currently in saarbrücken
14:49
you could probably get my IP address easily, you host wiki.ddnet.org after all
Avatar
Avatar
heinrich5991
you could probably get my IP address easily, you host wiki.ddnet.org after all
does cloudflare share ips
14:51
i guess ye
Avatar
it does
Avatar
well its it would be hard to pinpoint u
Avatar
no
14:51
a) I have a wiki account
Avatar
Avatar
Ryozuki
u can dm him
Why
14:51
It's bot ips
Avatar
ok ok i retire what i said
14:51
dont kill me
Avatar
b) you can send a link in this channel in a conversation with me
Avatar
just wanted to be cautious xd
Avatar
ChillerDragon BOT 2023-09-07 14:52:07Z
@heinrich5991 oh boi im far from reaching tokens :D
Avatar
Avatar
Ryozuki
just wanted to be cautious xd
thanks
Avatar
Avatar
heinrich5991
3/5 were marked as proxies for me btw
Ah thanks
Avatar
ChillerDragon BOT 2023-09-07 14:52:21Z
im just trying to print 0x41 not as 14 :D
14:52
but that works now
Avatar
ChillerDragon: there is no big endian x86
Avatar
ChillerDragon BOT 2023-09-07 14:52:49Z
ye saw that
14:52
sounds good
14:53
not sure what the SO dude was using then
14:53
maybe he didnt test his code
Avatar
link?
Avatar
ChillerDragon BOT 2023-09-07 14:53:19Z
I need to make a routine that will convert a memory address into a string of bytes. That string would then be the input for a function that prints null-terminated strings (which I was already able to
14:53
it works fine on my machine but only if i swap it
14:53
then 0x41 prints 41
14:53
but out of the box it prints 14
Avatar
Avatar
heinrich5991
3/5 were marked as proxies for me btw
@AAR have you read this
14:54
With a public vpn list or similar. You could probably prevent just
14:54
Most
Avatar
ChillerDragon BOT 2023-09-07 14:54:13Z
im now down the rabbit hole on how big the sockaddr struct is :D
Avatar
good luck
Avatar
ChillerDragon BOT 2023-09-07 14:54:25Z
seems like on my system its 16 byte
14:54
tw allocates 128
14:54
and ruby adds additional 2048 padding
14:54
isnt darwin mac?
Avatar
it depends on what you do
14:55
yes
Avatar
ChillerDragon BOT 2023-09-07 14:55:03Z
does ddnet run on SunOS?
14:55
2048 seems a bit big
14:55
im doing a recvfrom()
Avatar
16 byte is too few for even an ipv6 address with port
Avatar
month of august
Avatar
ChillerDragon BOT 2023-09-07 14:55:22Z
ah true
14:55
im going with 128 full tw style then
Avatar
I'd do some research
14:56
how large is sockaddr_inet and sockaddr_inet6?
Avatar
ChillerDragon BOT 2023-09-07 14:58:49Z
i guess that depends on your system?
14:59
15:00
wot heinrich did you just leak your ip?
15:00
time to spoof heinrich axaxax
15:01
heinrich check irc dms
Avatar
what u sayin in dms
15:03
btw chiller do u have OTR
Avatar
Avatar
ChillerDragon
i guess that depends on your system?
no, must be the same on all amd64 linux systems
Avatar
ChillerDragon BOT 2023-09-07 15:05:01Z
ryo i discussed sensitive heinrich leak in dms xd
15:05
idk OTR
Avatar
meh the otr plugin for weechat is 5y old
15:05
and python 2
15:06
OTR allows us to chat in encrypted manner but that later no one can prove you were you when saying that stuff
15:06
wanted to try chatting with you
15:06
otr = off the record
Avatar
no one can prove cryptographically from the application protocol*
Avatar
Off-the-Record Messaging (OTR) is a cryptographic protocol that provides encryption for instant messaging conversations. OTR uses a combination of AES symmetric-key algorithm with 128 bits key length, the Diffie–Hellman key exchange with 1536 bits group size, and the SHA-1 hash function. In addition to authentication and encryption, OTR provides...
Avatar
if someone trusted observes you sending messages, then they obviously have proof that you sent messages
Avatar
The primary motivation behind the protocol was providing deniable authentication for the conversation participants while keeping conversations confidential, like a private conversation in real life, or off the record in journalism sourcing. This is in contrast with cryptography tools that produce output which can be later used as a verifiable record of the communication event and the identities of
15:07
the participants. The initial introductory paper was named "Off-the-Record Communication, or, Why Not To Use PGP".[1]
15:08
would be fun if u could make weechat scripts in rust
15:08
or wasm
15:08
Language: Guile (4) · Javascript (2) · Lua (8) · Perl (89) · Python (233) · Python2-compatible (207) · Python2-only (57) · Python3-compatible (176) · Python3-only (26) · Ruby (27) · Tcl (6)
15:08
it supports those rn
Avatar
I'm not sure we have a good way to do APIs in wasm yet
15:10
for stuff as simple as string passing, e.g.
Avatar
Greetings! It's kinda off-topic but instead of just asking to ask I'll just ask ;). I'm trying to make my own CAD, but not for consumers, just for me. I have found that Opencascade kernel to be what I want to work with (OCCT kernel) as it's the only FOSS kernel. OCCT is written in C++ (for ryozuki reading there're no "working" rust bindings except for this https://github.com/bschwind/opencascade-rs which is a work in progress) I have completed this https://dev.opencascade.org/doc/overview/html/occt__tutorial.html which is basically like hello world for using the OCCT kernel to create a model. I want to interact with the application mainly via code AKA code-only/code-first. zogtib told be to interface it with Lua. My problem is I don't know where to start 😅 Any proposals are welcome :).
15:17
sadly idk anything about CAD
Avatar
Avatar
heinrich5991
I'm not sure we have a good way to do APIs in wasm yet
if you know a good way to do that btw, I'd be interested @Ryozuki
15:18
btw
Avatar
i have to research
Avatar
don't worry I just want to interface a cpp application with another prob interperted language
15:20
As an embedder of WebAssembly you can also provide WebAssembly modules functionality from the host by creating host-defined functions, memories, globals, etc, which can do things that WebAssembly cannot (such as print to the screen).
Avatar
The way I am doing it atm is writting cpp code and then compiling it and manually linking stuff which is what I want to avoid
Avatar
whis i had more time to do stuff
15:21
wish*
15:21
but when i do i just play dota
15:21
smh
15:21
so making the host-wasm functionality is easy i think, what i want to know is how to define for example a library/interface for a language that compiles to wasm
15:23
i guess in rust u would use extern
15:23
#[link(wasm_import_module = "mod")] extern { fn foo(); }
15:24
ah
15:24
if u use wasm bindgen its probs
15:24
#[wasm_bindgen] extern { fn alert(s: &str); }
15:25
📦✨ your favorite rust -> wasm workflow tool! Contribute to rustwasm/wasm-pack development by creating an account on GitHub.
Avatar
is there a german that knows about "and one" here?
Avatar
Avatar
Ryozuki
is there a german that knows about "and one" here?
we usually speak german in germany
Avatar
Avatar
Jupstar ✪
we usually speak german in germany
its a german group
17:15
that makes german music
17:15
but some are in english
17:15
which is how i got hooked up
Avatar
nope xd
Avatar
neither
Avatar
fix my gdm
Avatar
maybe u shouldnt use gentoo as your first distro lmao
Avatar
maybe u should experiment around with a working out of box distro first
Avatar
wdym first
Avatar
maybe u should experiment second
Avatar
this is not second
19:25
this is like
19:25
sixth
Avatar
but u tried linux for real right
19:26
not VM or the windows shit thing
Avatar
i dunno, last month u were still windows fan boy xD
Avatar
i used arch for 2 years
Avatar
why u got so many problems then
19:26
but well u should use ur arch xp for it
Avatar
i told u gamma rays
Avatar
ChillerDragon BOT 2023-09-07 19:26:44Z
who wants to teach me assembly? xd
19:26
i dont know too
19:26
xd
19:26
well i learnt a bit
Avatar
chillerdragon: let's go
Avatar
ChillerDragon BOT 2023-09-07 19:27:01Z
ok
Avatar
x86 assmebly?
Avatar
ChillerDragon BOT 2023-09-07 19:27:04Z
yes
Avatar
use nasm to learn x86-64
Avatar
ChillerDragon BOT 2023-09-07 19:27:19Z
i got a label
19:27
pointing to memory
19:27
i guess
19:27
my wording is ass
19:27
and now i want to load the first byte of that into rax
19:28
global _start section .text _start: mov rax, 1 ; system call for write mov rdi, 1 ; file handle 1 is stdout mov rsi, message ; address of string to output mov rdx, 13 ; number of bytes syscall ; invoke operating system to do the write mov rax, 60 ; system call for exit xor rdi, rdi ; exit code 0 syscall ; invoke operating system to exit section .data message: db "Hello, World", 10 ; note the newline at the end
19:28
idk how to trigger highlight
Avatar
chillerdragon BOT 2023-09-07 19:28:55Z
section .bss udp_recv_buf resb 1400
Avatar
ChillerDragon BOT 2023-09-07 19:29:14Z
how do i move the first byte of udp_recv_buf into rax?
Avatar
u will hit a problem if u use 64bit and use a modern gcc (if u call C libs, which u will inveitable do) due to relocations or smth
Avatar
ChillerDragon BOT 2023-09-07 19:29:18Z
and then the second etc
19:29
i dont use any c bloat
Avatar
u will cuz making syscalls is not better
Avatar
ChillerDragon BOT 2023-09-07 19:29:48Z
i just syscall into linux c bloat
19:29
hm
Avatar
my guess is
19:30
u need to load udp_recv_buf address
19:30
and i guess just 1 byte
19:30
u probs use a lower register or smth
19:30
im not much experienced either
Avatar
ChillerDragon BOT 2023-09-07 19:30:26Z
so lea?
19:30
or the [
19:30
idk the diff yet
Avatar
i think its []
Avatar
ChillerDragon BOT 2023-09-07 19:31:02Z
you can mov and specify size i think
Avatar
mov rax,label_name
19:31
Labels in NASM are automatically treated as addresses.
Avatar
lea = get address
Avatar
ChillerDragon BOT 2023-09-07 19:31:45Z
omg
19:31
i got 04
19:31
looks legit
Avatar
ChillerDragon BOT 2023-09-07 19:31:55Z
04 is average first tw protocol byte
Avatar
fagging pro style
Avatar
ChillerDragon BOT 2023-09-07 19:32:01Z
cuz i know it all by heart
Avatar
what did u do
Avatar
xDD
19:32
typical chiller
Avatar
ChillerDragon BOT 2023-09-07 19:32:14Z
i did `mov byte rax, [udp_recv_bug]
19:32
thnaks ryowo
19:32
try without []
19:32
im curious
19:32
TIL mov byte
Avatar
ChillerDragon BOT 2023-09-07 19:32:38Z
without i get ED
19:32
that cant be
Avatar
ChillerDragon BOT 2023-09-07 19:32:59Z
its funny how asm seems to let you do everything
19:33
i think i fucked my stack earlier on hello world
Avatar
u can do the other way too
19:33
mov [var], eax
Avatar
ChillerDragon BOT 2023-09-07 19:33:12Z
but still less crashes than c
Avatar
ye in asm u need to manage ur stack
19:33
the good thing is
19:33
if ur a pro
19:33
and some function doesnt need a stack prepared
19:33
u can skip it
Avatar
ChillerDragon BOT 2023-09-07 19:33:41Z
ong
Avatar
i made new user joe and it worked for him
Avatar
ChillerDragon BOT 2023-09-07 19:33:46Z
[buf+1]
Avatar
cuz u know when to not comform to a call ABI
Avatar
ChillerDragon BOT 2023-09-07 19:33:49Z
gives me 00
Avatar
perks of asm
Avatar
ChillerDragon BOT 2023-09-07 19:33:54Z
00 is totally legit 2nd byte
19:33
holy shit
Avatar
Avatar
Ewan
i made new user joe and it worked for him
cursed user, maybe ur bash_profile is broken
Avatar
ChillerDragon BOT 2023-09-07 19:34:15Z
dood
19:35
i just nuked ewan
19:35
and made a new ewan
19:35
and i'm in
Avatar
ChillerDragon BOT 2023-09-07 19:39:02Z
nice
19:39
where is that from
19:42
i sent it already
Avatar
ChillerDragon BOT 2023-09-07 19:42:56Z
ah nice i didnt scrol that far xd
Avatar
guys xorg fixed
Avatar
ChillerDragon BOT 2023-09-07 20:03:24Z
pro
Avatar
honestly elated
20:03
the wayland oversampling looks good but i still wish you could opt out
20:04
firefox looks almost identical to if i set the pixel ratio to 1.5 w no scaling
Avatar
Cosmic rays, go
Avatar
but its a little blurry
20:07
20:07
ryo ur pkg broken
20:07
i want a refund
Avatar
Avatar
Ewan
Click to see attachment 🖼️
it's just masked
Avatar
The following keyword changes are necessary to proceed: (see "package.accept_keywords" in the portage(5) man page for more details) # required by ddnet (argument) =games-action/ddnet-17.2.1 ~amd64
20:12
never seen ~ before
😄 1
Avatar
global _start section .text stdout equ 1 _start: mov r8, 1 ; initial line length mov r9, 0 ; chars written mov rdi, buffer line: mov byte [rdi], '*' inc rdi inc r9 cmp r9, r8 ; check if number of written stars is same as needed jne line lineDone: mov byte [rdi], `\n` inc rdi inc r8 mov r9, 0 cmp r8, maxlines jng line print: mov byte [rdi], `\n` inc rdi mov byte [rdi], `\0` inc rdi mov rdx, rdi sub rdx, buffer mov rax, 1 mov rdi, stdout mov rsi, buffer syscall mov rax, 60 ; system call for exit xor rdi, rdi ; exit code 0 syscall section .bss maxlines equ 8 buffer_size equ 64 buffer: resb buffer_size
20:24
such a pro
20:24
stars
20:24
no C deps
20:24
cuz c bad
20:24
actually
20:24
i probs dont need the \0
20:25
cuz this is not c
20:25
yeah it works
20:25
actually if i use rdx instead of rdi i save a instruction
20:26
final
Avatar
Avatar
Ewan
The following keyword changes are necessary to proceed: (see "package.accept_keywords" in the portage(5) man page for more details) # required by ddnet (argument) =games-action/ddnet-17.2.1 ~amd64
nah dont use this
20:29
do
20:29
games-action/ddnet ~amd64
20:29
so u can update ddnet
20:29
xd
20:29
i have this
20:29
games-action/ddnet **
20:29
so i use the latest git commit
20:57
in the accept_keywods file
Avatar
In fact, after 00a0e0e72380cdd68c5332e73a2a1f603c65cfc0 we require CMake 3.12+. Remove old code from CMakeLists and cleanup how we set the game version. If you'll say that src/engine/client/updater.cpp should not #include then I'd reply that there are already 5 game/version.h includes in engine. We can refactor it and pass the version via engine, e.g.: ```diff -IEngine *pEngine = CreateEngine(GAME_NAME, pFutureConsoleLogger, 2); +IEngine *pEngine = CreateEngine(GAME_NAME, G...
Avatar
@Chairn are you perhaps around?
Avatar
Currently you have to click back into the countryflag list to be able to scroll again.

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 (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
This is actually wanted to simplify the modding for a bit: some mods customize votes, some customize the processing of NETMSGTYPE_CL_SAY, etc. It is hard to track what is going on in this method, and sometimes it is even harder to merge changes here. Note: I can't fix the code style for this MR, this is why I asked for #7033 ("please update clang-format").

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in comb...
Avatar
I'm super new to Regex... I'm trying to repurpose old, converted javascript code into actual array code, but I don't know how to detect it properly. Ex: let points = [{x: 1, y:2}, {x:3, y:4}]; goto((itemOf(points.x, point2 - 1)), (itemOf(points.y, point2 - 1))); #converted to goto(points.x[point2 - 1], points.y[point2 - 1]); (edited)
Avatar
the general case is not doable with regexes
23:15
best would be using a JS parser
Avatar
I'm trying to find and replace in VSCode
Avatar
do you only have simple expressions as the index?
23:16
itemOf\(([^(),]*), ([^(),]*)\)
Avatar
Yeah, that works perfectly! Thanks! I'm using https://regex101.com/ to understand this better (edited)
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.
Exported 930 message(s)