Author Topic: GameMaker 8.1 to Studio: Error loading death time  (Read 2548 times)

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Mozilla compatible Mozilla compatible
    • View Profile
  • Playstyle: Keyboard
GameMaker 8.1 to Studio: Error loading death time
« 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:




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid:

klazen108

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 42.0.2311.135 Chrome 42.0.2311.135
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: GameMaker 8.1 to Studio: Error loading death time
« Reply #1 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.

Starz0r

  • Owner
  • The Kid
  • Administrator
  • Posts: 343
  • Hall Of Fame
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 42.0.2311.135 Chrome 42.0.2311.135
    • View Profile
  • Playstyle: Keyboard
Re: GameMaker 8.1 to Studio: Error loading death time
« Reply #2 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.

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Mozilla compatible Mozilla compatible
    • View Profile
  • Playstyle: Keyboard
Re: GameMaker 8.1 to Studio: Error loading death time
« Reply #3 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:
« Last Edit: May 13, 2015, 06:04:44 AM by RandomFangamer »




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid: