ID:171165
 
I have a random combat system that changes the variable Xloc,Yloc, and Zloc to the same as your current location. You then teleport to the battle, when you win the battle your are teleported back to the Xloc, Yloc, and Zloc. Even though the screen is blank I know I am there because when I move I can still go to places on the world map(I know I enter them because of the music change.) But when you teleport back from battle the screen is Blank or black. I am only wondering if there is a universal problem with teleporting and getting a blank screen.

(In a nut shell: I tried to get it to teleport you to battle then when its over teleport you back to the same place. It worked before. This is wierd.)
can you supply the section of code where you store the x,y,z coordinates, then restore them after the fight is over? or maybe you are setting the coordinates correctly but not returning the player to the right map?
Cloudiroth wrote:
(In a nut shell: I tried to get it to teleport you to battle then when its over teleport you back to the same place. It worked before. This is wierd.)

Sounds like your coordinates might be getting scrambled or something, placing you somewhere non-existant on that Z level. Without more information, that's all anyone can really assume. :/ Try storing the player's old position as the turf they were on instead:

mob
var/turf/OldLoc

proc/GotoBattle()
OldLoc = src.loc
loc = // Teleport them to the battle area
// Afterwards, set their 'loc' back to OldLoc


Do you modify client.eye at any point? It sounds like your eye is not attached to your mob and your perspective settings are set so that when the mob is out of view of the eye, you can not see anything.
In response to Shadowdarke
Why yes I did use client.eye thing, and I think thats it. I am going to go change it after it teleports back.
In response to Cloudiroth
YES! THANK YOU. Now my ffvii game can continue on!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!