Page 1 of 1

[FEATURE] Add New Net Oject

Posted: Fri May 16, 2014 6:03 pm
by unsigned char*
Hi! i can made a commit for add a new net object with the movement info of player for send it when the player is freezed...

What think about this?

Re: [FEATURE] Add New Net Oject

Posted: Fri May 16, 2014 7:27 pm
by deen
Bl4ckF0X is currently working on that for DDNet. Have you already done it or are you planning?

Re: [FEATURE] Add New Net Oject

Posted: Sat May 17, 2014 12:01 pm
by Bl4ckF0X
Hi, I'm nearly done with that.
I made no progress the last week because of lack of time, but the only thing I'm struggling with is an issue with LAN-servers which don't resend thier serverinfo on client connection for some reason.
I planned to use the serverinfo for determining if the server is new enough to interpret the NetObject.
If this information is given to the client, everything works fine. If not, the client will crash, because of overflows in the net protocol.
I'll fix this as soon as I get some sparetime.

Re: [FEATURE] Add New Net Oject

Posted: Sun May 18, 2014 5:08 pm
by unsigned char*
Hi Bl4ckF0X, you made a fork for dev this feature? i can help you :) i need this feature for draw Tee Directions good :)

Re: [FEATURE] Add New Net Oject

Posted: Tue May 20, 2014 6:58 pm
by Bl4ckF0X
No, I didn't move it to GitHub, yet. I never worked a lot with git and therefore I feel a little uncomfortable using it all the time. That's why I normally develop locally and move it to GitHub when I'm done with something. I know, that's a little unpractical and I'll change that approach if I get the time to get more familiar with git.
If you need it, I'll create a fork and move to GitHub what I've done yet.
Just out of curiosity whats wrong with the Tee Directions?

EDIT: Moved what I did yet to GitHub. I don't know if it works like on my own PC, because I just merged and pushed without testing, but try it.
https://github.com/nobodypb/teeworlds/t ... e64_NewNet

Re: [FEATURE] Add New Net Oject

Posted: Tue May 20, 2014 9:55 pm
by unsigned char*
Hi! ummmm what are you doing exactly?

When you are freezed the server don't send directions (if not the player shake.. how you see in local) for this i need a extra net message with this info and not fuck with shakes xD

P.S: Modify CharacterCore isn't a good idea... the packets don't reach their destination in other clients.

Greetings!

Re: [FEATURE] Add New Net Oject

Posted: Fri Jun 06, 2014 6:53 pm
by Bl4ckF0X
Well, actually I solved all this problems.
If you are freezed the server tells you, that you are via the CharacterCore.
Adding a new Message would be the wrong way, as there already is a message for charakter information. Just don't add new messages for every little extension you make. It blows up the network protocol for no reason.
There is no problem in changing the CharacterCore aslong as you let servers and clients distinguish between supporting and unsupporting server and clients.
If you control both, server and clients. There is no limitation in what you can do!