|
Hello. I have been experiencing a strange problem with player saving/loading.
I have the mud write a player file, but when it comes to loading, it will find and open the file, read the first line, interpret it into a function to read the rest (for different headings to read. #PLAYER #OBJECT that kind of thing).
within the #PLAYER subfunction, the very first fread_word() gives me the error: Fread_word: word too long.
Here is the entirety of the player file being read in.
#PLAYER -End- #END
#PLAYER reads fine, it's the fread_word() that reads in the -End- word that ejects that bug and crashes the mud.
I'm using the standard format for godwars/ROM readin function types, modified for this data of course, but not in procedure (load_char, fread_char)
Interesting note though. In Ultraedit (some of you may use this), when opening the player file from the server, it recognizes it as as DOS formated file, not UNIX. How in the world is the mud savin to DOS formated? Perhaps interfearing with linebreaks? Either case, when the player file is converted, it gives same error.
Using Red Hat Linux release 7.1
If you require any more information, my save functions or load functions, I will provide.
|