Java Networking - Unexpected Vector Behavior -


basically have 2d vector representing player position resting on server want increment using clients ( can move ). having no problems @ server/client communication , command interface similar bash send comprehensive , deconstruct able commands between server , client :

/command -param1 value1 -param2 value2

i can connect new clients , ping server , live information server. problem comes when trying set speed of client , causes vector stutter everywhere while actual position , speed im getting server remains @ 0. try , debug weird behavior decided add line of code adding 0.0001f x position of client each server tick. works , vector moves on client screen except fact it reaches 256.0 stops moving.

if increment bigger value same thing happens , time vector reaches large value before stopping.

i post code here there of , have absolutely no idea causing this.

could because try send numeric values using text ? because server isnt running @ constant tickrate ? because store client info in hashmap ?

this error makes no sense me , i've been revising code hours without finding anything. because im not familiar server / client architecture have missing crutial here.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -