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 2024-01-04 00:00:00Z and 2024-01-05 00:00:00Z
Avatar
just wondering if the ddnet http master server enforces the ScoreKind value in the form of an enum?
00:13
specifically a case sensitive enum?
00:16
there is one server in the list having a score kind of "Points" instead of, I'd guess, "points". https://master1.ddnet.org/ddnet/15/servers.json tw-0.6+udp://49.13.166.125:8303 (edited)
Avatar
Avatar
jxsl13
just wondering if the ddnet http master server enforces the ScoreKind value in the form of an enum?
DDNet client recognises any string starting with "points" or "time" (case-sensitive). But the master server is free-form JSON, so you could send whatever you want. https://github.com/ddnet/ddnet/blob/022cae6f20bdf9d997238906c056de953197f662/src/engine/shared/serverinfo.cpp#L91-L98
πŸ‘ 1
Avatar
the whole info is free-form as @fokkonaut said
Avatar
Avatar
heinrich5991
the whole info is free-form as @fokkonaut said
what
Avatar
@furo *
Avatar
yo fokko
00:58
fokkonaut when he did not say that
Avatar
hello
Avatar
https://github.com/ddnet/ddnet/assets/141338449/8505f576-fb73-4308-aef0-a745dd67e31c This happens because the broadcast is sent before the client knows the current tick. Which means m_BroadcastTick will be set to 500 (which is the current tick (0) + 10 seconds). But then the client will receive its first snapshot which will set the correct tick (causing the broadcast to disappear).
Avatar
Avatar
Ewan
fokkonaut when he did not say that
Avatar
Precisely
Avatar
chillerdragon BOT 2024-01-04 06:59:37Z
fun police
Replying to @heinrich5991 only use percentages if you know the stats
Avatar
ssd prices are going up
07:15
should have bought the pcie 5.0 drive when i had the chance
Avatar
chillerdragon BOT 2024-01-04 07:16:50Z
The value of your currency is going down
07:19
should have bought the döner when i had the chance (edited)
Avatar
morning eu devs
07:32
and hi na devs with bad sleep
Avatar
Jupstar βœͺ 2024-01-04 07:52:28Z
And hi Chinese devs that never sleep
Avatar
Avatar
Ewan
ssd prices are going up
Jupstar βœͺ 2024-01-04 07:52:37Z
Yeah rip
Avatar
what should i make in rust
08:03
that takes like a few hours
08:03
something stupid and small
Avatar
game of life
08:06
with miniquad
Avatar
what is miniquad
Avatar
Avatar
Ewan
that takes like a few hours
Jupstar βœͺ 2024-01-04 08:11:37Z
Compile hello world
Avatar
takes 5 seconds
Avatar
Jupstar βœͺ 2024-01-04 08:12:34Z
Compile hello world, but use lifetimes
Avatar
Jupstar βœͺ 2024-01-04 08:13:19Z
I dunno. I try to introduce you to rust stuff
Avatar
with lifetimes ¿
Avatar
Jupstar βœͺ 2024-01-04 08:13:50Z
Yes
Avatar
Cross platform rendering in Rust. Contribute to not-fl3/miniquad development by creating an account on GitHub.
08:14
a simple rendering lib
Avatar
Jupstar βœͺ 2024-01-04 08:14:11Z
Create a struct that holds references
08:14
Good first challenge
Avatar
ah wait
08:14
its macroquad
08:14
Cross-platform game engine in Rust. . Contribute to not-fl3/macroquad development by creating an account on GitHub.
08:14
well both work
Avatar
Jupstar βœͺ 2024-01-04 08:14:53Z
Use nano quad
Avatar
macroquad is the simple one
08:15
for game of life it makes is ez
08:15
use macroquad::prelude::*; #[macroquad::main("BasicShapes")] async fn main() { loop { clear_background(RED); draw_line(40.0, 40.0, 100.0, 200.0, 15.0, BLUE); draw_rectangle(screen_width() / 2.0 - 60.0, 100.0, 120.0, 60.0, GREEN); draw_circle(screen_width() - 30.0, screen_height() - 30.0, 15.0, YELLOW); draw_text("IT WORKS!", 20.0, 20.0, 30.0, DARKGRAY); next_frame().await } }
08:16
Rust's async/await is used to solve just one problem - cross platform main loop organization.
Avatar
Jupstar βœͺ 2024-01-04 08:22:50Z
I smell JavaScript xd
Avatar
this looks like canvas
08:29
i have to add rustup binaries to my msys path real quick
08:31
can u change rustup install path
Avatar
ChillerDragon BOT 2024-01-04 08:32:15Z
windows user
Avatar
ChillerDragon BOT 2024-01-04 08:33:02Z
msys is windows!
08:33
it's on windows
08:33
im reconsidering just getting rust thru pacman tbh
08:33
it's nice being able to select toolchain but it's not nice having to switch between them
Avatar
ChillerDragon BOT 2024-01-04 08:33:48Z
just use linux
08:33
at least WSL
08:33
not msys
Avatar
ChillerDragon BOT 2024-01-04 08:34:02Z
its the better fake linux xd
Avatar
Jupstar βœͺ 2024-01-04 08:34:03Z
????
Avatar
how do u think WSL works
Avatar
ChillerDragon BOT 2024-01-04 08:34:33Z
msys is weird
Avatar
Avatar
Ewan
i have to add rustup binaries to my msys path real quick
Jupstar βœͺ 2024-01-04 08:34:40Z
Why do u need it in msys path
Avatar
to use it from msys shell
Avatar
Jupstar βœͺ 2024-01-04 08:34:48Z
Do you need c compile?
Avatar
i need to type cargo and for cargo to do cargo things
08:35
and not /c/Users/ewan/.cargo/bin/cargo
Avatar
Jupstar βœͺ 2024-01-04 08:35:23Z
Use vscode terminal
08:35
does that solve
08:35
vscode terminal is msys πŸ˜ƒ
Avatar
ChillerDragon BOT 2024-01-04 08:35:43Z
export PATH="$PATH:$HOME/.cargo/bin/cargo works in bash and WSL
Avatar
Jupstar βœͺ 2024-01-04 08:35:50Z
I dunno. I installed rustup and it just worked xd
Avatar
ChillerDragon BOT 2024-01-04 08:35:57Z
foggo
Avatar
rustup installs to Windows ""home path""
08:36
which is just user path
08:36
which is not how it's supposed to work
Avatar
cough woke me up
08:36
im mad !
Avatar
ChillerDragon BOT 2024-01-04 08:36:23Z
quit smoke
Avatar
windows actually has local app data paths per-user but ignorant freedesktop nerds insist on doing ~/.whatever
Avatar
im sick a little
Avatar
ChillerDragon BOT 2024-01-04 08:36:38Z
quit sick
Avatar
fucked up
Avatar
ChillerDragon BOT 2024-01-04 08:37:09Z
omg im stalling again
08:37
shit talking in irc is just so much more fun than debugging snaps
Avatar
anyway chiller wsl is just a linux vm with a shitton of windows integration
08:37
it's not native
08:37
i can't compile for windows using wsl
Avatar
ChillerDragon BOT 2024-01-04 08:37:37Z
yes
Avatar
so why would i use it for windows dev
Avatar
ChillerDragon BOT 2024-01-04 08:37:49Z
but wsl at least is linuxer than msys
Avatar
wsl is for linux dev on windows
Avatar
ChillerDragon BOT 2024-01-04 08:37:57Z
why would u do windows dev?
Avatar
i do it often
08:38
compiling ddnet native for windows is also windows dev
Avatar
Avatar
Ewan
so why would i use it for windows dev
so why should someone be geh
Avatar
ChillerDragon BOT 2024-01-04 08:38:29Z
just run ddnet via wsl
08:38
for extra fps
Avatar
you would get like 4 fps
Avatar
ChillerDragon BOT 2024-01-04 08:38:42Z
windows issue
Avatar
i dont think u know how it works πŸ˜ƒ
Avatar
ChillerDragon BOT 2024-01-04 08:38:55Z
-.-
08:38
rude im windows pro
08:39
tbh idk how msys works
08:39
but from what i understood its weird
Avatar
do u know cygwin
Avatar
ChillerDragon BOT 2024-01-04 08:39:23Z
ye
Avatar
msys is cygwin on crack
Avatar
ChillerDragon BOT 2024-01-04 08:39:29Z
also super fucked
Avatar
be that as it may it's really helpful for people who still want to do real windows development while not dealing with horrible windows development tools
08:40
it's all ease of use
08:40
it's not really intended to emulate linux
Avatar
ChillerDragon BOT 2024-01-04 08:40:09Z
cygwin/msys is a horrible windows development tool in it self
Avatar
Avatar
Ewan
windows actually has local app data paths per-user but ignorant freedesktop nerds insist on doing ~/.whatever
windows should do the unix way anyway
Avatar
it's basically the same thing it's just a different path
Avatar
anyway i did the sin of using rust in windows
08:40
and it worked out of the box
08:40
idk why ur so picky
Avatar
you are not using msys or mingw toolchain
08:41
u are using powershell and shit...
08:41
with msvc
Avatar
ChillerDragon BOT 2024-01-04 08:41:08Z
if windows
08:41
go windows
08:41
it has win in the name
Avatar
why u using mingw then
08:41
make ur life hard on a shitty OS
Avatar
bcs mingw integrates best with msys
Avatar
ChillerDragon BOT 2024-01-04 08:41:24Z
powershell > cygwin
08:41
oh yeah
08:41
chillerdragon: comparing apples to oranges
Avatar
ChillerDragon BOT 2024-01-04 08:41:43Z
:p
Avatar
cygwin just runs bash
08:41
by default...
Avatar
Avatar
Ryozuki
make ur life hard on a shitty OS
so much negativity
Avatar
yes im a win hater
08:41
nothing new
Avatar
using windows tools would be making my life harder
Avatar
hater of everything
Avatar
ChillerDragon BOT 2024-01-04 08:42:13Z
we need a #windows channel
Avatar
no i like rust and anime
08:42
and dota
Avatar
except that
Avatar
and ur mom!
Avatar
ChillerDragon BOT 2024-01-04 08:42:30Z
wowo
Avatar
wowowowo
Avatar
weeb detected
Avatar
ChillerDragon BOT 2024-01-04 08:42:41Z
ryowo
Avatar
ryouwu
08:43
ryowuki
Avatar
ChillerDragon BOT 2024-01-04 08:43:07Z
ryOwOzoozki
Avatar
Senseiwu
Avatar
ChillerDragon BOT 2024-01-04 08:43:19Z
NO GIFS IN DEVELOPER
Avatar
ChillerDragon BOT 2024-01-04 08:43:24Z
fun police!
Avatar
fokkonaut why do u know who that is xd
08:43
he is from my childhood
08:43
u 80 yrs old
Avatar
hm, because he's from my childhood aswell
Avatar
but ur 80
Avatar
not exactly
Avatar
ChillerDragon BOT 2024-01-04 08:44:07Z
yea idk u probably have your reasons to run windows @Ewan i still love you <3
Avatar
i do too !
Avatar
ChillerDragon BOT 2024-01-04 08:44:26Z
fokko u lost soul
08:44
u still use visual studio to code?
08:44
the bloatest of all editors
Avatar
vs is good if you're doing very specific things
08:45
but im not doing very specific things
Avatar
Avatar
Ewan
vs is good if you're doing very specific things
its only good for c# because they designed the language to only work with that ide
Avatar
just lazy
Avatar
how is that
Avatar
altho i used c# with vscode, but editing cproj files sucks
08:45
and sln even worse
Avatar
ChillerDragon BOT 2024-01-04 08:45:25Z
the time you wait for vs to start i already reopend vim/vscode 3 times and wrote 2 lines of code
Avatar
did u ever try to add embedded resources manually in c#
08:45
makes u wanna kys
Avatar
u just edit some xml
Avatar
ChillerDragon BOT 2024-01-04 08:45:45Z
can vs even do file or str in file search nowerdays?
Avatar
or more realistically call msbuild with some params no?
08:45
u can use nuget and msbuild on command line
08:45
get the vs build tools
08:45
and be a c# beast
Avatar
msbuild is old bro
08:46
today its called
08:46
dotnet
Avatar
ChillerDragon BOT 2024-01-04 08:46:07Z
i can not imagine coding without ctrl+p and ctrl+shift+f from vscode
Avatar
Avatar
Ewan
get the vs build tools
no bro
08:46
im on gentoo
Avatar
figuratively
Avatar
anyway i did my ffxi v plugins with dotnet
08:46
the tooling is way behind what cargo offers
08:46
im so spoiled by rust
08:48
today is office day sadly
Avatar
sorry ryo ewan@machine ~> pacman -S mingw-w64-ucrt-x86_64-rust
Avatar
Avatar
Ryozuki
im so spoiled by rust
Avatar
which means i have to go to office and use my mac m1
08:48
instead of my glorious gentoo
08:50
i lost my vscode wrapper script 😒
08:52
i can't do code .
Avatar
ws-client BOT 2024-01-04 08:53:57Z
<ChillerDragon> dude C++ is literally a high level scripting language this is so fun const char aaFields[][16] = {"m_X", "m_Y", "m_ClientID", "m_Angle", "m_HealthAmount", "m_ArmorAmount", "m_Self"};
Avatar
this is novel to u xD
Avatar
ChillerDragon BOT 2024-01-04 08:55:01Z
not rly xd
Avatar
initializer list
Avatar
ChillerDragon BOT 2024-01-04 08:55:07Z
but still find it very cool
08:55
it is pretty cool
Avatar
ChillerDragon BOT 2024-01-04 08:55:36Z
08:55
i was able to spice up my dbg output with annotations in a few seconds
08:56
a few years ago i would only have tried something like that in a scripting language for a quick debug
Avatar
Avatar
Ryozuki
today is office day sadly
Jupstar βœͺ 2024-01-04 08:58:20Z
So you fly to Argentina? 😬
Avatar
chillerdragon BOT 2024-01-04 08:58:57Z
wot ryo office in argentina?
08:59
there is a office in barcelona
Avatar
chillerdragon BOT 2024-01-04 08:59:16Z
buisness trip
Avatar
but ye
08:59
ill go there 1 week
08:59
business trip
Avatar
ChillerDragon BOT 2024-01-04 08:59:29Z
wowo
Avatar
fucked up
Avatar
ChillerDragon BOT 2024-01-04 08:59:32Z
they pay flight?
Avatar
ofc otherwise i dont go
Avatar
Avatar
Ryozuki
ill go there 1 week
Jupstar βœͺ 2024-01-04 08:59:40Z
Wtf
Avatar
Jupstar βœͺ 2024-01-04 08:59:48Z
Wtf
Avatar
ChillerDragon BOT 2024-01-04 08:59:54Z
nice ryowo
Avatar
they also recently got a new office there
09:00
4 story
Avatar
Jupstar βœͺ 2024-01-04 09:00:16Z
Chiller when do we start a startup
Avatar
ddcompany
Avatar
ChillerDragon BOT 2024-01-04 09:00:33Z
if i was rich i would start a money burning tw company
Avatar
tw is old
Avatar
ChillerDragon BOT 2024-01-04 09:00:43Z
pay ppl to have fun and dev tw
Avatar
its dd now
Avatar
Jupstar βœͺ 2024-01-04 09:00:46Z
So you do that?
09:00
Because u are rich
Avatar
ChillerDragon BOT 2024-01-04 09:00:54Z
no profits
09:01
.-.
Avatar
sell unbans
Avatar
ChillerDragon BOT 2024-01-04 09:01:13Z
axaxax
Avatar
why u laugh like a russian
Avatar
Jupstar βœͺ 2024-01-04 09:01:27Z
I'm OK with enough money to survive.. When do we start?
Avatar
ChillerDragon BOT 2024-01-04 09:01:43Z
russian laugh best
09:01
jopstibobsti i am not rich
09:02
i am literally unemployed
Avatar
Jupstar βœͺ 2024-01-04 09:02:07Z
But rich
Avatar
economy is fucked up in argentina but apparently meat is cheaper than coffee
Avatar
ChillerDragon BOT 2024-01-04 09:02:14Z
But not rich
Avatar
Jupstar βœͺ 2024-01-04 09:02:20Z
Ofc
Avatar
ChillerDragon BOT 2024-01-04 09:02:30Z
ur lawyer jopsti
Avatar
Jupstar βœͺ 2024-01-04 09:02:34Z
I'm your brother
Avatar
ChillerDragon BOT 2024-01-04 09:02:34Z
ur financial advisor jopsti
09:02
but ur not sherlock jopsti
Avatar
Jupstar βœͺ 2024-01-04 09:02:43Z
I share your thoughts
Avatar
chiller how can u live unemployed
09:02
no wonder u got so much time u spend it on 0.7
Avatar
ChillerDragon BOT 2024-01-04 09:03:00Z
burn through savings xd
Avatar
ChillerDragon BOT 2024-01-04 09:03:04Z
like a true degenerate
09:03
who needs pension anyways
Avatar
get a rust job
Avatar
ChillerDragon BOT 2024-01-04 09:03:20Z
live fast die young
Avatar
get a bash job
Avatar
ChillerDragon BOT 2024-01-04 09:03:28Z
xd
Avatar
Im gonna make coffee
Avatar
@Ewan americano?
09:03
xd
09:04
i will make probably the most american coffee
Avatar
Avatar
Ryozuki
get a rust job
Jupstar βœͺ 2024-01-04 09:04:03Z
Give me one
Avatar
vanilla latte
Avatar
ChillerDragon BOT 2024-01-04 09:04:09Z
vanilla pog
Avatar
i think american caffee is watered down
Avatar
ChillerDragon BOT 2024-01-04 09:04:23Z
water pog
Avatar
pour-over/americano is not like
09:04
watered down
09:04
it's just made more watery
Avatar
Jupstar βœͺ 2024-01-04 09:04:35Z
Chiller burns through lot of savings
09:04
chiller buying prostitutes on vacation
Avatar
ChillerDragon BOT 2024-01-04 09:04:51Z
not a lot and i will start working soon again -.-
09:05
do u live by urself chiller
09:05
or u in ur parents mega house
Avatar
i thought that opening a folder with a cargo.toml would make vscode turn it into like a rust workspace
Avatar
ChillerDragon BOT 2024-01-04 09:05:17Z
._.
09:05
i life on a yard
09:05
wait
Avatar
Avatar
Ewan
i thought that opening a folder with a cargo.toml would make vscode turn it into like a rust workspace
well it makes rust-analyzer work with vscode
Avatar
ChillerDragon BOT 2024-01-04 09:05:44Z
how to type it xd
Avatar
Avatar
Ryozuki
well it makes rust-analyzer work with vscode
is that all
Avatar
rust-analyzer does all
09:06
it provides the lsp func to vscode
09:06
like refactoring
09:06
etc
Avatar
ChillerDragon BOT 2024-01-04 09:06:18Z
Avatar
ChillerDragon BOT 2024-01-04 09:06:24Z
i live here
Avatar
but it doesn't seem to provide build integration
Avatar
ChillerDragon BOT 2024-01-04 09:06:29Z
in munich river
Avatar
@Ewan ah xd
09:06
i just do cargo b
09:06
build
Avatar
ye short
Avatar
i just do cargo run
Avatar
do cargo r
09:06
its cooler
09:07
swag
Avatar
i can save 2 fetmoseconds not having to type 'un'
Avatar
cargo r runs in debug build
09:07
cargo r --release
09:07
for release speed
Avatar
ChillerDragon BOT 2024-01-04 09:07:26Z
jopsti when come to munich?
Avatar
all that brevity but u still have to type --release
09:07
do they havea short arg for it
Avatar
well thats for release build
Avatar
cargo r -r///
Avatar
which for dev u dont want much
Avatar
Jupstar βœͺ 2024-01-04 09:07:56Z
Chiller then u opened our office in Munich
09:07
When
Avatar
cargo check
Avatar
Jupstar βœͺ 2024-01-04 09:08:08Z
As soon as
Avatar
ChillerDragon BOT 2024-01-04 09:08:08Z
.-.
Avatar
cargo clippy
09:08
cargo fmt
09:08
cargo audit
09:08
cargo add
09:08
cargo yourmom
Avatar
ChillerDragon BOT 2024-01-04 09:08:33Z
xd
Avatar
cargo doc --open
09:09
cargo install to install locally the binary
Avatar
ChillerDragon BOT 2024-01-04 09:09:21Z
jopstibobsti
09:09
imagine that company
Avatar
company must be named RustWorks
Avatar
erm i thought u could include like any dependency just by name in cargo.toml
Avatar
ChillerDragon BOT 2024-01-04 09:09:54Z
we hire some non tw project manager and hr ppl and then its a regular office job with sprints and shit
Avatar
why i type microquad = "any" and it doesnt work
Avatar
ChillerDragon BOT 2024-01-04 09:10:19Z
and there will be useless teams meetings about ddnet features
Avatar
Avatar
Ewan
erm i thought u could include like any dependency just by name in cargo.toml
yeah
Avatar
Avatar
Ewan
why i type microquad = "any" and it doesnt work
any is not valid
09:10
if u want to mimic any use "*"
Avatar
but i recommend u just do
Avatar
"cargo add microquad
09:11
but
Avatar
use macroquad
Avatar
i dont wanna use macroquad
09:11
bloat
Avatar
its simpler
09:11
idk what microquad does
09:11
@Ewan the dep versions follow semver
09:11
1.0.0
09:11
is ^1.0.0
09:11
if omitted
09:12
which means it can pick any 1.x.y
Avatar
Jupstar βœͺ 2024-01-04 09:13:27Z
Chiller would be OK for new
09:13
Me
09:13
I'm motivated
09:13
But I'm also open for other stuff.. How about some vulkan stuff
Avatar
are there not pretty errors in the ide
09:14
just command line output
Avatar
ChillerDragon BOT 2024-01-04 09:14:24Z
ye sure jopsti u can do watever u want
Avatar
Jupstar βœͺ 2024-01-04 09:14:38Z
Nice
09:14
Let's change the future to something awesome
Avatar
i forgot to make my coffee
Avatar
ChillerDragon BOT 2024-01-04 09:15:05Z
omg ewan xd
Avatar
ChillerDragon BOT 2024-01-04 09:15:21Z
notin
Avatar
new years resolution: more gym and more rust
09:15
justatest
Avatar
ChillerDragon BOT 2024-01-04 09:15:42Z
classic
09:15
gyms love new year
09:15
free money
Avatar
i havent seen many new ppl
Avatar
ChillerDragon BOT 2024-01-04 09:16:08Z
they dont show up
09:16
just buy member ship
09:16
it's just giving me uncolored command line soup
Avatar
i go at 8:30
Avatar
Avatar
Ewan
it's just giving me uncolored command line soup
what is
09:16
pic
Avatar
show coc
Avatar
i dont wanna read that
09:16
justatest
09:16
i want good looking errors
Avatar
in a list view
09:17
rust analyzer ux fail
Avatar
this happens becauseu have a malformed cargo toml
Avatar
the error itself is not the issue
Avatar
rust-analyzer is not meant to be seen at all
09:17
it needs a bare minimum to work, which is a working cargo.toml XD
Avatar
[package] name = "gameoflife" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] microquad = "*"
09:17
what broken
Avatar
microquad doesnt exist
09:18
pls
09:18
use
Avatar
i cargo add
Avatar
macroquad
Avatar
i dont wanan use macrowuad
09:18
o
09:18
it's miniquad
09:18
XDD
09:18
it DOESNT EXIST
09:18
ah
09:18
xd
09:18
the issue was not my gripe
09:18
i just dont wanna see command line outpput unless it's interactive
Avatar
u always manage to make me mad
09:18
@Ewan but thats not cli output
09:18
at all
09:19
its the LSP server output
09:19
from vscode
Avatar
so ur blatanly wrong
09:19
trying to find stuff to pick on
Avatar
so how do i see the errors
Avatar
on the editor itself like any fucking ide
Avatar
there was red at the bottom and i clicked it and the lsp pane came up
09:19
u never used vscode right
09:19
this is not a rust issue this is a ewan issue
09:20
never said it was rust issue
09:20
i never used vscode for more than text editing
09:20
but i wonder how i can get my errors to look like this
09:20
sorted and stuff
09:20
isolated
09:20
and not in text soup
Avatar
there is
09:20
OMG
09:20
stop
09:20
stop
09:20
ur making me mad
09:21
sorry
Avatar
im not trying to make u mad
09:21
oh
09:21
that's good
Avatar
i already told u
09:21
the text soup u seen
09:21
is cuz the LSP crashed
09:21
because u had malformed cargo.toml
09:21
when the LSP works u get the language errors
09:21
big w
09:21
i didnt realize it was problems pane
Avatar
Avatar
Ryozuki
is cuz the LSP crashed
i didnt rlize thats what u were saying xd
09:22
this part at the bottom was red with an x next to it
Avatar
if its red it means it crashed
Avatar
so i thought that meant rust-analyzer was trying to tell me something
09:22
ic
09:23
wow miniquad has to hog main loop justatest
09:23
just for simple graphics
Avatar
i quoted that part
09:23
its to become cross platform
09:23
to handle the main loop
09:24
so i can only act when i get an event
09:24
not fresh or funky...
Avatar
i told u
09:24
use macroquad
09:24
u dont listen
09:24
idk how miniquad works
Avatar
u tell me to use macroquad but u dont tell my why
Avatar
because its simple af and ppl at my company use it
09:25
when making gameoflife
09:25
as training
09:25
for rust
Avatar
all i need is simple rendering so why would i use the whole game engine
09:25
just cuz it's simpler doesn't mean it's better
Avatar
but it is
09:25
for gods sake
09:25
why u ask for help
09:25
if u reject it
09:25
im off
09:25
i will use macroquad
09:26
i appreciate u trying to help me but it does not help when u try and blindly guide
09:26
without explaining
09:27
ok follow this
09:27
and thats it
Avatar
it teaches u 2 things
09:28
rust and how to use it with wasm
09:28
well idk if it teaches most rust basics
Avatar
i read some of it
Avatar
Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries.
09:28
there is also this
Avatar
i think i read some of both of those xd
09:28
and got bored
09:29
i will try to read them again
Avatar
but its important u read the book part on lifetimes
09:29
this one tells u about cargo
09:29
which i had to tell u
09:30
FEARLESS CONCURRENCY
Avatar
jesus christ
Avatar
im suffocating
09:30
in blue text
09:30
making a MT web server
Avatar
sounds cool
Avatar
its cool
09:31
hope u convert to the religion soon
09:31
and sry for getting irritable
09:31
im not made to help ppl i think
09:31
i understand it
Avatar
specially if i think they have ulterior motives
09:32
to complain about everything
09:32
xd
09:32
which may not be the case
09:33
@Ewan but im surprised u never rly used vscode
09:33
i thought uwere trolling me
Avatar
i have used it but just for text editing
09:33
not as ide
09:33
just as a replacement for notepad++
Avatar
vscode uses LSP servers
09:33
to have ide features
09:33
for c++ its clangd or the microsoft shitty one
09:34
and the output tab in vscode is not interactive and not a terminal
09:34
it just shows the output of the language server
Avatar
or the output u select
Avatar
i get that now
Avatar
i recommend u get Swellaby.rust-pack
Avatar
what does it do
Avatar
its a pack of 3 extensions
09:35
it has
09:35
rRust Extension Pack v0.3.38
09:35
it has rust-analyzer
09:35
crates
09:35
and even better toml
Avatar
i may have already had even better toml
Avatar
btw vscode supports running rust tests like a ide
Avatar
oh yeah i also used vscode as a remote debugger for my web
09:36
in firefox
09:36
it was neat
Avatar
Avatar
Ryozuki
btw vscode supports running rust tests like a ide
how
Avatar
but u can enhance it
09:37
with a extension
09:37
Rust Test Explorer
Avatar
Avatar
Ewan
how
make a unit test in rust
09:37
and it shows a fly text
09:37
or whathever it is called
09:39
smh macroquad
09:39
no regard for high dpi
09:39
how do i add windows manifest in rust
09:39
without mt
09:40
there's a crate for it but i have to use a build script
09:40
hmmm
09:40
almost wonder if i should use the winapi function instead
Avatar
build script isnt bad
09:42
dont think like c++
Avatar
i wouldn't typically use the api call in cpp either
09:43
i would just use the build system to embed the manifest xml
Avatar
The embed-manifest crate provides a straightforward way to embed a Windows manifest in an executable, whatever the build environment and even when cross-compiling, without dependencies on external tools from LLVM or MinGW.
09:43
im on that page rn
Avatar
using a crate in rust
09:43
is normal
09:43
dont be like c++
09:43
where using a dep is seen as bothersome
09:44
cargo add --build embed-manifest
09:45
the build.rs file
Avatar
is where Cargo.toml is
09:45
not inside src/
Avatar
should it add that by default when i try to build it
09:45
or should i make the file
Avatar
i made the file
Avatar
to use embed-manifest u need to make the build.rs file
09:46
and put the code
Avatar
and idk how winshit works with manifests
09:46
do ur manifest thing
Avatar
when i do cargo init it makes main.rs
09:46
so i just was not sure
09:47
if it would make build.rs when [build-dependencies] is populated
Avatar
u make the file
09:47
right click in vscode
09:47
create file
Avatar
i made the file
09:47
already
09:47
i just wanted to clarify what my question was
09:47
owo
Avatar
did u put the code
Avatar
well it got good docs
09:47
so just read em
Avatar
it has dpi now?
Avatar
Avatar
Ewan
splendid
i dislike ur color scheme
09:51
Avatar
Avatar
Ryozuki
Click to see attachment πŸ–ΌοΈ
real people uses word
Avatar
Avatar
Ryozuki
it has dpi now?
without
09:53
u need to flag ur app as dpi aware otherwise windows will scale it
Avatar
Avatar
Ryozuki
Click to see attachment πŸ–ΌοΈ
seethe
09:54
cope
09:54
just kidding
09:54
i don't much love dracula either but nobody makes themes for my preferred scheme
09:56
idk if i want to do game of life anymore justatest
Avatar
okay so it actually seems like macroquad does have high-dpi functionality but when you enable it, it just... scales the shit down to counteract windows scaling
10:27
is there a way for crates to insist on build script steps
10:27
as a prerequisite
10:27
or just do it themselves ig
Avatar
Avatar
Ryozuki
i dislike ur color scheme
True, all gigachads use rose pine (edited)
Avatar
what should i do instead
Avatar
Jupstar βœͺ 2024-01-04 11:25:20Z
@Ewan stop wasting your time and implement proc macros
Avatar
what is that
Avatar
Jupstar βœͺ 2024-01-04 11:26:05Z
The power house of rust
Avatar
what's so powerful
Avatar
Jupstar βœͺ 2024-01-04 11:26:58Z
You can literally play ddnet in them
Avatar
idk what a proc macro is
Avatar
Jupstar βœͺ 2024-01-04 11:28:43Z
Read rust doc about it
11:28
interest lost
Avatar
Jupstar βœͺ 2024-01-04 11:29:02Z
It allows you to transform any input in any valid rust output
11:29
It does so by allowing you to write your own mini compiler
11:35
3c92943 Fix crash on editor autosave - archimede67 4f89a4d Merge pull request #7749 from archimede67/editor-fix-autosave-crash - def-
Avatar
idk wat to do
11:44
bored
11:44
idk about proc macros
11:44
seems weird to implement with nothing else
11:45
are they just functions which you can use to return an actual code expression
Avatar
abc7b60 Avoid copying texture memory when possible - Robyt3 ca9c4f5 Merge pull request #7757 from Robyt3/Graphics-LoadTexture-Move - def-
Avatar
Avatar
Jupstar βœͺ
It does so by allowing you to write your own mini compiler
γ‚’γƒͺヂン 2024-01-04 12:26:28Z
do you also get to write your own borrow checker?
Avatar
Avatar
Ewan
are they just functions which you can use to return an actual code expression
Jupstar βœͺ 2024-01-04 12:57:05Z
Kind of
Avatar
Avatar
γ‚’γƒͺヂン
do you also get to write your own borrow checker?
Jupstar βœͺ 2024-01-04 12:58:28Z
If you do some weird hacks and find the modified source in the filesystem just to borrow check your piece of code. I guess that works too xd But that's defs not intended
Avatar
how do I upload a map to a github issue? do I just change the extension?
Avatar
Avatar
Devinci
how do I upload a map to a github issue? do I just change the extension?
You need to add the map to a zip file. Then you should be able to upload the zip file.
Avatar
well, makes sense. I just made a ss xd
15:56
Thanks tho
Avatar
αƒ αƒ˜αƒšαƒ˜αƒ 2024-01-04 16:25:19Z
hi everyone
16:25
i have a problem with git
16:26
i added a map(SkyBlock...) here on my branch https://github.com/mamadof/ddnet_SkyBlock/tree/master/data/maps (edited)
block mod with jetpack, hook, jump upgrade and more - mamadof/ddnet_SkyBlock
16:27
and i cloned the git repo on another machine
16:28
and when i delete that map, it won't get cloned when i use "git pull" command
16:28
nor with git clone command
16:31
help
Avatar
BlaiZephyr | meloƞ 2024-01-04 16:34:53Z
right branch? .map files present in .gitignore? if its deleted, couldnt you just restore it? check git status are you pulling from the right url? git remote -v (edited)
Avatar
αƒ αƒ˜αƒšαƒ˜αƒ 2024-01-04 16:36:26Z
these two are in .gitignore data/ !/data/
16:36
is this gonna do something with it ?
Avatar
BlaiZephyr | meloƞ 2024-01-04 16:38:16Z
!/data/ means that the data folder exclusivly shouldnt be ignored - even if there is a previous exclusion rule for it (means it will always be present)
Avatar
αƒ αƒ˜αƒšαƒ˜αƒ 2024-01-04 16:39:50Z
hum....
16:41
yeah with git status it clearly say what is missing
Avatar
BlaiZephyr | meloƞ 2024-01-04 16:43:20Z
git restore /path/to/file/<file> or git restore <commit/branch> -- <file/directory> or git reset --hard <- careful with this one, read about it if you dont know what it does (edited)
Avatar
The kill tile can also be used in the front layer and works as expected.

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+UB...
Avatar
αƒ αƒ˜αƒšαƒ˜αƒ 2024-01-04 16:44:33Z
thank you @BlaiZephyr | meloƞ ❀️ (edited)
Avatar
84f3bb5 Fix missing editor explanation for kill tile in front layer - Robyt3 424d789 Merge pull request #7760 from Robyt3/Editor-Front-KillTile-Explain - def-
Avatar
Avatar
GitHub
Click to see attachment πŸ–ΌοΈ
kek
Avatar
αƒ αƒ˜αƒšαƒ˜αƒ 2024-01-04 17:30:09Z
i faced another problem
17:30
πŸ™‚
17:32
17:34
i don't wanna pull or merge, i want to make my boy independent
17:35
but i still want to show where it's forked from when you see it on github (edited)
17:36
any suggestions ?
Avatar
how the hell password even work for github
Avatar
Avatar
MilkeeyCat
how the hell password even work for github
αƒ αƒ˜αƒšαƒ˜αƒ 2024-01-04 17:43:11Z
you need token
Avatar
why does it ask username and password then? XD
Avatar
αƒ αƒ˜αƒšαƒ˜αƒ 2024-01-04 17:43:35Z
πŸ™‚
Avatar
i sigma man?
Avatar
if ddnet had a codebase with name which doesnt have E in front of enums, C for classes and those m_pa thingies. which one would u prefer, current one or imaginary one? (edited)
Avatar
ChillerDragon BOT 2024-01-04 18:02:09Z
current one
Avatar
rust one
Avatar
I'm a big big hungarian notation enjoyer for the things we use it for
Avatar
ChillerDragon BOT 2024-01-04 18:39:00Z
@Ryozuki and thats why voxel left
Avatar
ChillerDragon BOT 2024-01-04 18:39:15Z
axaxax
18:39
wotfek is hun not
18:40
>
18:40
Hungarian notation is an identifier naming convention in computer programming in which the name of a variable or function indicates its intention or kind, or in some dialects, its type.
18:40
quoting skills
18:40
0/10
Avatar
just edit the message πŸ™‚
Avatar
ChillerDragon BOT 2024-01-04 18:41:11Z
lerato u like p for pointer s for static and a for array? Do you also like E for enum and C for class and m_ for member? then just say "current one" instead of flexing
18:41
@MilkeeyCat irc shaming is strictly forbidden
Avatar
imagine using fancy words to sound smart justatest
Avatar
ChillerDragon BOT 2024-01-04 18:41:50Z
lerato in a nutshell
18:42
he is top3 most fancy wordinger in this channel
Avatar
whats top3
Avatar
ChillerDragon BOT 2024-01-04 18:42:25Z
idk
Avatar
who is in top3
Avatar
ChillerDragon BOT 2024-01-04 18:42:32Z
heinrich also is english pro
18:42
and other idk
Avatar
you justatest
Avatar
ChillerDragon BOT 2024-01-04 18:43:03Z
nah
Avatar
The broadcast gets fixed by only running the method, which triggers the broadcast, only when the client has received (at least) 3 snapshots. !image

Checklist

  • [x] Tested the change ingame
  • [x] 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 ...
kek 3
Avatar
Avatar
Ryozuki
rust one
BlaiZephyr | meloƞ 2024-01-04 20:57:04Z
f3 owo
Avatar
Avatar
MilkeeyCat
just edit the message πŸ™‚
Jupstar βœͺ 2024-01-04 22:18:12Z
Uff, that hit different
Avatar
time to rewrite interpreter in rust justatest
Exported 754 message(s)