I have two problems/questions.
ONE: My Saving/Loading system is coded like this:
mob
proc/Save()
var/savefile/F = new("/Players/[src.ckey].sav")
Write(F)
F["src"] << src
var/X
var/Y
var/Z
proc/Load()
var/savefile/F = new("/Players/[src.ckey].sav")
Read(F)
F["src"] >> src
src.icon = 'Icons1/Base.dmi'
src.loc=locate( X, Y, Z)
The Saving is fine, it writes to the file. But then when I run the game, for some reson it bypasses all of the mob/Login() code and goes straight to the Loading Proc which messes it all up, BUT, it dosen't fully load. It loads the users X, Y, Z, and Hair...that's it...no icons or anything!
P.S.
The Saving and Loading are procs because I'm doing a Click based title screen.
TWO: It will let me do src.Save() but not src.Load(). It get this error: saving.dm:43:error:src.Load:undefined proc
But the Loading proc IS identified, I have it right above it, I spell checked everything, everythings case is right. But I cannot find out why it is doing this!
turf/LoadChar
icon = 'load.bmp'
Click()
src.Load()
world<<"* [usr.ckey] has connected."
Please Help!! Thanks!
-Hi1</<>
ID:161035
![]() Jun 26 2008, 1:16 pm
|
|
mob/Login()
src << {" [CENTER][BIG]Welcome to [world.name]![/BIG][/CENTER] Hello [usr.key]! This game is 100% original!![font color="red"][b]Have fun![/font][/b] "} src.icon = 'turfs1.dmi' src.icon_state = "none" src.loc=locate(5,9,2) P.S. I replaced the HTML tags with [ ]'s. |
That's what you want to show up when people load or create a new character ?
No usr in procs, by the way. |
No, that is what they see when they log in, then it takes them to the title icon, then this:
turf/NewChar |
turf/LoadChar Try that. |
No need to define mob/M. Like I said, usr is enough in Click()
turf/LoadChar |
Andre-g1 wrote:
Then what exactly do you want it to do? You weren't really specific on your first post. Please just stop asking questions you have made this post long enough. "it dosen't fully load. It loads the users X, Y, Z, and Hair...that's it...no icons or anything!" ... READ ... |
Please don't just guess something up and throw it over as a suggestion to fix a problem. This, and you, are both wrong. If you don't know how to help, simply don't try to help. Not to mention something you should also do is refrain from replying to a topic before reading it in whole, since this problem was already solved correctly before you posted.
In light of the above you also shouldn't try to educate others on how they should post, really; there's nothing wrong with asking questions to get a better view of the situation and being more able to help afterwards, neither is there anything wrong with longer topics. The unneeded extra length to the topic was your post in fact, since the topic's purpose is for the guy to get help with his problem, not for the topic to be short. |
That didnt work...
This is the whole file: turf/NewChar |
2- You're using Load() on a turf using Click() if you use src it will be referring to the turf, since Load() is a proc for mobs it will say undefined proc. Replace it with usr.Load()