ID:1405498
 
(See the best response by SuperSaiyanGokuX.)
Code:
runtime error: Cannot modify null.x.
proc name: Load 1 (/client/proc/Load_1)
source file: Saving and Loading.dm,8
usr: null
src: KeeperofHell (/client)
call stack:
KeeperofHell (/client): Load 1()
Login()


Problem description: I just can figure it out can someone tell me what I need to do to fix this?

Here is the Login Code:
mob/PC/Login()
src.loc = locate(88,202,1)
// spawn(5) src << browse('http://z3.invisionfree.com/DBRR/index.php?act=idx')

//--- Fixes
/* if(src.hud)
src.AddHUD()
src.client.view = 7 */

new/obj/hudMeters/health_01(src.client)
new/obj/hudMeters/health_02(src.client)
new/obj/kimeters/ki_01(src.client)
new/obj/kimeters/ki_02(src.client)
new/obj/expmeters/exp_01(src.client)
new/obj/expmeters/exp_02(src.client)
src.updateHealth()
src.updateki()
src.updateexp()


src.speeding = 0
src.frozen = 0
src.afk_time = 0
src.icon_state = ""
src.sight &= ~BLIND
src.dualtrain = 0
src.sim_delay = 0
src.who_delay = 0
src.power_delay = 0
src.arenab = 0

src.waiting = 0
src.rest_delay = 0
src.finish_delay = 0
src.cooldown = 0
src.grav_on = 0
src.grav_delay = 0
src.grav_popup = 0
src.geno_lock = 0
src.Rball_lock = 0
src.hzg_lock = 0
src.cell_jrs = 0
src.splits = 0
src.grav = 0
src.doing = 0
src.safe = 0
src.going = 0

src.say_delay = 0
src.adminsay_delay = 0
src.admin_muted = 0

src.buku = 0
src.boxing = 0
src.meditate = 0

src.rest = 0
src.ki_lock = 0
src.attack_lock = 0
src.donut_wrapped = 0
src.wrapped = 0
src.stone_form = 0
src.spit_locked = 0
if(!src.dead)
src.overlays -= halo
src.it_lock = 0
else
if(src.z == 1)
src.loc = locate(55,6,3)




player_rules_spawn()
if(src.GMLevel > 0)
src << browse(AdminRules)
switch(alert("Do you wish to Announce your arrival to the World?","Welcome to Dragonball Z: Ultimate Power","Yes","No"))
if("Yes")
world << "<font color = #F9DB13>Client Information: <font color=#3399cc>Level [src.GMLevel] Administrator <font color = white>[src.name] has joined the server."
else
world << "<font color = #F9DB13>Client Information: <font color = white>[src.name] has joined the server."

src.CHECK()
..()


proc/player_rules_spawn()
PlayerRules = {"<html>
<b><font color = red><body bgcolor=black>
<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"><big><font color="#FF0000">Player
Guidelines</font></big><br>
<br>
<i>These rules must be read carefully. Dont follow them and you will be punished.</i><br>
<br>
1- No AFK training allowed, only self training is without cheating programs<br>
2- Do not death avoid by logging off.<br>
3- Do not avoid the filter<br>
4- Do not kill dead people.<br>
5- No multikeying allowed, if you are 2 different people playing go talk to a GM
so he can test you both and will give you a ­™ in you'r name so no other GM boots you for MK.<br>
6- Do not dis-respect anyone.<br>
7- Do not abuse any bugs, report them to an enforcer.<br>
<br>
<br>
<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"><big><font color="#FF0000">Server Specs.
</font></big><br><br>
<b>Server Host: </b>
[Host]<br>
<b>Host OS: </b>
[world.system_type]<br>
<b>Host Connection: </b>Broadband<br>
<b>BYOND Version: </b>
[world.byond_version]<br>
<br>
<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"><big><font color="#FF0000">Quick Links
</font></big><br><br>
<a href=\'http://members.byond.com/'>BYOND Members</a><br>

<br>
<br>
<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"><big><font color="#FF0000">Energy Codes
</font></big><br><br>
**************~Earth NPCs~***************<br>
Banker: 5432211<br>
Barber: 5432233<br>
Broker: 9384736<br>
Bulma: 5534561<br>
Dende: 6574567<br>
Dr Briefs: 1242351<br>
Goku: 2290876<br>
Korin: 5564321<br>
Krillin: 5321659<br>
Master Roshi: 9987654<br>
Shop Keeper (Clothing): 5445677<br>
Shop Keeper (Weights): 4456744<br>
Shop Keeper (Misc): 8879554<br>
Tien: 8876976<br>
Trunks- 7234561<br>
Vegeta- 7227361<br>
Videl: 2245332<br>
Yamcha: 1356437<br>
************~Planet Namek NPCs~************<br>
Frieza: 9980776<br>
Guru: 6678554<br>
Piccolo: 2254343<br>
************~Other World NPCs~************<br>
Dabura: 2234155<br>
King Kai: 2215368<br>
Supreme Kai: 3317954<br></font>
<br>
<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"><big><font color="#FF0000">Announcements
</font></big><br>
<br>
[annc_1]<br>
<br>
[annc_2]<br>
<br>
[annc_3]<br>
<br>
[annc_4]<br>
<br>
[annc_5]<br>"}

client
proc
Load_1()
if(src.mob.save_file_1)
var/savefile/load
load = new ("Player Saves/[mob.ckey]/Save File 1.sav")
load["mob"] >> src.mob
load["x"] >> src.mob.x
load["y"] >> src.mob.y
load["z"] >> src.mob.z

if(src.mob.save_file_2)
var/savefile/load
load = new ("Player Saves/[mob.ckey]/Save File 2.sav")
load["mob"] >> src.mob
load["x"] >> src.mob.x
load["y"] >> src.mob.y
load["z"] >> src.mob.z
if(src.mob.save_file_3)
var/savefile/load
load = new ("Player Saves/[mob.ckey]/Save File 3.sav")
load["mob"] >> src.mob
load["x"] >> src.mob.x
load["y"] >> src.mob.y
load["z"] >> src.mob.z


Save_1()
if(!src)return
if(!src.mob)return

if(src.mob.save_file_1)
var/savefile/save
save = new ("Player Saves/[mob.ckey]/Save File 1.sav")
save["mob"] << src.mob
save["x"] << src.mob.x
save["y"] << src.mob.y
save["z"] << src.mob.z
if(src.mob.save_file_2)
var/savefile/save
save = new ("Player Saves/[mob.ckey]/Save File 2.sav")
save["mob"] << src.mob
save["x"] << src.mob.x
save["y"] << src.mob.y
save["z"] << src.mob.z
if(src.mob.save_file_3)
var/savefile/save
save = new ("Player Saves/[mob.ckey]/Save File 3.sav")
save["mob"] << src.mob
save["x"] << src.mob.x
save["y"] << src.mob.y
save["z"] << src.mob.z



mob/Logout(mob/M)
for(var/obj/O in src.contents)
if(istype(O,/obj/Dragonballs)||istype(O,/obj/Namek_Dragonballs))
O.loc = src.loc
src.n_db_1 = 0
src.n_db_2 = 0
src.n_db_3 = 0
src.n_db_4 = 0
src.n_db_5 = 0
src.n_db_6 = 0
src.n_db_7 = 0
src.e_db_1 = 0
src.e_db_2 = 0
src.e_db_3 = 0
src.e_db_4 = 0
src.e_db_5 = 0
src.e_db_6 = 0
src.e_db_7 = 0

for(var/mob/Monster/Cell_Jr/B in world)
if(B.owner == src)
del B
for(var/mob/Monster/Split_form/S in world)
if(S.maker == src)
del S
..()
del(src)

mob
proc
Auto_Save()
set background = 1
if(src.afk_time < 16)
src.afk_time ++
src.client.Save_1()
spawn(900) src.Auto_Save()
if(prob(40))
usr <<"\white Character Saved."
usr <<"\white Talk in OOC to avoid Dragon A.I"
else
if(src.GMLevel <= 4)
src.afk_time = 0
src.client.Save_1()
sleep(10)
world << "<font color = #00B211>Dragon AI:</font> \white [src.name] has been Booted for being Idle"
del(src)
Login() isn't where your error is coming from. Look at the report again. It says specifically the name of the code file ("Saving and Loading.dm") the proc name ("Load1()"), and the line number in the .dm file that this error comes from (line 8)

Login() is only included in the error report because it is part of the call stack that led up to the error. It's not actually where the error is.
Best response
Ha! And there's the proper proc now! lol

Line 8 is the one that says "load["x"] >> src.mob.x" and the error is telling you that at this point, when it is trying to access the x variable, that src.mob is null.

I see that on the line right above this that you are loading a saved mob into src.mob. My guess is that there is no mob saved in the file (perhaps the file is new?), so it is setting the client's mob to nothing (null). So when it gets to the line after that, src.mob is now null.
So what should I type?