| Mirage Source http://miragesource.net/forums/ |
|
| Position Modification (Fixed) http://miragesource.net/forums/viewtopic.php?f=201&t=3668 |
Page 1 of 1 |
| Author: | Asrrin29 [ Thu May 01, 2008 1:13 am ] |
| Post subject: | Position Modification (Fixed) |
Something weird is going on with blocked tiles in my game. If you are standing next to a blocked tile and spam the direction button towards the block, the client moves you passed the block, yet the server still records your co-ordinates as not moving. I need to figure out what part of my code is causing this, and how I can fix it. any ideas where to start looking? |
|
| Author: | Rezeyu [ Thu May 01, 2008 1:34 am ] |
| Post subject: | Re: Position Modification |
CanMove, or CanPlayerMove, or whatever, client side. |
|
| Author: | Asrrin29 [ Thu May 01, 2008 2:06 am ] |
| Post subject: | Re: Position Modification |
I'm convinced it's in the CanMove sub, because it is the only client side sub doing BLOCKED_TILE checks. but I have no idea what I'm looking for. Simply pressing the direction buttons in a normal manner doesn't not allow it to happen, it is only after several rapid presses in a row. I have no idea what would be the root cause of something like that. |
|
| Author: | Lea [ Thu May 01, 2008 4:21 am ] |
| Post subject: | Re: Position Modification |
I think there's a fix already posted. I believe it was called the "Position Modification fix" From my Valkoria log file... looks like there's a tutorial on MS by... me O.o Not that I remember writing it... should be around somewhere though 030. FIXED: Position Modification (Tutorial on MS by Dave) |
|
| Author: | Asrrin29 [ Thu May 01, 2008 12:26 pm ] |
| Post subject: | Re: Position Modification |
can't seem to find it, I've looked in the old tut's directory and I've searched the forums. If you can find the old tutorial or remember what it was to fix it I would appreciate it. The only thing I can possibly think of to fix this damn thing is to restrict the number of key presses, but that might flub up another part of MS and wouldn't fix the root of the problem. |
|
| Author: | Asrrin29 [ Fri May 02, 2008 1:13 pm ] |
| Post subject: | Re: Position Modification |
EDIT: Ok, I figured out the problem. apparently in the tutorial for realtime stats it tells you to send a stats packet every time you move. someone spamming the button is overloading the server with these packets and causing something to go out of sync. I've removed that part of the code and it's all fixed! Also I've fixed the NPC's moving through blocks. for some reason the NPC CanMove code is set to defaulted true. I set it defaulted to false and only true when they are allowed to move, and it solves the problem. |
|
| Author: | Lea [ Fri May 02, 2008 11:34 pm ] |
| Post subject: | Re: Position Modification (Fixed) |
Sweet |
|
| Author: | Robin [ Sat May 03, 2008 9:59 am ] |
| Post subject: | Re: Position Modification (Fixed) |
But you're not. |
|
| Author: | Lea [ Sat May 03, 2008 12:58 pm ] |
| Post subject: | Re: Position Modification (Fixed) |
very thick headed, aren't you robin |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|