ID:1981260
 
(See the best response by FKI.)
runtime error: undefined variable /sClient/var/hud
proc name: hideChat (/chat/proc/hideChat)
  source file: Chat Handler.dm,21
  usr: the sClient (/sClient)
  src: /chat (/chat)
  usr.loc: the turf (1,1,1) (/turf)
  call stack:
/chat (/chat): hideChat("Local", the sClient (/sClient))
/chat (/chat): switchChat(the sClient (/sClient))
the sClient (/sClient): Login()
Rushnut (/guest): login()
Rushnut (/guest):  DEBUGlogin()


        hideChat(var/chat,var/client/sClient)
var/chatGroup/chatGroup = channels[chat]
sClient.hud.hideElement("chatLines[chatGroup.name]",INSTANT)


client
var
tmp
hud
hud = new()
New()
hud.client = src
..()



um wot?
Where is the channels list defined?
In response to Pokemonred200
Pokemonred200 wrote:
Where is the channels list defined?

under the chat datum.
Best response
/chat (/chat): hideChat("Local", the sClient (/sClient))


Only thing that stands out is the fact that you are passing a /sClient type to hideChat(), but using a client variable inside of said proc. I know you can't use client as a valid parent_type, so that may be the problem.
In response to FKI
Bingo!

I was re-writing a large amount of my backend to be more project-independent, previously I was passing mobs when I realized since the only time I actually used the mobs in that class was to reference the clients. I ammended that in the class, but not in the rest of the game.

Thanks.