Whackeddie99 Posted June 28, 2012 Author Share Posted June 28, 2012 I was walking and I pressed my character button at the same time…do you see how it glitches a little and like respawns your character a bit back...what the hell... Link to comment Share on other sites More sharing options...
abhi2011 Posted June 28, 2012 Share Posted June 28, 2012 Character button what is that? Link to comment Share on other sites More sharing options...
erkro1 Posted June 28, 2012 Share Posted June 28, 2012 @abhi2011:> Character button what is that?The button which opens the Character screen?But back to the question, its because the server sends all the playerdata things to the player, so also the walking things and that causes the glitch. Link to comment Share on other sites More sharing options...
abhi2011 Posted June 28, 2012 Share Posted June 28, 2012 oftopic i thought it was a keyboard button.ontopic any way to fix it? Link to comment Share on other sites More sharing options...
erkro1 Posted June 28, 2012 Share Posted June 28, 2012 @abhi2011:> oftopic i thought it was a keyboard button.> > ontopic any way to fix it?Yes, by not reading the walking variables when opening Character tab. Link to comment Share on other sites More sharing options...
abhi2011 Posted June 28, 2012 Share Posted June 28, 2012 Oh okay. Link to comment Share on other sites More sharing options...
Whackeddie99 Posted June 28, 2012 Author Share Posted June 28, 2012 @Erwin:> Yes, by not reading the walking variables when opening Character tab.Why does it read the walking variables? Link to comment Share on other sites More sharing options...
Stein Posted June 28, 2012 Share Posted June 28, 2012 Because nobody was clever enough to send over only the data the character screen would need, and just blatantly send over EVERYTHING regarding that player. You can easily change that though. Link to comment Share on other sites More sharing options...
erkro1 Posted June 29, 2012 Share Posted June 29, 2012 @Stein:> Because nobody was clever enough to send over only the data the character screen would need, and just blatantly send over EVERYTHING regarding that player. You can easily change that though.Yes, but don't delete those parts from Playerdata, as they're using for other things next to the Character tab too, my idea is make a check if picCharacter is visible, and then don't set walking variables. Link to comment Share on other sites More sharing options...
Stein Posted June 29, 2012 Share Posted June 29, 2012 Or make a new sort of packet that only sends the data displayed on the character screen.. Which are just the stats and whatnot. Would be a waste to send over data you're not using right? Link to comment Share on other sites More sharing options...
erkro1 Posted June 29, 2012 Share Posted June 29, 2012 @Stein:> Or make a new sort of packet that only sends the data displayed on the character screen.. Which are just the stats and whatnot. Would be a waste to send over data you're not using right?Well, making another packet is more 'wasting' then sending over 3 variables you're not using. :P Link to comment Share on other sites More sharing options...
Stein Posted June 29, 2012 Share Posted June 29, 2012 How come? You're only adding to an enumeration, which is a static 4 Bytes.. Whereas sending over the entire player data packet is a lot more than just the stats and points which we need in this case. There's a lot more included in the PlayerData packet than just the stats and location, and since we already have the name and whatnot, why bother sending that over again and again and again?Mind you, I was talking resources to send over the network and to keep in memory. Not time spent on making it work. Link to comment Share on other sites More sharing options...
erkro1 Posted June 29, 2012 Share Posted June 29, 2012 @Stein:> How come? You're only adding to an enumeration, which is a static 4 Bytes.. Whereas sending over the entire player data packet is a lot more than just the stats and points which we need in this case. There's a lot more included in the PlayerData packet than just the stats and location, and since we already have the name and whatnot, why bother sending that over again and again and again?> > Mind you, I was talking resources to send over the network and to keep in memory. Not time spent on making it work.Ow, I forgot that PlayerData also sends more unused information, I thought it was only the moving constants. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now