Thread: NPC dies, and nobody can login any more / account already logged in bug

Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Oprah Rich View Post
    The spawn is located near the middle of the file. When I comment the spawn that bugs out, the spawns directly above and below it in the spawns file don't bug when I kill them.

    Update: I moved the spawn one position west away from the wall, and it doesn't bug now... But I'd still like to know why this happens.
    Alright if you change :

    <x>0</x>
    <y>0</y>
    <z>0</z>

    to:

    <x>2</x>
    <y>4</y>
    <z>0</z>

    will it still bug out?


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  2. #22  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    It's likely a Throwable is being thrown but isn't being printed. On all available threads, assign the thread factory uncaught exception handler to print each exception to the console or have it sent to a file of sorts then reproduce the issue.
    Reply With Quote  
     

  3. #23  
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by arch337 View Post
    Alright if you change :

    <x>0</x>
    <y>0</y>
    <z>0</z>

    to:

    <x>2</x>
    <y>4</y>
    <z>0</z>

    will it still bug out?
    Not immediately, that enables working for the npc (and noclipping in some cases). It seems to be specific to that position, but if the npc can walk away from that position it doesn't happen.

    Also there are other npc 1593s that have all 0s for that part like you just posted.

    Quote Originally Posted by Jason View Post
    It's likely a Throwable is being thrown but isn't being printed. On all available threads, assign the thread factory uncaught exception handler to print each exception to the console or have it sent to a file of sorts then reproduce the issue.

    After your suggestion, I started adding this to each thread's catch block in the run() method

    Code:
     Thread.currentThread().getUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), t);
    But still no errors, maybe I'm doing it wrong. I got that idea from stackoverflow.
    Reply With Quote  
     

  4. #24  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Quote Originally Posted by Oprah Rich View Post
    After your suggestion, I started adding this to each thread's catch block in the run() method

    Code:
     Thread.currentThread().getUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), t);
    But still no errors, maybe I'm doing it wrong. I got that idea from stackoverflow.
    That will only reference the function uncaughtException from the current threads UncaughtExceptionHandler object. Ill help ya buddy.

    edit; Solved the issue, a function was blocking the game thread that shouldn't have been.
    Reply With Quote  
     

  5. #25  
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    This has been resolved!

    Also for anyone using Asgarnia or a similar source, my problem was an infinite loop in the clippedTeleport method. You can debug it by testing if the method gets to the end or not.
    Reply With Quote  
     

  6. #26  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Oprah Rich View Post
    This has been resolved!

    Also for anyone using Asgarnia or a similar source, my problem was an infinite loop in the clippedTeleport method. You can debug it by testing if the method gets to the end or not.
    Well done you two, I really like it that you post the solution to the problem so other people can fix it too!
    Attached image
    Reply With Quote  
     

Page 3 of 3 FirstFirst 123

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Server Offline nobody can login
    By Billanderson in forum Help
    Replies: 4
    Last Post: 03-10-2012, 11:57 PM
  2. Replies: 8
    Last Post: 02-01-2012, 04:15 PM
  3. Replies: 4
    Last Post: 07-15-2011, 09:12 AM
  4. Replies: 0
    Last Post: 12-19-2010, 05:05 PM
  5. [508] Change login threshold (how long your logged in)
    By Thedudewithnoname in forum Help
    Replies: 0
    Last Post: 07-12-2009, 11:01 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •