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 2020-08-03 00:00:00Z and 2020-08-04 00:00:00Z
I really need help, I cannot seem to get the Secruity Token working for my 0.7 mod... I am even at that point where I cause client crashes while I try to connect :(
01:18
I would really appreciate if anyone could help me implement it, I know the logic behind it, heinrich told me the other day already, but I just cant get it to work...
01:24
also clients dont get inserted in network_conn::Feed instead in DirectInit? I just dont get how and why all is so different between the versions :/
@fokkonaut which part does already work? do you see the CONNECT messages of the client in the server? the CONNECTACCEPT in the client? or even the ACCEPT in the server?
@heinrich5991 my best result was that I got the connect and the accept from the client, tokens matching, but the weird part is that in ddnet the server tries to accept the client in the accept msg, and in 0.7 in the Connect msg which comes earlier from ddnet. So no matter what I tried, the best I could get was a "connecting" tee, but the client never rendered anything. I even caused client crashes xd. When i try to accept the client on the connect msg it doesnt work. maybe its because ddnets and 0.7 Recv() part is completely different, 0.7 doesnt have these OnTokenCtrlMsg etc. or TryAcceptClient... Also, I dont understand the part in network_conn.cpp::Feed, where the server is checking for the token (dbg msg: "generate token %d"). It doesnt get called at all?
I am just lost trying to do this
@fokkonaut try to debug the connection process step by step. try to send a token back with the CONNECTACCEPT, and check whether you get a response back from the client
At which point the code would match the protocol we are handling but we'd get a lot of duplicated code in return, to fix that you'd need to clean up CNetBase and CNetServer a fair bit
@Patiga ah nono I just like to rewind videos to see again what happened xD just preference over jumping to a certain point. but doesnt matter that much
15:51
okay thank you :) 5 or 10sec jumps do that job just right. tyty