I have making with new Mafia code test. I have big problems.
I am getting install first cd by MafiaLauncher installer. Problem is a how to change second CD. First cd's installed if managed to wine cd-rom drive config by manually to the d:/media/user/MAFIA_CD_1/ but how to changed the cd 2? and how to changed the usernames?
Mafia game is 3 cd's.
user is my username (whoami) in ubuntu 12.10 I did this in this way because POL_SetupWindow_cdrom and
POL_SetupWindow_check_cdrom not working my system.
[code]
#!/bin/bash
# Date : (2013-02-26)
# Last revision : (2013-02-26)
# Distribution used to test : Ubuntu 12.10, Nvidia geforce 9800 GT
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.1.9
# CD-version Mafia installer
[-z "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
PREFIX="Mafia"
WINEVERSION="1.1.35"
TITLE="Mafia"
EDITOR="Illusion Softworks"
GAME_URL="http://www.mafia-game.com/"
AUTHOR="lahtis"
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"
$GAME_VMS="256"
# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
# Select virtual desktop mode on
Set_Desktop On 1024 768
# Downloading and install MS Visual C++ 6 sp4 libraries
POL_Call POL_Install_vcrun6
# downloading and install mfc42.dll
POL_Call POL_Install_mfc42
POL_SetupWindow_browse "Please select the installation MafiaLauncher.exe file to CD-ROM." "$TITLE installation"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine start /unix "$APP_ANSWER" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitExit "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
POL_SetupWindow_Close
exit 0
[/code]
How do I change my cd-rom Wine settings with code?
i
do not know whoami command working in playonlinux?And how to manipulate to winecfg to managed three cd's?
[code]
# How to edit usernames and three cd's
# Ubuntu 12.10 use whoami name in cdrom names
whoami "$WHOAMI"
$CDSOURCE1 "/media/$WHOAMI/Mafia_CD_1"
$CDSOURCE2 "/media/$WHOAMI/Mafia_CD_2"
$CDSOURCE3 "/media/$WHOAMI/Mafia_CD_3"
# Adding CD-ROM as drive d: to winecfg
cd "$WINEPREFIX/dosdevices"
ln -fs $CDROM d:
cd "$WINEPREFIX/drive_c/windows/temp/"
echo "[HKEY_LOCAL_MACHINE\\\\Software\\\\Wine\\\\Drives]" > cdrom.reg
echo "\\"d:\\"=\\"cdrom\\"" >> cdrom.reg
regedit cdrom.reg
[/code]
Edité par lahtis
Using Ubuntu 18.04.4 LTS and latest Playonlinux.
My scripts: https://github.com/lahtis/playonlinux