Thread: Weird walking (Stop-Go)

Results 1 to 8 of 8
  1. #1 Weird walking (Stop-Go) 
    Registered Member
    Sora's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    644
    Thanks given
    18
    Thanks received
    39
    Rep Power
    128
    My server is running on dedicated (A good one), and has an average of 80 players online on weekends.


    When you walk, you will walk a little, stop, then walk again. It's super weird, and I've tried a lot of what I can do to fix it. (None has worked)

    This is obviously caused by lag, which I've tried my best to fix.


    Does anyone know what else i can do to fix this?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2007
    Posts
    1,017
    Thanks given
    1
    Thanks received
    3
    Rep Power
    562
    Mind posting your walking packet?
    <William.D | Perfectworld> before
    Reply With Quote  
     

  3. #3  
    Registered Member
    Sora's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    644
    Thanks given
    18
    Thanks received
    39
    Rep Power
    128
    Code:
    		case 98:
    			// walk on command
    			if(cookingOn){
    				cookingOn = false;
    			}
    			if(followID > 0){
    				followID = 0;
    			}
    			if(followID2 > 0){
    				followID2 = 0;
    			}
    			if (inTrade)
    				break;
    			if(EntangleDelay >= 1) {
    				sM("A magical force stops you from moving.");
    				break;
    			}
    			if(System.currentTimeMillis() - lastWalk < walkDelay)
    				break;
                		if (faceNPC > 0) {
                			faceNPC = 65535;
                			faceNPCupdate = true;
               		 	}
    			resetAction();
    			if (!validClient) {
    				sM("You can't move on this account");
    				break;
    			}
    			IsAttackingNPC = false;
    			attacknpc = -1;
    			closeInterface();
    			resetAnimation();
    			if (deathStage == 0) {
    				newWalkCmdSteps = packetSize - 5;
    				if (newWalkCmdSteps % 2 != 0) {
    					println_debug("Warning: walkTo(" + packetType
    							+ ") command malformed: "
    							+ misc.Hex(inStream.buffer, 0, packetSize));
    				}
    				newWalkCmdSteps /= 2;
    				if (++newWalkCmdSteps > walkingQueueSize) {
    					println_debug("Warning: walkTo(" + packetType
    							+ ") command contains too many steps ("
    							+ newWalkCmdSteps + ").");
    					newWalkCmdSteps = 0;
    					break;
    				}
    				int firstStepX = inStream.readSignedWordBigEndianA();
    				int tmpFSX = firstStepX;
    
    				firstStepX -= mapRegionX * 8;
    				for (i = 1; i < newWalkCmdSteps; i++) {
    					newWalkCmdX[i] = inStream.readSignedByte();
    					newWalkCmdY[i] = inStream.readSignedByte();
    					tmpNWCX[i] = newWalkCmdX[i];
    					tmpNWCY[i] = newWalkCmdY[i];
    				}
    				newWalkCmdX[0] = newWalkCmdY[0] = tmpNWCX[0] = tmpNWCY[0] = 0;
    				int firstStepY = inStream.readSignedWordBigEndian();
    				int tmpFSY = firstStepY;
    
    				firstStepY -= mapRegionY * 8;
    				newWalkCmdIsRunning = inStream.readSignedByteC() == 1;
    				for (i = 0; i < newWalkCmdSteps; i++) {
    					newWalkCmdX[i] += firstStepX;
    					newWalkCmdY[i] += firstStepY;
    				}
    				poimiY = firstStepY;
    				poimiX = firstStepX;
    
    				// stairs check
    				if (stairs > 0) {
    					resetStairs();
    				}
    				// woodcutting check
    				if (woodcutting[0] > 0) {
    					// playerEquipment[playerWeapon] = OriginalWeapon;
    					// OriginalWeapon = -1;
    					resetAnimation();
    					resetWC();
    				}
    				// pick up item check
    				if (WannePickUp == true) {
    					PickUpID = 0;
    					PickUpAmount = 0;
    					PickUpDelete = 0;
    					WannePickUp = false;
    				}
    				// attack check
    				if (IsAttacking == true) {
    					ResetAttack();
    				}
    				// attack NPC check
    				if (IsAttackingNPC == true) {
    					ResetAttackNPC();
    				}
    				// mining check
    				if (mining[0] > 0) {
    					resetAnimation();
    					resetMI();
    				}
    				// Npc Talking
    				if (NpcDialogue > 0) {
    					NpcDialogue = 0;
    					NpcTalkTo = 0;
    					NpcDialogueSend = false;
    					RemoveAllWindows();
    				}
    				// banking
    				if (IsBanking == true) {
    					RemoveAllWindows();
    				}
    				// shopping
    				if (IsShopping == true) {
    					IsShopping = false;
    					MyShopID = 0;
    					UpdateShop = false;
    					RemoveAllWindows();
    				}
    				// trading
    
    			}
    			break;
    Reply With Quote  
     

  4. #4  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    How many npcs do you have in auto spawn?
    Free Filehost Premium Accounts
    Click Here
    Reply With Quote  
     

  5. #5  
    Registered Member
    Sora's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    644
    Thanks given
    18
    Thanks received
    39
    Rep Power
    128
    Not many. This is for players..
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    Lol @ the walking packet.
    Reply With Quote  
     

  7. #7  
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    33
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    this is because your computer cannot keep up, change the server cycle to 620 instead of 500, will free up alot of lag but anything that that relies on the process for deducting will be out of time, but thats your fault for not using System.currentTimeMillis()


    Reply With Quote  
     

  8. #8  
    Registered Member
    Sora's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    644
    Thanks given
    18
    Thanks received
    39
    Rep Power
    128
    Quote Originally Posted by killamess View Post
    this is because your computer cannot keep up, change the server cycle to 620 instead of 500, will free up alot of lag but anything that that relies on the process for deducting will be out of time, but thats your fault for not using System.currentTimeMillis()
    Thank you.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •