Boot up bugs

Posted by Dralnu on Tue 31 May 2005 11:55 PM — 8 posts, 29,389 views.

USA #0
This is some simplish stuff, but I don't know what would cause them.

BUG: fread_word:: EOF Encountered on read
BUG: load_race_file:: no match : Endy (with two dots above the y on End)
USA #1
Can you show me the whole file? It looks like either the file is corrupt or someone changed something in fwrite/fread incorrectly.
USA #2
I don't know what files are having the problem. It doesn't seem to be affecting gameplay, but it might have caused a crash at some point
USA #3
Well EOF on read seems to be a player file I believe.
USA #4
I'll go into the code later and see if anything seems amiss. Right now I'm just going to concentrate on one thing and I'll post the stuff tomorrow
#5
Typically the Endy means that somewhere in there your file reading function hasn't returned as it should have upon encountering the end of file keyword (varies from file to file, lists use $ generally, area files use #$, and others are #END and End), and this causes the file reading function to continue looping until it finally runs out of stream to read from.

When you file reading function encounters it's end of file keyword, it needs to then verify the data it's gathered from the file, and if any fields of data are missing, it needs to fill in the blanks with defaults and the return;
USA #6
Gah, the Elf file has caused sooo many problems...

Anyways, turned out there wasn't another line after END in the Elf.race file. *stabs the person who screwed the file up*

Parse errors and typos are a real pain in the ass...
#7
Ah that's a problem too, files need to have a spare line at the end :)