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-11-27 00:00 and 2024-11-28 00:00
Avatar
chillerdragon BOT 2024-11-27 00:04
The connection requires multiple packets to be exchanged. How do you send packets from rcon? What are you planning to do?
Replying to @nankudo ᵃᵗᵗᵃᶜᵏ hi, where in the server code is the initialization of the player connect…
Avatar
ChillerDragon
Avatar
Avatar
chillerdragon
Okay nice this is exactly what @Evelyn was looking for
What should I do?
Avatar
i wish i had chillerdragon's patience kek
02:05
chiller for village elder
Avatar
anyone have experience with syncing entire folders/files between laptop/pc? looking at stuff like syncthing (edited)
Avatar
i think admins might have
02:29
thought they used rsync extensively
Avatar
ws-client BOT 2024-11-27 02:37
🤖 5
☣️ 4
Avatar
it’s literally the repo posted above
03:16
it’s a chat client
Avatar
Avatar
ws-client
<ChillerDragon> @Evelyn download this exe and run it https://github.com/k-i-o/CChat.TW/releases/download/v0.1.6/cchat-setup-0.1.6.exe
But I wanted my own program
Avatar
ws-client BOT 2024-11-27 04:03
<ChillerDragon> why?
04:03
<ChillerDragon> what makes it your own?
04:03
<ChillerDragon> you want someone else rewrite exisiting solution from scratch just so you can call it your own? Do i understand that correctly?
Avatar
Avatar
ws-client
<ChillerDragon> you want someone else rewrite exisiting solution from scratch just so you can call it your own? Do i understand that correctly?
Well , in fact yours , but not Kisao 's solution
Avatar
Avatar
ws-client
<ChillerDragon> why?
For your own use, uh
04:53
if you want it to be yours then write it yourself
04:54
chiller has essentially done all the work for you up to this point, unless I’m misunderstanding
Avatar
Avatar
Evelyn
For your own use, uh
you can use that exe for your own use ?.
05:43
it looks like its open source so just edit it how u need it
Avatar
Avatar
louis
you can use that exe for your own use ?.
Ye
Avatar
chillerdragon BOT 2024-11-27 05:51
@Evelyn: just use the one I sent you for your own use?
05:52
So all good now right?
Avatar
But you can't make a bot jump there, for example
Avatar
chillerdragon BOT 2024-11-27 06:13
You can also not make the bot jump here
Replying to @Evelyn image.png
Avatar
forgot
Avatar
Avatar
louis
anyone have experience with syncing entire folders/files between laptop/pc? looking at stuff like syncthing (edited)
I use syncthing extensively, it works very nice :)
Avatar
ChillerDragon BOT 2024-11-27 09:53
I use git extensively, it works very nice
Avatar
Avatar
chillerdragon
The connection requires multiple packets to be exchanged. How do you send packets from rcon? What are you planning to do?
nankudo ᵃᵗᵗᵃᶜᵏ 2024-11-27 10:09
about rcon - i mean that I wrote a command that sends a packet with int value to all clients (all clients with a special client), but this command send only for those, who on server, therefore, new joining clients not have this value (edited)
Avatar
chillerdragon BOT 2024-11-27 10:15
And you want to send it to all players when they join?
10:15
I would put that code into the OnPlayerConnect method
10:15
But I am lacking context for a more detailed answer
Avatar
Avatar
louis
anyone have experience with syncing entire folders/files between laptop/pc? looking at stuff like syncthing (edited)
I used unison for a while. It was pretty nice
Avatar
ChillerDragon
10:51
Maybe we just configure the Kisao application so that I can perform any actions for the connected bot, and also I connected to the servers of the ip:port?
Avatar
Koll Potato 2024-11-27 10:52
🤣 2
🥔 2
Avatar
Avatar
ChillerDragon
I use git extensively, it works very nice
expect when it doesnt @ChillerDragon
Avatar
Avatar
louis
anyone have experience with syncing entire folders/files between laptop/pc? looking at stuff like syncthing (edited)
I use unison, works fine on Linux+macOS
Avatar
where located enums like PLAYERFLAG_PLAYING?
Avatar
grep "PLAYERFLAG_PLAYING" -r src (edited)
Avatar
like guys, really, learn to use a computer
Avatar
i didnt know you could just search files like that for a long time x-x
Avatar
Then again, I don't know what to expect of a Visual Studio user...
Avatar
(and i also couldnt setup intelisence it just broke and i couldnt fix it)
Avatar
Avatar
risu
Then again, I don't know what to expect of a Visual Studio user...
vsc is great :D
12:14
vs not so much
Avatar
Electron 🤢
Avatar
except there are some tools which i would really... like
Avatar
Avatar
risu
Electron 🤢
yeah and i cant find a text editor which doesnt force modes, lisp or other weird paradims into my brain
12:15
with support for all the things i would want to do in a text editor
Avatar
Avatar
Solly
grep "PLAYERFLAG_PLAYING" -r src (edited)
i recommend ripgrep
12:15
rg
Avatar
Avatar
Ryozuki
i recommend ripgrep
grep works... /:
12:16
¯\_(ツ)_/¯
Avatar
luckily my requirements are very simple I want my text editor to:
  • edit text
Avatar
Avatar
Solly
grep works... /:
rg works better
12:16
gigachad
Avatar
Avatar
risu
luckily my requirements are very simple I want my text editor to:
  • edit text
  • highlight
  • have sane keybinds to move text around
  • (ai) completion
  • intelisense
  • tabs / splitting
12:17
emacs and vim can do everything... but i dont want to learn a new set of keybinds i will only be able to use in them
Avatar
most editors have vim mode
Avatar
and i dont wana be forced to set that up
12:17
vscode has sane defaults
Avatar
vscode vim mode is a simple plugin
Avatar
not to my liking, but i can use it for 90% of everything (edited)
Avatar
completion is a crutch intellisense is a bigger crutch I don't need tabs, I have my window manager/tmux
Avatar
highlighting is bad
12:18
completion bad
Avatar
and most other text editors also have similar keybinds
Avatar
white text is enough
12:18
poggers
12:18
why have a window manager at all
12:18
just use the login shell
Avatar
Avatar
risu
completion is a crutch intellisense is a bigger crutch I don't need tabs, I have my window manager/tmux
for completing 30 character long symbols??? when you dont know the symbol name??? oh where is this defined, or implemented or referenced, or you want to rename something without just find and replace yeah if you are using a tui
Avatar
I mean, a window manager might be bloat, but a graphical environment has significantly better font rendering so that's nice
Avatar
what wm u use
12:19
i3 ftw
12:19
when wayland is usable ill switch
Avatar
dwm go brr
Avatar
but not today
12:19
to sway
Avatar
ok I'll accept that Awesome is a bit excessive
12:20
but it's nice that I don't need to recompile my wm
12:21
i3 works
12:21
I honestly don't really care
12:21
as long as I can open and close windows and the wm splits my screen down the middle when I open two of them
Avatar
i have alot more requirements for my wm
12:22
more than most de's give x-x
Avatar
pretty
Avatar
the bars are the cpu cores
Avatar
the first thing I did when I installed awesome was disable most of the features in the default config the second thing I did was never touch it again
Avatar
Avatar
Solly
vsc is great :D
nvim is better troll
Avatar
Avatar
Teero
nvim is better troll
read the rest of conversation as to learn why i dont like vim
Avatar
Avatar
Solly
read the rest of conversation as to learn why i dont like vim
nah
Avatar
then perish
12:24
:imilkycat: (edited)
Avatar
Avatar
Solly
for completing 30 character long symbols??? when you dont know the symbol name??? oh where is this defined, or implemented or referenced, or you want to rename something without just find and replace yeah if you are using a tui
1. if you don't know the symbol name you're not familiar enough with the codebase troll 2. if your symbol names are 30 characters your codebase is too modern
Avatar
Avatar
risu
1. if you don't know the symbol name you're not familiar enough with the codebase troll 2. if your symbol names are 30 characters your codebase is too modern
1. how do you expect to learn it then 2. i cant control that
Avatar
Avatar
Solly
1. how do you expect to learn it then 2. i cant control that
1. troll 2. troll
Avatar
Avatar
risu
completion is a crutch intellisense is a bigger crutch I don't need tabs, I have my window manager/tmux
You don't use any completion?
Avatar
cyberfighter 2 2024-11-27 12:32
hello
Avatar
Avatar
Learath2
You don't use any completion?
no I'm just mad right now and trolling my favourite channel to vent
12:33
but a lot of the time yeah no completion
12:33
too lazy to set it up
Avatar
Wow, I thought I was backwards with not using ai copilot magic and intellisense
Avatar
I spend a lot more time reading code than I do writing code
Avatar
I only really use autocomplete for symbols (contextful if available) and go to definition
Avatar
Avatar
Learath2
I only really use autocomplete for symbols (contextful if available) and go to definition
same
Avatar
Avatar
risu
I spend a lot more time reading code than I do writing code
Then you must appreciate teeworlds' naming convention (edited)
12:35
Our modified hungarian notation makes reading code a breeze without magic IDE crutches
Avatar
modified hungarian notation?
Avatar
The prefixes we add to our variable names, e.g. m_ or pfn
Avatar
I actually haven't written anything for Teeworlds, I've just read the code (it's the best documentation!)
12:38
part of the reason why I can't stand closed source software
12:39
actually unusable as the majority of the documentation just isn't available
12:40
I'm not quite at the point of reading the binary for documentation
Avatar
I have only had to reverse engineer a binary once to figure out something. It was actually for ddnet/sdl 😄
12:41
AppKit on macOS
Avatar
sounds fun
12:43
I should learn; maybe I'll finally be able to tolerate Windows
Avatar
Avatar
risu
sounds fun
It is quite fun to reverse engineer stuff, it's a decent hobby
Avatar
pub fn fib_series() -> impl Iterator<Item = u64> { gen { let mut a = 1; let mut b = 0; loop { yield b; let t = b; b = a; a += t; } } }
12:48
@Learath2 generators to make iterators ez
12:49
pub fn main() { let x: Vec<_> = fib_series().take(20).collect(); dbg!(x); }
Avatar
I really love languages that have yield
Avatar
am i crazy or m_HasExtendedData never resets
Avatar
Avatar
Learath2
I have only had to reverse engineer a binary once to figure out something. It was actually for ddnet/sdl 😄
you should try to mod dota2
13:09
justatest
Avatar
HUH make dota2 tetris please
Avatar
Avatar
TsFreddie
am i crazy or m_HasExtendedData never resets
it was zeroed along with m_Snap so i'm indeed crazy
Avatar
Avatar
Ryozuki
pub fn fib_series() -> impl Iterator<Item = u64> { gen { let mut a = 1; let mut b = 0; loop { yield b; let t = b; b = a; a += t; } } }
Koll Potato 2024-11-27 13:58
wait is this valid rust??
13:58
omg
Avatar
chillerdragon BOT 2024-11-27 14:00
They origin from network.py and are generated code
Replying to @3x1sT where located enums like PLAYERFLAG_PLAYING?
14:00
Yea it’s using swarfeys lib under the hood it is capable of jumping
Replying to @Evelyn Maybe we just configure the Kisao application so that I can perform any …
14:03
I dont like that ripgrep decides which files and folders are not interesting for me. If I don’t get a hit with rg I usually end up grepping just to be sure. Which usually is so annoying that I straight up grep.
Replying to @Ryozuki rg works better
Avatar
Can you help me do it?
Avatar
Avatar
chillerdragon
I dont like that ripgrep decides which files and folders are not interesting for me. If I don’t get a hit with rg I usually end up grepping just to be sure. Which usually is so annoying that I straight up grep.
rg -uuu
Avatar
wait, are player input not 50tps
14:30
25
14:30
:ghasp:
Avatar
more like 20
14:30
or 17
Avatar
Avatar
TsFreddie
more like 20
also inputs only get sent if there are changes
14:32
idk if it affetcs ur test
Avatar
this is every tick
14:32
and i'm 100% sure the cursor is moving the entire time
14:32
way too many 3s and no 1s
14:33
i'm tracking m_Core.m_Input btw
Avatar
Avatar
TsFreddie
i'm tracking m_Core.m_Input btw
have a look in CControls::SnapInput
14:35
which should be called 25/s
Avatar
Avatar
TsFreddie
wait, are player input not 50tps
based on sv_high_bandwidth afair
Avatar
Avatar
zhn
based on sv_high_bandwidth afair
ye but less than 25?
Avatar
Avatar
TsFreddie
ye but less than 25?
shouldn't
14:37
lemme test
Avatar
dbg_stress test seems to send 50tps hmm
14:40
regardless sv_high_bandwidth
14:41
i broke my test suit oh no justatest
14:42
i swear it sent input like every tick, at least i could see it in snap processing
14:42
just vrooooooom
Avatar
pepeW maybe just human input jitter? dbg_stress dosen't seem to send input via a different routine. it just update the input data during normal SendInput
Avatar
shouldn't affect tho
Avatar
but i tried to record a lot of demo, none of them have consective inputs
Avatar
if no input changes were made though
Avatar
but if i turn on dbg_stress then the demo cursor is like ultra smooth
Avatar
dbg_stress
14:51
human input
14:51
both sv_high_bandwidth 0
14:52
oh i get it now
14:53
it really only send at 10hz if there is no hooking and moving. bummer.
14:54
i guess that make sense
14:54
TIL
Avatar
@ChillerDragon is there anyway to force 0.7 client to be loaded on ddnet with 0.6/0.7 bridge server?
Avatar
connect via 0.7 protocol address
14:59
tw-0.7+udp://ip:port
Avatar
GitHub BOT 2024-11-27 15:11
Con_DemoSpeed already reads float value. I couldn't think of a good reason for the command to be limited to integers. Enables ultra-slowmo that are lower than 0.1x speed which is the lowest the UI gives.

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [x] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [x] Considered possible null...
Avatar
one char pr let's gooo (edited)
Avatar
o i thought this was about configs
15:19
when float configs i cry
Avatar
oh, is there a downside for float config?
Avatar
(fyi your pr isnt about float configs) older clients will destroy float values
Avatar
i didn't change the command at all
15:20
it was already reading float
Avatar
demospeed isnt a config is it?
Avatar
idk
15:20
oh it isn't
Avatar
configs are the ones saved to ddnet_settings
Avatar
it's a commnd
15:21
ye
Avatar
wait zoom isnt a config either
15:21
xd i thought we had to some shenangns to get floating zooms
15:21
just make it a float
15:21
lmao
Avatar
nouis the only other float command i found is tune
15:21
so i was wondering why it was not used at all
Avatar
old codebase
15:22
made by an even older person
Avatar
about importing old config or downporting new config?
Avatar
the usage of ints where floats work perfectly well or even better is a premature optimization which has stuck
15:23
which is why alot of settings are ints which in every place they are used are turned to floats and divided by some cosntant
15:23
which i think rather sucks
Avatar
vibe is there a downside for that pr tho?
Avatar
for your pr theres no downside
Avatar
cool
Avatar
nor for the one which would allow float zooms
Avatar
cuz you can't really get a 0.1 value which is doable via UI but not via command
Avatar
just would have to add a (float ghasp!) param to +zoom and -zoom (edited)
Avatar
which is kinda odd
15:24
and i needed 0.001 speed to check my interpolation things, so i just figure i pr it
15:24
kekw
Avatar
void Update(CNamePlates &pThis, int Id, char* aName, bool FriendMark, float FontSize) { ... pThis.TextRender()->SetCursor(&Cursor, 0.0f, 0.0f, FontSize, TEXTFLAG_RENDER); ... } i need textrender but its inaccesable here, do i just make it... public
15:24
oh no im an idiot make it a friend!
15:25
thats a thing in cpp
15:25
im moving up in the world hey
15:25
proceeds to ask chatpgt how to do that
Avatar
HUH i think you have other ways to get a TextRender()
15:25
maybe not via CNamePlates
15:25
there are TextRender everywhere i think
Avatar
this is in a struct in CNamePLates.h
15:26
used by name plates only
Avatar
are you sure
Avatar
yes im the one who made the struct
Avatar
is this even ddnet
Avatar
Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configuration options Written a unit test (especially base/) or add...
👎 1
15:27
for this
Avatar
then just public it i guess
Avatar
non i make it a friend
15:27
because those interfaces arent public anywhere else so that would be weird
15:27
(although thats whaqt i would do if i wasnt bound by law)
15:28
(well i would get rid of the whole interface systsem)
15:28
(i dislike it)
Avatar
can i take a look cuz i don't understand how you can't find a textrender else where.
15:28
did you make another textrender instance?
Avatar
Avatar
Solly
(although thats whaqt i would do if i wasnt bound by law)
the law is: make stuff public that needs to be public or use a getter function i remember asking the same thing like a year ago xD
Avatar
or did you make two structs/classes that only references only to each other but not pClient
Avatar
Avatar
meloƞ
the law is: make stuff public that needs to be public or use a getter function i remember asking the same thing like a year ago xD
other places use friend when needing to use private things inside structs inside the class itself
15:29
tahts why i remembered friend existed
15:29
why is myr so against it
Avatar
Direction arrows D:
Avatar
no one really uses friend i think
Avatar
just skip the commit x-x
15:29
ive seen it for the reason im about to use
Avatar
Avatar
Mʎɹ シ
Direction arrows D:
this has always been a thing
15:29
u been living under a rock?
Avatar
but again, i still have no idea why you can't get a textrender reference catbite
Avatar
friends need to declare protected/private members explicitly right? or do they just expose the entire class
Avatar
I'am about new design of this
Avatar
i never really used friends kekw
Avatar
did you factor the thing so much it doesn't have anything to do with CGameClient anymore
Avatar
Avatar
meloƞ
friends need to declare protected/private members explicitly right? or do they just expose the entire class
i have never used friends (resident cpp novice) but i think yeah just lets u access things. it isnt like illegal to do this since the struct is inside the class it wasnt to access stuff rom anyway
Avatar
Avatar
meloƞ
i never really used friends kekw
you are a good person then
15:31
make friends, don't use them
Avatar
if you explicitly expose it, good if you just fully expose it, bad
Avatar
Avatar
meloƞ
if you explicitly expose it, good if you just fully expose it, bad
it isnt like illegal to do this since the struct is inside the class it wasnt to access stuff from
15:31
its just inside a class in a class for seperation of concerns
15:31
otherwise it would be so messy
15:32
(even more than it already is)
Avatar
I'm about to make a lagrange interpolation maneuver. wish me luck
15:32
but it's 11pm tho
Avatar
larange?
Avatar
i should probably slepp
Avatar
or lag range
15:32
oh no it is spelt lagrange
15:32
that is poor spelling
Avatar
probably french or something
15:33
i thought they had good spelling
15:33
(bad but consistent)
15:33
i knew larange is french
15:33
but as you just saw lagrange doesnt feel right to me
Avatar
ok do i sleep or do i make this tomorrow night
15:33
both
Avatar
ok i'll washup and go to bed
15:34
gn
Avatar
gn hairless man!
Avatar
do it rn
Avatar
Avatar
meloƞ
gn hairless man!
i might have more head hair than you
justatest 1
15:34
you never know
15:38
tempted to grab my laptop into my bedroom
Avatar
nankudo ᵃᵗᵗᵃᶜᵏ 2024-11-27 15:50
is it possible to send and receive float?
Avatar
Original message was deleted or could not be loaded.
dont be an idiot ™️
15:51
otherwise there isnt any
15:52
that doesnt sound like alot
15:52
you also have to not.. fake players
15:52
there was some adhoc rules for the master server but i dont know where they are
Avatar
we let common sense rule if the servers solely exist for things like advertisement or faking numbers (e.g filling them with bots) will most likely lead to your servers going into the shadow realms
Avatar
GitHub BOT 2024-11-27 15:54
40aa83f Allow decimal value for demo_speed command - TsFreddie 9fcd050 Merge pull request #9287 from TsFreddie/demo_speed_float - def-
Avatar
pThis.TextRender()->TextColor(ColorRGBA(1.0f, 1.0f, 1.0f, Alpha)); pThis.TextRender()->CreateOrAppendTextContainer(m_TextContainerIndex, &Cursor, m_aName); how does textcolor with appending to text container work if you set it before rendering?
15:55
cammostripes 1
skull 1
15:56
ungodly indentation
15:58
TextColor multiplies
15:58
thats unfortunate
15:58
i mean ill guess ill try and see if it works
15:58
might look weird
Avatar
hey @Solly are you pro at programming
Avatar
not particularly
Avatar
yes you are
16:00
now u should help me
Avatar
i need to easylyly manage my fng servers but idk how and tmux sucks like its name
Avatar
manage how[?] (edited)
16:01
thats what i asked
16:01
fancy ?
Avatar
manage how == how do you mean "manage"
16:02
i need to monitor their console ram,cpu usage and run some console commands
16:02
and lastly start stop or restart them
Avatar
im not very sure how to track ram/cpu usage of DDNet-Server
16:03
also the only way i know how to interact with applications like that is with some screen shenangans (see my minecraft discord bot)
16:03
i guess it would be fun to make, but idk how useful it will be to you
Avatar
hehe
Avatar
im kinda doing stuff rn
16:04
dm me at the weekend (edited)
Avatar
sure
Avatar
if im still alive by then
Avatar
professor solly bunny
16:04
thank u
Avatar
ask chatgpt bruh
16:05
itll know how
Avatar
i hate it
Avatar
Avatar
louis
ask chatgpt bruh
its a bit complicated for that
Avatar
use some top command
Avatar
top cant distinguish ddnet server instances from eachother (edited)
16:06
htop can, but interfacing with that is wakc
Avatar
you can use chatgpt to tell u how to use tmux (which is a good program btw) and monitor cpu usage
16:06
for sending commands from a terminal you'll need to set up fifo
Avatar
ʏᴏᴜᴋᴀᴢᴢʏ ᴅᴅɴᴇᴛ 2024-11-27 16:06
is there any way to copy envelopes from the map
Avatar
(might be a #mapping question?)
Avatar
file -> append another map
16:07
if you just want envelopes, i'm not sure sry
Avatar
Avatar
louis
for sending commands from a terminal you'll need to set up fifo
that only lets you write, what abt reading
Avatar
he said run some console commands?
👍 1
Avatar
o i guess u can just go > file 2&>1 (except that logging is a bit fragile) (edited)
Avatar
what now mr brainpants
Avatar
Avatar
Solly
o i guess u can just go > file 2&>1 (except that logging is a bit fragile) (edited)
what is file 2&
Avatar
./FNG-Server > logfile 2&>1 (the 2&>1 redirects stderr to stdout) (edited)
Avatar
its fng server
Avatar
what do you specifically want to do @barlas
Avatar
i need to monitor fng server console . ram,cpu usage and run some console commands and lastly start stop or restart them (edited)
16:09
and its need to be easy to use
16:09
is there some app liek that
16:10
maybe a web gui
Avatar
not yet :P
Avatar
like most minecraft servers
Avatar
no unfortunately
Avatar
o thats a shout just a multiple process manager where u can pipe stuff into stdin and read from stdout
16:10
and restart it
16:10
and stop and start
16:10
etc etc
Avatar
Avatar
barlas
like most minecraft servers
Do you speak Russian?
🐟 1
Avatar
cyka blyat
Avatar
thats only word i know
Avatar
theres no webgui like that, so you'll have to know how to use a terminal
Avatar
i do
Avatar
are you hosting your servers on a vps?
Avatar
i was just thinking of making some api to control multiple processes then sticking an ncurses or ui on it
16:14
then since its an api it can be turned into a web gui if you wanted
Avatar
is it better than manually starting with tmux
Avatar
well if i were to implement it i woudl do it with screens
16:16
and probably in js (since 1. its easy 2. runs everywhere 3. makes it easy to api it 4. easy access to libraries for screen and tui)
16:16
no point in making it blazingly fast since it would be doing so little
Avatar
i dont understand it but support u whatever u doin
Avatar
GNU screen (screens) are terminal sessions which can be attatched and detached
16:17
its probbaly similar to what you are doing with tmux
Avatar
plazmavlad 2024-11-27 16:42
админы можете пожалуйста помочь меня забанили но я не понимаю за что ведь у меня нет не читов не чего
16:43
admins, I don’t understand why they gave me a ban because I don’t play with cheats and so on
16:46
pls help me
16:46
I don't know what to do
Avatar
Avatar
plazmavlad
admins, I don’t understand why they gave me a ban because I don’t play with cheats and so on
Koll Potato 2024-11-27 16:52
#✉-create-a-ticket -> Ban Appeal
Avatar
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ we ever going to get rid of these?
Avatar
GitHub BOT 2024-11-27 17:42
Redo of #5894 PR with nan/inf check and map settings support. Perhaps this type of configuration won't be used in DDNet, but for modifications, it's an extremely useful feature. Before adding support for float configurations, I had to specify values as percentages or divide them by some constant. Yes, in some cases the precision might not be perfect, but for most of my tasks, this is more than sufficient. To prevent breaking values by re-saving, I suggest using these configurations **o...
Avatar
me interpolating 10tps cursors
17:53
17:55
same clip normal speed
Avatar
i have no idea why the cursor is flashing tho
Avatar
Avatar
Solly
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ we ever going to get rid of these?
Koll Potato 2024-11-27 18:27
how dare you
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
What sort of interpolation is this? The artifacting isn't obvious enough for me to tell so I guess that's a good sign
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
アリヂン 2024-11-27 18:37
I see no problem gigachad
Avatar
Avatar
risu
What sort of interpolation is this? The artifacting isn't obvious enough for me to tell so I guess that's a good sign
lagrange
18:41
it guarantees to pass each sample point and the path looks like bezier but there is not control points
18:42
however. why is everyone in chn using dyncam, i can't find one that have the cursor on my screen at all time justatest
18:43
i might need to add dyncam to spectator view
18:44
18:44
here's the spectator cursor in action
Avatar
Avatar
TsFreddie
lagrange
Wait, wouldn't that imply that you're fitting a polynomial to the entire sequence of inputs?
Avatar
Avatar
risu
Wait, wouldn't that imply that you're fitting a polynomial to the entire sequence of inputs?
just 4 around the target time
18:45
using the entire sequence actually explodes the result
18:45
i tried
Avatar
so that'd be some sort of spline that I can't name off the top of my head right now
Avatar
not computational explode, the result just flies too far
Avatar
yeah I understand
Avatar
anyway, although the position is mostly fake, but i think this looks pretty good to not be jarring and give you a pretty good idea where they are aiming i think
Avatar
Wait yeah, with 4 points you'd be drawing cubic splines between them
Avatar
ye
18:48
it's just that
18:48
i called it lagrange because i did tried to use all 32 sample points that i've collected
18:48
lol
18:48
pepeW
Avatar
Avatar
TsFreddie
just 4 around the target time
im assuming the Catmull-Rom spline equation
18:52
(my favorite polynomial equation)
Avatar
Avatar
Voxel
im assuming the Catmull-Rom spline equation
let's just say, i have no idea
18:54
i googled lagrange interpolation and copied some code
18:54
kekw
Avatar
oh rip LOL
18:55
idk if catmull rom will look any good tho it tends to look extremely floaty but i think its very fun https://en.m.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline
In computer graphics, the centripetal Catmull–Rom spline is a variant form of the Catmull–Rom spline, originally formulated by Edwin Catmull and Raphael Rom, which can be evaluated using a recursive algorithm proposed by Barry and Goldman. It is a type of interpolating spline (a curve that goes through its control points) defined by four control...
Avatar
doesn't look that similar but maybe it is identical when unrolled
18:56
i don't really want to solve the equation to be sure tho
Avatar
like 80% of the chn player are using dyncam
18:59
18:59
i'm not sure what to do for spectator justatest
19:00
do i just enable smooth dyncam for spectator by default?
19:01
i'll try it tomorrow i guess
19:01
it's 3am
Avatar
Avatar
TsFreddie
like 80% of the chn player are using dyncam
Crazy people
19:04
that's all the demo i currently have. let me know if that looks ok 10 hours later
19:04
gn
Avatar
Avatar
TsFreddie
that's all the demo i currently have. let me know if that looks ok 10 hours later
whats that
Avatar
spectator cursor
19:10
interpolated from the 10tps data we just found out
Avatar
client receives 10tps character changes?
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
funny wobbles
Avatar
cursor only sends 10tps if the character is doing nothing other than moving the mouse (edited)
Avatar
Avatar
TsFreddie
cursor only sends 10tps if the character is doing nothing other than moving the mouse (edited)
client -> server or vice versa?
Avatar
client to server
19:13
the send flag does not check whether TargetX and TargetY changes
19:13
so if no other input has changed, the cursor will only send at 10hz says the comment
19:14
it kinda make sense that it doesn't send useless info. once you fire and hook the cursor sends along with those immediately which is the only cursor position that matters i guess
Avatar
Avatar
risu
funny wobbles
i want to detect the max range from the latest 32 samples to guess a mouse distance max and clamp it. not sure if it is really nessesarry but i think it'll looks more like teeworlds input
19:17
amogus and ye, smaller movement does wobble
19:17
inevitable i guess?
Avatar
Avatar
TsFreddie
i want to detect the max range from the latest 32 samples to guess a mouse distance max and clamp it. not sure if it is really nessesarry but i think it'll looks more like teeworlds input
if not accurate then its useless imo
Avatar
the interpolation or the clamping
Avatar
that's true
19:19
and you can just turn off interp i guess
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
That's not 10 Hz though? time_freq() is 1 second and 1s/25 is 25 Hz or 40 ms. Looks like it was changed to 25 Hz in https://github.com/ddnet/ddnet/commit/24899a13e8863e59027e993a61e9b2ef6787b74b but the comment was not adjusted (edited)
Avatar
Avatar
TsFreddie
inevitable i guess?
I'd try using something other than the obvious cubic polynomial, maybe even a curve that changes with input if I felt like an artist
Avatar
noby has a moderator command on his server to show the player's cursor greenthing
Avatar
u basically can add another ex packet too btw
Avatar
Avatar
Robyt3
That's not 10 Hz though? time_freq() is 1 second and 1s/25 is 25 Hz or 40 ms. Looks like it was changed to 25 Hz in https://github.com/ddnet/ddnet/commit/24899a13e8863e59027e993a61e9b2ef6787b74b but the comment was not adjusted (edited)
ah, but still, it kinda sends less than 25tps from what i can tell from the server side
Avatar
maybe it would be more sane and will not distract newbies
Avatar
like, for smaller velocities make it more linear to avoid overshoot
Avatar
like imagibe some weird config that gets clamped and interpolated
19:21
and its someone like jukki
19:21
they will try to copy it and play with wrong one xdd
Avatar
Avatar
zhn
u basically can add another ex packet too btw
i'm not sure i want to add ex packet client to server tbh
Avatar
Avatar
TsFreddie
ah, but still, it kinda sends less than 25tps from what i can tell from the server side
you check onmessage or?
Avatar
Avatar
zhn
you check onmessage or?
onpretick
Avatar
Avatar
TsFreddie
onpretick
💀
19:23
so you actually analyze processed input rather then incoming
19:23
than*
Avatar
yes, but still, that's where charactercore is getting it's info
Avatar
Avatar
TsFreddie
i'm not sure i want to add ex packet client to server tbh
why client to server tho
Avatar
cuz client doesn't send enough to server
Avatar
it sends exactly 25tps as we can see
Avatar
i think it can miss the window time to time
Avatar
is it a problem even
Avatar
it looks too jarring without interpolation for spec cursor
19:25
i thought that's the reason we haven't done it yet?
Avatar
idk, but server side cursors worked fine(?)
19:26
at least ones i saw
19:26
why it shouldn't work as good on client side
Avatar
cuz screen refreshes at 60hz and more?
19:27
it just doesn't look like the local cursor does
Avatar
but you should see same ingame huh
Avatar
GitHub BOT 2024-11-27 19:27
The resending frequency for unchanged inputs was changed from 10 Hz to 25 Hz in 24899a13e8863e59027e993a61e9b2ef6787b74b but the comment was not adjusted accordingly.

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 index...
Avatar
interpolating is fine ig justatest
Avatar
i mean tee and gun angles are interpolated as well InsaneCat
19:28
it's definitely for regular players
19:28
not us
19:28
but if we can bump the cursor send rate to 50
19:28
i'd be happy too
19:28
lol
19:28
also probably make moderating a bit easier too (edited)
19:29
but the CHN me is telling me that we shouldn't really do that cuz CHN server bandwidth.
19:29
pepeW
Avatar
yeah was about to say same
19:30
i wonder ehat would be a bottleneck tho
19:30
bandwidth itself or packet processing stuff
Avatar
Avatar
TsFreddie
also probably make moderating a bit easier too (edited)
More than a bit, it's a great tool
19:37
interp comparison btw
Avatar
first is accurate second is smooth
Avatar
and there is a toggle
19:38
nouis
19:39
choose your flavor
Avatar
toggle is no no
19:39
remember what messiah heinrich told us
Avatar
it's not like there is a gameplay difference tho
19:40
i do want to turn interp off when modding i think...
Avatar
use server side cursor :P
Avatar
modding = moderating
19:41
or do we have server side cursor on ddnet servers already?
19:41
i'm obviously lagging behind on ddnet features
Avatar
add free rcon for everyonehey
Avatar
Avatar
TsFreddie
or do we have server side cursor on ddnet servers already?
nop
Avatar
on every server
Avatar
Avatar
oxyzo
add free rcon for everyonehey
no
Avatar
Avatar
oxyzo
add free rcon for everyonehey
ask jiatan
Avatar
Avatar
TsFreddie
modding = moderating
ah
Avatar
i'm not some kid that just add server-modding features to upstream just because i want it (edited)
19:43
nouis
19:50
ground truth comparison
19:50
i really should go to sleep i think
Avatar
Avatar
TsFreddie
ground truth comparison
How does it look if you compensate for the delay?
Avatar
Avatar
TsFreddie
i really should go to sleep i think
ok yeah maybe I shouldn't be asking questions at this time :)
Avatar
i'll do that tomorrow
19:55
justatest
19:55
tbh i don't really care
19:55
it's interpolated, all it has to do is looks fine
Avatar
Just train a small neural network by uhhh crowdsourcing training data and use that for your cursor estimation :) :) :) Telemetry is good, right? Not problematic at all?
Avatar
any updates on #9092? (edited)
Avatar
Closes #6733 Closes #9009 Alternative to #9060 Runs a local server with the currently opened map (if it&#39;s saved to maps/) and automatically authenticates with a new custom rcon password ...
poggers2 3
Avatar
pr ready and approved
Avatar
Koll Potato 2024-11-27 20:11
omg this is a game changer
Avatar
Avatar
kebs
any updates on #9092? (edited)
Could we somehow add test cases for this function including the argument handling and escaping? Looks like we don't escape backslashes yet. Is that not necessary?
Avatar
Koll Potato 2024-11-27 21:11
is it possible to connect to the existing ddnet servers with websockets?
21:11
i know it's a feature, but it can be disabled too
Avatar
AFAIK websocket support is broken (#5625, #2853)
Avatar
On client launch: DDNet.exe caused an Access Violation at location 00007FF675A02E9A in module DDNet.exe Reading from location 0000000000000040. AddrPC Params 00007FF675A02E9A 00000096B5F4BEF0 00000...
@QingGo Thread 1 "DDNet" received signal SIGSEGV, Segmentation fault. 0x00007ffff7594b0f in memmove_avx_unaligned_erms () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff7594b0f in mem...
Avatar
Avatar
Koll Potato
is it possible to connect to the existing ddnet servers with websockets?
We disabled it on official servers because it doubles the impact DoS attacks have
21:36
it being broken in client and lan tab doesn't help either 😄
21:36
we only had it enabled so you could join from http://teewebs.net/
21:36
client never shipped with websockets I think
Avatar
Avatar
Robyt3
Could we somehow add test cases for this function including the argument handling and escaping? Looks like we don't escape backslashes yet. Is that not necessary?
i can add test cases, but would rather leave backslash escaping to someone that uses this in future, it doesnt need to be foolproof
21:42
this pr doesnt do anything related to backslashes
21:44
i dont like how it does quote escaping even, it should be up to developers how they want to do that imo
Avatar
Avatar
kebs
i dont like how it does quote escaping even, it should be up to developers how they want to do that imo
How would that work? Then it's just broken for everyone if they don't follow the standards
Avatar
Avatar
kebs
this pr doesnt do anything related to backslashes
Then shell_execute need a warning remark about what it can and cannot do correctly safely without causing arbitrary code execution for the user
Avatar
quotes for every arg yes, but helping them add a backslash, idk about that
Avatar
GitHub BOT 2024-11-27 21:51
68f1bf5 Fix comment about resending frequency for unchanged input - Robyt3 010d7ce Merge pull request #9289 from Robyt3/Client-Input-Resending-Comment-Fix - def-
Avatar
@Robyt3 you alive rn?
21:57
darn
Avatar
What's the question? I'm working on my factory owo
Avatar
Avatar
Robyt3
What's the question? I'm working on my factory owo
what kinda factory
22:01
it was about the Introduce Parameter Object
22:02
i dont really know how to group the items
Avatar
Avatar
Solly
what kinda factory
Factorio Space Age
🚀 2
Avatar
i could have a rendernameplatenameparam struct (which is part of rendernameplatename aswell)
Avatar
Avatar
Solly
it was about the Introduce Parameter Object
I'd probably put them all in one object
Avatar
but that only ads to the ocmplexity?
Avatar
Avatar
Robyt3
I'd probably put them all in one object
is that just to make each argument clear where it is
Avatar
Avatar
Solly
but that only ads to the ocmplexity?
Well, otherwise the function call is pretty unreadable
Avatar
it kinda feels like stretching for kwargs
22:03
but yeah it would be more readable
Avatar
And it's very easy to add bugs if you have 5 int arguments and you accidentally swap one
👍 1
Avatar
Avatar
Robyt3
Factorio Space Age
:D
22:04
i need to do atleast a single factorio
Avatar
Avatar
Robyt3
What's the question? I'm working on my factory owo
this is the first time ive seen robyt3 use an emoji like that
Avatar
just lil guy playing a big game
Avatar
Avatar
Solly
i need to do atleast a single factorio
factorio is so fun, i need to get back into it
Avatar
nu'in wrong with dat
Avatar
Avatar
Robyt3
What's the question? I'm working on my factory owo
awesome
Avatar
Avatar
Voxel
this is the first time ive seen robyt3 use an emoji like that
I saw a few justatest's from roby kek
Avatar
does "p" prefix go on references?
Avatar
Avatar
kebs
pr ready and approved
king
😄 1
Avatar
for long time now, just wondered why not merged
23:01
will add the tests later
Avatar
Avatar
Solly
does "p" prefix go on references?
No, references don't have a prefix
Avatar
oyasumi
Avatar
p only for pointers :v (edited)
Exported 586 message(s)
Timezone: UTC+0