ID:175365
 
I couldn't decide were to post, but I'm just curious in my games from time to time, more so during a World Reboot, some player mob.loc gets assigned 1,1,1. There should be nothing sending them to this tile nor setting their loc to these choords anywhere in my code. I'm just wondering if this is a known issue that has been looked into at all? Or is there something I can do code wise to prevent this? As a fix I've setout like traps, areas that will re-assign the mob.loc to playing field area within the game.

LJR
LordJR wrote:
I couldn't decide were to post, but I'm just curious in my games from time to time, more so during a World Reboot, some player mob.loc gets assigned 1,1,1. There should be nothing sending them to this tile nor setting their loc to these choords anywhere in my code. I'm just wondering if this is a known issue that has been looked into at all? Or is there something I can do code wise to prevent this? As a fix I've setout like traps, areas that will re-assign the mob.loc to playing field area within the game.

Likely as not, calling ..() in mob/Login() will do that.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
LordJR wrote:
I couldn't decide were to post, but I'm just curious in my games from time to time, more so during a World Reboot, some player mob.loc gets assigned 1,1,1. There should be nothing sending them to this tile nor setting their loc to these choords anywhere in my code. I'm just wondering if this is a known issue that has been looked into at all? Or is there something I can do code wise to prevent this? As a fix I've setout like traps, areas that will re-assign the mob.loc to playing field area within the game.

Likely as not, calling ..() in mob/Login() will do that.

Lummox JR

Noted.. I'll besure to check that... until Scoobert's BYONDscape articile came out I never knew fully what ..() did. Now I do and its helping me get around a bunch of problem areas. Always happy to learn..

LJR
In response to LordJR
Or if the character is on a dense turf that was destroyed when the reboot comes along the turf or whatever dense thing was there recreates itself and the user gets sent back to 1,1,1.
In response to Thief Jack
Out of curiosity, is lord JR and lummox JR related? or is it coincidental. Until now i mistook that and thuoght they were the same people :)

~STARWARSPOWER~
In response to Starwarspower
Starwarspower wrote:
Out of curiosity, is lord JR and lummox JR related? or is it coincidental. Until now i mistook that and thuoght they were the same people :)

~STARWARSPOWER~
The world may never know....

http://bwicki.byond.com/ByondBwicki.dmb?LummoxJr

...there in lays the answer you seek.