mob/human/logging
proc
login_previews()
world << "Starting character preview displays."
for(var/a in contents)
world << "Checking contents of login mob and deleting [a]"
del(a)
src << output(null, "login_preview1:2,2")
src << output("Empty", "login_lab_preview1")
src << output(null, "login_preview2:2,2")
src << output("Empty", "login_lab_preview2")
src << output(null, "login_preview3:2,2")
src << output("Empty", "login_lab_preview3")
world << "Setting all displayers to null"
if(fexists(savedir))
world << "Checked for savefile and succeeded"
var/savefile/F = new(savedir)
world << "Secondary Check. Begin finding of slotted directories in save file."
if(F.dir.Find("Slot1"))
world << "Found Slot One."
var/mob/slotone
F["/Slot1"] >> slotone
slotone.Builder_Player()
slotone.dir=SOUTH
slotone.Move(src)
src << output(slotone, "login_preview1:2,2")
src << output(slotone.name, "login_lab_preview1")
world << "Outputted [slotone] to previewers."
else
world << "Failure to find slot one"
if(F.dir.Find("Slot2"))
world << "Found Slot Two."
var/mob/slottwo
F["/Slot2"] >> slottwo
slottwo.Builder_Player()
slottwo.dir=SOUTH
slottwo.Move(src)
src << output(slottwo, "login_preview2:2,2")
src << output(slottwo.name, "login_lab_preview2")
world << "Outputted [slottwo] to previewers."
else
world << "Failure to find slot Two"
if(F.dir.Find("Slot3"))
world << "Found Slot Three."
var/mob/slotthree
F["/Slot3"] >> slotthree
slotthree.Builder_Player()
slotthree.dir=SOUTH
slotthree.Move(src)
src << output(slotthree, "login_preview3:2,2")
src << output(slotthree.name, "login_lab_preview3")
world << "Outputted [slotthree] to previewers."
else
world << "Failure to find slot Three"
login_delete(deleteslot1,deleteslot2,deleteslot3)
if(fexists(savedir))
var/txtfile = file(savedirtxt)
var/savefile/F = new(savedir)
if(F.dir.Find("Slot[deleteslot1]"))
var/delconf = input("Would you like to Delete Slot [deleteslot1]? -=- Please type: DELETE -=- DELETE must be in caps","Character Deletion") as null|text
if(delconf == "DELETE")
F.dir.Remove("Slot[deleteslot1]")
src.login_previews() //errors around here.
fdel(txtfile)
F.ExportText("/",txtfile)
if(F.dir.Find("Slot[deleteslot2]")) return
else if(F.dir.Find("Slot[deleteslot3]")) return
else
fdel(savedir)
fdel(txtfile)
else return
else return
else return
The above proc in the code tags is launched when the mob is "logged in" this occurs when they 1. first launch the game client and 2. When they click return on the character creation screen.. In both these cases the proc runs till the end and displays each character into there grid and displays there name above it.
But the weird problem is occurring when i launch my delete slot command. it deletes everything perfectly as it is meant to no problems there but its meant to launch the login preview proc to re-update the previewers.
All launches well and good and i get this outputted (for test purposes)
On startup i get this which is the proc running at optimal. 3 slot previewing all succeeding.
Starting character preview displays.
Setting all displayers to null
Checked for savefile and succeeded
Secondary Check. Begin finding of slotted directories in save file.
Found Slot One.
Outputted Sdsdsds to previewers.
Found Slot Two.
Outputted Asdsadasdasdas to previewers.
Found Slot Three.
Outputted Vddfds to previewers.
now soon as the delete proc does its thing and launches its proc.. for this purpose ill delete slot three.and this is what i get.
Starting character preview displays.
Checking contents of login mob and deleting Sdsdsds
Checking contents of login mob and deleting Asdsadasdasdas
Checking contents of login mob and deleting Vddfds
Setting all displayers to null
Checked for savefile and succeeded
Secondary Check. Begin finding of slotted directories in save file.
Failure to find slot one
Failure to find slot Two
Failure to find slot Three
yet i can click on the load slot button and still load perfectly into slot one or two.. despite the previewer saying it cannot find the slot =\
~Midget