Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
Save()
var/savefile/F = new("[usr.key].sav")
F["test"] << "test"
Expected Results:
Your file saves
Actual Results:
runtime error: bad output
proc name: Save (/mob/verb/Save)
source file: Save File.dm,6
usr: Darker Legends (/mob)
src: Darker Legends (/mob)
call stack:
Darker Legends (/mob): Save()
Does the problem occur:
Every time? Or how often?Always
In other games?Yes
In other user accounts?Yes
On other computers?Yes
When does the problem NOT occur?
When I press it again
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.)
Workarounds:
None known
Based on my investigations in the code, I find that "bad output" can occur if it can't write the value to the savefile. One of the reasons for this is if the file is in a read-only mode or if it was locked. If you have multiple routines accessing the same savefile at once, there's your problem right there. Beyond that you need to make sure you have disk access to write to the file, and that the file is not marked as read-only. If none of those measures work, you will have to provide a demo project that reliably creates the issue.