[SOLVED] 4.7.5 Server - Player location's resetting on logout/server restarts.

Results 1 to 9 of 9
  1. #1
    Apprentice Dart212 is offline
    MemberRank
    Oct 2022 Join Date
    9Posts

    Question [SOLVED] 4.7.5 Server - Player location's resetting on logout/server restarts.

    Hey all,

    Been working with 4.7.5 source server files, been noticing that after any logouts/server restarts players are always moved to last bound location, making it quite annoying for obvious reasons.

    Any idea where in the source I can find to get this changed to save players position? I have scoured for a few hours on this topic with no luck.

    Any and all ideas would be great.
    Last edited by Dart212; 28-10-22 at 04:21 AM. Reason: SOLVED


  2. #2
    Apprentice unge is offline
    MemberRank
    May 2017 Join Date
    16Posts
    Look for
    com.aionemu.gameserver.services.player.PlayerEnterWorldService;

    Delete the line

    TeleportService2.sendSetBindPoint(player);

  3. #3
    Apprentice Dart212 is offline
    MemberRank
    Oct 2022 Join Date
    9Posts
    Thanks for such a prompt reply. I cant believe I didn't check there, however; I deleted it, complied and yet still getting sent back to bind points.

    Any thoughts on that?


    Quote Originally Posted by unge View Post
    Look for
    com.aionemu.gameserver.services.player.PlayerEnterWorldService;

    Delete the line

    TeleportService2.sendSetBindPoint(player);

  4. #4
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts
    Quote Originally Posted by Dart212 View Post
    Thanks for such a prompt reply. I cant believe I didn't check there, however; I deleted it, complied and yet still getting sent back to bind points.

    Any thoughts on that?

    Change TeleportService2.sendSetBindPoint (player); on TeleportService2.onLogOutOppositeMap (player);

    And change the custom.properties file to:
    gameserver.storebindpoint.enable = false
    gameserver.reconnect.to.bind.point = false
    Last edited by selgro; 25-10-22 at 09:04 PM.

  5. #5
    Apprentice Dart212 is offline
    MemberRank
    Oct 2022 Join Date
    9Posts
    Quote Originally Posted by selgro View Post
    Change TeleportService2.sendSetBindPoint (player); on TeleportService2.onLogOutOppositeMap (player);

    And change the custom.properties file to:
    gameserver.storebindpoint.enable = false
    gameserver.reconnect.to.bind.point = false

    I took a look, I can only find TeleportService2.sendSetBindPoint (player); located in src/com/aionemu/gamerserver/services/player/playerenterworldservice.java
    I tried to do the delete option mentioned above which didn't work.

    I couldn't find TeleportService2.onLogOutOppositeMap (player); in any of the code.
    I did try and replace TeleportService2.sendSetBindPoint (player); with it but I got error compiling for it so changed it back.

    I also tried to add TeleportService2.onLogOutOppositeMap (player); under it which gave error obviously.

    custom.properties didn't have these lines in it. (Added them to just try and didn't do anything)

    gameserver.storebindpoint.enable = false
    gameserver.reconnect.to.bind.point = false


    Possible I didn't understand exactly what you meant?

    I have searched all the code in using ctrl+f src/com/aionemu/gamerserver/services/player to find anything with logout, login, or bind but couldn't find anything all.


    This is the original code that I can find located in playerenterworldservice.java




    So confused why I can't figure this one out.
    Do I need to add anything to PlayerLeaveWorldService.java possibly?


    Appreciate the help given so far.

  6. #6
    Apprentice Dart212 is offline
    MemberRank
    Oct 2022 Join Date
    9Posts
    Issue has been solved.
    Last edited by Dart212; 28-10-22 at 04:20 AM.

  7. #7
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by Dart212 View Post
    Issue has been solved.
    A bit of persistence and you got it :) Good job!

  8. #8
    Apprentice Dart212 is offline
    MemberRank
    Oct 2022 Join Date
    9Posts
    Thanks, appreciate it Stinger.

    The code for leaving/entering seemed fishy(aka missing something in it)

    I honestly just rewrote both playerleavingworld and entering. I don't really like handouts just figured someone might know what was going on and save me a little bit of time!

  9. #9
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by Dart212 View Post
    Thanks, appreciate it Stinger.

    The code for leaving/entering seemed fishy(aka missing something in it)

    I honestly just rewrote both playerleavingworld and entering. I don't really like handouts just figured someone might know what was going on and save me a little bit of time!
    You can also compare files of other emulators to speed up the process :) I did that once to fix the friend list bug as it was just missing some bytes at the end of the packet and voila! But sometimes these things aren't so simple to fix.



Advertisement