ID:147543
 
runtime error: Cannot read null.name
proc name: SaveMob (/client/proc/SaveMob)
source file: new_char_handling.dm,65
usr: null
src: Govegtos (/client)
call stack:
Govegtos (/client): SaveMob()
Govegtos (/client): Del()
Login()
Login()
Login()
Login()
CreateNewCharacter()
ChooseCharacter()
Login()


var/char_ckey = cKey(src.mob.name)
src.mob is null.
In response to Garthor
Garthor wrote:
src.mob is null.

Should i show it like this

src.mob.null

?
In response to Govegtos
Govegtos wrote:
Garthor wrote:
src.mob is null.

Should i show it like this

src.mob.null

?

src.mob = null
null = 0
0 = null
null = src.mob
In response to Govegtos
No. The problem is that src.mob is null. You need to find out why, and then work around that fact.

I suspect that the mob may be getting deleted before you're trying to save it. Which is, obviously, a Bad Thing(tm). You can't save something that doesn't exist. =)
In response to Crispy
Now ive got another problem after i uploaded my game to my web server

Connecting to file://C:\Documents and Settings\default\Local Settings\Temp\sudbz.dmb.
BYOND(334.839) Error: missing or invalid sudbz.rsc file (0/143 resource files found).
BYOND(334.839) Error: error downloading resource file.
runtime error: Cannot modify null.mob.
proc name: LoadMob (/client/proc/LoadMob)
source file: new_char_handling.dm,71
usr: null
src:
call stack:
LoadMob("gotrunks")
ChooseCharacter()
Login()
BYOND(334.839) BUG: bad ref (3:157) in DecRefCount(DM new_char_handling.dm:71)

heres the block of code @ line 71

F["/[ckey]/[char_ckey]"]>>src.mob

does anyone know any ways i can fix this?
In response to Govegtos
- You didn't include the RSC file in the hub package. Or if you did, it was corrupted somewhere along the line. You should use the Package Files option in Dream Maker to package your games.

- As to the runtime error - src is null, for whatever reason. It's probably still getting deleted too early. I can't help without more code to see.

- The BYOND BUG thing... uh, not sure. This is Lummox's territory. (Lummox, get over here! =) )
In response to Crispy
Crispy wrote:
- The BYOND BUG thing... uh, not sure. This is Lummox's territory. (Lummox, get over here! =) )

He's using an old BYOND version though: 334. There's a chance Lummox has already fixed that one.
In response to Govegtos
Good gads, why are you still running 334? It's wildly unstable and even dangerous to run (due to known crashers that are easily abused as exploits). Upgrade to 338 post haste.

Lummox JR
In response to Lummox JR
oh ok now ive upgraded


why doesnt my game load?

i get this

Welcome BYOND! (Dream Seeker release 338)
Connecting to file://C:\unzipped\sudbz[1]\sudbz\sudbz.dmb.