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-02-15 00:00:00Z and 2024-02-16 00:00:00Z
Avatar
ws-client BOT 2024-02-15 02:32:48Z
<ChillerDragon> watefek who dis? https://github.com/Jipok
Jipok has 47 repositories available. Follow their code on GitHub.
02:32
<ChillerDragon> found him while browsing non tw github repos ?!
02:33
<ChillerDragon> tw fame?
Avatar
ws-client BOT 2024-02-15 03:19:23Z
The error occurred on my Debian 12 also well. Driver: 525.147.05 (from Debian repo) It happened when updating to kernel 6.1.0-18-amd64. https://forums.debian.net/viewtopic.php?t=158200 EDITED: On Debian, upgrading to kernel 6.5 (from backports) fixed the nvidia issue when using kernel 6.1.0-18-amd64 and dkms: sudo apt install -t bookworm-...
03:19
<ChillerDragon> did a fucking license break the nvidia compile during my debian update!?
Avatar
ws-client BOT 2024-02-15 03:31:30Z
<ChillerDragon> bruv kernel panic on boot. And debian is stable they said^^
Avatar
ws-client BOT 2024-02-15 03:48:25Z
<ChillerDragon> Yea so if there are any debian users here that have the nvidia package installed I recommend holding back updates for a while.
Avatar
2163a82 M Luxis, A Warch_hard_2_rework - ddnet-maps
Avatar
Avatar
Learath2
Really?
As soon as it gets the extended sever info
06:21
So in this case the master server script
06:22
But maybe Heinrich didn't add this
Avatar
chillerdragon: had this at work yes
06:49
With my RTX A500
Avatar
funny tho debian tells me it's a A1000, maybe it is (edited)
Avatar
Avatar
Teero
btw if you unplug your system while DDNet is running and DDNet does some storage action it freezes
well what do you expect it to do
Avatar
Avatar
Teero
how bad can the quality get? obs: yes
what encoder & settings are you using
07:27
can't really blame obs
07:28
libavcodec does all the heavy lifting as far as video encoding is concerned
Avatar
Avatar
Ewan
well what do you expect it to do
I expected storage not to stall the entire process when you're only running on memory
Avatar
Avatar
Ewan
what encoder & settings are you using
Yes myself was the issue
Avatar
Maybe this looks bad, but it looks fine to me. My first hud in lua xdd
🥵 1
❤️ 2
Avatar
Hot
Avatar
Avatar
zenopeer
do u guys know how to make fng2 server without this ugly text in front of my server name
You need to recv the client extend serverinfo msg.
08:19
The client send a packet with NET_HEADER_EXTENDED
08:20
The packet like this mode
08:20
[NET_HEADER_EXTENDED] [Extra Data]
08:21
You need to get the extra data, and
08:22
analyze it
Avatar
Avatar
Mʎɹ シ
Maybe this looks bad, but it looks fine to me. My first hud in lua xdd
i don't speak broke (edited)
🤔 1
Avatar
Avatar
Mʎɹ シ
Maybe this looks bad, but it looks fine to me. My first hud in lua xdd
MRPG0.6 ?
Avatar
Avatar
Bamcane
MRPG0.6 ?
Nope
Avatar
chillerdragon BOT 2024-02-15 08:29:10Z
Are you planning to hard fork like ninslash or nodes?
Replying to @Mʎɹ シ Maybe this looks bad, but it looks fine to me. My first hud in lua xdd
Avatar
is this client <-> server lua communication or is it just clientside lua binding baloney
Avatar
chillerdragon BOT 2024-02-15 08:41:50Z
The server sends the lua code its full on remote code execution axaxaxa
08:42
At least that’s what I understood from his previous message
Avatar
Lmao
Avatar
Avatar
chillerdragon
Are you planning to hard fork like ninslash or nodes?
No, I think
08:47
Server is avaible for standard ddnet client
08:47
But custom client can receive lua code from server and execute
Avatar
chillerdragon BOT 2024-02-15 08:48:24Z
axaxaxa
08:49
How are you going to advertise this rat? @Mʎɹ シ
Avatar
Avatar
chillerdragon
How are you going to advertise this rat? @Mʎɹ シ
justatest
Avatar
chillerdragon BOT 2024-02-15 08:50:12Z
Jokes on me by the way
08:50
I gave you the same access on my vps lmao
Avatar
Yeah be a bit careful xd
Avatar
chillerdragon BOT 2024-02-15 08:50:43Z
Yikes
Avatar
chillerdragon BOT 2024-02-15 08:50:52Z
The Russian hackers
Avatar
This opens a huge door for hackers
08:51
Lua itself also has quite some cve apparently
08:51
Use wasm with rust
08:51
😏
Avatar
chillerdragon BOT 2024-02-15 08:52:25Z
I think it was lerato who once said „client side rce is a feature so servers can send better prediction code to reduce lags“
Avatar
Rust?
thonk 4
Avatar
Avatar
Mʎɹ シ
Rust?
Fake rust doesn't require parenthesis after a if or for token
08:55
Else indeed looks like rust
Avatar
Are there any more PVE mod like Zod, Monster?
Avatar
Avatar
Mʎɹ シ
Rust?
theres a syntax error on line 12
thonk 1
09:03
Huh, why?
Avatar
Avatar
Mʎɹ シ
Huh, why?
What is your question
Avatar
thursday vulkan?
Avatar
Avatar
Jupstar ✪
What is your question
Different styles xd
Avatar
Avatar
Ryozuki
thursday vulkan?
Oh yeah
Avatar
Avatar
Mʎɹ シ
Different styles xd
Ah yeah xd
09:05
Who cares
Avatar
Avatar
Mʎɹ シ
Rust?
Avatar
Avatar
Ryozuki
thursday vulkan?
@Learath2 how has your vk experience been so far?
Avatar
@TsFreddie
Avatar
Avatar
Jupstar ✪
Else indeed looks like rust
looks like js
Avatar
Avatar
Jupstar ✪
@Learath2 how has your vk experience been so far?
I couldn't work on it for a couple days. I was in germany
Avatar
no semicolons, recurring 5-character red identifier used as the only one makes me think const
Avatar
Avatar
Ewan
no semicolons, recurring 5-character red identifier used as the only one makes me think const
It looks like it wants to be written RTL instead of LTR
Avatar
Would be very funny
09:09
Opening parentheses the other way around
Avatar
Avatar
Mʎɹ シ
Rust?
wtf is it Arabic programming language ? 😄 (edited)
Avatar
Avatar
Vexar
wtf is it Arabic programming language ? 😄 (edited)
Maybe xd
Avatar
RTL language on LTR idea noice 😄
Avatar
@hussainx3 can u read left to right just as good as right to left? Is one easier/harder?
09:31
updated the look a bit
09:31
control-f5 to remove cache
09:31
owo
Avatar
Avatar
chillerdragon
I think it was lerato who once said „client side rce is a feature so servers can send better prediction code to reduce lags“
how can I get my bot's ID in the twnet_parser library
Avatar
pyson andy spotted
09:43
I don't think walking through walls has been added yet
Avatar
i don't think my screen res is high enough on this laptop (edited)
Avatar
Avatar
Bamcane
You need to recv the client extend serverinfo msg.
its already there like i can see max and current players on browser but doesnt go more than 16 (edited)
Avatar
chillerdragon BOT 2024-02-15 09:49:33Z
Are we openly sharing client bots in developer now?
Replying to @Teero image.png
Avatar
Avatar
chillerdragon
Are we openly sharing client bots in developer now?
yes visuals very bot!
09:51
only pathfinding no bot
Avatar
chillerdragon BOT 2024-02-15 09:51:58Z
thanks for the heads up :p
Replying to @ReiTW chillerdragon: had this at work yes
Avatar
ws-client BOT 2024-02-15 09:57:15Z
<ChillerDragon> @VaLl you are using the flood.py as base right? Then this should work https://paste.zillyhuhn.com/Fz
09:57
<ChillerDragon> irc code snippets be like
10:01
<ChillerDragon> axaxaxax i love how i converted two client skids to 0.7 users
Avatar
Thank you
Avatar
ws-client BOT 2024-02-15 10:01:39Z
<ChillerDragon> :3
Avatar
Avatar
ws-client
<ChillerDragon> :3
what is "ws-client"
Avatar
ws-client BOT 2024-02-15 10:25:14Z
<ChillerDragon> @4ipset https://chat.zillyhuhn.com/
10:31
<MyrKekomonter> huhuhuh
Avatar
Original message was deleted or could not be loaded.
i too cant
Avatar
Original message was deleted or could not be loaded.
token is nimrocks
Avatar
ws-client BOT 2024-02-15 10:34:57Z
<4ipset> hi guys
Avatar
ah lol i thouht it was a password confirm box xddd
Avatar
ws-client BOT 2024-02-15 10:36:46Z
<Chillerdragon> Hello World!
10:36
<4ipset> hi
10:39
<VaLl> hi\
10:39
<4ipset> yo
10:39
<VaLl> brownbear
10:39
<VaLl> hisnail
10:39
<4ipset> tee_thinking
10:40
<VaLl> oh
Avatar
ws-client BOT 2024-02-15 10:52:41Z
<AGJ> hey
10:52
<VaLl> hi
Avatar
Avatar
ws-client
my bot only writes the first message it sees
10:54
if (time.time() - self.last_send_time) > 0.1: self.send_msg(CtrlKeepAlive()) for msg in packet.messages: if msg.message_type == "game" and msg.message_name == "sv_chat" and msg.client_id != -1 and msg.message.find('!test') != -1 and msg.client_id != bot_info["id"] and msg.message != "Do you know someone who uses a bot? Please report them to the moderators.": print(1234) msg = MsgClSay(message = msg.message) msg.header.flags.vital = True self.send_msg(msg)
10:55
but he writes message 1234 to the console
Avatar
a friend just walked by me and saw me playin tw and he compared it to coolmathgames......
Avatar
Avatar
VaLl
my bot only writes the first message it sees
now he only writes if there is 1 letter
11:02
11:03
and the Russian doesn’t see
Avatar
chillerdragon BOT 2024-02-15 11:19:17Z
@VaLl: is your code public somewhere?
11:20
A person called vali using flood.py to connect bots to tw servers. Anyone else getting nostalgia from this? C:
11:23
xd
Avatar
chillerdragon BOT 2024-02-15 11:23:45Z
Oh
Avatar
Avatar
chillerdragon
A person called vali using flood.py to connect bots to tw servers. Anyone else getting nostalgia from this? C:
nostalgia hitting hard
Avatar
chillerdragon BOT 2024-02-15 11:23:57Z
xd
Avatar
Avatar
chillerdragon
A person called vali using flood.py to connect bots to tw servers. Anyone else getting nostalgia from this? C:
why does everyone call Vall by the name Vali? xd
Avatar
chillerdragon BOT 2024-02-15 11:24:51Z
Looked like an I
11:25
I just don’t expect the name vall
11:26
Differentiating between I and l is mostly context for me
Avatar
Avatar
chillerdragon
@VaLl: is your code public somewhere?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Avatar
Avatar
chillerdragon
Looked like an I
a lot of people called Vall named Vali ingame
Avatar
Avatar
chillerdragon
I think it was lerato who once said „client side rce is a feature so servers can send better prediction code to reduce lags“
I was talking about a very limited language though. Something perhaps intentionally not turing complete even
Avatar
chillerdragon BOT 2024-02-15 11:26:48Z
Sure sure
Avatar
he also sometimes writes messages to the logs 2 times
11:30
but it's probably my ping
Avatar
ws-client BOT 2024-02-15 11:35:00Z
<ChillerDragon> @VaLl looks like chance to me
11:35
<ChillerDragon> ah wait no hmm
11:35
<ChillerDragon> ah yes it is chance
11:36
<ChillerDragon> if (time.time() - self.last_send_time) > 0.1: this seems to be the problem i assume
11:36
<ChillerDragon> last_send_time gets set on every packet send including keepalives
11:36
<4ipset> what is it
11:37
<ChillerDragon> you put all the if statements with your reply logic into the keep alive branch
11:38
<4ipset> bot have ping 999 for no reason
Avatar
Avatar
ws-client
<ChillerDragon> if (time.time() - self.last_send_time) > 0.1: this seems to be the problem i assume
I removed if (time.time() - self.last_send_time) > 0.1
Avatar
ws-client BOT 2024-02-15 11:40:25Z
<ChillerDragon> you wanna keep the keepalive
11:40
<ChillerDragon> just put your logic outside of the if statement like all the other if statements
11:41
<ChillerDragon> and lmao there is a bug in the parser my bad
11:42
<4ipset> the bot still cant write letters
Avatar
he answers for a while and then stops
Avatar
ws-client BOT 2024-02-15 11:43:55Z
<ChillerDragon> oh and you overwrite msg
11:44
<ChillerDragon> wasnt a bug in my parser you just confused me
11:44
<ChillerDragon> you send a chat message and store it in msg =
11:44
<ChillerDragon> then you do a if statement based on msg as if it was a server sent message
Avatar
Avatar
ws-client
<ChillerDragon> then you do a if statement based on msg as if it was a server sent message
Avatar
@VaLl You are creating bot in python? xdd
Avatar
Avatar
Mʎɹ シ
@VaLl You are creating bot in python? xdd
Then I want to connect it to my discord bot
Avatar
Avatar
Mʎɹ シ
@VaLl You are creating bot in python? xdd
they want to create bot with ai
11:49
<ChillerDragon> ah your code is chatgpt?
Avatar
ws-client BOT 2024-02-15 11:49:51Z
<ChillerDragon> that explains things xd
Avatar
Avatar
4ipset
they want to create bot with ai
Huh
11:50
<ChillerDragon> lmao i got A1 paste like AI
11:50
<ChillerDragon> i made your code somehow functional
11:50
<ChillerDragon> ah i swapped out the ip to localhost
11:50
<ChillerDragon> you might wanna change that back
Avatar
oh thank you he started answering
Avatar
ws-client BOT 2024-02-15 11:52:14Z
<ChillerDragon> no code shaming and all but like watfk bro
11:52
<ChillerDragon> poggers2
Avatar
ws-client BOT 2024-02-15 11:53:38Z
<ChillerDragon> and a new bot dev is born poggies
Avatar
If 3 is greater that 3 I will get Dev role in ddnet (edited)
Avatar
ws-client BOT 2024-02-15 11:54:01Z
<ChillerDragon> int(dev)
Avatar
Avatar
ws-client
<ChillerDragon> ah your code is chatgpt?
no i mean that it will be a bot with artificial intelligence that will answer questions in the chat
Avatar
ws-client BOT 2024-02-15 11:55:00Z
<ChillerDragon> i see
Avatar
By using openai API? (edited)
Avatar
Avatar
Teero
By using openai API? (edited)
i think yes
Avatar
ws-client BOT 2024-02-15 11:55:25Z
<ChillerDragon> i should really build an chat bot example idk why i did not do it yet.
Avatar
we already try to build it
Avatar
Avatar
ws-client
<ChillerDragon> i should really build an chat bot example idk why i did not do it yet.
Yea add another repo to you 165
Avatar
ws-client BOT 2024-02-15 11:55:58Z
<ChillerDragon> nah just a file in examples/ folder
11:56
11:56
again he doesn't like something
Avatar
ws-client BOT 2024-02-15 11:57:25Z
<ChillerDragon> did you touch the code? :D
11:57
I just changed the IP and port
Avatar
ws-client BOT 2024-02-15 11:57:53Z
<ChillerDragon> ah i can reproduce
Avatar
@Ryozuki error: internal compiler error: compiler/rustc_middle/src/ty/generic_args.rs:898:9: type parameter U/#1 (U/#1/1) out of range when substituting found a compiler bug in rust stable epic compiler moment
Avatar
ws-client BOT 2024-02-15 12:02:23Z
<ChillerDragon> seems like it does not auto calc size
12:03
only responds to my first message
Avatar
ws-client BOT 2024-02-15 12:03:20Z
<ChillerDragon> yes the message length calc is off
Avatar
If you create a bot, either ask the server provider for their consent and mark it as bot
Avatar
this is the server @4ipset
12:07
I'm the admin there
Avatar
Fair enough. I was talking about a general process like that
12:08
If you are an admin you can approve yourself, but also mark it as bot, otherwise players might think that someone is on your server
Avatar
ws-client BOT 2024-02-15 12:08:10Z
<ChillerDragon> @VaLl yea im too lazy to fix that now but thats a bug on my end thanks for testing
Avatar
avo is scarred by iF xD
Avatar
I dont care about iF tbh
12:08
Its more the player experience
Avatar
Avatar
Avolicious
If you are an admin you can approve yourself, but also mark it as bot, otherwise players might think that someone is on your server
this is a temporary nickname until the bot is not fully operational yet
Avatar
ws-client BOT 2024-02-15 12:11:32Z
<ChillerDragon> oh i think its a pyson momemnt tbh
12:11
<ChillerDragon> where it remember last constructor arguments
12:11
<ChillerDragon> or something like that
Avatar
You can also announce "is_player": false, in the HTTP register. But to do this you need to rewrite some code#
Avatar
ws-client BOT 2024-02-15 12:17:33Z
<ChillerDragon> @VaLl okay so for now you can only ever send the same message length. Or set msg.header.size manually but its a bit trappy. I will not fix it today but its on my todo now.
Avatar
Avatar
Ewan
hi
poggers2
Avatar
Avatar
Ewan
hi
hey
Avatar
Avatar
Ewan
hi
нi
Avatar
wazzup
Avatar
Avatar
Ewan
the moon
No it's down
Avatar
it’s up right now
Avatar
Where's up?
Avatar
You are standing sideways
Avatar
definitely not
Avatar
Avatar
Ewan
above me
If you're a line and you take the normal at the height of your feet and then draw a 2d plane is it on the upper side or the other one (edited)
Avatar
The moon is above me dude
Avatar
Ah ok cool
12:47
What direction are you pointing in?
Avatar
away from the gravitational pull we describe as DOWN
Avatar
Woah cool so the moon is above me too?
12:49
Since it is not inside the planet?
Avatar
It is in that direction
12:49
Below
12:49
Moon is down for u
Avatar
What is moon for earth?
12:49
Below or up?
Avatar
Depends on where you make the measurement
12:50
there is no objective up or down in space
12:50
you need an anchor of some kind
Avatar
I believe the earth isn't perfectly circular so highest point is the head
Avatar
*anchor (edited)
Avatar
Not really
12:51
That’s not how anyone defines a head
12:51
It is the furthest point on a generally spherical mass
12:52
My toes are furthest out from my center of mass so they must be my head
Avatar
Yea do the average of all points on the earth and then check which is furthest
Avatar
Avatar
Ewan
My toes are furthest out from my center of mass so they must be my head
That is the truth
12:53
Okay mount Everest with 8849m is the anchor
12:54
So where is the moon rn?
12:54
Above you?
12:54
If so we need to know where you are
Avatar
It’s above me yes
12:54
Not you
12:54
It’s below you
12:55
Also not sure what furthest point has to do with it
Avatar
So if we assume you are the moon and are represented as a 2d vector of angles pointing from the center of the earth (edited)
12:56
And I am the same but somewhere else where the moon is not above me
Avatar
I’m Not the moon
12:56
I’m me
Avatar
Avatar
Ewan
I’m Not the moon
Since the moon is above you I can say you are the moon +-90°
12:58
The moon is above me because it’s night time
Avatar
So in the current time you are almost the moon
12:58
  • +-90°
(edited)
Avatar
I am not the moon
12:59
I’m not almost the moon
Avatar
But in my head you are and you can do nothing against it
13:00
You rock 🪨
🪨 1
Avatar
C++23 still doesn't have compound literals...
Avatar
I know it worked in msvc once
13:23
Idk if it still does
13:24
you could pass vec2(x+x,y+y) as a reference to a function directly. If that's what you mean with compound literals
Avatar
what a cool yavascript feature. took only few hours to find it pepeW
Avatar
Avatar
MilkeeyCat
what a cool yavascript feature. took only few hours to find it pepeW
use map)
Avatar
it can finally draw something poggers2 (coordinates are fucked up tho)
Avatar
Avatar
MilkeeyCat
what a cool yavascript feature. took only few hours to find it pepeW
xd, had something similar on pyson
Avatar
Avatar
Matodor
use map)
it was just weird that it went thru loop one time and all 50k elements have the same value justatest
Avatar
Avatar
zhn
xd, had something similar on pyson
Had something similar on lua
14:44
And this was memory leak, cuz gc in lua 5.4 is shit, LuaJIT better
Avatar
Avatar
MilkeeyCat
it was just weird that it went thru loop one time and all 50k elements have the same value justatest
To quote ryo. Wouldn't have happened with rust
14:55
U'd have need to call clone for each and the type would be Rc
Avatar
Avatar
MilkeeyCat
it can finally draw something poggers2 (coordinates are fucked up tho)
Watcha working on
Avatar
Contribute to MilkeeyCat/ddnet_demo_web_viewer development by creating an account on GitHub.
Avatar
Epic
Avatar
i can somehow parse data
14:56
but cant draw anything
Avatar
Does your loader support glsl es?
14:57
That's cool
Avatar
am looking at ddnet graphics code and making it in js
Avatar
Avatar
MilkeeyCat
am looking at ddnet graphics code and making it in js
Do you already know typescript?
Avatar
Avatar
Jupstar ✪
Do you already know typescript?
yea xd
Avatar
I c
Avatar
Avatar
Jupstar ✪
I c
what was the url to ddnet client compiled to wasm? (edited)
Avatar
Avatar
MilkeeyCat
what was the url to ddnet client compiled to wasm? (edited)
Ddnet.github.io
Avatar
Avatar
Jupstar ✪
Ddnet.github.io
xd its on version 15.9.1
Avatar
Avatar
Teero
xd its on version 15.9.1
Yeah nobody uses it anyway xd
Avatar
Not wasting time with updating
Avatar
when the hint hints the hint
Avatar
server auto kicks afk players without a timer when it hits player cap feature when
💸 1
Avatar
Avatar
Jupstar ✪
when the hint hints the hint
today i learned floats are 2 to 5 times slower than integers
Avatar
Avatar
Teero
today i learned floats are 2 to 5 times slower than integers
in what task?
Avatar
multiplication
Avatar
Avatar
Teero
multiplication
so when is 2 times slower and when 5 times?
18:05
at multiplication
Avatar
*according to llm
Avatar
Avatar
Teero
*according to llm
last few months i dont trust any word chat gpt says
Avatar
its very bad at coding ik
Avatar
Avatar
Teero
*according to llm
xdd
Avatar
and to my tests the higher the floating point numbers are the slower it gets
18:10
@Jupstar ✪ when we finally convert all those vec2s into ivec2s in ddnet code we can do 512 players xd
18:11
DDNet 2.0
Avatar
Avatar
Teero
@Jupstar ✪ when we finally convert all those vec2s into ivec2s in ddnet code we can do 512 players xd
ask your chatgpt if that also applies for fixed point numbers at division
Avatar
spouting the same shit again
Avatar
Avatar
Teero
spouting the same shit again
it's not even gpt4 is it?
Avatar
nop i dont have xddd
Avatar
gpt3 is dumb af. better not to use it than use it xD
Avatar
gpt4 at least sometimes is correct xD
Avatar
i don't trust a word from it when it comes to coding
18:15
it doesn't even know what optimization is.... (edited)
18:15
and it can't find memory leaks ;( (edited)
Avatar
i think both are wrong on x64 and on any high end cpu
18:43
or most desktop cpu
18:43
floating point division or multiplication implies 23 bits or 51 bits operation while integer one is 32 or 64
18:46
hmm, 3 or 4 cycles for integer ones, 5 cycles for floating point ones
18:47
(for haswell architecture, already quite old with jupstar's standard)
18:48
however, floating point division is faster (22-96 integer vs 10-24 for floating point)
Avatar
but i guess it also depends on how exactly the calculations are used in a tight simd sceneraio ofc every cycle matters but if u mix calculations with other stuff (pointer acces etc.) the calculations are often offloaded to the floating point unit while other stuff happens simultaniously
Avatar
does anyone have experience in analyzing discrete data?
19:18
I need to split the data into approximately the following intervals (segments with a beginning and an end time)
Avatar
fft, retrieve main frequency, sample at the correct interval
19:33
you can also look at the derivative to detect sign changes
19:34
which is where this kind of stuff might occur
19:34
(but it's not 100%)
Avatar
Damn u woke chairn
Avatar
what you trying to achieve exactly?
Avatar
Avatar
Chairn
what you trying to achieve exactly?
determination of useful work based on the generic current of the press (edited)
Avatar
shouldn't you try some computation and integration then ?
Avatar
Avatar
Chairn
shouldn't you try some computation and integration then ?
now a very stupid algorithm has been made, to consider everything above a certain value as useful work, this would be enough, but on different days this limit either rises or falls, such an algorithm is not suitable, a more universal one is needed
Avatar
Avatar
Chairn
fft, retrieve main frequency, sample at the correct interval
fft its Fast Fourier Transform ?
19:38
but now, im not sure this is the way to go given your problem
Avatar
Avatar
Chairn
but now, im not sure this is the way to go given your problem
thanks, I'll study it
Avatar
Avatar
Matodor
determination of useful work based on the generic current of the press (edited)
"useful work" sounds hard to define, especially starting from just "current"
20:35
Current through a resistance creates power, how much of that power is useful to you? Can you even model this system as a resistance?
20:36
The intervals you marked roughly looks like just threshold comparisons, maybe with a bit of hysteresis (edited)
20:40
If you are having an issue with the thresholds changing, the slope of this graph looks very steep, maybe the derivative is more telling about when the machine is doing "useful work"
20:43
Another tip would be to discard the DC component, for which you can use the 0th component of the FFT, you'll just have to play around with a couple of these ideas until you find something that looks distinct enough
👍🏻 1
Avatar
Closes #7965.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/...
Avatar
Avatar
Ryozuki
damn, pretty nice
Avatar
As seen in one of the CI runs of #7979: ``` 2024-02-15 21:12:11 I client: git revision hash: 677f1dc97de028bd 2024-02-15 21:12:11 I config: saved to settings_ddnet.cfg 2024-02-15 21:12:11 I client: disconnecting. reason='unknown' 2024-02-15 21:12:12 E http: https://info.ddnet.org/info?name=nameless%20tee failed. libcurl error (42): Shutting down 2024-02-15 21:12:12 I serverbrowse_http: found master, url=...
Avatar
ab34459 Fix assertion due to double-free of transparent texture - Robyt3 fdf427d Fix entities textures not being built for non-DDNet/DDRace types - Robyt3 467c497 Merge pull request #7979 from Robyt3/Client-Entities-Mod-Fixes - def-
Avatar
Avatar
Teero
its very bad at coding ik
furo recommended a nice tool called https://phind.com - its AI that links the source it spits out to you, so if in doubt you can check that source for yourself - can be helpful sometimes
👍 1
🚀 1
Exported 380 message(s)