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-07-25 00:00 and 2024-07-26 00:00
Avatar
u can try looking at similar pull requests ans seeing what files they edit
Avatar
chillerdragon BOT 2024-07-25 00:00
but you don't need to know about the low level stuff
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@heinrich5991 Hmmm, it's a useful for people to know when they can attempt to rejoin after they've been whitelisted, because I don't normally remove the ban (edited)
Avatar
chillerdragon BOT 2024-07-25 00:01
So technically input is not its own packet but its own message and multiple messages can be bundled in one packet when they are sent. But you can think of input like movement as one message.
00:02
Messages contain fields that are either strings or integers @APFFF how many strings and integers and what they mean and which order they are in is pre agreed on. Sometimes you have to manually build those messages and sometimes you can use helper structs or methods
Avatar
the way im used to Server/Client interaction is by REST api
Avatar
chillerdragon BOT 2024-07-25 00:02
Yea this is different
00:02
C++ struct CNetObj_PlayerInput { int m_Direction; int m_TargetX; int m_TargetY; int m_Jump; int m_Fire; int m_Hook; int m_PlayerFlags; int m_WantedWeapon; int m_NextWeapon; int m_PrevWeapon; };
🤌🏼 1
Avatar
yeah, im trying to understand
Avatar
chillerdragon BOT 2024-07-25 00:02
this is what is used for inputs for example
Avatar
tbf, I mostly do web stuff
Avatar
chillerdragon BOT 2024-07-25 00:03
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
00:04
input is being sent in this method
00:04
the code is always a bit all over the place
f3 1
00:04
I documented a few messages what they should include in the end when they are being sent
00:04
here is input
Avatar
today is the day I learned its called packet, not package poggers2 nouis (edited)
Avatar
chillerdragon BOT 2024-07-25 00:05
C++ CMsgPacker Msg(NETMSG_INPUT, true); Msg.AddInt(m_aAckGameTick[i]); Msg.AddInt(m_aPredTick[g_Config.m_ClDummy]); Msg.AddInt(Size); ...
🤌🏼 1
00:05
this is where the message is being built
00:05
The CMsgPacker builds a new message. We tell it we want a input message and then we will the integers in the correct order using the AddInt method
00:06
further down the actual input struct will be iterated and packed as a bunch of integers
Avatar
I hope I wont get flagged as a bot client when sending weird packets
00:07
or are they just ignored
Avatar
chillerdragon BOT 2024-07-25 00:07
You won't get flagged as bot
00:07
You might have trouble on ddos protected servers such as ger10 they like to drop weird things
00:07
but generally if you send weird stuff the server ignores it
Avatar
good to know
Avatar
chillerdragon BOT 2024-07-25 00:08
The server then checks which message you sent with else if(Msg == NETMSG_INPUT)
00:08
And then it unpacks the same integers in the same order we just sent
00:08
00:09
A simpler message sending to look at than input is the chat
00:09
Here you have one full message build and send in a few lines
00:10
This one is not packing integers and strings manually. But it is using the C++ struct for it.
00:10
Those are the two options.
00:11
@APFFF: but unless you want to fork of and create a custom game thats not compatible with ddnet by changing server and client protocol that stuff should not be interesting to you.
00:11
as a client you can only send what the server understands and for those things there are already methods
Avatar
Thank you
Avatar
chillerdragon BOT 2024-07-25 00:11
So if you want to send a chat message you just say m_Chat.SendChat(0, "hello");
Avatar
great explanation!
00:12
Thank you for your effort!
Avatar
chillerdragon BOT 2024-07-25 00:12
c:
Avatar
The server code is in the project as well, right? (edited)
Avatar
chillerdragon BOT 2024-07-25 00:13
yes its one shared code base
00:13
some of the code is even included in both the client and the server
Avatar
where are the requests being handled?
Avatar
chillerdragon BOT 2024-07-25 00:13
multiple places
00:14
i sent you the one example for input
Avatar
Maybe I havent understood the project structure, but I get the feeling, that stuff is all over the place justatest (edited)
Avatar
chillerdragon BOT 2024-07-25 00:14
yes
Avatar
chillerdragon BOT 2024-07-25 00:15
I think trying to understand it all by browsing the code is a bit exhausting
00:15
youll get the hang once you actually work with it
00:15
i suggest to just start building what ever you wanted to build
Avatar
yeah thats what im doing rn
Avatar
chillerdragon BOT 2024-07-25 00:15
you can ask questions on where to find the things you need here and then you slowly will understand the code base
👍🏼 1
Avatar
I usually ask for examples so I have an entry point
00:17
I have never used c++ and i have never worked on a (large) software project, only web projects (edited)
Avatar
chillerdragon BOT 2024-07-25 00:25
How is that as an example?
00:25
00:25
@APFFF:
Avatar
Avatar
chillerdragon
How is that as an example?
thanks a lot!
00:26
I will look into it, doing my own example rn
00:26
One more question: where are files like executable png being pulled from? My understanding is, that there are two places, one is the local client and one is steam?
Avatar
chillerdragon BOT 2024-07-25 00:27
executable png? xd
00:27
$configdir
00:27
omagawd i never know how to trigger that bot
Avatar
Avatar
chillerdragon
executable png? xd
the picture used for DDNet.exe
Avatar
chillerdragon BOT 2024-07-25 00:28
yea they are in some steam folder
00:28
or if you download ddnet from the website they are in the folder you downloaded
00:29
The folder is called data/
👍🏼 1
Avatar
Avatar
chillerdragon
yea they are in some steam folder
Another thing I would love to see an example of, is how the skins are being rendered. e.g. in the Emote-Wheel (edited)
Avatar
i rly just gotta keep my mouth shut
Avatar
Avatar
APFFF
Another thing I would love to see an example of, is how the skins are being rendered. e.g. in the Emote-Wheel (edited)
prolly RenderTee() in render.cpp
👍🏼 1
Avatar
Avatar
Ewan
i rly just gotta keep my mouth shut
why?
Avatar
i gave u incorrect info lol
Avatar
ah np dw
00:52
A wrong answer is better than no answer
00:58
can someone explain what i need to do to make cmake work if i add a file thonk
00:58
i just clicked 'ok' on whatever visual studio auto popped up but now it won't compile
Avatar
You need to put it in the cmakelist
01:00
Don't add files through visual studio solution explorer, make them in the source folder first then regenerate the project. (edited)
Avatar
okay ty
Avatar
How can I create a replay from any class but CClient. I want to trigger making a replay from the class CEmoticon, but I've been struggling (edited)
Avatar
chillerdragon BOT 2024-07-25 02:34
What is a replay
02:35
@APFFF:
02:38
You can access the client from emoticon with m_pClient->
Avatar
MilkeeyCat 2024-07-25 06:26
morning
Avatar
morning
07:24
after gym session
07:24
gigachad
Avatar
In this article, we will explore some of the offensive capabilities that eBPF can provide to an attacker and how to defend against them.
08:37
but still, if someone is root on your machine
08:37
you're already compromised lmao
Avatar
But yea if you are root you can basically do rly good stuff, like also hide a malicious process whenever someone does ps or top
Avatar
Avatar
murpi
@heinrich5991 Hmmm, it's a useful for people to know when they can attempt to rejoin after they've been whitelisted, because I don't normally remove the ban (edited)
heinrich5991 2024-07-25 09:33
maybe we can shorten the ban to 1 minute for this?
Avatar
GitHub BOT 2024-07-25 09:35
This would require less manual thought about the order. I'd even include the "None" category there.
Avatar
chillerdragon BOT 2024-07-25 09:40
Could also just kick
Replying to @heinrich5991 maybe we can shorten the ban to 1 minute for this?
Avatar
Avatar
chillerdragon
Could also just kick
heinrich5991 2024-07-25 09:42
nah, the lookup has some delay, makes sense to ban for a high multiple of that
09:42
the ban is essentially a cache of the lookup
Avatar
chillerdragon BOT 2024-07-25 09:42
I see
09:42
Sounds like the cache is in the wrong place
Avatar
heinrich5991 2024-07-25 09:43
it works 🤷‍♀️
Avatar
chillerdragon BOT 2024-07-25 09:43
But who am I to talk. I would for sure used something as hacky or worse xd
09:43
*if I would support bans
09:44
#banbans
09:45
Can a bunch of spoofed IPs fill the ban list?
Avatar
heinrich5991 2024-07-25 09:46
you cannot spoof a join in a ddnet server
09:46
so no
Avatar
chillerdragon BOT 2024-07-25 09:46
When does it ban? After join?
09:47
Ah right because it takes time. So joining starts some dnslb lookup process?
Avatar
heinrich5991 2024-07-25 09:49
yes
Avatar
TestWorkflowEnvironment is used to execute UpdateAccountWorkflow. Please create a new TestWorkflowEnvironment for UpdateAccountWorkflow another one of the errors
Avatar
Quick question, when exactly are new players added to the db? Is it when they first join a ddnet server or when they finish their first map?
Avatar
heinrich5991 2024-07-25 10:13
finish their first map
Avatar
Alright, also if I check their points before that, does it add an entry then tell me or just assumes 0 points?
10:14
same with /rank ig (edited)
Avatar
heinrich5991 2024-07-25 10:14
I think it says "no rank"
10:14
so it doesn't add an entry
Avatar
ah so doesnt bother to add them to the db unless they actually finished a map first (edited)
10:15
got it
Avatar
@heinrich5991 Do you know if people are able to join a server before the dnsbl check, if enabled, has finished (for example due to response delays by the dnsbl provider)
Avatar
Avatar
murpi
@heinrich5991 Do you know if people are able to join a server before the dnsbl check, if enabled, has finished (for example due to response delays by the dnsbl provider)
(they should be able to iirc, but I don't have the code in front of me)
Avatar
Avatar
Learath2
(they should be able to iirc, but I don't have the code in front of me)
Hmmmm, if you do check, could you maybe figure out if @Robyt3's change to the dnsbl_ban behaviour will account for that?
10:25
#8640
Avatar
Only ban DNSBL blacklisted players once when joining immediately after the DNSBL result is available, to prevent current players from having their runs ended when the sv_dnsbl_ban setting is enable...
Avatar
ws-client BOT 2024-07-25 10:47
<ChillerDragon> Does someone have a good intel x86_64 assembly neovim config? I tried https://github.com/bergercookie/asm-lsp and its a huge downgrade compared to my vim + YouCompleteMe + gutentags + ctags setup
Language server for NASM/GAS/GO Assembly. Contribute to bergercookie/asm-lsp development by creating an account on GitHub.
Avatar
MilkeeyCat 2024-07-25 10:48
i raw dawg it without any lsp feelsbadman
👀 1
Avatar
ws-client BOT 2024-07-25 10:49
<ChillerDragon> I really need my labels to auto complete
10:49
<ChillerDragon> worked so smooth in vanilla vim
Avatar
Avatar
murpi
Hmmmm, if you do check, could you maybe figure out if @Robyt3's change to the dnsbl_ban behaviour will account for that?
heinrich5991 2024-07-25 11:02
yes, should work
Avatar
Avatar
heinrich5991
yes, should work
Should work in the sense that it would ban the person?
Avatar
archimede67 2024-07-25 11:29
@Learath2 when make @pingme role for annoucements
Avatar
ws-client BOT 2024-07-25 11:32
<ChillerDragon> Okay I somewhat solved my assembly setup by bloating in the same dependency that worked for vim. https://github.com/ycm-core/YouCompleteMe
A code-completion engine for Vim. Contribute to ycm-core/YouCompleteMe development by creating an account on GitHub.
11:32
<ChillerDragon> I still think there is something better out there
11:32
<ChillerDragon> that is more neovimy and does not require compiling some huuuge thingy with a python script to get started
Avatar
anyone have source code for a client that shows a trail behind the tee as it moves quickly?
Avatar
ws-client BOT 2024-07-25 12:14
<ChillerDragon> gotta love the bugs that only happen when nobody is watching
12:14
<ChillerDragon> adding debug prints just fixed my bug wtf?!
12:15
<ChillerDragon> @louis ctrl+shift+d :D
Avatar
Where can I download new ddnet for android?
Avatar
Avatar
ws-client
<ChillerDragon> adding debug prints just fixed my bug wtf?!
I'd suspect UB if single thread, race if multi thread
Avatar
ws-client BOT 2024-07-25 12:15
<ChillerDragon> yea i for sure messed something up and just pushed the error somewhere else @Learath2
Avatar
Avatar
Gold Name
Where can I download new ddnet for android?
Jupstar ✪ 2024-07-25 12:15
in the future
kek 1
😢 1
Avatar
ws-client BOT 2024-07-25 12:15
<ChillerDragon> single threaded
12:15
<ChillerDragon> well future me problem
12:15
<ChillerDragon> ship debug prints to production and call it a day
Avatar
Avatar
Gold Name
Where can I download new ddnet for android?
Jupstar ✪ 2024-07-25 12:16
somewhere in this channel there is a very early debug version
12:16
but it's not finished, and it doesnt help if many ppl test it and are sad that it is unfinished
Avatar
ws-client BOT 2024-07-25 12:16
<ChillerDragon> learato u wanna debug my UB? xd
Avatar
Avatar
Jupstar ✪
somewhere in this channel there is a very early debug version
Thanks
Avatar
MilkeeyCat 2024-07-25 12:17
chillerdragon: is it a shell script justatest
Avatar
Jupstar ✪ 2024-07-25 12:17
but as said, don't expect anything
Avatar
ws-client BOT 2024-07-25 12:17
<ChillerDragon> @MilkeeyCat its x86 assembly justatest
Avatar
Avatar
ws-client
<ChillerDragon> @MilkeeyCat its x86 assembly justatest
MilkeeyCat 2024-07-25 12:17
sounds fun :clueless:
Avatar
ws-client BOT 2024-07-25 12:17
<ChillerDragon> pog
12:18
<ChillerDragon> @MilkeeyCat it should just run on your machine if compiled with make it sends some udp packet to port 8303 if you press "a"
12:19
<ChillerDragon> thing is if you press "a" again it gets stuck
12:19
<ChillerDragon> so in the key_a method i added a bunch of prints and now it works xxxD
Avatar
MilkeeyCat 2024-07-25 12:19
teeworlds client in asm
12:20
classic chiller
Avatar
ws-client BOT 2024-07-25 12:21
<ChillerDragon> Yea i do not feel comfortable in asm land at all
Avatar
MilkeeyCat 2024-07-25 12:21
do you have teeworlds client in bash?
Avatar
Avatar
ws-client
<ChillerDragon> learato u wanna debug my UB? xd
I have a friend called ubsan that would love to help
Avatar
ws-client BOT 2024-07-25 12:22
<ChillerDragon> ubsan for assembly works? xd
12:22
<ChillerDragon> @MilkeeyCat there is no udp in bash xd
Avatar
MilkeeyCat 2024-07-25 12:22
too bad
Avatar
Oh assembly, ok no ubsan
Avatar
Jupstar ✪ 2024-07-25 12:22
chillers teeworlds ports: ruby, lua, javascript, bash, wireshark script language, asm what am i missing?
Avatar
MilkeeyCat 2024-07-25 12:22
add udp to bash -> make teeworlds client in bash
12:22
ez
Avatar
ws-client BOT 2024-07-25 12:23
<ChillerDragon> i did heavy gdbing 10 months ago back then i already spammed #developer but it got nowhere xd
12:23
<ChillerDragon> @Jupstar ✪ go
12:23
<ChillerDragon> @Jupstar ✪ python
Avatar
MilkeeyCat 2024-07-25 12:23
when zig
Avatar
ws-client BOT 2024-07-25 12:23
<ChillerDragon> this summer
Avatar
Jupstar ✪ 2024-07-25 12:23
when will you be home again
Avatar
ws-client BOT 2024-07-25 12:23
<ChillerDragon> @Jupstar ✪ javascript is by Swarfey and bash doesnt exist :c
12:24
<ChillerDragon> @Jupstar ✪ december
Avatar
Jupstar ✪ 2024-07-25 12:24
epýc
Avatar
Avatar
chillerdragon
You can access the client from emoticon with m_pClient->
How do I get access to m_pClient tho
Avatar
ws-client BOT 2024-07-25 12:25
<ChillerDragon> type it
12:25
<ChillerDragon> m_pClient should be accessible like that in all components
Avatar
Jupstar ✪ 2024-07-25 12:25
maybe it is Client()
Avatar
ws-client BOT 2024-07-25 12:25
<ChillerDragon> Client() is gameclient iirc
Avatar
Jupstar ✪ 2024-07-25 12:25
😮
Avatar
ws-client BOT 2024-07-25 12:25
<ChillerDragon> wait idk tbh
Avatar
Jupstar ✪ 2024-07-25 12:25
i thoguht that is GameClient
12:25
()
Avatar
ws-client BOT 2024-07-25 12:25
<ChillerDragon> i try and error every time
Avatar
Jupstar ✪ 2024-07-25 12:26
me2
Avatar
ws-client BOT 2024-07-25 12:26
<ChillerDragon> when in doubt do m_pClient->Client()
12:27
<ChillerDragon> ez
12:27
<ChillerDragon> buy my ddnet code base udemy course now
Avatar
Jupstar ✪ 2024-07-25 12:28
nice
12:28
Client() wins
Avatar
ws-client BOT 2024-07-25 12:29
<ChillerDragon> i forgot what we are looking for
12:29
<ChillerDragon> i thought he wants the gameclient
Avatar
Jupstar ✪ 2024-07-25 12:29
did we know that?
Avatar
ws-client BOT 2024-07-25 12:29
<ChillerDragon> he did mention it earlier
12:29
<ChillerDragon> if its the same person
12:29
<ChillerDragon> i was on matrix back then
12:29
<ChillerDragon> its a different name on irc so i just assumed its the same dude
Avatar
Jupstar ✪ 2024-07-25 12:29
he wants to start a replay
Avatar
ws-client BOT 2024-07-25 12:29
<ChillerDragon> yes
Avatar
Jupstar ✪ 2024-07-25 12:30
i guess that might even work without client with the Console()
12:30
xdd
Avatar
ws-client BOT 2024-07-25 12:30
<ChillerDragon> what is a replay
Avatar
Jupstar ✪ 2024-07-25 12:30
i guess a demo replay
12:30
30 seconds demo
Avatar
ws-client BOT 2024-07-25 12:30
<ChillerDragon> bold guess
12:30
<ChillerDragon> from emoticon?
Avatar
Jupstar ✪ 2024-07-25 12:30
yeah i dunno
12:30
good ideas need crazy ppl
12:31
@APFFF what kind of replay u need
Avatar
ws-client BOT 2024-07-25 12:31
<ChillerDragon> teeworlds entrepreneur doing replays with emote wheel
Avatar
Jupstar ✪ 2024-07-25 12:31
teeworlds deluxe edition
Avatar
ws-client BOT 2024-07-25 12:32
<ChillerDragon> my bold guess is he wants an emote bot and replay bot
Avatar
Jupstar ✪ 2024-07-25 12:32
ah yeah
12:32
he spams heart and suddenly finishes insane maps solo
Avatar
ws-client BOT 2024-07-25 12:32
<ChillerDragon> gotta replay those rank 1s
Avatar
Jupstar ✪ 2024-07-25 12:32
and bcs it's a heart, nobody bans him
12:32
clever
12:32
outplayed
Avatar
ws-client BOT 2024-07-25 12:33
<ChillerDragon> average #developer chatter
Avatar
MilkeeyCat 2024-07-25 12:33
chillerdragon: key_a doesn't work for me
12:33
only once
Avatar
ws-client BOT 2024-07-25 12:33
<ChillerDragon> fak
12:33
<ChillerDragon> ye
12:33
<ChillerDragon> then you can reproduce the bug xd
12:33
<ChillerDragon> do you have a server running on 8303?
12:33
<ChillerDragon> idk if it even matters
Avatar
MilkeeyCat 2024-07-25 12:33
i thought you added magic print statements and it works
Avatar
ws-client BOT 2024-07-25 12:33
<ChillerDragon> i didnt commit xd
Avatar
MilkeeyCat 2024-07-25 12:34
ah
12:34
it works for d key tho thonk
Avatar
ws-client BOT 2024-07-25 12:34
<ChillerDragon> ye "d" doesnt do too much xd
12:34
<ChillerDragon> udp is "a" only
12:34
<ChillerDragon> obviously
12:35
<ChillerDragon> its a leftists client
Avatar
MilkeeyCat 2024-07-25 12:35
my bad xd
Avatar
ws-client BOT 2024-07-25 12:35
<ChillerDragon> there is no walking right
Avatar
MilkeeyCat 2024-07-25 12:35
im left handed and i approve it
Avatar
ws-client BOT 2024-07-25 12:35
<ChillerDragon> git pull && git checkout magic
12:35
<ChillerDragon> should fix a
12:35
<ChillerDragon> """"fix""""
12:36
<ChillerDragon> but it breaks ctrl+c
12:36
<ChillerDragon> but who needs to quit a game that works
Avatar
MilkeeyCat 2024-07-25 12:36
how do i close it .-.
Avatar
ws-client BOT 2024-07-25 12:36
<ChillerDragon> the close feature was removed in magic branch xd
12:36
<ChillerDragon> the debug prints broke it
12:37
<ChillerDragon> pkill teeworlds_asmr
Avatar
MilkeeyCat 2024-07-25 12:37
kill -9 $(pidof ./teeworlds_asmr) to the rescue
Avatar
ws-client BOT 2024-07-25 12:37
<ChillerDragon> bro bringing the big guns
12:38
<ChillerDragon> there arent that many lines
Avatar
MilkeeyCat 2024-07-25 12:38
ctrl + c also doesn't work after killing the process lmao
Avatar
ws-client BOT 2024-07-25 12:38
<ChillerDragon> somewhere in there i did a mistake but how does one find it
12:41
<ChillerDragon> so "a" works and "adddd" works but "aa" does not work. Meaning that "a" does not brick the program? Only calling a twice?? xd
Avatar
MilkeeyCat 2024-07-25 12:42
my professional opinion is that call recv_udp breaks it
Avatar
ws-client BOT 2024-07-25 12:42
<ChillerDragon> commenting that out also breaks ctrl+c
12:43
<ChillerDragon> maybe its just like adding a print it just moves the problem around xd
Avatar
ws-client BOT 2024-07-25 12:44
<ChillerDragon> my neovim crashes when i try to goto definition of recv_udp xd
12:44
<ChillerDragon> gosh i hate configuring neovim
Avatar
MilkeeyCat 2024-07-25 12:44
i was pressing ctrl + c as hard as i could and u did esc as quit xd
Avatar
ws-client BOT 2024-07-25 12:44
<ChillerDragon> ah interesting
12:44
<ChillerDragon> maybe then its just a timing thing
Avatar
Avatar
Gold Name
The program crashes
Jupstar ✪ 2024-07-25 12:46
then you'll need to update your phone. What is your phone?
Avatar
Avatar
Jupstar ✪
then you'll need to update your phone. What is your phone?
Redmi note 10s
Avatar
Avatar
Gold Name
Redmi note 10s
Jupstar ✪ 2024-07-25 12:46
yesterday there was someone with redmi note 9 with problems
12:47
with all phones i tested i had no problems. nothing i can do for you now if you know how to read logs, you can see where it crashes
Avatar
ws-client BOT 2024-07-25 12:47
<ChillerDragon> nice so old ddnet 9 android works on blackberry from 2016 and earlier and blazingly new ddnet needs google hypixel phone from 2025 or newer
Avatar
MilkeeyCat 2024-07-25 12:47
chillerdragon: for me key_a breaks after syscall in recv_udp
Avatar
ws-client BOT 2024-07-25 12:47
<ChillerDragon> ok nice so wats wrong with the syscall
Avatar
Jupstar ✪ 2024-07-25 12:48
for example with this app
Avatar
I think everything will work in the release
Avatar
ws-client BOT 2024-07-25 12:48
<ChillerDragon> idk where the code is from but i must have copy pasted it from some trust worthy blog post or stackoverflow
Avatar
Avatar
Gold Name
I think everything will work in the release
Jupstar ✪ 2024-07-25 12:48
if it doesnt work now, then it will probably also not work in release
12:48
the release will only improve gameplay, not compability
Avatar
When release?
Avatar
Jupstar ✪ 2024-07-25 12:58
no release date
Avatar
Avatar
Jupstar ✪
@APFFF what kind of replay u need
CClient::SaveReplay() . What I'm trying to understand is how F1 commands work. I get that you can set one up with Console()->Register(..), but I havent figured out, how you can "trigger" these commands outside of CClient
13:07
I'm pretty sure its doing pattern matching/ regex with the F1-Input, but I would like to use these commands outside of the F1 Console
Avatar
ws-client BOT 2024-07-25 13:08
<ChillerDragon> woah jopsti u were right its actual replays i would never have believed its actually replays xd
13:09
<ChillerDragon> @APFFF there is no regex but ye it looks for the string you typed and matches it against a list of names and then calls the callback
Avatar
ws-client BOT 2024-07-25 13:10
<ChillerDragon> i don't think there is a smooth way of calling it from other code. You can use the ExecutLine() hack or just copy paste the code
13:10
<ChillerDragon> the socket file descriptor
Avatar
MilkeeyCat 2024-07-25 13:10
shouldn't it be in rdi?
13:10
0_o
Avatar
ws-client BOT 2024-07-25 13:11
<ChillerDragon> wot
13:11
<ChillerDragon> ah yes
13:11
<ChillerDragon> i also realized that
13:11
<ChillerDragon> but it didnt work
Avatar
MilkeeyCat 2024-07-25 13:11
but we fixed at least something xd
13:12
<ChillerDragon> this changed nothing xd
Avatar
MilkeeyCat 2024-07-25 13:12
but it could break stuff in future!
Avatar
ws-client BOT 2024-07-25 13:12
<ChillerDragon> maybe
13:12
<ChillerDragon> i forgot where i got the code from
13:13
<ChillerDragon> reading asm docs rdi seems correct but who ever did the fancy xor rdx, rdx must have known what they do
Avatar
MilkeeyCat 2024-07-25 13:13
do you see output from dbg_print_uint32?
Avatar
ws-client BOT 2024-07-25 13:13
<ChillerDragon> but yea ill probably commit it
13:13
<ChillerDragon> only once
Avatar
Avatar
ws-client
<ChillerDragon> @APFFF there is no regex but ye it looks for the string you typed and matches it against a list of names and then calls the callback
would the best approach be then, to call the callback myself?
Avatar
ws-client BOT 2024-07-25 13:14
<ChillerDragon> @APFFF m_pClient->Client()->void CClient::SaveReplay()
13:14
<ChillerDragon> aaa
13:14
<ChillerDragon> m_pClient->Client()->SaveReplay()
13:14
<ChillerDragon> dont call the callback
13:14
<ChillerDragon> just call what it calls
13:15
<ChillerDragon> the console command call back is void CClient::Con_SaveReplay(IConsole::IResult *pResult, void *pUserData)
13:15
<ChillerDragon> but you can straight up call void CClient::SaveReplay(const int Length, const char *pFilename)
Avatar
MilkeeyCat 2024-07-25 13:16
chillerdragon: what are the chances that the passed data makes no sense?
Avatar
ws-client BOT 2024-07-25 13:16
<ChillerDragon> what data?
13:16
<ChillerDragon> r
Avatar
MilkeeyCat 2024-07-25 13:16
for recvfrom
Avatar
ws-client BOT 2024-07-25 13:16
<ChillerDragon> you mean all of it? xd
13:17
<ChillerDragon> high chance
Avatar
MilkeeyCat 2024-07-25 13:17
fair xd
Avatar
ws-client BOT 2024-07-25 13:17
<ChillerDragon> sadly i forgot where i got the code from
Avatar
Jupstar ✪ 2024-07-25 13:18
apfffel
Avatar
ws-client BOT 2024-07-25 13:18
<ChillerDragon> ja
Avatar
Jupstar ✪ 2024-07-25 13:18
gewiss
Avatar
Avatar
ws-client
<ChillerDragon> m_pClient->Client()->SaveReplay()
m_pClient->Client() returns the src/engine/client.h Client, i need the src/engine/client/client.h tho
Avatar
ws-client BOT 2024-07-25 13:22
<ChillerDragon> a
13:23
<ChillerDragon> then you need to add it to src/engine/client.h
13:23
<ChillerDragon> or move your code to client.cpp
13:23
<ChillerDragon> this separation is pretty annoying imo
Avatar
what even is the difference
Avatar
ws-client BOT 2024-07-25 13:24
<ChillerDragon> gameclient.cpp is supposed to be game logic
13:24
<ChillerDragon> and client.cpp is more low level engine kind of stuff
👍🏼 1
13:24
<ChillerDragon> but tbh SaveReplay sounds more like game to me
Avatar
Avatar
ws-client
<ChillerDragon> then you need to add it to src/engine/client.h
the SaveReplay code?
Avatar
ws-client BOT 2024-07-25 13:24
<ChillerDragon> yea idk that separation i can not explain
13:25
<ChillerDragon> @MilkeeyCat commenting out all code in recv_udp fixes nothing
13:25
<ChillerDragon> commenting out the call to it fixes it xd
Avatar
MilkeeyCat 2024-07-25 13:26
chillerdragon: if i comment out syscall it works for me
13:26
in recv_udp
Avatar
ws-client BOT 2024-07-25 13:26
<ChillerDragon> ah hm now it works
13:26
<ChillerDragon> idk what happend
Avatar
MilkeeyCat 2024-07-25 13:26
xdddd
13:27
i have to remove build dir
Avatar
ws-client BOT 2024-07-25 13:27
<ChillerDragon> not sure if make picks it up
13:27
<ChillerDragon> ye
Avatar
MilkeeyCat 2024-07-25 13:27
and run make again
Avatar
ws-client BOT 2024-07-25 13:27
<ChillerDragon> Makefile is bad
Avatar
ws-client BOT 2024-07-25 13:34
<ChillerDragon> got udp: 040000513B594605BD0F
13:34
<ChillerDragon> hell yeah
13:34
<ChillerDragon> it still breaks but i get udp data
13:34
<ChillerDragon> that looks like a valid packet
13:35
<ChillerDragon> yup
Avatar
MilkeeyCat 2024-07-25 13:35
wat was the problem?
Avatar
ws-client BOT 2024-07-25 13:35
<ChillerDragon> i didnt fix it
13:35
<ChillerDragon> xd
13:35
<ChillerDragon> its still stuck
Avatar
MilkeeyCat 2024-07-25 13:35
xd
Avatar
ws-client BOT 2024-07-25 13:35
<ChillerDragon> but i fixed a double dereference
13:35
<ChillerDragon> so apparently [] dereference
13:35
<ChillerDragon> so does lea
13:36
For me, it just seems like a funky MOV. What's its purpose and when should I use it?
13:36
Suppose I have the following declared: section .bss buffer resb 1 And these instructions follow in section .text: mov al, 5 ; mov-immediate mov [buffer], al ...
Avatar
MilkeeyCat 2024-07-25 13:36
never used lea in my life justatest
Avatar
ws-client BOT 2024-07-25 13:36
<ChillerDragon> i see it all the time everywhere
13:36
<ChillerDragon> lea r8, [udp_srv_addr]
13:36
<ChillerDragon> i guess thats a &&UdpAddrBuffer in C
Avatar
Jupstar ✪ 2024-07-25 13:37
lea rath, 2
Avatar
MilkeeyCat 2024-07-25 13:37
gottem
Avatar
ws-client BOT 2024-07-25 13:37
<ChillerDragon> lmao
13:38
<ChillerDragon> so if i get correct data and even my epic hex printer from stackoverflow works why does it still stuck -.-
Avatar
MilkeeyCat 2024-07-25 13:39
if you replace dil with dl, do you still get correct data? xd
13:39
in recv_udp
13:40
<ChillerDragon> i just copied the code that worked in send udp xd
13:40
<ChillerDragon> it also needs the file descriptor
Avatar
MilkeeyCat 2024-07-25 13:41
what's better lea rax, addr or mov rax, [addr] ? xd
Avatar
ws-client BOT 2024-07-25 13:41
<ChillerDragon> they should do the same or i dont understand assembly
Avatar
MilkeeyCat 2024-07-25 13:41
ye
Avatar
ws-client BOT 2024-07-25 13:41
<ChillerDragon> to me its just syntactic sugar
Avatar
MilkeeyCat 2024-07-25 13:41
but maybe one is better than the other
Avatar
ws-client BOT 2024-07-25 13:42
<ChillerDragon> such sweet language
Avatar
MilkeeyCat 2024-07-25 13:42
im more of a mov enjoyer
Avatar
ws-client BOT 2024-07-25 13:43
<ChillerDragon> assembly ressources are so scarce it feels
13:43
<ChillerDragon> its only ppl writing shell codes or boot loaders
Avatar
MilkeeyCat 2024-07-25 13:43
or just ask Learath
13:43
he knows everything greenthing
Avatar
ws-client BOT 2024-07-25 13:43
<ChillerDragon> tru
13:44
<ChillerDragon> only dude i ever found do anything other than bootloaders or shellcode is this G https://www.youtube.com/watch?v=b-q4QBy52AA
Avatar
MilkeeyCat 2024-07-25 13:44
he made his own programming language for lulz on april 1st gigachad
Avatar
ws-client BOT 2024-07-25 13:45
<ChillerDragon> i should probably watch his video even if its long its gonna save me some time i assume
Avatar
TsodingDaily is goated
Avatar
ws-client BOT 2024-07-25 13:46
<ChillerDragon> hmm i think this assembly dude is trying to tell me i just red 4294967208 bytes from the socket?
13:47
<ChillerDragon> average tw packet size
13:47
<ChillerDragon> @APFFF the comments xxD
13:47
<ChillerDragon> > When copilot gets stuck, it asks this guy for help
Avatar
bro is living in his own world
Avatar
ws-client BOT 2024-07-25 13:49
<ChillerDragon> eeee
13:49
<ChillerDragon> nice catch thanks xd
13:50
<ChillerDragon> still enough bugs to break it
13:50
<ChillerDragon> -.-
13:50
<ChillerDragon> ah wait it is
13:51
<ChillerDragon> @MilkeeyCat thats the genius C api
13:51
<ChillerDragon> that wants a int *addr_len
13:52
<ChillerDragon> the method takes 2 size arguments one by value and one by pointer
13:52
<ChillerDragon> still better than opengl axaxax
Avatar
MilkeeyCat 2024-07-25 13:52
my bad, i can't read x
13:52
d
Avatar
What's this server? (edited)
13:55
it broke my parsing function xd
Avatar
ws-client BOT 2024-07-25 13:57
<ChillerDragon> @Jupstar ✪ when metal backend so tim cook will mention ddnet in the gaming section of wwdc25
13:59
<ChillerDragon> @Sans server info is a free form your parser should be flexible. what part broke it?
Avatar
MilkeeyCat 2024-07-25 13:59
chillerdragon: if i don't have shit running on the port u said, recvfrom will hang, right? xd
Avatar
ws-client BOT 2024-07-25 14:00
<ChillerDragon> lemme try
14:00
<ChillerDragon> ye it hang xd
14:00
<ChillerDragon> its blocking udp read
14:00
<ChillerDragon> once it works i will try to do non blocking flag shit
Avatar
Avatar
ws-client
<ChillerDragon> @Sans server info is a free form your parser should be flexible. what part broke it?
I'm parsing the whole object returned by the master server as a single thing with this schema: https://github.com/Sans3108/DDNet/blob/4f307140fd52373d260858ccba2701078c656ee1/src/Master.ts#L22
Avatar
MilkeeyCat 2024-07-25 14:00
can i run ddnet server?
Avatar
ws-client BOT 2024-07-25 14:00
<ChillerDragon> yes
14:01
<ChillerDragon> its ofc 0.7 assembly
Avatar
I didn't know server info was free form tbh
Avatar
ws-client BOT 2024-07-25 14:01
<ChillerDragon> but its still fine xd
14:01
<ChillerDragon> the servers sends json the master just redistributes it
Avatar
Sucks that idk rust so I can properly type it
Avatar
Avatar
ws-client
<ChillerDragon> the servers sends json the master just redistributes it
gotcha
Avatar
Avatar
ws-client
<ChillerDragon> @Jupstar ✪ when metal backend so tim cook will mention ddnet in the gaming section of wwdc25
Jupstar ✪ 2024-07-25 14:08
when tim cook gives me a job at apple
14:10
when do you give me a job at chiller inc.
Avatar
ws-client BOT 2024-07-25 14:17
<ChillerDragon> when i raised enough money to pay employees
Avatar
MilkeeyCat 2024-07-25 14:26
chillerdragon: maybe you have to send some data after getting first packet? thonk
14:27
oh, you send it, my bad xd
Avatar
why is the osu-lazer package in nixpkgs dammin 2gb big :( (edited)
Avatar
Add size_of and size_of_val and align_of and align_of_val to the prelude All FFI programmers rejoice!
14:34
epyc
Avatar
server info free form is shit D:
f3 1
Avatar
Avatar
Sans
I didn't know server info was free form tbh
I feel this
Avatar
MilkeeyCat 2024-07-25 15:12
is it a bug that when I open ddnet it's fullscreen but when I choose different workspace and switch back it's not fullscreen anymore? :\
Avatar
Avatar
MilkeeyCat
is it a bug that when I open ddnet it's fullscreen but when I choose different workspace and switch back it's not fullscreen anymore? :\
Jupstar ✪ 2024-07-25 15:16
sounds like a bug.. but is it a bug in ddnet is the question 😬
Avatar
MilkeeyCat 2024-07-25 15:16
maybe it's "feature" of i3
Avatar
GitHub BOT 2024-07-25 15:26
Closes #8646

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
Jupstar ✪ 2024-07-25 15:32
note: rustc unexpectedly overflowed its stack! this is a bug note: maximum backtrace depth reached, frames may have been lost note: we would appreciate a report at https://github.com/rust-lang/rust help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216 note: backtrace dumped due to SIGSEGV! resuming signal error: could not compile `client-types` (lib test) 🫠
15:33
"backtrace dumped due to SIGSEGV" cough
Avatar
chillerdragon BOT 2024-07-25 15:40
That’s definitely something I will have to keep in mind. Once the bug is fixed if I send an invalid tw packet and the server drops it it will also hang in the same way. Should not confuse that with some assembly bugs.
Replying to @MilkeeyCat chillerdragon: maybe you have to send some data after getting first pack…
Avatar
Avatar
chillerdragon
That’s definitely something I will have to keep in mind. Once the bug is fixed if I send an invalid tw packet and the server drops it it will also hang in the same way. Should not confuse that with some assembly bugs.
MilkeeyCat 2024-07-25 15:40
but right now it has to return data?
15:41
when you send the same data
15:41
when you press a (edited)
Avatar
chillerdragon BOT 2024-07-25 15:42
I send the very first packet and the server responds. If I would send the same packet again the server should respond the same way. iirc the second send does not even work. But I forgot. I will continue debugging tomorrow time to sleep now
Avatar
MilkeeyCat 2024-07-25 15:47
for me it's sent :p
Avatar
sleeping now?
15:47
ur in the usa?
15:47
wait
15:47
in asia
Avatar
are u in korea
Avatar
chinese ddnet is pretty fun tbh
15:48
yes
15:48
they host more fun mods
Avatar
ddnet chn is fun cuz i havent seen any blockers around, and novice players are more easily impressed than eu novice players owo
😂 1
Avatar
Avatar
MilkeeyCat
for me it's sent :p
MilkeeyCat 2024-07-25 15:50
ok maybe not
Avatar
Avatar
Sans
ddnet chn is fun cuz i havent seen any blockers around, and novice players are more easily impressed than eu novice players owo
yeah they give so many compliments if you hard carry lmao brownbear
16:06
8f96584 Remove servers_legacy support - furo321 27ca58f Merge pull request #8649 from furo321/remove-servers_legacy - def-
Avatar
Avatar
louis
yeah they give so many compliments if you hard carry lmao brownbear
kek
16:12
the cultural difference definitely shows
16:13
i'd exclusively play on the chn servers if the great firewall would allow me to
Avatar
Avatar
chillerdragon
I send the very first packet and the server responds. If I would send the same packet again the server should respond the same way. iirc the second send does not even work. But I forgot. I will continue debugging tomorrow time to sleep now
MilkeeyCat 2024-07-25 16:24
I give up, Im pathetic reptile brain quiche eater pepeW
Avatar
Avatar
Sans
ddnet chn is fun cuz i havent seen any blockers around, and novice players are more easily impressed than eu novice players owo
A very long time ago, it used to be that way on EU-Servers as well feelsbadman
feelsbadman 1
Avatar
GitHub BOT 2024-07-25 16:55
Fixes: #8647 (untested)

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 indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddne...
Avatar
from which version character input targetpos (TargetX/TargetY) sended to server with zoom? (i mean 1 or 2 years ago targetpos was screenspace not worldspace) (edited)
Avatar
any devs
Avatar
Jupstar ✪ 2024-07-25 18:01
game master
18:02
anonymous gores champion
Avatar
Jupstar ✪ 2024-07-25 18:02
retired
Avatar
@Learath2 one should use strncst whenever possible over strcat right?
18:05
strncat*
Avatar
Always
Avatar
GitHub BOT 2024-07-25 18:29
It is implementation-defined whether the file position returned by ftell denotes the beginning or the end of the file when opening in append-mode. This was causing the condition io_tell(File) == 0 to always be true, so the CSV header was also written to ddnet-saves.txt every time that a new save code is written. Now, we check if the file already exists before appending and only write the CSV header once when the file does not exist yet.

Checklist

  • [X] Tested the change ingame ...
Avatar
Avatar
MilkeeyCat
I give up, Im pathetic reptile brain quiche eater pepeW
MilkeeyCat 2024-07-25 18:38
never mind, im gigachad
gigachad 1
Avatar
When beta or alpha?
Avatar
Avatar
Gold Name
When beta or alpha?
Jupstar ✪ 2024-07-25 19:01
you already tried the beta
19:01
it crashed
19:01
i asked you for logs
19:01
nothing more anyone here can do
Avatar
Thanks
Avatar
Jupstar ✪ 2024-07-25 19:02
yep sorry, but what do you hope for? If you want to help us understanding why it crashes, you have to give us logs
19:02
as of now nobody in the dev team can reproduce it
Avatar
MilkeeyCat 2024-07-25 19:31
it doesn't work on my dumbphone as well feelsbadman
Avatar
Avatar
MilkeeyCat
it doesn't work on my dumbphone as well feelsbadman
Jupstar ✪ 2024-07-25 19:34
is it arm64?
19:34
else u have to use robytes artifacts
Avatar
MilkeeyCat 2024-07-25 19:34
where do i even check that xd
Avatar
Avatar
MilkeeyCat
where do i even check that xd
Jupstar ✪ 2024-07-25 19:35
Informationen über die Hardware und Software des Gerätes
19:35
i think i used this
Avatar
Avatar
MilkeeyCat
Click to see attachment 🖼️
Jupstar ✪ 2024-07-25 19:38
Auf CatLog basierender Logcat-Leser im Material Design
19:39
or adb logcat if u have that
Avatar
MilkeeyCat 2024-07-25 19:40
i have flappy bird & doodle jump on ma phone
Avatar
Avatar
MilkeeyCat
i have flappy bird & doodle jump on ma phone
Jupstar ✪ 2024-07-25 19:41
nais
Avatar
MilkeeyCat 2024-07-25 19:41
how do I copy needed stuff ?xd
Avatar
Avatar
MilkeeyCat
how do I copy needed stuff ?xd
Jupstar ✪ 2024-07-25 19:42
search for ddnet in the log thing
19:42
and screenshot or smth
19:42
xd
19:42
or copy
19:42
dunno
19:42
u epyc dev, u'll find out
Avatar
MilkeeyCat 2024-07-25 19:43
there's no logs about ddnet
19:43
justatest
Avatar
create some!
Avatar
Avatar
MilkeeyCat
there's no logs about ddnet
Jupstar ✪ 2024-07-25 19:43
then search crash
19:43
or dump
19:49
@MilkeeyCat still nothing found?
19:50
is the app even starting at all, or is there some anti virus or shit like that 😂
Avatar
MilkeeyCat 2024-07-25 19:50
it opens
19:50
and then closes
Avatar
Jupstar ✪ 2024-07-25 19:50
and u cant find any logs?
Avatar
MilkeeyCat 2024-07-25 19:52
after 10 tries it thew a wall of text
19:52
i think it's about ddnet xd
Avatar
Jupstar ✪ 2024-07-25 19:53
did u forget to press record on matlog? xd
19:53
how can it not be logged
Avatar
MilkeeyCat 2024-07-25 19:54
there wasn't anything 5 previous times -.-
19:54
phones hard
Avatar
Jupstar ✪ 2024-07-25 19:54
record, open ddnet, stop record, save to file, send me pm xd
19:54
then i hack u
Avatar
Avatar
Jupstar ✪
then i hack u
hmhm
19:55
sus
Avatar
MilkeeyCat 2024-07-25 19:56
ok, maybe it wasn't ddnet related :\
Avatar
Avatar
MilkeeyCat
ok, maybe it wasn't ddnet related :\
Jupstar ✪ 2024-07-25 19:56
does it work now or what
Avatar
MilkeeyCat 2024-07-25 19:56
no
Avatar
Jupstar ✪ 2024-07-25 19:56
then logs
Avatar
MilkeeyCat 2024-07-25 19:56
it started app again and no wall of text (edited)
Avatar
Jupstar ✪ 2024-07-25 19:57
glsoslgoslgogslosglosglogsloglossglo
Avatar
MilkeeyCat 2024-07-25 19:57
tja
Avatar
Jupstar ✪ 2024-07-25 19:57
xD
19:57
mhh how can i convince you
19:57
Avatar
MilkeeyCat 2024-07-25 19:57
ooooooooh, i found record button
Avatar
Jupstar ✪ 2024-07-25 19:57
give logs
Avatar
MilkeeyCat 2024-07-25 19:57
😎
Avatar
Jupstar ✪ 2024-07-25 19:57
EPYC
Avatar
MilkeeyCat 2024-07-25 19:58
i didn't see it first 15 times
20:01
where are the logs? xd
Avatar
Jupstar ✪ 2024-07-25 20:02
did u save them to file or what
Avatar
MilkeeyCat 2024-07-25 20:02
ye
Avatar
Avatar
MilkeeyCat
ye
Jupstar ✪ 2024-07-25 20:03
dunno never done that xD
20:03
on newer android if u open the file explorer app you can simply select an app
20:03
and then it shows all files of that
20:03
or press "recently"
Avatar
MilkeeyCat 2024-07-25 20:07
I DID IT
Avatar
Jupstar ✪ 2024-07-25 20:07
epyc
Avatar
MilkeeyCat 2024-07-25 20:07
I FOUND THIS SON OF A BITCH
Avatar
Jupstar ✪ 2024-07-25 20:07
yeah have to admit it is hard
20:08
Material Logcat reader based on CatLog. Contribute to pluscubed/matlog development by creating an account on GitHub.
20:08
the github tells xddd
Avatar
MilkeeyCat 2024-07-25 20:11
it was easier to debug chiller's assembly program than find there those log files are
Avatar
Jupstar ✪ 2024-07-25 20:11
yep, they hate their users
20:11
pure hate
Avatar
MilkeeyCat 2024-07-25 20:12
can I post em here?
Avatar
Avatar
MilkeeyCat
can I post em here?
Jupstar ✪ 2024-07-25 20:13
i dunno if android log contain anything personal
20:13
so yes, you can
20:13
what's written here stays here
20:13
😏
Avatar
MilkeeyCat 2024-07-25 20:13
oh yea justatest
20:15
you deserve 3 of them
20:15
idk if any of them useful tho xd
Avatar
when does this happen
Avatar
MilkeeyCat 2024-07-25 20:16
happen what?
Avatar
bottom one looks like a SDL bug
20:17
we're talking about ddnet right?
Avatar
MilkeeyCat 2024-07-25 20:17
yeah
Avatar
This all looks unrelated to DDNet and SDL. Tag should be "SDL" for SDL stuff and "org.ddnet.client" for the DDNet client
20:19
Maybe try to enable usb debugging and run logcat on PC
Avatar
Jupstar ✪ 2024-07-25 20:19
@MilkeeyCat did have a filter active?
Avatar
MilkeeyCat 2024-07-25 20:19
wat filter?
Avatar
Jupstar ✪ 2024-07-25 20:19
in your log
Avatar
Avatar
Robyt3
This all looks unrelated to DDNet and SDL. Tag should be "SDL" for SDL stuff and "org.ddnet.client" for the DDNet client
mybe if it happens in ddnet or sdl scope lol
20:20
but it can be a consequence of romething improperly managed by SDL
Avatar
hmm, neither SDL nor ddnet appear a single time in these logs though
20:21
so I'd say the logs are incomplete
20:21
maybe the logcat app can't capture the logs of other apps
20:21
so it only gets the generic system logs (edited)
Avatar
this kind of middleware bug happens all the time (edited)
Avatar
looks like one of the logs contains the stacktrace for a NPE in the logcat app though
Avatar
Original message was deleted or could not be loaded.
MilkeeyCat 2024-07-25 20:27
Literally nothing changed 😬
Avatar
Avatar
Robyt3
looks like one of the logs contains the stacktrace for a NPE in the logcat app though
Jupstar ✪ 2024-07-25 20:27
the java.lang.NoSuchFieldException?
Avatar
Avatar
MilkeeyCat
Literally nothing changed 😬
Jupstar ✪ 2024-07-25 20:27
no more logs?
Avatar
Avatar
Jupstar ✪
no more logs?
MilkeeyCat 2024-07-25 20:27
Nop
Avatar
Avatar
Jupstar ✪
the java.lang.NoSuchFieldException?
yeah, since it's printed on stderr I assume their error handling code looks like e.printStackTrace(System.err);
Avatar
Avatar
MilkeeyCat
Nop
Jupstar ✪ 2024-07-25 20:28
what did that one error once show btw?
20:28
the one that when u opened the app 20 times
Avatar
Avatar
MilkeeyCat
Nop
Can you run adb logcat on your PC?
20:28
With device connected with USB debugging enabled
Avatar
Avatar
Jupstar ✪
what did that one error once show btw?
MilkeeyCat 2024-07-25 20:28
It's the one with bunch of java mumbo jumbo
Avatar
Avatar
Robyt3
Can you run adb logcat on your PC?
MilkeeyCat 2024-07-25 20:30
If it works with linux ill try tomorrow
Avatar
Avatar
MilkeeyCat
If it works with linux ill try tomorrow
yeah, should work on linux: https://developer.android.com/tools/adb
Find out about the Android Debug Bridge, a versatile command-line tool that lets you communicate with a device.
20:33
@Jupstar ✪ I wonder if any device still needs special handling because of 16 bit color depth, which seems to be suggested here: https://wiki.libsdl.org/SDL2/README/android#misc
20:34
gfx_color_depth is currently unused except to show the correct resolution in the list, we are not settings these SDL flags at the moment
Avatar
Avatar
Robyt3
@Jupstar ✪ I wonder if any device still needs special handling because of 16 bit color depth, which seems to be suggested here: https://wiki.libsdl.org/SDL2/README/android#misc
Jupstar ✪ 2024-07-25 20:34
but then it should please crash inside ddnet
20:34
we can simply do that as fallback strat.. but honestly never seen problems
20:34
i defs doubt its the issue here
20:34
his phone is way too new
Avatar
Avatar
Jupstar ✪
but then it should please crash inside ddnet
yeah, with the debug version we should get a readable crash log with logcat
20:35
if logcat doesn't help, the link also explains how to run valgrind on your phone justatest
pepeH 1
Avatar
Jupstar ✪ 2024-07-25 20:35
android-project/app/src/main/java/org/libsdl/app/SDLInputConnection.java
20:35
i wonder if that class causes it
20:36
cant find anything related otherwise
20:37
i hate all this manifest shit xD
20:37
<EditText android:id="@+id/arguments_edit" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="top" android:hint="@string/hint_enter_arguments_here" />
20:37
this is in their android tests
20:38
"To fix it now, you can extend carbon.widget.EditText and override setCursorColor(...) to an empty method." https://github.com/ZieIony/Carbon/issues/326
Hello, i have some issue from our users with OPPO Smartphone, they complaint that my apps always crash when opening the apps. when i check the crash analytics i found this error log. I think it&#39...
20:38
i try to find similar cases for the issue from the log
20:38
but absolutely no idea if that already happens inside ddnet
20:39
but since milkey said the popup showed the same log.. not unlikely
20:39
theoretically we dont need any java UI
Avatar
the java.lang.NoSuchFieldException in the log is simply caused by running an only app on new android version, which prohibits most reflection (edited)
Avatar
Jupstar ✪ 2024-07-25 20:40
i wonder if we can somehow disable all stuff
Avatar
Avatar
Robyt3
the java.lang.NoSuchFieldException in the log is simply caused by running an only app on new android version, which prohibits most reflection (edited)
Jupstar ✪ 2024-07-25 20:40
i no understand
20:40
what is an only app
Avatar
old*
Avatar
Jupstar ✪ 2024-07-25 20:41
related to minsdk version or what
20:41
my phone is very new and runs without problems xdd
Avatar
new android version will prevent reflection, so whatever hack this app developer used to set a cursor color no longers works
Avatar
Avatar
Jupstar ✪
my phone is very new and runs without problems xdd
MilkeeyCat 2024-07-25 20:41
stop speaking in rich (edited)
Avatar
no, that stack trace is related to the logcat app in particular
Avatar
Avatar
Robyt3
new android version will prevent reflection, so whatever hack this app developer used to set a cursor color no longers works
Jupstar ✪ 2024-07-25 20:42
but milkey said it happened after starting ddnet 5 times
Avatar
Avatar
Robyt3
no, that stack trace is related to the logcat app in particular
Jupstar ✪ 2024-07-25 20:42
mh ok
20:42
@MilkeeyCat we need your log when u opened ddnet 5 times
20:42
make screenshot
Avatar
Avatar
Jupstar ✪
mh ok
at com.pluscubed.logcat.ui.LogcatActivity.onOptionsItemSelected(LogcatActivity.java:627) happens inside a listener in the logcat app
Avatar
Avatar
Robyt3
at com.pluscubed.logcat.ui.LogcatActivity.onOptionsItemSelected(LogcatActivity.java:627) happens inside a listener in the logcat app
Jupstar ✪ 2024-07-25 20:42
yeah but milkey said he had same log
20:42
or smth
Avatar
Avatar
Jupstar ✪
but milkey said it happened after starting ddnet 5 times
MilkeeyCat 2024-07-25 20:42
i have 2 e in name feelsbadman
Avatar
Avatar
MilkeeyCat
i have 2 e in name feelsbadman
Jupstar ✪ 2024-07-25 20:42
milketja
Avatar
Avatar
MilkeeyCat
i have 2 e in name feelsbadman
Jupstar ✪ 2024-07-25 20:43
i am called jupppey all the time
20:43
i join your sadness
Avatar
did you update to latest touch input PR? it also includes #8637, maybe this causes a bug in their input driver (edited)
Avatar
Fixes virtual keyboard on Android flashing rapidly when the console is closed. Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possib...
Avatar
Avatar
Jupstar ✪
i join your sadness
MilkeeyCat 2024-07-25 20:44
welcome to the club jupppey
Avatar
Avatar
Robyt3
did you update to latest touch input PR? it also includes #8637, maybe this causes a bug in their input driver (edited)
Jupstar ✪ 2024-07-25 20:44
nope
Avatar
Avatar
MilkeeyCat
welcome to the club jupppey
Jupstar ✪ 2024-07-25 20:44
thanks milktja
Avatar
MilkeeyCat 2024-07-25 20:45
now ask for logs the guy who asked about mobile version of ddnet justatest
Avatar
Jupstar ✪ 2024-07-25 20:45
he can only write "Thanks"
Avatar
MilkeeyCat 2024-07-25 20:46
lemme know when you fix da client xd
Avatar
Avatar
MilkeeyCat
lemme know when you fix da client xd
Jupstar ✪ 2024-07-25 20:47
:c
20:47
we need u
20:47
milk
Avatar
MilkeeyCat 2024-07-25 20:47
what are the chances ill break my phone justatest
Avatar
Avatar
MilkeeyCat
what are the chances ill break my phone justatest
Jupstar ✪ 2024-07-25 20:49
0.001%
20:49
u connect it by usb
20:49
do pacman -S adb
20:49
adb logcat
Avatar
тютюн 2024-07-25 20:49
will it be possible to change the controls in the next versions ddnet mobile?
Avatar
Jupstar ✪ 2024-07-25 20:49
read log
Avatar
MilkeeyCat 2024-07-25 20:49
i can easily add +5% because of skill issues xd
Avatar
Avatar
MilkeeyCat
i can easily add +5% because of skill issues xd
Jupstar ✪ 2024-07-25 20:50
xd
Avatar
Avatar
тютюн
will it be possible to change the controls in the next versions ddnet mobile?
Jupstar ✪ 2024-07-25 20:50
maybe, maybe only in the version afterwards.. no decision made yet generally the idea is yes
Avatar
mobile version is too early for anything to be set in stone im guessing?
Avatar
Avatar
Sans
mobile version is too early for anything to be set in stone im guessing?
Jupstar ✪ 2024-07-25 20:54
what do you mean
20:54
it's not finished at all
Avatar
basically the same thing
20:55
too early/unfinished
20:55
meh
Avatar
Can you guys link me the latest apk version?
20:55
Also, can i play on mobile with keyboard and mouse?
Avatar
wait that's interesting, what if i connect a physical keyboard and mouse to my phone and try to play Thonk
20:56
i have an otg cable and usb hub, i might try it
Avatar
Avatar
Jupstar ✪
what do you mean
тютюн 2024-07-25 20:56
I have a telegram channel where the content is based on mobile ddnet, many subscribers would really like to be able to change controls, so if the idea was implemented many would be happy
Avatar
Avatar
Sans
wait that's interesting, what if i connect a physical keyboard and mouse to my phone and try to play Thonk
MilkeeyCat 2024-07-25 20:56
wait that's interesting, what if i connect a physical keyboard and mouse to your pc and try to play
Avatar
Avatar
MilkeeyCat
wait that's interesting, what if i connect a physical keyboard and mouse to your pc and try to play
yea i see the irony, it's for shits and giggles anyway
20:57
kek
Avatar
Avatar
zaerin
Also, can i play on mobile with keyboard and mouse?
Jupstar ✪ 2024-07-25 20:57
it should be possible to connect bt mouse & keyboard to android
20:58
48.95 MB
20:58
i rebased now
Avatar
keyboard definitely works, haven't tested with a mouse but it should work
Avatar
Jupstar ✪ 2024-07-25 20:58
but i doubt that fixes our issue in any way
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
maybe always pin latest apk for ppl to easily see it?
Avatar
Jupstar ✪ 2024-07-25 20:59
nah
20:59
it's use at own risk
20:59
time to fry my phone
Avatar
Avatar
Sans
wait that's interesting, what if i connect a physical keyboard and mouse to my phone and try to play Thonk
тютюн 2024-07-25 20:59
I have a friend and he seemed to connect a keyboard and mouse and play
Avatar
Avatar
Jupstar ✪
it's use at own risk
wdym use at own risk?
21:33
is it buggy?
Avatar
Tarot_ BOT 2024-07-25 21:34
Hi
Avatar
is this apk safe
Avatar
Tarot_ BOT 2024-07-25 21:37
eeeee are you east ?
Avatar
I'm up
Avatar
Tarot_ BOT 2024-07-25 21:48
Is there anyone here ?
Avatar
GitHub BOT 2024-07-25 22:19
5e65561 Fix CSV header being written multiple times to ddnet-saves.txt - Robyt3 08f955b Merge pull request #8651 from Robyt3/Client-Saves-File-Header-Fix - archimede67
Avatar
I think east is not active in teeworlds anymore
Avatar
da east
Avatar
Avatar
Sans
it broke my parsing function xd
heinrich5991 2024-07-25 23:24
just drop all the server info that doesn't conform to your schema
Avatar
kind of what i've done
23:24
yea
23:25
it's still there, but it's untyped, and i made a typeguard so you can go back to the usual typed info you get from official ddnet servers (edited)
23:28
community: z .object({ id: z.string(), icon: z.string(), admin: z.array(z.string()), public_key: z.string(), signature: z.string() }) .optional(), altameda_net: z.boolean().optional()
23:28
that's not from official ddnet servers
Avatar
probably, the whole Master.ts thing was made with hopes and prayers, i dont understand the first thing about what is returned by what kind of server so i just used quicktype to try to create some sort of schema (edited)
23:30
from whatever data the master server returned when i ran the script to make it
23:33
I'd love to understand it all, but it's kinda hard when I only know 1 lang and some common and basic programming concepts
Exported 721 message(s)
Timezone: UTC+0