Page 1 of 1

The quest.txt bug

Posted: Sat Sep 18, 2010 1:11 pm
by Zefz
I know why quest.txt isn't properly saved (thus why your character progress isn't properly saved).

It seems that the quest.txt is saved to "mp_import" instead of "import". This I think is due to vfs_append() uses stdio instead of physFS and thus doesn't translate the mount point properly.

I can't make heads or tails of Egoboo's filesystem so I haven't been able to fix this crucial yet small bug.

Posted: Sat Sep 18, 2010 2:21 pm
by octagon
Ah. At least we know a reason now.

I hope you'll find a solution soon.

Re: The quest.txt bug

Posted: Sat Sep 18, 2010 2:28 pm
by Seth
Could you please say what “stdio” is for?
Zefz wrote:I can't make heads or tails of Egoboo's filesystem so I haven't been able to fix this crucial yet small bug.
Why can't you make “heads or tails” of it? Is this something you have never seen before, or is it just confusing in this instance?

Posted: Sat Sep 18, 2010 2:43 pm
by Zefz
stdio is a input/output library for C which uses different way than PhysFS to read a file.

I mean that Egoboo's implementation of PhysFS is kinda complicated and isn't very intuitive in my opinion. I know where the problem is and what needs to be done to fix it. It's the exact how that I haven't figured out :P

Posted: Sat Sep 18, 2010 11:35 pm
by bgbirdsey
The problem with the wrapper for physfs is with the way it adds and removes virtual paths, how the paths are expanded when you try to get a real directory name, and some minor notation problems having to do with beginning a path with a '/'...

Really, I felt that it might be easier to roll my own code at some point!

Posted: Mon Sep 20, 2010 2:58 pm
by Zefz
This has finally been fixed :D

I also discovered a bug where setup.txt wasn't read properly. This has also been fixed. I also fixed some strange movement speed in Sandweg.