ID:171108
![]() Nov 11 2004, 10:58 am
|
|
When people make new chars and login to my game, there screen is black. Does anyone know how to fix this?
|
![]() Nov 11 2004, 11:00 am
|
|
You have to have ..() at the end of all of your login procs. Or make sure the loc isn't null
|
mob/other/choosing_character
Login() usr.loc=locate (70,82,10) usr.move = 0 usr.sight = 0 spawn() src.ChooseCharacter() Is this what you talking about? Its still black. |
Chattabox wrote:
mob/other/choosing_character No. mob/other/choosing_character |
its still black but what about this?
mob/Login() CheckBan(src) src.loc=locate(70,82,10) src.move = 1 src.ko = 0 src.blocking = 0 src.ptime = 0 src.kiin = 0 src.grav = 0 src.combo = 0 |
mob/Login() That should work. |
Chattabox wrote:
its still black but what about this? Step 1: Check to see if 70,82,10 exist.. Step 2: If it does check the density values for bolth you and the location :) Step 3: Make sure src is the person you want it too be.\ Step 4: See if the Login() proc has any pre built proc problems. As maybe U have a mob/Move() return 0 or somthing like that. Its probley somthing you have over looked in the coding surrounding this code. Cause to my knowledge moving some one with src.loc = locate() proc does move them. Somthing about it not calling Move() or somthing like that I think I read some where. Which is why I always use the Move(locate()). Correct me if Im not suppose to be doing that. |
Actually, Login() needs ..() at the end to signal it to run its original intention...Logging in =P. So yeah, you might be right, but that will be the main culpret (meh sp?) I think
|
N1ghtW1ng wrote:
Actually, Login() needs ..() at the end to signal it to run its original intention...Logging in =P. So yeah, you might be right, but that will be the main culpret (meh sp?) I thinkO.O I have no ..() on my Login() for SDE but it seems to work well should I have a ..()? Never accord to me to have one cause it didn't do any thing I didn't want it to? |
Still doesnt seem to be working. And the place does exist.
mob/Login() CheckBan(src) src.loc=locate(70,82,10) src.move = 1 src.ko = 0 src.blocking = 0 src.ptime = 0 src.kiin = 0 src.grav = 0 src.combo = 0 src.angered = 0 // src.oicon = src.icon src.powerlevel = src.maxpowerlevel src.tech = 0 src.gainzenni = 0 src.slap = 0 src.entime = 0 src.sight = 0 src.overlays -= /obj/kame src.overlays -= /obj/kame src.overlays -= /obj/kame src.overlays -= /obj/kame src.overlays -= /obj/kame src.overlays -= /obj/kame src.focused = 0 src.spar = 0 src.icon_state = "" src.ased = 0 src.talk = 1 src.plarper = 1 src.absorb = 0 src.flight = 0 src.tayio = 0 src.training = 0 src.density = 1 src.safe = 0 src.meditate = 0 src.medtime = 0 src.talk = 1 src.entime = 0 src.medtime = 0 src.move = 1 src:sight = 0 world << "<font color = green>{{**<font color = white>[src] has logged in!<font color = green>**}}" usr << "Please click EXTRA and Reload Corner to view the news, player's corners (little websites)" sample_report() ..() mob/other/choosing_character Login() usr.loc=locate (70,82,10) usr.move = 0 usr.sight = 0 spawn() src.ChooseCharacter() ..() |
Don't put usr in procs. For more info, read its entry in the DM Ref(Hub > Create Games > DM Ref). Also, every time you have a built-in proc such as Login(), you must put ..() in order to avoid overriding that proc.
|
Meh, just don't help the guy.
Unless you want to help a Criminal? Do you really want to do that, eh? Eh? |
If you have only one, you won't notice anything. If you ahve more than one Login() for that specific type you need a ..()
|
Contrary to what most people have said in this thread of posts, you do not need ..() in Login if you set the mob's loc manually as you are doing. The default action of the Login function is to set client.statobj to src and to move the mob to an available location. Thus, whenever you are telling it where to appear (with loc=locate(coordinates)) just use the line client.statobj=src instead of ..()
About your problem though, I don't see what it is there. However, you should not need to set sight to 0 since it defaults to 0. Try putting in a couple debug lines at the end of the Login. Login() |