Hi. Anyway, to get to the point:
My maps turn up all black!
Nothing but black. The turf icon names don't come up or anything. Here's the code I'm using...
turf
grass
icon = 'Grass.dmi'
mob
icon = 'player.dmi'
Have I overlooked something or is this some sort of BYOND bug? (And yes, I have actually created a map file, and #include "map.dmp" is in the source code.) It's probably the former, and if so, what have I done wrong?
ID:173038
Feb 23 2004, 6:29 am
|
|
Feb 23 2004, 6:50 am
|
|
This should help: http://bwicki.byond.com/ByondBwicki.dmb?BlankScreen
|
In response to Shadowdarke
|
|
Nope... I still get a black screen. Here's the full code (very very early development.)
mob Login() world << "[usr] enters the town." src << "Welcome to the Wild West, [usr]!" mob/verb //Here are all the verbs. say(msg as text) view() << "[usr] says: [msg]" emote (msg as text) view() << "[usr] [msg]" shout(msg as text) world << "[usr] shouts: [msg]" turf grass icon = 'Grass.dmi' mob icon = 'player.dmi' Anything wrong in that? I've put () after login. |
In response to Easty
|
|
Easty wrote:
Nope... I still get a black screen. Here's the full code (very very early development.) Obviously you didn't understand the help that was handed to you. ..() is a special function that tells a procedure to do what it would normally be doing hadn't you redefined it. Change your Login() proc to the following: mob Login() world << "[usr] enters the town." src << "Welcome to the Wild West, [usr]!" ..() Sorry for the lack of DM tags... |
In response to Easty
|
|
Easty wrote:
Anything wrong in that? I've put () after login. You still forgot to put ..() in Login(). mob Login() ..() world << "[usr] enters the town." src << "Welcome to the Wild West, [usr]!" The default Login() proc places the new mob in the first empty space it can enter on the map. ..() means to execute the parent of the current proc. When you call it in the beginning of Login() it places the mob normally, then performs the other instructions. |
In response to Shadowdarke
|
|
...D'oh! *smacks head* Thanks for the help! ^_^
|