For some unknown reason, either i get runtime errors or my ds crashes, it says:
runtime error: type mismatch
proc name: Login (/mob/aggresive/Player/Login)
usr: Mrhat99au (/mob/aggresive/Player)
src: Mrhat99au (/mob/aggresive/Player)
call stack:
Mrhat99au (/mob/aggresive/Player): Login()
Mrhat99au (/mob/aggresive/Player): Read(players/m/mrhat99au.sav (/savefile))
Mrhat99au (/client): base LoadMob("Mrhat99au")
Mrhat99au (/client): base ChooseCharacter()
Mrhat99au (/client): New()
runtime error: type mismatch
proc name: Login (/mob/aggresive/Player/Login)
usr: Mrhat99au (/mob/aggresive/Player)
src: Mrhat99au (/mob/aggresive/Player)
call stack:
Mrhat99au (/mob/aggresive/Player): Login()
I dont know what is wrong
proc/base_ChooseCharacter()
// Switches the player to a choosing character mob.
// In case switching in middle of game, save previous mob.
base_SaveMob()
var/mob/ChoosingCharacter/chooser
// Do they have any characters to choose from?
var/list/names = base_CharacterNames()
if (!length(names))
// They must be a first time player.
// Okay let them create their first character.
chooser = new()
mob = chooser
return
// If only one character is allowed, try to just load it.
if (base_num_characters_allowed == 1)
base_LoadMob(names[1])
return
chooser = new()
mob = chooser
return
by the way i only use one charater at a time, if i cant fix this i might redo my saving system instead of using deadrons, and get someone experience off it.
Copyright © 2024 BYOND Software.
All rights reserved.
Da_Odd_Rushyo