ID:2313272
 
Code:
.connected
runtime error: wrong type of value for list
proc name: Login (/mob/player/Login)
source file: Login.dm,38
usr: (src)
src: Test (/mob/player)
src.loc: the turf (1,1,1) (/turf)
call stack:
Test (/mob/player): Login()
Test (/mob/player): Read(saves/s/Synpax.sav (/savefile), null)
Continue (/obj/CreatingButtons/Continue): Click(null, "default.map1", "icon-x=27;icon-y=19;left=1;scr...")


obj
Hud
Fog
icon='FogTest.dmi'
screen_loc="1,1"
alpha =0
New()
spawn
if(src)
animate(src, transform = matrix()*1, alpha = 255, time = 10)
mob
player
var
fog=0
turf
TutorialWarp

FogActivate
Entered(mob/m)
if(istype(m,/mob/player))
var/mob/player/c = m
if(!c.fog)
c.fog=1
var/chatbox_gui/background/b = locate() in c.client.screen
if(b)
b.alpha=0

c.client.screen += new/obj/Hud/Fog
c.screenobjects += new/obj/Hud/Fog

FogDeactivate
Entered(mob/m)
if(istype(m,/mob/player))
var/mob/player/c = m
if(c.fog)
c.fog = 0
var/chatbox_gui/background/b = locate() in c.client.screen
if(b)
b.alpha=200
var/obj/Hud/Fog/fg =locate() in c.client.screen
if(fg)
c.client.screen-=fg
var/obj/Hud/Fog/fog =locate() in c.screenobjects
if(fog)
c.screenobjects-= fog

Problem description:

Can someone halp me. When I add fog and take it away this runtime error pops out

It's weird. I cannot reproduce this error no matter what I try. Nothing I've pulled up has lead to any conclusive information as to what causes this error either.

What if you tried moving the behavior for the fog object out of New() and did that stuff before attempting to add it to the list?

That's the only suggestion I have, as that is something that is common in other reports involving this error.




Here's another shot at it: Are you actually seeing the fog in your screen? I'm wondering if your client hasn't had the time to load completely for whatever reason since that part of the code is occurring on Login(). That wouldn't be consistent with the reference though since mob/Login() is called from client/New().