I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: RandomFangamer on May 07, 2015, 06:16:10 AM

Title: GameMaker 8.1 to Studio: Error loading death time
Post by: RandomFangamer on May 07, 2015, 06:16:10 AM
So I have been moving my game to GameMaker Studio
But when I try to play the game it gives me this error.
I haven't done anything to this object so I don't know what could be happening.

Error
(click to show/hide)

Code
(click to show/hide)

Thanks for reading this!
Atleast the watermark is gone :Kappa:
Title: Re: GameMaker 8.1 to Studio: Error loading death time
Post by: klazen108 on May 07, 2015, 09:42:55 AM
In order to fix this issue, you need to compare your save/load scripts and make sure they're writing/reading the same number of times. Make sure one doesn't cut short (Error Reading Byte means that you've already reached the end of the file, but you're still trying to read). Maybe you're reading an empty file? Check to make sure the file exists first.

Maybe the save script skips to a different spot to write the deathtime and you didn't do the same in load? The error mentions the first microtime read - how many reads are done before that? That will give you a clue of where to look in your save script. Maybe the save script stops just before that write in some cases. Maybe your save script isn't saving the 'microtime'. If you don't need that you can just remove the microtime lines from the load script.
Title: Re: GameMaker 8.1 to Studio: Error loading death time
Post by: Starz0r on May 07, 2015, 04:17:39 PM
One of GameMaker Studio's downfalls is their sandboxed functions, unfortunately that extends to accessing files outside of the sandbox folder.
Title: Re: GameMaker 8.1 to Studio: Error loading death time
Post by: RandomFangamer on May 07, 2015, 05:32:30 PM
Here are the save & load scripts.

Save:

(click to show/hide)
Load:
(click to show/hide)

Because studio wont save the game either, is there any other way to get rid of the watermark?


Edit: I got rid of the watermark and am not using Gamemaker Studio, so everything is working  :atkHappy: