Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2022-11-20 00:00:00Z and 2022-11-21 00:00:00Z
Avatar
1eb9d9b A Koule 14, A Koule 15 - ddnet-maps
Avatar
Avatar
GitHub
Click to see attachment 🖼️
all good ideas
05:35
nj louis
Avatar
Added friend counter, changed the alignment of player count indicator to better accommodate friend counter + line up with the "Players" text at the top of the tab !image

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 ba...
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 08:24:05Z
Why is CNetObj_De_ClientInfo still in the 0.7 snap? Is it even used?
08:24
@fokkonaut what was tricky in 0.7 about rainbow i never gave it a try how does it work?
08:24
i thought all the player info was removed from the snap like name, clan and skin info but it still seems to be in the code if i read it correctly
08:27
but like only for demos? huh
Avatar
Yep, I think it's how oy got around the fact that netmsgs and snaps aren't synced
Avatar
I don't know why isn't there a feature, which lets you keep either the horizonal or vertical value of a Quad point, when dragging, so I request a function to be added, which does exactly that. Shift is the usual hotkey for most Photoshops to drag selected objects and align them according to where you drag it. Same can be applied to Quads, might be an easy technique for copy-pasting Quads or just generally makes sense to add it. I don't see a downside on adding a function like that, so it wou...
Avatar
Avatar
GitHub
Click to see attachment 🖼️
I was wondering why this didn't get implemented sooner tho
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 09:52:31Z
sos lerato ddnet snaps bamboozle me
09:52
09:53
why is there a nullbyte o.O there are no snap types zero are there?
09:54
i do not support any fancy ddnet uuid thingies yet. But those are at offset 0x4000 arent they? And also shouldnt be sent to 0.7 clients huh?
09:54
so how do i interpret type 0? :(
Avatar
OFFSET_UUID_TYPE = 0x4000,
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 09:55:47Z
yes!
09:55
but 0 is not greater than 0x4000 is it?
09:56
why does my 0.7 client get a snap item of type 0 :(
Avatar
It's the offset of the ID it seems
Avatar
just look in the server xd
Avatar
Type is always 0 and ID >= OFFSET_UUID_TYPE for UUID snaps
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 09:57:08Z
ah
09:57
aaaa
09:57
its offset ID
09:57
not offset type
09:57
aa
09:57
thanks brota
09:57
but weird that ddnet servers send those to 0.7 clients
Avatar
ask learath
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 09:57:50Z
i did
09:57
and u answered
09:57
:p
Avatar
i am learath
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 09:58:12Z
are you?
Avatar
does IRC show someone else?
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 09:58:41Z
nah i think im good now since roby the smort ass hinted me in the right direction
09:58
irc says ur name is "jao"
Avatar
ah then all fine
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 09:59:09Z
which is obv a bug since he is dead
Avatar
i bought a 5800x
10:07
i think 280€ for it is cheap
10:07
or maybe black friday scammed
10:07
kek
Avatar
Avatar
Ryozuki
or maybe black friday scammed
tbh in the last years in developped to scam xD
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 10:14:55Z
maybe i confused type and id somewhere lets hope thats the case
Avatar
Avatar
Ryozuki
i think 280€ for it is cheap
AMD Desktop von AMD | AMD Ryzen 7 5800X 8x 3.80GHz So.AM4 WOF :: Lagernd :: über 60.820 verkauft :: 26 Jahre Kompetenz | Hier bestellen
10:15
240€
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 10:15:38Z
stnks
Avatar
Meh random german web
10:15
I prefer amazon fast shipping
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 10:15:46Z
hehe
Avatar
Avatar
[quakenet] ChillerDragon
wait but @Robyt3 swarfey checks the type here not the id and his stuff works :/ https://gitlab.com/swarfey/teeworlds-client/-/blob/f85fadcfd7f528f28230e6587186510ac18f21dd/lib/snapshot.ts#L125-127
I think it might use a different type internally than it send later
10:16
There is also OFFSET_UUID = 1 << 16,
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 10:21:33Z
oof
10:22
hm i get through the half snap now until i reach something invalid haha https://zillyhuhn.com/cs/.1668939729.png
10:24
looking at that hexdump is somehow fun :)
Avatar
Avatar
[quakenet] ChillerDragon
@fokkonaut what was tricky in 0.7 about rainbow i never gave it a try how does it work?
This is for Demo only
Avatar
Avatar
Learath2
Yep, I think it's how oy got around the fact that netmsgs and snaps aren't synced
nop
Avatar
Avatar
[quakenet] ChillerDragon
but weird that ddnet servers send those to 0.7 clients
no
10:34
F-Client has extended netmsgs too for example
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 10:36:42Z
but it is sending the i am ddrace thingy isnt it?
10:37
i guess ddnet servers send it to all clients no matter what since it is compatible. The unknown type would probably be dropped including the provided length of data.
Avatar
Avatar
fokkonaut
nop
Nop? Is that not how he handled the sync in demos?
Avatar
Ah u mean demos, yes
Avatar
Avatar
Ryozuki
Meh random german web
That's not "random german web", it's basically where everyone in Germany has been buying computer parts for the last 20 years
Avatar
random german web for me xD
Avatar
he knows that xd
11:10
he troll
Avatar
i didnt
Avatar
ofc, u mentioned mindfactory before too
Avatar
literally that website is not known here
11:11
?
Avatar
lol
11:11
hardware unboxed even uses mindfactory prices 😄
Avatar
I have lots of good memories as a kid waiting until midnight on a school day to order on mindfactory to get free shipping 😄
Avatar
for their $ per frame
Avatar
Avatar
deen
I have lots of good memories as a kid waiting until midnight on a school day to order on mindfactory to get free shipping 😄
true xD
Avatar
Avatar
Ryozuki
literally that website is not known here
ok then it maybe was learath or someone else, though we talked about it, esp. when u bought ur 6600 xt 😄
Avatar
the famous one in spain is https://www.pccomponentes.com/
Informática, electrónica, tecnología al mejor precio, calidad y servicio. PcComponentes es tu tienda online líder de móviles, ordenadores, tablets y mucho más.
11:12
but i never went to a store as a kid or smth
Avatar
Avatar
Ryozuki
the famous one in spain is https://www.pccomponentes.com/
mhh famous but expensive xd
11:14
we also have other famous hardware resellers, alternate nbb etc. but mindfactory is usually the cheapest
11:14
and actually even in the whole EU
Avatar
doi they use african kids or what
11:14
xd
Avatar
they are in hamburg. i guess they can just save money like that
Avatar
whats in hamburg
Avatar
on of the biggest cities for havours in germany
11:15
harbors*
11:15
or harbor?
11:16
dunno
11:16
xd
Avatar
they also have economies of scale I guess. Since they order a lot, they get the parts cheaper
Avatar
ah but they are in Wilhelmshaven
11:19
but thats also directly at the north sea
11:24
btw @Ryozuki mindfactory shows an estimate of how many stuff was sold
11:24
that's also pretty cool 😄
11:25
Avatar
the market share of ryzen must be insane in germany actually looking at these values
Avatar
Most people don't build their own computer, most buy laptops, a few buy prebuilt desktops, even fewer build their own computer. Prebuilts have great deals with Intel
Avatar
any stats on that? ^^
11:31
i dont know many ppl owning a laptop tbh
11:31
most either have smartphone/tablet or a real computer 😄
11:31
but yeah probs most just buy computers at aldi lol xD
Avatar
Most PCs are probably in companies, they don't build themselves
11:34
but I don't have statistics
Avatar
that's true
11:34
it also depends on age probs older teachers often have laptops
Avatar
and companies like to rebuy every 3-4 years to get tax refunds even if it wouldn't make sense otherwise
Avatar
and schools buy overpriced hardware that sucks completly xD
11:36
like every school in my region buys terra: https://www.wortmann.de/
Avatar
Are you working with the schools or how do you know?
Avatar
no, but my father is a teacher
11:38
and well i went to school and uni. and it was always a joke that these stupid terra computers dont work again xd
11:39
and my brother is also getting a teacher. he partial time jobbed to repair/install new OS for schools
11:39
but they are in NRW so i guess it could defs be a regional thing
Avatar
Avatar
Jupstar ✪
like every school in my region buys terra: https://www.wortmann.de/
tf is that
Avatar
btw @Learath2, I figured out that the F20-F24 thing is a macos problem, nothing to do with ddnet. For some reason a program I have that shows keyboard events will register the key presses, so I thought the OS could handle them, but no. Thanks anyway tho
Avatar
Avatar
[quakenet] ChillerDragon
wait but @Robyt3 swarfey checks the type here not the id and his stuff works :/ https://gitlab.com/swarfey/teeworlds-client/-/blob/f85fadcfd7f528f28230e6587186510ac18f21dd/lib/snapshot.ts#L125-127
chillerdragon: ddnet only sends type_id=0 id=uuid_type_id if they want to register a new uuid, usually somewhere at the beginning of the connection, after the uuid's are registered they use type_id & id fields normally
12:50
justatest
Avatar
rust monkaS (edited)
Avatar
im trying to build old af bam, building stops after this warning, no errors, can i pass some flag to compiler to prevent this? (edited)
Avatar
if its a warning it doesnt stop
14:40
maybe there is a different error
Avatar
[paul@fedora bam-0.2.0]$ sh make_unix.sh src/lua/lauxlib.c: In function ‘luaL_loadfile’: src/lua/lauxlib.c:577:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 577 | while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; | ^~~~~ src/lua/lauxlib.c:578:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 578 | lf.extraline = 0; | ^~ src/lua/ldump.c: In function ‘DumpString’: src/lua/ldump.c:63:26: warning: the comparison will always evaluate as ‘false’ for the pointer operand in ‘s + 24’ must not be NULL [-Waddress] 63 | if (s==NULL || getstr(s)==NULL) | ^~ src/lua/ltablib.c: In function ‘addfield’: src/lua/ltablib.c:137:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 137 | if (!lua_isstring(L, -1)) | ^~ src/lua/ltablib.c:140:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 140 | luaL_addvalue(b); | ^~~~~~~~~~~~~ src/node.c: In function ‘node_walk_r’: src/node.c:250:13: warning: variable ‘needrebuild’ set but not used [-Wunused-but-set-variable] 250 | int needrebuild = 0; | ^~~~~~~~~~~ src/path.c: In function ‘lf_path_path’: src/path.c:480:9: warning: ‘strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation] 480 | strncpy(buffer, path, sizeof(buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/ccRpYxpj.o: in function `os_tmpname': loslib.c:(.text+0x28c): warning: the use of `tmpnam' is dangerous, better use `mkstemp' [paul@fedora bam-0.2.0]$ well its the only thing i see
Avatar
and there is no binary built?
Avatar
nope
Avatar
mhh
14:42
maybe try with verbose
14:42
CFLAGS="-v" LDFLAGS="-v"
Avatar
Avatar
Jupstar ✪
CFLAGS="-v" LDFLAGS="-v"
where do i put these justatest (edited)
Avatar
clean ur build dir then simply before the make_unix.sh command
14:44
before the sh
Avatar
wait, looks like it built but not in root dir
14:45
in src/
14:45
xd
Avatar
lel xd
Avatar
Avatar
Jupstar ✪
i dont know many ppl owning a laptop tbh
The specs are most likely on 5th generation processors with some kind of graphics card power to compensate, most of the time it's fuckin above the respected prizes of those laptops
14:56
At least what the laptop market is targeting users with are 5th generation or above processor laptops (edited)
Avatar
with nvidia optimus, so they are 100% doomed
Avatar
is there any library to work with teeworlds demos
15:19
any language
Avatar
c++ -> ddnet/src/
👎 1
Avatar
The types are translated to TYPE_ALL/TYPE_SAVE respectively if a given path is relative and to TYPE_ABSOLUTE if a path is absolute. These types are only supported with the OpenFile, ReadFile, ReadFileStr and GetCompletePath methods. This reduces duplicate code when calling the methods.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written...
Avatar
Avatar
Anime.pdf
is there any library to work with teeworlds demos
never heard of any
Avatar
oh hell naaawh i hate working with datafiles 😩 (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 15:49:43Z
what do you need from the demos?
Avatar
mostly map and data
15:56
i read heinrich's doc and understand everything, i think im capable of doing it myself 🥹
Avatar
7ae5b14 Add TYPE_ALL_OR_ABSOLUTE and TYPE_SAVE_OR_ABSOLUTE storage types - Robyt3 499c81f Merge #6063 - bors[bot]
Avatar
is not possible to do operations in script ?
16:13
like
16:13
i cant get the value of cl_dummy_resetonswitch
16:13
either 0 or 1
16:13
and i cant do something like
16:14
cl_dummy_resetonswitch ? "Yes" : "No"
Avatar
there is no interpreter in ddnet for such advanced logic
16:14
u can execute commands when u click on a key
Avatar
so im fucked and cant know when its on or not
16:14
i just have to manually check all the time
Avatar
thats e.g. not a problem
16:15
u can use smth like echo
Avatar
the command is a toggle
Avatar
yes, but u can also execute a cfg that rebinds your key u pressed
Avatar
using files to exec commands seems unoptimized
16:16
2 files when i can just do toggle
16:16
is it possible to get the value if i modify the client ?
16:16
is it like stored in an accessible env
16:16
through the client
16:17
dont know the language of the client
Avatar
bind ctrl+i "toggle cl_dummy 0 1; echo test"
16:19
interestingly it only works when u put the toggle at the beginning
16:19
guess our bind converter is also quite limited
Avatar
i cant know if the value is 1 or 0
16:21
echo just exec all the time
16:22
cant i just make a custom client and make it possible directly in the client code
Avatar
yes u can only do it with using files what u dont want
16:22
so could at least made it echo that u clicked it
Avatar
yes but what about the client
Avatar
i mean if u want to improve the logic for binds go ahead
16:23
or suggest it on github, maybe someone is willing to do it
16:24
but since it already is possible with files its not likely
Avatar
its not possible with files
16:29
u cant get the value
16:29
and do boolean if statement or ternary
16:30
u can bypass and do something not optimized
Avatar
@heinrich5991 how to use your libtw2, im confused 😅
Avatar
but u cant do anything
Avatar
ok nvm i forgor 💀 ::new() (edited)
Avatar
Avatar
Froggie
u cant get the value
why u need it, with files u can do echo yes echo no (edited)
16:32
depending on the state of your toggle
16:34
also dunno what u mean with not optimized, not optimized bcs it uses 40 bytes on your disk or what xdd
16:37
i wish the script handled basic coding stuff
16:37
like
16:38
use the var value and do stuff with it
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 17:32:01Z
fellow eval if enjoyer
17:32
@Froggie wat you want is this patch https://github.com/ddnet/ddnet/pull/3552
SYNOPSIS eval_if s[config] s[comparison] s[value] s[command] ?s[else] ?s[command] EXAMPLE eval_if ui_server_address == "localhost" "rcon_auth rcon" else "rcon_auth strong_p...
17:32
but u get banned by heinrich for botting if you use it axaxax
17:33
works in vanilla :p
Avatar
so its a banned feature
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 17:33:46Z
yes
Avatar
then gg
17:34
wont use it
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 17:34:16Z
xf
Avatar
Avatar
Froggie
use the var value and do stuff with it
use botless ath
18:11
outdated btw
Avatar
@heinrich5991 how do i interact with demo map 👉 👈
19:11
TypeId is u64
Avatar
@Anime.pdf do u know rust?
19:17
thats news to me :o
Avatar
Avatar
Ryozuki
@Anime.pdf do u know rust?
not rly, made few scripts, but didnt learn it tbh
19:18
im coding with my feelings, not knowledge kek
Avatar
u dont make scripts in rust
19:19
u compile programs
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 19:20:41Z
mimimi ryo
Avatar
Avatar
Ryozuki
u dont make scripts in rust
ik ik they just were short and made simple tasks so i called them scripts nouis (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 19:23:43Z
no matter what you do if you use a compiled language ryo will never call you skript kiddie axaxaxax
Avatar
Ахахах
19:26
🥸
Avatar
write rust macro that parses bash to rust code automatically
19:27
would be awesome
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 19:28:21Z
i prefer bash script over rust macro
Avatar
but its bash
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 19:28:28Z
THIS IS JUST A LITLE TROL. Contribute to ChillerDragon/bash-to-rust development by creating an account on GitHub.
Avatar
lol
Avatar
Im surprised it wasnt created 2 seconds ago
Avatar
but dunno smth like bash!( <bash code> )
19:29
and just compile
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 19:29:26Z
ah you mean
Avatar
why not bra
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 19:29:29Z
a
19:29
ye sounds good
19:29
i have the same for c++ in bash xd
19:29
inline cpp
Avatar
615f8e9 Update menus_browser.cpp - l-ouis 1609422 fix clang format - l-ouis d791fa3 Modified layout - l-ouis 87679f5 Merge #6061 - bors[bot]
Avatar
@louis gg on your first pr
👍 1
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 21:43:21Z
omg jopstar vulkan shaders completley rape my vps :( https://zillyhuhn.com/cs/.1668980409.png @Jupstar ✪ why does it need like a zillion processes like no chill it freezes the whole vps
Avatar
Avatar
[quakenet] ChillerDragon
omg jopstar vulkan shaders completley rape my vps :( https://zillyhuhn.com/cs/.1668980409.png @Jupstar ✪ why does it need like a zillion processes like no chill it freezes the whole vps
bcs only way i found to make cmake multithreaded is to spawn a new process
21:46
so dunno maybe u can control it over cmake
21:47
it just gets all commands at once to execute
Avatar
@Jupstar ✪ do u know what tile buffering is
Avatar
yes
21:51
it buffers tile information on the GPU's VRAM
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 21:52:48Z
pls not multithread spam on potato hardware with 1 core thnks
Avatar
where did u even find such a bad VPS?
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 21:55:09Z
digitalocean
Avatar
how much do you pay for such bad hardware xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 21:55:16Z
idk
21:55
around 5 bucks i guess
Avatar
uff
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 21:55:32Z
-.-
Avatar
i mean 1gb ram is rip dude
21:55
at least enable swap
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 21:56:06Z
no disk space left
Avatar
how do u want to compile without disk space
22:00
stop lying and just enable swap
22:00
u can also enable it temporarily
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:01:14Z
i just deleted all temp data to not have a vbroken vps with 100% disk usage bro
22:01
budget dragon is on da limits man
Avatar
then enable file system compression
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:01:49Z
FTX bankrupt fked me
Avatar
so its even slower xd
Avatar
cryptorekt 😦
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:02:06Z
joke joke i didnt have any moni in FTX
22:02
not your keys not your coins
Avatar
Well FTX' collapse destroyed value of crypto in general. I lost hundreds of euros 😦
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:03:01Z
on paper
22:03
duh
22:03
or did you realize your losses?
22:03
da ppl with FTX accounts properly lost money
22:04
a smol price dip is no loss
22:04
22:04
wat
22:05
idk jopstar they dont gimme pricing only estimated pricing xd
Avatar
I would never realize losses. I never invest money I can't afford to completely lose. Speculative assets are just gambling, I'm all in until I hit my target. If I get 2x I'm out, else I'll just wait
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:07:20Z
based
22:07
man jopstar u kinda made me wanna switch to hetzner
22:07
but lazy
Avatar
I like hetzner, they have cheap servers that aren't completely shit
22:08
Good business
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:08:24Z
xd
Avatar
at that same price point kimisufi's service runs on thoughts and prayers
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:09:05Z
kimi wat
22:09
wot u talkin old man
Avatar
ovh's budget line
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:09:33Z
a
22:10
more than 1 cpu is kinda cool
Avatar
i dunno if your VPS is hosted by someone from teeworlds community its fine too xdd
22:11
but the fact that i pay less than half for 2cores and 2gb ram is funny xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:12:02Z
wtf
Avatar
but prices increased lately :/
22:12
but tbf its not clear what CPU my vcores are
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:12:21Z
send
Avatar
it was a discount on netcup.de
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:12:38Z
permanent
22:12
?
Avatar
yes
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:12:46Z
stonks
Avatar
they do such discounts to easter, world cups, christmas etc.
22:13
and sometimes random
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:13:05Z
i was a netcup customer once back in the days
22:13
then i rq cuz lags
Avatar
its fine for me. but it doesnt have good ddos protection
22:13
if u need that
22:13
so ddos = rip. else its fine xd
22:13
Webhosting, Server, Domains, Managementdienste, einfach alles fuer einen erfolgreichen Internetauftritt
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:13:54Z
for me the else case wasnt fine
Avatar
but they relatively cheap
22:14
but they were cheaper in the past
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:14:25Z
wow thats also still cheaper than hetzner
Avatar
rip
22:14
yeah
22:14
if u find a cheaper they give u 10% on that deal xD
22:14
just need to contact the support
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:14:55Z
wait what? xd
22:14
lmao
Avatar
yeah xD
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:15:26Z
wait so if i find a netcup competitor who is cheaper they offer me the same specs for 10% of the competitors price? xd
22:15
here their black friday discounts
22:16
"16:00 Uhr : VPS Black Moon NUR 5,79 € / Monat (maximal 222 Stück)"
22:16
could be a good deal
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:19:41Z
seems more expensive than my DO rn
Avatar
yep but maybe it has 4 cores 4gb ram
22:21
they dont always have the cheap vps discount sadly
22:21
if u have time on that date just look at it, and if u dislike dont buy it 😉
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:22:18Z
guess i gotta be fast to decide
22:22
due to the limit
Avatar
cannot judge tbh
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:23:00Z
and an account i lost mine :c
22:27
22:27
bra
22:27
no paysafecard no crypto only the spy money xd
Avatar
lastschriftverfahren
22:32
german sounds fun
Avatar
I'm looking for a way to get a "dynamic" number on a website using bash & grep command, does anyone have an idea? for example with this page, get the value of the btc https://www.coindesk.com/price/bitcoin/
22:35
can't figure out how to get this particular "dynamic" number
22:36
xpath
Avatar
grep for something like <span class="currency-pricestyles__Price.* </span>?
Avatar
You should be using their API, the numbers might be loaded using JS
Avatar
Avatar
Learath2
grep for something like <span class="currency-pricestyles__Price.* </span>?
tried so, many results
Avatar
@deen thats no stopper
Avatar
On that page I only see one span matching that result
Avatar
oh true
22:37
most have an api
Avatar
But yes, if you don't HAVE to scrape, don't scrape
Avatar
Avatar
Learath2
On that page I only see one span matching that result
hmm, this was an example, the real one has like 5 of them
Avatar
Especially with markup unaware tools like grep
Avatar
i suggest u use tradingview api, they aggregate all exchanges
22:37
API specification for exclusive financial products: TradingView Web Platform & Trading Terminal. Technical details and description of the integration process.
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:38:25Z
yikes did ddnet drop debian stable support?
Avatar
Avatar
nouaa
hmm, this was an example, the real one has like 5 of them
For a crude tool like grep I'd need to see the exact page you are looking at to find a way to grep for the value you need
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:38:27Z
`2022-11-20 23:37:44 I assert: /home/chiller/git/DDNetPP/src/engine/server/register.cpp(517): curl version < 7.77.0 does not support registering via both IPv4 and IPv6, set sv_register ipv6 or sv_register ipv4`
22:38
`
22:38
awuhdhawd a irc did newline
Avatar
How is that a dropping support xd
Avatar
Avatar
[quakenet] ChillerDragon
yikes did ddnet drop debian stable support?
ddnet is currently built on Debian 10, so that should work
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:40:03Z
well my server gets an assert and thus a crash on launch because curl is too old
Avatar
If you HAVE to scrape but aren't limited to grep, I suggest beautifulsoup and python. The single thing python is good for is writing web scrapers 😄
Avatar
Just read what it says
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:40:26Z
ah xd
22:40
omg
Avatar
TrollerDragon
Avatar
well, here it is : https://www.boursorama.com/bourse/indices/cours/1rPCAC/ there're many spans and grep seems to be fucked up with mutli apostrophes (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:40:43Z
why is that not an default :c
Avatar
Why use outdated distro xd
Avatar
Avatar
nouaa
well, here it is : https://www.boursorama.com/bourse/indices/cours/1rPCAC/ there're many spans and grep seems to be fucked up with mutli apostrophes (edited)
Which price on here are you trying to grep? The big one on the left?
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:41:39Z
wot distro u suggest for a vps jopster?
Avatar
Avatar
Learath2
Which price on here are you trying to grep? The big one on the left?
this one
Avatar
Avatar
[quakenet] ChillerDragon
wot distro u suggest for a vps jopster?
uwuntu gigachad
Avatar
Seems loaded by js, this won't really work easily
Avatar
Dunno what u use. Latest stable debian
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:45:09Z
i use latest stable debian
Avatar
Oh
22:46
Didn't know Heinrich also has a progressive soul and uses bleeding edge technology xdd
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:46:39Z
Avatar
Avatar
Learath2
Seems loaded by js, this won't really work easily
one of my teachers gave me this as an assignment, i bet he doesn't know himself how to do it greenthing
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:46:42Z
u mean this?
Avatar
Maybe compile with bundled libs
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:46:56Z
curl -s https://www.boursorama.com/bourse/indices/cours/1rPCAC/ | grep -o "c-instrument c-instrument--last.*" | head -n1 | cut -d'>' -f2 | cut -d'<' -f1
Avatar
Oh it's not loaded by js after all
22:47
my curl was messing up 😄
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:47:21Z
ur curl is just too new
22:47
old curl still does js
22:47
xxxxxxxxxxD
Avatar
should I call Chillerdragon "daddy" from now on?
Avatar
Do you even support ipv6 xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:47:57Z
when it comes to bash yes im daddy
Avatar
bashdad
22:48
BasherDragon
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:48:22Z
bbut
Avatar
I'm starving, but I'm also sleepy
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:48:26Z
is that even what you need?
Avatar
do I eat or do I sleep?
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:48:42Z
i asked my self the same earlier
22:48
i chose neither
22:48
xd
Avatar
anyway thanks for your help ;D imma try to found out what it does tomorrow!
Avatar
Avatar
Learath2
do I eat or do I sleep?
Sleeping is quite efficient so u won't starve
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:49:25Z
eating is quite efficient so u won't sleep
Avatar
That would be nice
Avatar
but I might wake up hangry if I sleep this hungy
Avatar
technically the best distro for a vps
22:49
is nixos
22:49
reproducible
22:49
u can just spun a new vps and put ur nixos config
22:49
and replicate
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:49:55Z
distro hopper enetered the conversation
22:50
cant i use just nix pkg manager on my deb10?
22:50
and get new curl?
Avatar
Just use windows server
wtf 1
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:50:40Z
mic drop
22:50
even m$ uses linux omg xd
Avatar
don't use deb10
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:51:00Z
eh
22:51
deb11
Avatar
run your server bleeding edge artix
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:51:05Z
i mean
22:51
u wot
Avatar
Crash every 15 minutes
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:51:20Z
xd
Avatar
Free bsd is da real os
22:51
A good os has a good license
Avatar
Oh also, I got whacked in the head so hard with an oculus controller that I think I lost like half my brain cells
22:52
it's been almost 7 hours and I still have a headache ZhongliConcern
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:53:14Z
@nouaa oh wait you want something for a teacher? i just red it. Should i explain what my madness of commands do? But if u wanna impress some teacher dont use ugly bash hax use a proper css selector like lerato said beautifulsoup or similar
Avatar
Avatar
[quakenet] ChillerDragon
@nouaa oh wait you want something for a teacher? i just red it. Should i explain what my madness of commands do? But if u wanna impress some teacher dont use ugly bash hax use a proper css selector like lerato said beautifulsoup or similar
well, would be perfect if you could explain your magic brownbear
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:57:00Z
well u know grep rite?
Avatar
not really
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 22:57:36Z
xd nice
22:57
it gud to search text
22:57
so i started by opening the dev tools in ma browser https://zillyhuhn.com/cs/.1668984937.png
22:57
then i saw the span element with the class
22:58
i picked the class and checked in vscode that it was the first occurence
22:58
so i did grep for that said class meaning i was searching the line where the class occurs
22:58
grep -o "c-instrument c-instrument--last.*"
22:59
at the end i put a .* to match anything that follows
22:59
in the beginning i specified the -o flag to only display what matched
22:59
that basically hides all the span junk on the left
22:59
then i piped the result into head using a | pipe character
22:59
meaning the output of my search which is a bunch of lines all containing the classes will be passed to the other command
23:00
head is nice to show the beginning of a textfile
23:00
head -n1 gives you only the first line
23:00
-n2 would give u the first 2 lines for example
👍 1
23:00
since that class is used multiple times and our interest is the first hit we good
23:01
now we are left with some junk on the right hand side
23:01
using cut with the delimiter < and > you can cut of those
23:01
lemme send some screen of the individual commands maybe that makes some sense
23:02
Avatar
hmm I see
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:03:44Z
but this bad flex for teacher xd
Avatar
lol exactly
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:03:54Z
what kind of assignment is that even?
23:04
what tech did u learn to solve that?
Avatar
well, I was a little advanced so he gave that to me (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:04:57Z
23:05
thats more good style i would say
23:05
but takes much longer to write than bash
23:05
bash is always faster
Avatar
hmm i see, ruby seems to be really useful for that stuff
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:06:04Z
doesnt rly matter if its ruby, javascript or python in my opinion
23:06
it all boils down to the same thing
23:06
so it depends on what your teacher taught you to solve this xd
23:06
advanced in wat?
Avatar
well, he didn't teach us anything, that's the funny thing about him, he just asked for a result and we have to give him the result he wanted
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:08:53Z
what kind of teacher is that?
23:08
school?
23:08
what subject? xd
Avatar
Avatar
[quakenet] ChillerDragon
what subject? xd
IT in general i would say, one day we take a look at db stuff, another day he wants a script to do something etc..
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:11:28Z
Yea i would say if you were interested in that scraped value to stalk it being changed both my approaches should work okay, But as for your assignment i think there is no hope :D
Avatar
he basically asked for a script that would get the value of something and then put that value in a compressed file with the date as name and send the archive somewhere on a server
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:13:38Z
wtf
23:13
thats like a lot of stuff
Avatar
well, kinda doable in 3 hours
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:14:13Z
depends on what you know
23:14
also what server xd
Avatar
that's why i like this noob, even he something doesn't know how to solve his own problems lol
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:15:12Z
i mean its basically just 3 more bash commands and you done but still your teacher seems confused xd
Avatar
Avatar
[quakenet] ChillerDragon
also what server xd
was a local one located at the school
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:16:16Z
those kind of tasks is where bash really shines
23:16
i mean file io is literally 1 character with 0 setup or depedencies
23:16
xd
Avatar
Avatar
[quakenet] ChillerDragon
i mean its basically just 3 more bash commands and you done but still your teacher seems confused xd
I'll never forget the kind of t-shirts he wears lol, once he came to school with one that said "I could change the whole world if you give me the source code" lmaoo
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:17:30Z
for compression your have the 3 letter command zip for uploading it to the server you have the 3 letter command scp and generating a date is also not too tricky
Avatar
Avatar
[quakenet] ChillerDragon
for compression your have the 3 letter command zip for uploading it to the server you have the 3 letter command scp and generating a date is also not too tricky
i used tar for compressing, kinda do the same thing
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:18:10Z
ye
23:18
is that like classical school school? like highscool or something?
23:18
i would have had so much fun in that class xd
23:19
ah wait i think i barley knew anything back then i probably would be super lost nvm
Avatar
date was kinda tricky, I used smth like that "$(date +"%d-%m-%y-%H-%M-%S")"
Avatar
Avatar
[quakenet] ChillerDragon
is that like classical school school? like highscool or something?
yeah highschool
23:20
IT school or whatever you call it xD
23:21
we learn mainly networking & some cool stuff
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:23:21Z
yea depending on what kind of date you want but also then you can just google for the format
Avatar
sure, anyways! was great to talk with ya nobo
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:23:39Z
my fav is this date '+%F'
23:23
ye if u got more bash questions lemme know xd
Avatar
yes, "daddy" (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:24:04Z
UwU
Avatar
Demo seeking for percent positions and relative time was choppy, when the first and last ticks of the demo are very large but close together (e.g. with 1308908156 to 1308905658, which are close to integer limit). During the calculation of WantedTick both operands were promoted to floats, which caused the information of the smaller operand, i.e. the seeked percentage or relative time, to be mostly lost, so seeking was very inaccurate. This is fixed by rounding the float operand to int ...
Avatar
now let's stop flooding this channel with my bullshit twinbop
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:32:23Z
u emoting madlads confused poor file command into thinking this chat log is binary data? xd
23:32
Avatar
Avatar
[quakenet] ChillerDragon
omg jopstar vulkan shaders completley rape my vps :( https://zillyhuhn.com/cs/.1668980409.png @Jupstar ✪ why does it need like a zillion processes like no chill it freezes the whole vps
theoretically, this should probably be done as a build step, not as a build generation step
23:32
(ChillerDragon)
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:32:40Z
wouldnt help
23:32
vps ded either way huh?
23:33
i feel like it actually died so hard all tw servers that were running crashed but idk how that would have made sense so im probably wrong
23:37
ah no its not emojis xd
23:37
23:37
i assume this causes it
Avatar
why is that not an default :c
because I can't guess whether you want IPv6 or IPv4
23:39
ChillerDragon: or rather, because you won't be happy with my guess that it's ipv6 only
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:39:54Z
do we have a ipv6 supremacists overhere? xd
23:40
imo its sane to go with ipv4 as default
23:40
rather than crash the server
Avatar
I'll not produce software that works better on ipv4 than on ipv6
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:41:10Z
xd
23:41
yo btw whats your opinion on 0.7?
Avatar
why would running it as build step not help with the vulkan shaders stuff?
23:41
that way, you get the concurrency you specify
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:41:50Z
a
23:41
sure that would be nice
Avatar
ChillerDragon: what do you mean "opinion on 0.7"?
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:42:20Z
as in opinion on ipv4 vs ipv6
Avatar
teeworlds seems to be more dead than usual
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:42:22Z
xd
23:42
0.7 in ddnet?
Avatar
I like adding support for more software
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:42:52Z
or do you want to drop vanilla support
23:43
teeworlds seems to be more dead than usual
23:44
i think part of the reason is that ddnet client users get tired to switch client
23:44
your QUICC stuff kinda sounded like you want to drop vanilla support but im not sure
23:45
thats why i am asking if you care about ddnet <-> teeworlds compabilitiy
Avatar
I want to add a new way to establish a connection
23:47
it will be incompatible with the old ones, yes
23:47
I didn't want to drop support for the old ones
Avatar
[quakenet] ChillerDragon BOT 2022-11-20 23:49:26Z
ok u dodge me it fine
23:49
good nite :)
Avatar
I don't understand your sentence
23:50
good night though
Avatar
26e35d3 Fix choppy demo seeking when start/end ticks are very large - Robyt3 7020cbf Merge #6064 - bors[bot]
Exported 565 message(s)