Currently (2019-03) this script does not allow to run the game (used: CD-ROM v1.01, 2003), but just to install it.
Menus work, but it crash as soon I try to launch a game session :-(
#!/bin/bash
# Date : (2019-03-07 11-30)
# Last revision : (2019-03-10 14-23)
# Wine version used : 4.3
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested : CD v1.01 french (version number appear on the main menu, bottom right), LockOn.exe: december 2003.
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Lock On: Modern Air Combat"
PREFIX="lockon_MAC"
WORKING_WINE_VERSION="4.3"
AUTHOR="Dadu042"
EDITOR="UbiSoft"
GAME_URL="https://en.wikipedia.org/wiki/Lock_On:_Modern_Air_Combat"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# CD-ROM anti copy protection (Starforce) seems to work with Wine 4.3 (no window 'insert CD' before the main menu)
POL_Call POL_Function_NoCDWarning
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
POL_SetupWindow_message "Note: please do not install 'UbiSoft game service' nor the 'DirectX 9' provided by the game." "$TITLE"
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "LockOn.exe"
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
POL_Shortcut "LockOn.exe" "$TITLE" ""
# Link to the user guide (this file is installed with the patch v1.02)
POL_Shortcut_Document "$TITLE" "lock_on_reference_manual.pdf"
# Fix error 'missing msvcirt.dll'
POL_Call POL_Install_vcrun6
POL_Call POL_Install_d3dx9_43
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0
Debug log :
[03/10/19 14:56:19] - Running wine-4.3 LockOn.exe (Working directory : /home/myself/.PlayOnLinux/wineprefix/lockon_MAC/drive_c/Program Files/Ubisoft/Eagle Dynamics/Lock On)
0038:fixme:winmm:MXD_GetControlDetails What should the sw-side mixer controls map to?
0038:fixme:winmm:MXD_GetControlDetails What should the sw-side mixer controls map to?
0009:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0038:fixme:winmm:MXD_GetControlDetails What should the sw-side mixer controls map to?
0038:fixme:winmm:MXD_SetControlDetails What should the sw-side mixer controls map to?
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f4d8,0x00000000), stub!
003d:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
003d:fixme:d3d:state_lastpixel Last Pixel Drawing Disabled, not handled yet
0009:fixme:d3d:resource_check_usage Unhandled usage flags 0x20.
0009:fixme:d3d8:ValidatePixelShader (0x613d4410 (nil) 1 0x32f340): stub
0009:err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0xf7b8cd29
0032:fixme:advapi:RegisterEventSourceA ((null)," "): stub
0032:fixme:advapi:RegisterEventSourceW (L"",L" "): stub
0032:fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000060,0x72fa9c,0x86f3ea): stub
0032:fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000060,0x13ab50,0x86f3ea): stub
0032:err:eventlog:ReportEventW L"3"
0032:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
0032:fixme:advapi:RegisterEventSourceA ((null)," "): stub
0032:fixme:advapi:RegisterEventSourceW (L"",L" "): stub
0032:fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000060,0x72fa9c,0x86f36a): stub
0032:fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000060,0x13ab50,0x86f36a): stub
0032:err:eventlog:ReportEventW L"6"
0032:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
0032:fixme:advapi:RegisterEventSourceA ((null)," "): stub
0032:fixme:advapi:RegisterEventSourceW (L"",L" "): stub
0032:fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x000002cc,0x72fa9c,0x86796a): stub
0032:fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x000002cc,0x13ab50,0x86796a): stub
0032:err:eventlog:ReportEventW L"7"
0032:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Edited by Dadu042