ID:2196594
 
(See the best response by Nadrew.)
Code:
mob
proc
CreateNewCharacter()
var/char_name
do
char_name = input(src, "What is your name?","New Character") as null|text
if(!char_name)
return
if (ckey(char_name) in characters)
alert("This name isn't acceptable.")
char_name = null
while(!char_name)

var/char_race = input(src, "What race do you wish to be?", "New Character", "Human", "Alien") in _races
if(char_race == "")
ChoosePower()
switch(input("Do you want to see training information?") in list("Yes", "No"))
if("Yes")
ShowLevel=1
if("No")
ShowLevel=0
alert("This is still in beta if you see any bugs report it with the bug report button, alot of stuff in this game still don't work. Any feature requests please page the owner on byond at: Dragonpearl123")
Ranking(src)
var/rtype = _races[char_race]
var/mob/new_mob = new rtype()
new_mob.savable = 1
new_mob.name = char_name
//new_mob.gender = Gender
savefile[ckey(char_name)] << new_mob //Line 104
new_mob.client = client //after creating the new character, you need to set the new mob's client to end the character creation process and suspend the loop.


Problem description:
Runtime error:

runtime error: bad savefile or list
proc name: CreateNewCharacter (/mob/proc/CreateNewCharacter)
source file: Start.dm,104
usr: (src)
src: Dragonpearl123 (/mob/other/choosing_character)
src.loc: the turf (11,11,3) (/turf)
call stack:
Dragonpearl123 (/mob/other/choosing_character): CreateNewCharacter()
NewO (4,15,3) (/turf/Login/NewO): Click(NewO (4,15,3) (/turf/Login/NewO), "gamewindow.map1", /list (/list))
Where are you setting up the 'savefile' variable?
In response to Nadrew
Nadrew wrote:
Where are you setting up the 'savefile' variable?
mob
var
list/characters = list()
savefile/savefile
Best response
Doesn't look like you're initializing it to anything, that's your issue.
In response to Nadrew
Nadrew wrote:
Doesn't look like you're initializing it to anything, that's your issue.
Yeah I fixed it not Im on another runtime error, I tried force removing verbs but it was already saved to a list so ig I bugged myseld p.q

Error
runtime error: wrong type of value for list
proc name: Read (/mob/Read)
source file: Start.dm,250
usr: (src)
src: the dadad (/mob/characters/Human)
src.loc: Sand (94,114,1) (/turf/Turfs/Environment/Earth/Sand/Sand)
call stack:
the dadad (/mob/characters/Human): Read(players/d/dragonpearl123.sav (/savefile))

    Write(savefile/F)
if(!savable) return
for(var/v in verbs) mimic_verbs += v//the errored line
..()

F["last_x"] << x
F["last_y"] << y
F["last_z"] << z
savedoverlays = overlays.Copy()
overlays = null
overlays = savedoverlays.Copy()
//for(var/T in src.techniques)
// vrb.Add("[T]")
//F["Verbs"]<<vrb
//F["verbs"] << verbs
Read(savefile/F)
..()
for(var/v in mimic_verbs) verbs += v//the errored line
var/last_x
var/last_y
var/last_z
F["last_x"] >> last_x
F["last_y"] >> last_y
F["last_z"] >> last_z
overlays = savedoverlays
//F["Verbs"]>>vrb
//for(var/T in vrb)
// src.techniques+=text2path(T)
//F["verbs"] >> verbs
loc = locate(last_x, last_y, last_z)

was working fine idk what happened, cant remove it cuz I wont get my skills back so gg
Nevermind, fixed it by removing all the null verbs, so simple xD