Issues creating script for Pharaoh + Cleopatra

Hi,

I am building an install script for Pharaoh + Cleopatra GOG version (yml file to test before I upload - then use lutris -i yml file).
I am running wine 2.0rc5 and Pharaoh will not run under wine unless I use the explorer option, e.g.

wine explorer /desktop=pc,1920x1080 Pharaoh.exe

Without explorer, Pharaoh crahes:

fixme:win:EnumDisplayDevicesW ((null),0,0x33f534,0x00000000), stub!
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16

My question is how do I pass the explorer /desktop=pc,1920x1080 option to wine from Lutris?
It seems that Zeus + Poseidon suffer from the same issue; I could make another script for that once this is settled.

Thanks,

JJ

We got you covered! There’s even a video!

Merci!

I updated, the install script; still get a bug though:

DEBUG 2017-01-21 15:22:02,178 [system]:Executing which wine
DEBUG 2017-01-21 15:22:02,184 [system]:WINEARCH=win32 WINEPREFIX=explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra
DEBUG 2017-01-21 15:22:02,185 [system]:Executing /usr/bin/wineboot
ERROR 2017-01-21 15:22:07,205 [wine]:No user.reg found after prefix creation. Prefix might not be valid
INFO 2017-01-21 15:22:07,206 [wine]:win32 Prefix created in explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra
ERROR 2017-01-21 15:22:07,207 [wineregistry]:Unexisting registry %s
ERROR 2017-01-21 15:22:07,208 [jobs]:Error while completing task <bound method wine.prelaunch of <lutris.runners.wine.wine object at 0x7fab48daf2b0>>: [Errno 2] No such file or directory: ‘explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra/user.reg’
<class ‘FileNotFoundError’> [Errno 2] No such file or directory: ‘explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra/user.reg’
File “/usr/lib/python3.6/site-packages/lutris/util/jobs.py”, line 29, in target
result = self.function(*args, **kwargs)
File “/usr/lib/python3.6/site-packages/lutris/runners/wine.py”, line 708, in prelaunch
create_prefix(self.prefix_path, arch=self.wine_arch)
File “/usr/lib/python3.6/site-packages/lutris/runners/wine.py”, line 96, in create_prefix
prefix_manager.setup_defaults()
File “/usr/lib/python3.6/site-packages/lutris/util/wineprefix.py”, line 16, in setup_defaults
self.override_dll(“winemenubuilder.exe”, “”)
File “/usr/lib/python3.6/site-packages/lutris/util/wineprefix.py”, line 49, in override_dll
self.set_registry_key(key, dll, mode)
File “/usr/lib/python3.6/site-packages/lutris/util/wineprefix.py”, line 35, in set_registry_key
registry.save()
File “/usr/lib/python3.6/site-packages/lutris/util/wineregistry.py”, line 143, in save
with open(path, ‘w’) as registry_file:

It seems to be running the right command

explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra

which works for me in wine when I install & run without Lutris

Any news about the installer?