ID:149758
 
I cant seem to login to my world now because I am constantly getting a blank screen :(

The only Login() proc I have is this:
mob
Login()
..()
src.Move(locate(/area/Start/))
alert("-=|All names in this game are not based on any real life people.|=-")
alert("-=|Five names where thought of by head and then the rest where taken from the top 100 baby names from the year 2001|=-")
alert("-=|If anyone should feel intimidated by these names please inform either 'Elorien', 'Mellifluous' or 'Shadowdarke'|=-")
alert("-=|Once we have been told that a name is intimidating then we will erase that name and then choose another one...Hope you enjoy our environment|=-")
alert("-=|The Emmė Karėa Ambari team, aka EKA|=-")
usr.name = input("What is your name?","Your name?",usr.name) // ask the player their name
var/r = input("What Character do you wish to be?") in list ("Greg","Alan","Lee","Renče","Thomas","Emily","Jacob","Hannah","Madison","Michael","Joshua","Matthew","Samantha","Ashley","Sarah","Andrew","Hayley","Kayley","Alexis","Joseph","Abigail","Jessica","Taylor","Anna","Lauren") // ask the player what the variable 'r' is
switch(r) // r (the variable that contains race information) is put under the switch() proc. the program is now checking to see what 'r' is, then setting the correct information. see below
if("Greg") // the program already knows what it's comparing (r). this was established with the line 'switch(r)'. now the program is checking to see what 'r' equals. just use if("example") to do so, because we've already checked to see what we're looking at
world << "<b>[usr] Enters the World</b>"
icon = 'characters.dmi'
icon_state = "1"
if("Alan")
world << "<b>[usr] Enters the World</b>"
icon = 'characters.dmi'
icon_state = "2"
if("Lee")
world << "<b>[usr] Enters the World</b>"
icon = 'characters.dmi'
icon_state = "3"
if("Renče")
world << "<b>[usr] Enters the World</b>"
icon = 'characters.dmi'
icon_state = "4"
if("Thomas")
world << "<b>[usr] Enters the World</b>"
icon = 'characters.dmi'
icon_state = "5"
if("Emily")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "1"
if("Jacob")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "2"
if("Hannah")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "3"
if("Madison")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "4"
if("Michael")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "5"
if("Joshua")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "6"
if("Matthew")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "7"
if("Samantha")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "8"
if("Ashley")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "9"
if("Sarah")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "10"
if("Andrew")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "11"
if("Elizabeth")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "12"
if("Hayley")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "13"
if("Kayley")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "14"
if("Alexis")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "15"
if("Joseph")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "16"
if("Abigail")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "17"
if("Jessica")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "18"
if("Taylor")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "19"
if("Anna")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "20"
if("Lauren")
world << "<b>[usr] Enters the World</b>"
icon = 'characters2.dmi'
icon_state = "21"

if(usr.key == "Elorien" || usr.key == "Mellifluous" || usr.key == "Shadowdarke")
src.verbs+=/mob/imm/verb/Summon
src.verbs+=/mob/imm/verb/Warp
src.verbs+=/mob/imm/verb/Boot
src.verbs+=/mob/imm/verb/Delete
src.verbs+=/mob/imm/verb/TempImm
src.verbs+=/mob/imm/verb/DeImm
src.verbs+=/mob/imm/verb/IPBan
src.verbs+=/mob/imm/verb/Reboot
src.verbs+=/mob/imm/verb/Create
src.verbs+=/mob/imm/verb/Invisibility
src.verbs+=/mob/imm/verb/Echo
src.verbs+=/mob/imm/verb/SpecialWho
src.verbs+=/mob/imm/verb/Paralyze
src.verbs+=/mob/imm/verb/ServerEnd


mob
Logout()
..()
world << "[usr] has just departed from us"
del src


If anyone could help me figure this out I will be most happy ^_^

Lee
Have you tried sending them to specific coordinates and or fiddling with the ..()? The ..()'s have been giving me trouble in login, so I just take them out now.
In response to Foomer
umm... aren't you supposed to put the ..() at the end of your Login() proc... I'm not sure but I have had the same problems and that seemed to fix it.
Mellifluous wrote:
I cant seem to login to my world now because I am constantly getting a blank screen :(

Hmm, I don't see any of the obvious reasons for blank screen. Perhaps it's something with the map, or something more insidious?

Regardless, I saw a few places where your code could be made more manageable ( = less typing and headaches when you want to change things later on) and I couldn't help myself. This is untested but I believe it is functionally equivalent. Feel free to ignore if you like.


var/list/charstates = list( \
"Greg" = "1", \
"Alan" = "2", \
"Lee" = "3", \
"Renče" = "4", \
"Thomas" = "5", \
"Emily" = "1", \
"Jacob" = "2", \
"Hannah" = "3", \
"Madison" = "4", \
"Michael" = "5", \
"Joshua" = "6", \
"Matthew" = "7", \
"Samantha" = "8", \
"Ashley" = "9", \
"Sarah" = "10", \
"Andrew" = "11", \
"Elizabeth" = "12", \
"Hayley" = "13", \
"Kayley" = "14", \
"Alexis" = "15", \
"Joseph" = "16", \
"Abigail" = "17", \
"Jessica" = "18", \
"Taylor" = "19", \
"Anna" = "20", \
"Lauren" = "21")

var/list/charicons = list( \
"Greg" = 'characters.dmi', \
"Alan" = 'characters.dmi', \
"Lee" = 'characters.dmi', \
"Renče" = 'characters.dmi', \
"Thomas" = 'characters.dmi', \
"Emily" = 'characters2.dmi', \
"Jacob" = 'characters2.dmi', \
"Hannah" = 'characters2.dmi', \
"Madison" = 'characters2.dmi', \
"Michael" = 'characters2.dmi', \
"Joshua" = 'characters2.dmi', \
"Matthew" = 'characters2.dmi', \
"Samantha" = 'characters2.dmi', \
"Ashley" = 'characters2.dmi', \
"Sarah" = 'characters2.dmi', \
"Andrew" = 'characters2.dmi', \
"Elizabeth" = 'characters2.dmi', \
"Hayley" = 'characters2.dmi', \
"Kayley" = 'characters2.dmi', \
"Alexis" = 'characters2.dmi', \
"Joseph" = 'characters2.dmi', \
"Abigail" = 'characters2.dmi', \
"Jessica" = 'characters2.dmi', \
"Taylor" = 'characters2.dmi', \
"Anna" = 'characters2.dmi', \
"Lauren" = 'characters2.dmi')

var/list/adminkeys = list("Elorien", "Mellifluous", "Shadowdarke")

mob
Login()
..()
src.Move(locate(/area/Start/))
alert("-=|...(removed for line wrap)...|=-")
src.name = input("What is your name?","Your name?",src.name) // ask the player their name
var/r = input("What Character do you wish to be?") in charstates // the charicons list would work equally well
world << "<b>[src] Enters the World</b>"
src.icon = charicons[r]
src.icon_state charstates[r]

if(src.key in adminkeys)
src.verbs +=/mob/imm/verb/Summon
src.verbs+=/mob/imm/verb/Warp
src.verbs+=/mob/imm/verb/Boot
src.verbs+=/mob/imm/verb/Delete
src.verbs+=/mob/imm/verb/TempImm
src.verbs+=/mob/imm/verb/DeImm
src.verbs+=/mob/imm/verb/IPBan
src.verbs+=/mob/imm/verb/Reboot
src.verbs+=/mob/imm/verb/Create
src.verbs+=/mob/imm/verb/Invisibility
src.verbs+=/mob/imm/verb/Echo
src.verbs+=/mob/imm/verb/SpecialWho
src.verbs+=/mob/imm/verb/Paralyze
src.verbs+=/mob/imm/verb/ServerEnd


With this, if you want to add a new character or admin, you just update the corresponding list(s). Simple as pie!
In response to Air Mapster
Hmm, maybe you should locate them after choosing like

if("alice")
the locate them
Weird... I'm not getting the top menu ^^^ on this post.
In response to Vortezz
Vortezz wrote:
Weird... I'm not getting the top menu ^^^ on this post.

Scroll way over to the Right!
His code post made to go out like that.

LJR
In response to Canar
Nope, he has it at the beginning of the Login proc. This means it will do all of the standard Login precedures THEN do his code. If he were to put it after then it would use his code, then do the standard login precedures.

As for the problem it has to be in your area. If the area is dense or filled with another mob then it won't move the character to that turf, it will move the player to 0,0,0 which will give you the black screen.

All you need to do is define a larger area for them to login to. An alternative would be to set their density to zero while they are in the starting area so you can stack up mobs.
In response to English
The problem was in another part of the code. His client/New() proc was not calling ..() properly, so the client was never created and the player had no connection to the game.
In response to Shadowdarke
Ah, that would do it. Nevermind then :p