[Help] Annoying Guild Bug.

08/24/2010 00:46 killersub#1
alright so now somehow my dumbass source decided to give me a guilds error after it hasent since like never... here's the error in Guilds.cs in the LoadGuilds void:

Code:
int GuildsCount = BR.ReadInt32();
Code:
Unable to read beyond the end of the stream.
If I knew trust me, I wuld have fixed it by now... any ideas/help?
08/24/2010 00:50 pro4never#2
You're reading past the end of the file/line.

Check the file you're reading and make sure you don't have empty or shorter lines.

Think of it like telling the computer to read 10 letters into something... if what it's trying to read only contains 9 letters it's gonna throw some errors.
08/24/2010 00:52 killersub#3
Quote:
Originally Posted by pro4never View Post
You're reading past the end of the file/line.

Check the file you're reading and make sure you don't have empty or shorter lines.

Think of it like telling the computer to read 10 letters into something... if what it's trying to read only contains 9 letters it's gonna throw some errors.
well if ur talkin about my Guilds.dat it has NOTHING in it...it is a blank notepad page lol...that wat u meant?
08/24/2010 01:50 Korvacs#4
And thats your problem, instead of having nothing in it, it should have a 0 in it atleast to signify that there are no entries in it.
08/24/2010 02:04 killersub#5
Quote:
Originally Posted by Korvacs View Post
And thats your problem, instead of having nothing in it, it should have a 0 in it atleast to signify that there are no entries in it.
thank u thank u!

I fixed it by adding another Guilds.dat in there thereby no errors pop up when I compile now, again thanks for that idea :)

#request close
08/24/2010 02:23 Korvacs#6
Wasnt an idea, it was a solution but its good that you managed to fix it anyhow....

Closed.