ID:151234
![]() Feb 1 2001, 6:00 am
|
|
Ok, last night I was adding a crapload to the map I'm making and it all compiled fine but now whenever I try to run it in dreamseeker the map is all black and I can't see my character. Help!
|
If you are not calling the Login() superclass method, then your mob won't be automatically placed on the map. Eventually you'll want to do this yourself anyway, which you do in mob.Login() like so:I'm at school so I can't check right now, but the window goes completely black...thanks |
Ok, now I can see myself...but...I can't make character move now, he just does his lil animation but there's no movement...help me please!
|
On 2/1/01 6:48 pm Gilser wrote:
Ok, now I can see myself...but...I can't make character move now, he just does his lil animation but there's no movement...help me please! By default he would move, so that most likely means you have some code that is keeping him from moving. If you post your mob code, we might be able to see what's up. |
My mob code isn't that much right now...but here it is, I'll add the obj and Game code under it just in case, thanks!
mob/player human icon = 'player.dmi' Login() loc = locate(1,1,1) OBJ Code obj/itemsandsigns density = 1 thing icon = 'Thing.dmi' density = 1 flutz icon = 'flutz.bmp' density = 1 heaven1 icon = 'LostHeaven1.dmi' density = 1 heaven2 icon = 'LostHeaven2.dmi' density = 1 post1 icon = 'post1.dmi' density = 1 post2 icon = 'post2.dmi' density = 1 post3 icon = 'post3.dmi' density = 1 post4 icon = 'post4.dmi' turf/ground Carpet1 icon = 'Carpet1.dmi' Carpet2 icon = 'Carpet2.dmi' Carpet3 icon = 'Carpet3.dmi' Carpet4 icon = 'Carpet4.dmi' Carpet5 icon = 'Carpet5.dmi' Carpet6 icon = 'Carpet6.dmi' Carpet7 icon = 'Carpet7.dmi' Carpet8 icon = 'Carpet8.dmi' Carpet9 icon = 'Carpet9.dmi' floor icon = 'floor.dmi' grass icon = 'Grass.dmi' space icon = 'space.dmi' density = 1 dtile icon = 'dtile.dmi' platform icon = 'platform.dmi' P1 icon = 'P1.dmi' Game Code // All manual changes should be made outside the BEGIN_ and END_ blocks. // BEGIN_FILE_DIR // END_FILE_DIR world // default world parameters mob = /mob/player/human turf = /turf/ground world view = 8 // BEGIN_INCLUDE #include "Mobs.dm" #include "Objs.dm" #include "OS.dmp" // END_INCLUDE |
Do you have a mob.Login() proc, and if so, is it calling the superclass method? That would be like so:
..()
If you are not calling the Login() superclass method, then your mob won't be automatically placed on the map. Eventually you'll want to do this yourself anyway, which you do in mob.Login() like so:
mob
Login()
loc = locate(5, 5, 1)
This will place your mob on the map at location 5, 5.