On Fri, May 18, 2012 at 02:41:36PM -0700, [email protected] wrote:
> james
> 2012-05-18 14:41:36 -0700 (Fri, 18 May 2012)
> 283
> A copy of OHRRPGCE-game.app will check Contents/Resources/bundledgame
> to find the name of the bundled .rpg or .rpgdir that it should autorun.
> The bundled .rpg or .rpgdir should also be in Contents/Resources/

the Contents/Resources/bundledgame is a single-line plain text file with 
just the base name of the included rpg. Any line ending characters are 
trimmed off the end. So if Contents/Resources/bundledgame contains the 
text:

eatsoap

then it will automatically search for Contents/Resources/eatsoap.rpg or 
Contents/Resources/eatsoap.rpgdir

> (NOTE: this does not actually work right now due to a weird Mac crash bug)

And this part is interesting. If I ignore Contents/Resources/bundledgame 
and hardcode the name to search for, then it works, the bundled game 
loads.

However, as it stands right now, OHRRPGCE-game.rpg (or whatever you 
renamed it to) will just hang until you do a force-close on it.

I think that my newly implemented string_from_file function triggers 
this bug.

FUNCTION string_from_file (filename as string) as string
 'Read an entire file and return it as a single string.
 'Makes no attempt to do any line-ending conversion
 DIM fh as integer = FREEFILE
 DIM result as string
 OPEN filename for binary access read as #fh
 result = STRING(LOF(fh), 0)
 GET #fh, , result
 CLOSE #fh
 RETURN result
END FUNCTION

---
James
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to