Author Topic: File errors  (Read 1713 times)

RebornIsaac

  • Cherry Eater
  • Posts: 65
  • ~(´・ω・`)~
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 44.0.2403.130 Chrome 44.0.2403.130
    • View Profile
  • Playstyle: Keyboard
File errors
« on: August 30, 2015, 09:28:33 PM »
Hi there! I'm having this problem whenever I try to start the game.

Let's call the object "objStartGame", whenever I release my Right Button on it, it creates "objFadeBlackIntro", this object makes such thing after an alarm depending on the argument0, if argument0 is 1 then it will use this code:
Code: [Select]
if (argument0 = 1) {
if (file_exists("Save0") == true) {
loadGame();
}
else {
room_goto(rSomething01);
}

However, when I try this, it sends me this message:
Code: [Select]
ERROR in
action number 1
of Alarm Event for alarm 0
for object objFadeBlackIntro:

Error reading byte.

Also, if I try to ignore it, it sends me back to rInit, making it impossible to progress on the game.

The savefile isn't there to see if it works without there being a Savefile, but it won't work, any help will be appreciated.

Anon70000

  • Cherry Eater
  • Posts: 50
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 39.0 Firefox 39.0
    • View Profile
  • Playstyle: Keyboard
Re: File errors
« Reply #1 on: September 06, 2015, 06:14:22 AM »
It's really hard to detect a problem (for me prob.), but it looks like same as temp code for yuuutu (if temp exists, loads game instantly).
reading byte error appears if save is prob. broken or corrupted or even not opened (there were instances where deleting save helped), try opening it in hex editor to see what's in it, maybe it's empty.

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 45.0.2454.85 Chrome 45.0.2454.85
    • View Profile
  • Playstyle: Keyboard
Re: File errors
« Reply #2 on: September 06, 2015, 01:43:19 PM »
Delete the save file and try again after re-creating the save file with the game.
If it still occurs there is probably a saved variable missing between saveGame(); and loadGame(); that was either accidentally deleted or forgotten to be added. It's trying to read a byte that doesn't exist.

RebornIsaac

  • Cherry Eater
  • Posts: 65
  • ~(´・ω・`)~
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 44.0.2403.130 Chrome 44.0.2403.130
    • View Profile
  • Playstyle: Keyboard
Re: File errors
« Reply #3 on: September 06, 2015, 05:39:48 PM »
Forgot to close this thread, already found my way around it, thanks to everybody anyways!