ID:1372224
 
BYOND Version:499
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Chrome 29.0.1547.66
Applies to:Dream Seeker
Status: Unverified

Thus far we've been unable to verify or reproduce this bug. Or, it has been observed but it cannot be triggered with a reliable test case. You can help us out by editing your report or adding a comment with more information.
Descriptive Problem Summary: When starting up, my code loads (or tries to load) three savefiles containing game configuration data. No matter what order I initialize my code modules, the first attempt to access a savefile fails. The crash occurs in Sfile.cpp, on line 1138. This is not a permissions issue. Changing the attempted load order of the savefiles changes which file fails to load

Numbered Steps to Reproduce Problem:
1. Write code
2. Hit run
3. Select 'yes' on all attempts to load savefiles
4. Crash in Sfile.cpp:1138

Crash Report
BYOND Error:(Sfile.cpp,1138) failed to open file:
BYOND Error:(Sfile.cpp,1138)
proc name: Init (/datum/TranslationController/proc/Init)
source file: TranslationController.dm,12
usr: null
src: /datum/TranslationController (/datum/TranslationController)
call stack:
/datum/TranslationController (/datum/TranslationController): Init()
/datum/GameMode/Setup (/datum/GameMode/Setup): Start()
: New()

Code Snippet (if applicable) to Reproduce Problem:


/datum/GameMode/Setup/Start()
Config.NetController.Init() // Doesn't load a Savefile
Config.Lang.Init() // Loads 2 Savefiles
Config.MapLoader.Init() // Loads a Savefile


/datum/TranslationController/proc/Init()
if (fexists("LDATA"))
Translations = new/savefile("LDATA")
Translations[".index"] >> Languages
if (fexists("DLANG"))
var/savefile/DefaultLang = new/savefile("DLANG")
var/Lang
DefaultLang >> Lang
del DefaultLang
LoadLanguageFile(Lang)
else
LoadLanguageFile(DefaultLanguage)


/datum/MapLoader/proc/Init()
MapCache = new/savefile("MCACHE")


/datum/NetworkController/proc/Init()
Networks = list( )
for (var/obj/MapMarker/Network/Piece in world)
Piece.Network = null
var/Piece = GetNextEmptyNetworkPiece()
while(Piece)
CreateNetwork(Piece)
Piece = GetNextEmptyNetworkPiece()


Expected Results:
Savefiles loaded.

Actual Results:
All savefiles EXCEPT first load

Does the problem occur:
Every time? Or how often? Every Time
In other games? Not Tested
In other user accounts? Not Testable
On other computers? Not Tested

When does the problem NOT occur?
No Test Case

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.)
Will Test

Workarounds:
Attempt loading a second time.
After my computer crashed and rebooted, this has stopped happening. I am not sure why. If this crops up again, I'll post any more information that becomes available.
Stephen001 changed status to 'Unverified'