OpenXcom Forum

Modding => Released Mods => XPiratez => Topic started by: lusciouspear on April 21, 2016, 10:28:16 am

Title: Mac tips?
Post by: lusciouspear on April 21, 2016, 10:28:16 am
Hi! I got hooked on my PC at home, but when I travel I'm on Mac. Any way to get this running in OS X? <3
Title: Re: Mac tips?
Post by: lusciouspear on April 22, 2016, 10:53:34 pm
FYI, trying to get it working with Wine. Base OpenXCOM works fine, but when I activate the mod, it won't load. No hints in the log...I think.

Code: [Select]
[22-04-2016 15:46:14] [INFO] Data folder is:
[22-04-2016 15:46:14] [INFO] Data search is:
[22-04-2016 15:46:14] [INFO] - C:\users\bradfordstephens\My Documents\OpenXcom\
[22-04-2016 15:46:14] [INFO] - Z:\Users\bradfordstephens\Dropbox\xcom\OpenXcom_XPiratez_0_98C\OpenXcom_XPiratez
[22-04-2016 15:46:14] [INFO] - Z:\Users\bradfordstephens\Dropbox\xcom\OpenXcom_XPiratez_0_98C\OpenXcom_XPiratez
[22-04-2016 15:46:14] [INFO] User folder is: Z:\Users\bradfordstephens\Dropbox\xcom\OpenXcom_XPiratez_0_98C\OpenXcom_XPiratez\user\
[22-04-2016 15:46:14] [INFO] Config folder is: Z:\Users\bradfordstephens\Dropbox\xcom\OpenXcom_XPiratez_0_98C\OpenXcom_XPiratez\user\
[22-04-2016 15:46:14] [INFO] Options loaded successfully.
[22-04-2016 15:46:14] [INFO] Scanning standard mods in 'standard'...
[22-04-2016 15:46:14] [INFO] Scanning user mods in 'Z:\Users\bradfordstephens\Dropbox\xcom\OpenXcom_XPiratez_0_98C\OpenXcom_XPiratez\user\mods'...
[22-04-2016 15:46:14] [INFO] Mapping resource files...
[22-04-2016 15:46:15] [INFO] Resources files mapped successfully.
[22-04-2016 15:46:15] [INFO] SDL initialized successfully.
[22-04-2016 15:46:16] [INFO] SDL_mixer initialized successfully.
[22-04-2016 15:46:16] [INFO] Attempting to set display to 640x480x8...
[22-04-2016 15:46:16] [INFO] Display set to 640x480x8.
[22-04-2016 15:46:16] [INFO] Loading data...
Title: Re: Mac tips?
Post by: Yankes on April 23, 2016, 12:00:16 am
Could you describe "won't load" more verbose? What exactly happens then?
Title: Re: Mac tips?
Post by: lusciouspear on April 23, 2016, 12:11:08 am
Sure. I run OpenXcomExPlus29.exe, and the console makes it as far as "Loading OpenXcom Extended 2.9+...".  This is if Piratez is enabled in the mods. Without it enabled. X-Com opens fine.

Title: Re: Mac tips?
Post by: Yankes on April 23, 2016, 12:31:34 am
how long you wait? if I recall correctly piratez load lot of longer than normal game because it have lot more content.
Title: Re: Mac tips?
Post by: lusciouspear on April 23, 2016, 12:38:22 am
Ohhh 10+ minutes?
Title: Re: Mac tips?
Post by: Yankes on April 23, 2016, 12:59:44 am
then this is too long. could you set in options.cfg `verboseLogging: true` and show log after that?
Title: Re: Mac tips?
Post by: lusciouspear on April 23, 2016, 09:32:49 pm
Good news -- on a hunch, I installed wine from brew instead of from bins. Everything works! It does take a while to load but a few mins of clicking around seem to be just fine in geoscape and battlescape.

Now my plane ride won't suck.
Title: Re: Mac tips?
Post by: lusciouspear on April 27, 2016, 02:59:29 am
FYI, I timed the load and it's 4:58. Is that normal? Seems awfully long. It's a new MBP w/ 16G ram. I've attached a log.
Title: Re: Mac tips?
Post by: Dioxine on April 27, 2016, 10:20:26 am
It loads circa 50 secs on my PC (which is almost 6 years old).
Title: Re: Mac tips?
Post by: lusciouspear on April 27, 2016, 09:27:30 pm
Looks like all the time is spent here:

Code: [Select]
26-04-2016 16:09:40] [VERBOSE] - C:\xcom\OpenXcom_XPiratez_0_98C\OpenXcom_XPiratez\user\mods/Piratez/Ruleset/Piratez.rul
[26-04-2016 16:13:03] [VERBOSE] - C:\xcom\OpenXcom_XPiratez_0_98C\OpenXcom_XPiratez\user\mods/Piratez/Ruleset/Piratez_Armors.rul


How is the .rul file being processed? Maybe there's some slow/out-of-date lib that wine installs by default?
Title: Re: Mac tips?
Post by: Arthanor on April 27, 2016, 10:25:45 pm
This is probably when all the resources that are in the mod are loaded too, of which there a a lot. It is quite possible that wine isn't great at accessing multiple small files.

My laptop takes a while to load everything (and in fact runs out of memory and uses swap, which slows things down even further and also freezes the game once in a while when what it needs is in swap instead of memory), but it is still only ~2 minutes.
Title: Re: Mac tips?
Post by: Dioxine on April 27, 2016, 11:10:47 pm
Yes these 2 files are resposible for loading several thousand resource files.
Title: Re: Mac tips?
Post by: lusciouspear on April 27, 2016, 11:39:48 pm
Ahhh that makes sense. Thanks.