Page 1 of 1

Installing the game into the .app bundle in OS X

Posted: Sat Sep 10, 2011 1:54 pm
by Clocknova
The documentation claims that I can install the game data into the Exult.app bundle itself, but I cannot seem to get it working. At the moment, I have the blackgate and serpentisle folders in Exult/contents/resources, but they are still not recognized. I would really prefer to keep the game files within the bundle so that everything is self-contained. Anyone know how to set it up?

Re: Installing the game into the .app bundle in OS X

Posted: Sat Sep 10, 2011 4:26 pm
by Dominus
hmm, I know it used to work at some point...
BUT where does it say so in the documentation? :)

Re: Installing the game into the .app bundle in OS X

Posted: Sat Sep 10, 2011 5:07 pm
by Clocknova
Well, there's this:

"* You can either use the relative (e.g. ./ultima7) or absolute (e.g. c:\exult\ultima7) path to point to the correct folder. The relative path uses the exult.exe, exult binary or Exult.app as base."

And there's also this:

"Another specialty on OS X is that the Exult.app comes bundled with the Exult data, so Exult will first use the data in the Exult.app and then use the data in the default location (/Library/Application Support/Exult/data) or the location written down in exult.cfg's ."

Running the game data from the bundle itself should be pretty easy, no?

Re: Installing the game into the .app bundle in OS X

Posted: Sat Sep 10, 2011 5:29 pm
by Dominus
The first one is about the path written in exult.cfg relative to the executable.

The other one is about the Exult data not the game data...

And yes at some point it did work in some way but I can't remember where to save. You might want to hunt through the #exult logs from early 2010 (february, march, april I think) in discussions between me and marzo.

Re: Installing the game into the .app bundle in OS X

Posted: Sun Sep 11, 2011 8:42 am
by Dominus
Haven't tested this yet, but from the logs (14th march 2010) I found that you can put the games into a subfolder of the data folder in the app. You can the point to it in exult.cfg by using the path /subfoldername
You might need to point the cfg option too (or only use that).
If someone wants to take look, I think this can be made to work automatically

Re: Installing the game into the .app bundle in OS X

Posted: Sun Sep 11, 2011 10:48 am
by Dominus
someone would *just* need to let exult try different gamehomedirs in /files/utils.cc line ~852 and have it try the /games folder (or define something else (as in line 769) as the path in the bundles for games).

Re: Installing the game into the .app bundle in OS X

Posted: Sun Sep 11, 2011 4:01 pm
by monotremata
I vaguely remember when this was added to the OS X port last year or so..
I never got it to work and always had to copy the data files to the Application Support folder..

Then again I dont think I manually tried editing the cfg file to point to /Applications/Exult.app/etc to see if it worked or not...
I just remember being stoked that it was all 'integrated' and after trying it I couldnt get it to load until I moved the data elsewhere.
Maybe because I already had a .cfg file set and done??

Re: Installing the game into the .app bundle in OS X

Posted: Sun Sep 11, 2011 4:13 pm
by Dominus
Yes the existing cfg was probably the culprit. I *think* we resolved this way back by getting rid of your cfg...

Edit: unless we didn't talk about the same thing. The exult data files will be read from the bundle automatically. The files of the games won't and neededitingof exult.cfg.