Descriptive Problem Summary:
On Ganing's Byond Martial Arts I get a constant error message from a cache.
Numbered Steps to Reproduce Problem:
Not sure about reproduction. As soon as I start hosting it goes.
Code Snippet (if applicable) to Reproduce Problem: BYOND Error:(Sfile.cpp,1138) C:\Documents and Settings\Administrator\My Documents\BYOND\cache\27D079C0
BYOND Error:(Sfile.cpp,1138) failed to open file:
Expected Results:
To not have an overflow of errors?
Actual Results:
Its overflowing after about 17 hours I have to stop it and redownload host files.
Does the problem occur: Every time
Every time? Or how often?
In other games? No
In other user accounts? All of mine do that same.
On other computers? I host on a shell.
When does the problem NOT occur? When the game isnt running.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
No.
Workarounds:
None known currently.
ID:318642
Feb 19 2012, 4:18 pm
|
|||||||||||||
| |||||||||||||
Feb 20 2012, 4:12 am
|
|
It could just be the game.
|
I'm not certain there's not a significant factor of author error involved. Based on the error message, it looks like you're trying to load a savefile directly from the cache, which doesn't seem like a good idea. Of course without seeing the relevant code I don't know for sure what's going on.
|
Here is my save system:
mob Here is my load: mob/proc Of course there is more to the loading. I used a modified version of Garthor's library. Here is his side: proc I also save and load scoreboards at the beginning of the game. Here's the code for that: (It's a library as well) scoreboard_handling(action) Do you see a problem Lummox? |
I think the problem may be intrinsic to Garthor's library. He's storing a savefile in another savefile, which turns it into a cache entry. At that point the "unsafe" savefile really needs to be made local to the server (via fcopy() perhaps) so it can be read normally.
|
So do you mean like this?
Save() |
No, you'd want the server to still export the files created via the library, I think; the problem is in that the server is trying to read the files created by the library, and at least in some cases it looks like the cache ref has expired. So I think you need to make a local copy of the savefile on the server end--I'd say it's save to clean those up when the server starts up, or when their owner is not logged in.
|