Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2021-02-05 00:00:00Z and 2021-02-06 00:00:00Z
Avatar
as said
00:00
they wont have GPUs to run anything than 1.x anyway
Avatar
Well at the very least the person that actually reported the issue won't be happy that we doomed him to bad performance 😛
Avatar
you think my 2012 GPU doesn't support anything newer than opengl1.x?
Avatar
is it 64bit ready?
Avatar
yes
Avatar
see
Avatar
Atleast he can compile his own tho so he is better off than most people with 32bit computers
Avatar
so u can use 64bit
Avatar
well, the error message doesn't hurt
00:03
not even in program complexity I think
Avatar
but u underestimate ppl
00:04
they never get warnings
00:04
they read it and are like, WTF?? ERROR
Avatar
I'll try to look into TraceProcessor later to parse xperf recordings to get a high resolution timeline. I want to know why we leave that 260M block free
00:05
Oh or maybe attach a kernel debugger, that sounds fun
Avatar
@Learath2 at this point just replace windows with linux kernel silently ^^
00:05
get microsoft dev
Avatar
You should read the blog of that guy I mentioned, he does stuff like this all the time to figure out chromium performance issues and bugs
00:06
There are ways to work around the idiocy of windows
Avatar
sounds cool, if u have infinite time
00:08
then i'd also write teeworlds-os
00:08
that can only run teeworlds
Avatar
We should work on an asciiart renderer for the next version, for the computers with 8g of ram, because that's just of the past decade
Avatar
just saw a video of smone writing raytraced ascii renderer xd
Avatar
Funnily with the heap growing top down the allocations actually do fit
00:11
even without largeaddressaware
Avatar
Okay xperf is great
00:30
Though I kinda need a workstation to run this thing, it's insane the amount of processing power it uses
Avatar
Great, I spent almost an hour researching how to browse the virtual memory of a windows process, tried it unresolved external symbol _PssCaptureSnapshot referenced in function _dbg_dumpmem
02:20
because it would kill us if god forbid for once our game builds without 10 thousand linking issues
Avatar
https://gist.github.com/Learath2/dfc67040e79598d8551aeac382ffc79e you can not possibly comprehend how happy I was to get this working
03:10
an API scarcely documented, mostly used by malware developers
Avatar
Okay monkey patching native code is just too much work
Avatar
I missed these extended debugging sessions, first time I've had fun in months
Avatar
im sure that hammerfly is just a variable you set and it is read somewhere but i cant find where its read (edited)
Avatar
Hammerfly? You mean the dummy hf?
14:44
its all jank
14:45
what actually sends of the thing to make the dummy fire
14:45
if((m_DummyFire / 12.5f) - (int)(m_DummyFire / 12.5f) > 0.01f) { m_DummyFire++; return 0; } m_DummyFire++; m_HammerInput.m_Fire = (m_HammerInput.m_Fire + 1) | 1; m_HammerInput.m_WantedWeapon = WEAPON_HAMMER + 1; if(!g_Config.m_ClDummyRestoreWeapon) { m_DummyInput.m_WantedWeapon = WEAPON_HAMMER + 1; } vec2 Main = m_LocalCharacterPos; vec2 Dummy = m_aClients[m_LocalIDs[!g_Config.m_ClDummy]].m_Predicted.m_Pos; vec2 Dir = Main - Dummy; m_HammerInput.m_TargetX = (int)(Dir.x); m_HammerInput.m_TargetY = (int)(Dir.y); mem_copy(pData, &m_HammerInput, sizeof(m_HammerInput)); return sizeof(m_HammerInput);
14:45
i found this but changing WEAPON_HAMMER to WEAPON_LASER turns it into a gun?
Avatar
u have a typo there
14:47
also dont post such big code
14:47
this chat is connected to irc
Avatar
wow im dumb soz but uhh do u know how changing WEAPON_HAMMER to WEAPON_LASER changes it to gun
Avatar
u know there is a +1 right
14:50
WEAPON_LASER + 1 is equal to WEAPON_NINJA
Avatar
but then WEAPON_HAMMER + 1 = hamer?
14:50
= gun
14:50
Avatar
but its not gun when its unedited
Avatar
it sets the m_WantedWeapon
14:51
btw do u have the laser
14:51
if u dont then m_WantedWeapon is prob ignores
14:51
and thats why u get a gun
14:51
but idk
Avatar
m_HammerInput.m_WantedWeapon = WEAPON_LASER + 1
14:51
remove the +1?
Avatar
very confusing
Avatar
but if u havent acquired the laser
14:52
it prob wont work
14:52
idk what this code does tho
Avatar
dummybot
14:53
xd
Avatar
@Ryozuki dont remove the +1
troll 1
Avatar
tell him not me
14:54
xd
14:54
it works ? xd
Avatar
i just ctrl c ctrl v the dummy code change it for laser cuz i wanted laser dummy
Avatar
@Solly wanted weapon is the direct weapon selection which uses the input, and 0 means no weapon selected
Avatar
@fokkonaut u know that WEAPON_HAMMER + 1 is essentially WEAPON_GUN
Avatar
check the server side of the code
Avatar
Avatar
fokkonaut
@Solly wanted weapon is the direct weapon selection which uses the input, and 0 means no weapon selected
oh okay
Avatar
its weapon+1
14:54
for wanted weapon using direct weapon selection
14:55
iirc
14:55
xD
Avatar
0 means hammer
Avatar
Not in wantedweapon case
Avatar
there is always a weapon selected
Avatar
my dummy is now capable of wall shotting me somehow
justatest 1
14:55
i helped abotter
14:55
rip
Avatar
Ryozuki for me, there is never a directly selected weapon because I dont use +weaponX
14:55
i just scroll
14:56
so it stays 0 for my character all the time
Avatar
isnt scroll +weapon or smth
Avatar
it says wanted++ ig
Avatar
@Ryozuki scroll just goes to the next weapon, not selecting a weapon directly
14:56
yes
Avatar
i mean if u think it logically scroll probs sets the wanted weapon to the next
14:57
but idk i didnt look the code
14:57
wanted weapon is something else xd
14:57
as said
14:58
Idk why everything I say has to be wrong ^^
14:58
I worked with this part of the code already
Avatar
dont get offended
Avatar
its okay
14:58
Lol
Avatar
0 means no direct selection
15:04
back to rust
15:04
monkalaugh
15:04
@Learath2 in my way towards learning rust macros i found something interesting, you can create compiler errors and tell the compiler the span of the code that makes those
15:05
rust master race monkalaugh
Avatar
Avatar
Ryozuki
i helped abotter
I was going to stop you because no one asks about that part of the code
Avatar
i realized it later
15:09
xd
Avatar
I knew it the second I heard about the uninformed question, noobs only want to touch that part of the code because they want to make bots
Avatar
Avatar
Ryozuki
@Learath2 in my way towards learning rust macros i found something interesting, you can create compiler errors and tell the compiler the span of the code that makes those
This is very useful, I wish clang had such pretty errors and ways to trigger more informative asserts
Avatar
poggers learath agreed poggers
Avatar
I’ll work on a language called definitelyNotRust taking all the parts I like ;P
15:12
i noticed a lack of blog posts about macros doing the stuff i do
15:12
a free path for my blogging career
15:12
rust macros
15:12
monkalaugh
15:12
it rly looks like black magic
Avatar
My adventures yesterday confirmed that tooling for windows is shit.
Avatar
actually with this spanned compiler errors i can do really precise macro attributes
15:16
e.g the input can only accept text, password, email
Avatar
Chromium apparently stole my idea and made their own. They monkey patch all allocation functions by disassembling at runtime
Avatar
rly epic
Avatar
Avatar
Learath2
My adventures yesterday confirmed that tooling for windows is shit.
monkalaugh
15:17
@Learath2 i see tweets on twitter "linux is the best os for dev"
15:17
and windows normies in replies
15:17
telling windows is the best
15:17
and i cant laugh more
Avatar
But memory debugging tools are shit everywhere, which confirms my worst fear
Avatar
@JKirstaetter @csharpfritz Windows can run Windows and Linux. It’s the best dev OS especially when working with docker.
15:18
nouis
Avatar
Modern programmers give no shits about memory usage
Avatar
@Learath2 modern programmers directly dont know c+
15:18
why would they give a shit about memory
15:19
they use their javascripts
15:19
and some python here and there
Avatar
And the interfaces to develop such tools are only slightly better on windows
15:19
On linux**
Avatar
cant u do some kernel levels stuff to debug memory or something
Avatar
On windows literally the only way to keep track of allocations is a monkey patched hook you can get by injecting a dll into the process, or a kernel interface soooooo badly documented that you'd cry
Avatar
level*
Avatar
Like the kernel interface is only there for windows' own performance toolkit
15:21
They only document a handful of functions to interact with it
15:25
omg
15:25
im loving this
15:26
15:26
greenthing
Avatar
also with dummy hammer it doesnt actually point at a player but seems to be randomly up?
Avatar
dont ask coding help for botting
15:27
do this to fix all ur issues
15:27
git reset --hard origin/master
Avatar
it was for ddrace maps
15:28
also it is just the original code which isnt aiming at me
15:29
or now it is? (edited)
Avatar
botters out
Avatar
no its that hammer fly keeps breaking
15:30
like if i hook it
15:31
im very confused
Avatar
I have a 6% solution of acetic acid. I need a 12% solution, assuming only water boils off, which is true at these concentrations. Is havling the volume close enough?
justatest 1
15:34
@Solly we think you are making a bot. We don't want to help you any further
Avatar
its hammerfly but with laser instead of hammer
15:34
for ddrace maps
Avatar
@noby
15:34
@gnu
15:34
ah
15:34
fuc
15:34
@noby
15:34
xD
Avatar
Spammer
Avatar
big sorry
Avatar
Avatar
Learath2
I have a 6% solution of acetic acid. I need a 12% solution, assuming only water boils off, which is true at these concentrations. Is havling the volume close enough?
Assuming the density is relatively constant evaporating off half should work
15:49
Hopefully I'm correct about water and acetic acid not forming an azeotrope this early on
Avatar
Avatar
Learath2
I have a 6% solution of acetic acid. I need a 12% solution, assuming only water boils off, which is true at these concentrations. Is havling the volume close enough?
are u making chemistry now
Avatar
Pickles
Avatar
It would be extremely funny if I get chemical burns in my lungs because of acetic acid vapour
Avatar
you could also just go outside and buy pickles greenthing
15:53
no risk in burning your lungs
Avatar
But the italian people make bad pickles
Avatar
i think halving is close
15:54
according to my rule of 3
15:54
idk if this even makes sense
Avatar
Besides where is the fun in that. It should make my eyes burn way before there is a risk of lung damage
Avatar
Oh it never even forms an azeotrope
Avatar
learath making drugs
Avatar
I stopped 150ml short, i forgot how god awful vinegar smells when boiled
Avatar
@Solly tools not included in the official ddnet client that automate gameplay are considered bots. if you get caught with one of these on official ddnet servers, it will get you banned
Avatar
auto laser should be a feature then cri (edited)
Avatar
Avatar
jao
learath making drugs
Nothing much to be made from acetic acid but pickles :P
16:38
I guess you could use it in candy making if you are russian
Avatar
suggest it on github then, but I don't think there'll be consensus to add it @Solly
Avatar
@Learath2 you are like my friend who made drugs and fireworks
Avatar
Auto laser would make some insane parts trivial with dummy
16:38
There us no way we add that
16:39
is*
Avatar
I'm just presenting the correct route for suggesting that feature, and saying that it's unlikely to get added
16:39
^^
Avatar
is shooting a person that hard
Avatar
Then you can definitely do it yourself without the help of a bot :)
Avatar
well, that's called an aimbot if you automate it
16:41
so apparently it's hard enough to get you banned in all sorts of games
Avatar
it cant be used for fng / zcatch cuz its hitting player not anyone else
Avatar
it's still a gameplay advantage for ddnet servers, which is not okay since they also host something competitive: racing
Avatar
ur never gonna be faster with a dummy than a player so where it matters it doesnt effect right
Avatar
coradax is much faster than most any player with his dummy on just fly 1. @murpi here probably plays better with dummy than he does with ppl :D
Avatar
because other people are so bad 😛
Avatar
This is also a factor :P
Avatar
You can also probably do a hacky udp gateway to switch between having dummy and real partner instantly
Avatar
also laser fly doesnt effect lasery.. stuff
16:45
and also because of the glitchiness of hammer fly can be achieved if u hit 5 on ur dummy then hammerfly then switch u get lazered anyway
Avatar
? What is a laser fly even? It would literally just periodically laser you
Avatar
laser fly = hammer fly without the hammer but with the laser
Avatar
Which is just a periodic shot of laser. What do you even want this for?
Avatar
aimbotted unfreeze by laser, I guess
Avatar
That was my guess aswell, but he says that's not it
Avatar
i do it with hammerfly glitchiness anyway so
Avatar
@heinrich5991 already possible by deepfly bind
16:47
and dummy
Avatar
fine, then use that
Avatar
@fokkonaut really? Can you get it to shoot any weapon?
Avatar
yes
Avatar
the first shot only though, but you can just restart it ^^
Avatar
u can already make laser shoot u
16:48
dummy laser*
Avatar
Lol, we keep coding the oddest of stuff. Maybe we should look for jobs in microsoft
Avatar
its annoying for using hammerfly but can be used for laser n stufz
Avatar
@heinrich5991 if you dont keep the fire input you dont have to reset
16:48
it can stay on rifle
Avatar
ah
16:49
stuff like that is why I don't like https://github.com/ddnet/ddnet/pull/3552
SYNOPSIS eval_if s[config] s[comparison] s[value] s[command] ?s[else] ?s[command] EXAMPLE eval_if ui_server_address == "localhost" "rcon_auth rcon" else &quo...
Avatar
@heinrich5991 I can't think of many new constructs that are possible
Avatar
yea, I also didn't know you could laser yourself with the dummy hammer for the longest time
Avatar
The most innovative thing was that access to inputstate abusing unimportant configs
Avatar
Avatar
heinrich5991
yea, I also didn't know you could laser yourself with the dummy hammer for the longest time
That is more on our implementation of hammerfly bot
Avatar
yes plus the input handling on the server, probably
Avatar
I guess that's also an unexpected construct though
16:51
I wonder if eval if makes teeworlds console turing complete :D
16:53
Ah needs an arithmetic operation
feelsamazingman 1
17:11
@heinrich5991 ^
Avatar
oh, cool 🙂
Avatar
so when is this blog psot of yours going to come out? ^^
17:13
well first i want to finish this crate a bit
17:13
i probs discover more stuff
17:13
will*
17:13
A rust proc macro to generate html forms from structs - edg-l/formy
17:15
@heinrich5991 did u mention u that i made a blog post about the error stuff we discussed? it also was features in this week in rust
17:16
it has 5k visits
17:16
monkalaugh
17:16
17:16
did i*
Avatar
link? 🙂
17:16
no, you didn't
17:16
u can find it here
17:16
"Rust Walkthroughs"
Avatar
oh wow, nice 🙂
Avatar
ah now that I read the post again, I think I even read it before ^^
17:18
i think my blog will end up only being rust
17:18
i also have this, idk if u read it https://edgarluque.com/blog/rust-iterator-fibonacci
17:18
when i learned how to impl iterators
Avatar
@heinrich5991 u had a blog too right?
Avatar
only one blog post
17:20
not sure if it counts as a blog ^^
17:20
the one tick unfreeze
Avatar
im sure u can write about a lot of stuff
17:21
u know way more than me :)
Avatar
idk, I'll write something if something interests me and I think that it also interests others and I want to spend some time on writing it down
Avatar
i also think about it a lot
17:22
but u would be surprised
17:22
even small simple stuff interests others
Avatar
potatoes
17:46
interesting rihgt
Avatar
[quakenet] ChillerDragon BOT 2021-02-05 18:08:27Z
congratz for ending up in this blogpost @Ryozuki o.O
Avatar
[quakenet] ChillerDragon BOT 2021-02-05 18:09:08Z
@heinrich5991 if its tw related count in one interested chillerdragon
😄 1
Avatar
[quakenet] ChillerDragon BOT 2021-02-05 18:31:56Z
@qshar still no success with logging in any ideas what could go wrong during pw reset? Ip filter? Sync delay with tw server? Unsupported pw len? Unsupported characters?
18:32
it says pw change successfully but ingame the pw wont work
Avatar
i had the same exact problem, tried a few different passwords and came to the conclusion that my passwords were too long...
Avatar
how do you get the current gamemode from gameclient client (so i can check if its zcatch c;)
Exported 308 message(s)