ID:263126
 
Im new to byond coding.. im not sure what wrong.
Code:
mob
Login()
world << "[usr] Joined the world!"
mob
verb
smile()
world << "[usr] Cracks a smile."
giggle()
world << "[usr] Chuckles."
cry()
world << "[usr] cries \his heart out."
Mary_Lou()
world << "Mary Lou yells at her children."
Laugh()
world << "[usr] Laughs his ass off."
turf
floor
icon = 'floor.dmi'
wall
icon = 'wall.dmi'
density = 1
soda_machine
icon = 'soda.dmi'
density = 1
mob
icon = 'player.dmi'


Problem description: When I sun my file, my map doesnt appear.. its just a black screen with my verbs.

You can't just create a map and put nothing in it. Sure, you coded in all of the turfs and such and created the map file, but then you have to place turfs and such into the map file. You can do that by double-clicking the map file and selecting turfs and such then clicking a tile in the map.
It's because you've overridden Login(). Here:

mob
Login()
world << "[usr] Joined the world!"


mob/Login(), by default, finds a non-empty space to drop the mob in. But you've overridden it so that all it does is tell everyone who has joined (You might want to use src rather then usr in there, actually).

To fix this, you probably want to add the line '..()' at the end of Login() (without the quotes). That calls the 'parent proc' - in this case, the default mob/Login().
I think I need to set coordinates on my map.... but i dont know how... anyone know what code i should use?
In response to Jp
Oh yeah, didn't notice that, heh.
In response to Fire_lillie
Look up the mob variable 'loc', as well as the 'mob/Move()' and 'locate()' procedures.

Or you could just put a ..() at the end of your login().
In response to Jp
Thanks guys... I got it too work...
The help was MUCH APPRECIATED.
Plan on seeing a lot of questions from me in the future.
:-D
In response to Fire_lillie
Fire_lillie wrote:
Plan on seeing a lot of questions from me in the future.
:-D

I sure hope not. It would benefit everybody if you could learn to ask smart questions instead of many questions.

In particular, press F1 and look a bunch of stuff up, and spend at least 15 minutes working on your problem (more time if it's not a small problem!), or else you will have a) too many stupid questions, and b) few people willing to give you good answers.