Installing the game into the .app bundle in OS X

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Clocknova

Installing the game into the .app bundle in OS X

Post 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?
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

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

Post by Dominus »

hmm, I know it used to work at some point...
BUT where does it say so in the documentation? :)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Clocknova

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

Post 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?
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

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

Post 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.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

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

Post 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
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

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

Post 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).
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
monotremata
Posts: 246
Joined: Thu May 14, 2020 1:34 pm

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

Post 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??
Morbius Dragon
-==(UDIC)==-
Since 1992!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

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

Post 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.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked