Jump to content


Photo

File is not opened for reading.


  • Please log in to reply
6 replies to this topic

#1 grugin

grugin

    GMC Member

  • GMC Member
  • 118 posts

Posted 11 June 2012 - 02:56 PM

I have this error in my project but only on iOS (working fine on Windows and sorry I can't test it on Android). Is the "working_directory" variable working differently between window and iOS ? Or iOS unable to load txt files ? someone can help me please ?
  • 0

#2 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1441 posts
  • Version:Unknown

Posted 11 June 2012 - 06:42 PM

Did you update the runner on the iOS device?

Russell
  • 0

#3 grugin

grugin

    GMC Member

  • GMC Member
  • 118 posts

Posted 12 June 2012 - 08:05 AM

but this error happens with an .ipa file. And my runner is up to date...

This line causes the crash :
fname = file_text_open_read(working_directory+"\Save.sav");

That's weird

Edited by grugin, 12 June 2012 - 12:10 PM.

  • 0

#4 grugin

grugin

    GMC Member

  • GMC Member
  • 118 posts

Posted 13 June 2012 - 07:54 AM

Anyone ? This is really embarrasing, this must be a common error and I don't know how to resolve this, I have rebuild the runner and the game with the last version (1.0.240) and the same error happen. Window build is still running fine.

Note : All my text files are included in the project.

Can anyone help me on this please ?

Edit : Same error on mac os x

Edited by grugin, 13 June 2012 - 09:21 AM.

  • 0

#5 grugin

grugin

    GMC Member

  • GMC Member
  • 118 posts

Posted 22 June 2012 - 09:50 AM

Sorry to post again. But this error is still unresolved. I try to submit my project to the bug tacker and he doesn't want to submit it (token error...).

iOS : it can load a .ini, a .sav (not in a folder in included files) and doesn't want to load .lvl (in a folder in included files).

OSX : it can't load the .sav file

Window : working fine.

HTML5 : it doesn't crash but the level is empty.

Please, if someone can help me...
  • 0

#6 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1441 posts
  • Version:Unknown

Posted 22 June 2012 - 10:23 AM

File a bug and put the file into a public folder in Dropbox then attach the link to the bug - make the bug private if you do not want everyone to see it.

Pro Tip - remove or drastically reduce large resources i.e. big backgrounds and sounds as these take up lots of space.
  • 0

#7 jpascoe

jpascoe

    GMC Member

  • New Member
  • 1 posts
  • Version:GM8.1

Posted 13 May 2013 - 02:03 PM

I have exactly the same error trying to launch on android from windows. Game runs perfectly on windows, but gives  File is not opened for reading at gml_Script_ds_map_load

 

Anyone got any suggestions?

 

Jason

 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users