Thread: Information about rs2dv local/map region coords

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1 Information about rs2dv local/map region coords 
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    27
    Posts
    1,358
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    There are many issue's which people keep finding in the current release of rs2dv. There are several people who have noticed when spawning item's or casting spells to certain locations they offset around 8 squares. Sometimes they offset too 15+ squares.

    Lately I have been doing some extreme tests involving its point location system and its walking system. First up I printed all x,y,localx, localy, mapX, mapY coords from one location to another location for both rs2d and winterlove. I noticed that both wl and rs2dv local coords raised and lowered when you walked but rs2d's didn't make sence. I also noticed that rs2d map region raised and lowered every few steps but wl didn't raise until a new map region was loaded.

    Here is where the two walking system's split. Rs2d calculates a new map region value every time you move, as you can see in the point class but winterlove carried the same region over and over and then added or subtracted 4 when a region update occurred. The reason why your item's, spells offset are because of the local coords changing and not changing to the correct value. Local coords are calculated using the absolute and the map region value's. So if the map region keeps changing when its not suppose to then the local coord is going to be messed. To overcome this problem I needed to find a way of keeping the mapregion coords the same until a new region was loaded then update them but I remembered about the knownRegions value's in the player class. Theese known region value's are only updated when a region update's.

    This is a classic formula used in both rs2d and wl server's

    Code:
    (x - 8 * regionX)
    instead of using that you SHOULD use

    For the y Coord
    Code:
    (y - 8 * player.getKnownRegion()[1])
    For the x Coord
    Code:
    (x - 8 * player.getKnownRegion()[0])

    Hope you understand what I have done here and how the regions/local coords work for rs2d!

    ENJOY!
    Visit Rune Miracle [Only registered and activated users can see links. ]
     

  2. #2  
    Member Market Banned Market Banned

    James™'s Avatar
    Join Date
    Nov 2007
    Age
    26
    Posts
    2,467
    Thanks given
    280
    Thanks received
    298
    Rep Power
    497
    if you didnt notice no one really use's rs2dv anymore
    [Only registered and activated users can see links. ]
     

  3. #3  
    Registered Member

    Join Date
    Jul 2009
    Posts
    149
    Thanks given
    1
    Thanks received
    12
    Rep Power
    146
    Quote Originally Posted by Jaymee™ View Post
    if you didnt notice no one really use's rs2dv anymore
    If you didn't notice, it's better than the shit you and most others use.
     

  4. #4  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    Quote Originally Posted by Jaymee™ View Post
    if you didnt notice no one really use's rs2dv anymore
    Yeah because of the bugs, which is why people like him release stuff like this so people convert from shit wL...
    Attempting to develop a multi-revision library. [Only registered and activated users can see links. ] on GitHub.
     

  5. #5  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    27
    Posts
    1,358
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    LOL thanks for that

    Oh and Jaymee two words... FUCK YOU
    Visit Rune Miracle [Only registered and activated users can see links. ]
     

  6. #6  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Jaymee™ View Post
    if you didnt notice no one really use's rs2dv anymore
    If you didn't notice, people don't play BattleScape Isle anymore.

     

  7. #7  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    yep that was one bug i did found too
    [Only registered and activated users can see links. ]
     

  8. #8  
    Registered Member

    Join Date
    Oct 2007
    Posts
    1,017
    Thanks given
    1
    Thanks received
    3
    Rep Power
    562
    Nice, again a step closer to a bugfree version of rs2dv. Only big trouble is the packet spamming bug
    <William.D | Perfectworld> before
     

  9. #9  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    Quote Originally Posted by William.D View Post
    Nice, again a step closer to a bugfree version of rs2dv. Only big trouble is the packet spamming bug
    I think there is something fucked up because of the implementation of MINA
    [Only registered and activated users can see links. ]
     

  10. #10  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    27
    Posts
    1,358
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    Jonas how's that? isn't it implemented correctly?

    Thanks everyone for the reply's.
    Visit Rune Miracle [Only registered and activated users can see links. ]
     

Page 1 of 3 123 LastLast

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
  •