description: 2 CD release + 1.5 patch + Widescreen fix
game_slug: call-of-duty
gogslug: ''
humblestoreid: ''
installer_slug: call-of-duty-cd
name: Call of Duty
notes: "- NoCD exe is required\r\n- Needs an old Wine/ProtonGE version to work, tested\
\ with Wine-5.14\r\n- Mouse sometimes glitches out and \"slows down\", if anyone\
\ knows how to fix it feel free to update this installer\r\n- To adjust video settings\
\ edit video.cfg or change the launch options"
runner: wine
script:
files:
- patch: http://www.callofdutyview.net/files/patches/cod-v1.5.zip
- nocd: N/A:NoCD CoDSP.exe
game:
args: '+exec video.cfg +set r_ignorehwgamma 1 +seta r_overBrightBits 0.3 +seta
com_introplayed 1 +seta com_hunkmegs 512
'
exe: $subdir/CoDSP.exe
launch-configs:
exe: $subdir/CoDMP.exe
name: Call of Duty Multiplayer
prefix: $GAMEDIR
install_complete_text: '- Change "Wine version" to Wine-5.14 or similar ProtonGE
version, use ProtonPlus to install these in Lutris
- To ajust video settings, edit $GAMEDIR/$subdir/main/video.cfg or change the
launch options
'
installer:
- task:
app: winxp isolate_home
name: winetricks
- insert-disc:
description: Insert disc 1
requires: Setup/rsrc/art/Background01.bmp
- copy:
description: Installing...
dst: $GAMEDIR/$subdir
src: $DISC/Setup/Data
- copy:
dst: $GAMEDIR/$subdir/Docs
src: $DISC/Docs
- insert-disc:
description: Insert disc 2
requires: Setup/Data/main/pak1.pk3
- copy:
description: Installing...
dst: $GAMEDIR/$subdir
src: $DISC/Setup/Data
- write_file:
content: 33TYPXD33UKPSG3P827B
file: $GAMEDIR/$subdir/main/codkey
- execute:
command: find "$GAMEDIR/$subdir" -type f -exec chmod u+w "{}" +
- execute:
command: 'cd "$GAMEDIR/$subdir"
mkdir Uninstall
cd Uninstall
touch Unwise.exe Unwise.ini
'
- write_file:
content: 'Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Activision\Call of Duty]
"InstallPath"="C:\\COD"
"InstallDrive"="D:"
"Language"="1"
"pb"="1"
"Version"="1.1"
'
file: $CACHE/cod.reg
- task:
filename: $CACHE/cod.reg
name: set_regedit_file
- write_file:
content: '[Main - v_app_path_name]
Type=String
[Main - v_windir]
Type=String
[Main - v_install_or_play]
Type=String
Data=inst
[Global - Number1]
Type=Number
Data=0
[Global - Number2]
Type=Number
Data=0
[Global - Number3]
Type=Number
Data=0
[Global - Number4]
Type=Number
Data=0
[Global - Number5]
Type=Number
Data=0
[Global - Number6]
Type=Number
Data=0
[Global - String1]
Type=String
Data=play
[Global - String2]
Type=String
Data=C:\COD\CoDSP.exe
[Global - String3]
Type=String
Data=C:\COD\CoDMP.exe
[Global - String4]
Type=String
Data=C:\COD\Uninstall\Unwise.exe
[Global - String5]
Type=String
Data=C:\COD\Extra\sysinfo.exe
[Global - String6]
Type=String
'
file: drive_c/windows/CoD.ini
- extract:
dst: $CACHE
file: patch
- task:
args: /S
description: Installing 1.5 Patch
executable: $CACHE/cod-v1.5.exe
name: wineexec
- execute:
command: cp -f "$nocd" "$subdir/CoDSP.exe"
- execute:
command: 'cat > $subdir/main/video.cfg <<EOF
set r_customwidth $RESOLUTION_WIDTH
set r_customheight $RESOLUTION_HEIGHT
set r_customaspect $(echo ''scale=1;$RESOLUTION_WIDTH/$RESOLUTION_HEIGHT''
| bc)
set r_mode -1
set r_vsync 0
set com_maxfps 144
EOF
'
system:
env:
MESA_EXTENSION_MAX_YEAR: 2008
__GL_ExtensionStringVersion: 17700
variables:
subdir: drive_c/COD
wine:
battleye: false
eac: false
esync: false
fsync: false
overrides:
RInput.dll: n,b
opengl32.dll: n,b
slug: call-of-duty-cd
steamid: 2620
version: CD
year: 2003
{
"game_slug": "call-of-duty",
"version": "CD",
"description": "2 CD release + 1.5 patch + Widescreen fix",
"notes": "- NoCD exe is required\r\n- Needs an old Wine/ProtonGE version to work, tested with Wine-5.14\r\n- Mouse sometimes glitches out and \"slows down\", if anyone knows how to fix it feel free to update this installer\r\n- To adjust video settings edit video.cfg or change the launch options",
"name": "Call of Duty",
"year": 2003,
"steamid": 2620,
"gogslug": "",
"humblestoreid": "",
"runner": "wine",
"slug": "call-of-duty-cd",
"installer_slug": "call-of-duty-cd",
"script": {
"files": [
{
"patch": "http://www.callofdutyview.net/files/patches/cod-v1.5.zip"
},
{
"nocd": "N/A:NoCD CoDSP.exe"
}
],
"game": {
"args": "+exec video.cfg +set r_ignorehwgamma 1 +seta r_overBrightBits 0.3 +seta com_introplayed 1 +seta com_hunkmegs 512\n",
"exe": "$subdir/CoDSP.exe",
"launch-configs": {
"exe": "$subdir/CoDMP.exe",
"name": "Call of Duty Multiplayer"
},
"prefix": "$GAMEDIR"
},
"install_complete_text": "- Change \"Wine version\" to Wine-5.14 or similar ProtonGE version, use ProtonPlus to install these in Lutris\n- To ajust video settings, edit $GAMEDIR/$subdir/main/video.cfg or change the launch options\n",
"installer": [
{
"task": {
"app": "winxp isolate_home",
"name": "winetricks"
}
},
{
"insert-disc": {
"description": "Insert disc 1",
"requires": "Setup/rsrc/art/Background01.bmp"
}
},
{
"copy": {
"description": "Installing...",
"dst": "$GAMEDIR/$subdir",
"src": "$DISC/Setup/Data"
}
},
{
"copy": {
"dst": "$GAMEDIR/$subdir/Docs",
"src": "$DISC/Docs"
}
},
{
"insert-disc": {
"description": "Insert disc 2",
"requires": "Setup/Data/main/pak1.pk3"
}
},
{
"copy": {
"description": "Installing...",
"dst": "$GAMEDIR/$subdir",
"src": "$DISC/Setup/Data"
}
},
{
"write_file": {
"content": "33TYPXD33UKPSG3P827B",
"file": "$GAMEDIR/$subdir/main/codkey"
}
},
{
"execute": {
"command": "find \"$GAMEDIR/$subdir\" -type f -exec chmod u+w \"{}\" +"
}
},
{
"execute": {
"command": "cd \"$GAMEDIR/$subdir\"\nmkdir Uninstall\ncd Uninstall\ntouch Unwise.exe Unwise.ini\n"
}
},
{
"write_file": {
"content": "Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Activision\\Call of Duty]\n\"InstallPath\"=\"C:\\\\COD\"\n\"InstallDrive\"=\"D:\"\n\"Language\"=\"1\"\n\"pb\"=\"1\"\n\"Version\"=\"1.1\"\n",
"file": "$CACHE/cod.reg"
}
},
{
"task": {
"filename": "$CACHE/cod.reg",
"name": "set_regedit_file"
}
},
{
"write_file": {
"content": "[Main - v_app_path_name]\nType=String\n[Main - v_windir]\nType=String\n[Main - v_install_or_play]\nType=String\nData=inst\n[Global - Number1]\nType=Number\nData=0\n[Global - Number2]\nType=Number\nData=0\n[Global - Number3]\nType=Number\nData=0\n[Global - Number4]\nType=Number\nData=0\n[Global - Number5]\nType=Number\nData=0\n[Global - Number6]\nType=Number\nData=0\n[Global - String1]\nType=String\nData=play\n[Global - String2]\nType=String\nData=C:\\COD\\CoDSP.exe\n[Global - String3]\nType=String\nData=C:\\COD\\CoDMP.exe\n[Global - String4]\nType=String\nData=C:\\COD\\Uninstall\\Unwise.exe\n[Global - String5]\nType=String\nData=C:\\COD\\Extra\\sysinfo.exe\n[Global - String6]\nType=String\n",
"file": "drive_c/windows/CoD.ini"
}
},
{
"extract": {
"dst": "$CACHE",
"file": "patch"
}
},
{
"task": {
"args": "/S",
"description": "Installing 1.5 Patch",
"executable": "$CACHE/cod-v1.5.exe",
"name": "wineexec"
}
},
{
"execute": {
"command": "cp -f \"$nocd\" \"$subdir/CoDSP.exe\""
}
},
{
"execute": {
"command": "cat > $subdir/main/video.cfg <<EOF\nset r_customwidth $RESOLUTION_WIDTH\nset r_customheight $RESOLUTION_HEIGHT\nset r_customaspect $(echo 'scale=1;$RESOLUTION_WIDTH/$RESOLUTION_HEIGHT' | bc)\nset r_mode -1\nset r_vsync 0\nset com_maxfps 144\nEOF\n"
}
}
],
"system": {
"env": {
"MESA_EXTENSION_MAX_YEAR": 2008,
"__GL_ExtensionStringVersion": 17700
}
},
"variables": {
"subdir": "drive_c/COD"
},
"wine": {
"battleye": false,
"eac": false,
"esync": false,
"fsync": false,
"overrides": {
"RInput.dll": "n,b",
"opengl32.dll": "n,b"
}
}
}
}