Dark Messiah of Might and Magic: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Release Date = {{Game.InfoBox.ReleaseDate|Windows|October 25, 2006}} | PCGamingWiki = Dark_Messiah_of_Might_and_Magic }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = mm.exe|Arguments = |WorkingDirectory = |Primary = True}} }}")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{Game.InfoBox
{{Game.InfoBox
|Cover = cover.jpg
|Cover = cover.jpg
|Developers =
{{Game.InfoBox.Developer|Arkane Studios}}
|Publishers =
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|October 25, 2006}}
{{Game.InfoBox.ReleaseDate|Windows|October 25, 2006}}
| PCGamingWiki = Dark_Messiah_of_Might_and_Magic
|Genres =
}}
{{Game.InfoBox.Genre|Fighting}}{{Game.InfoBox.Genre|Role-playing (RPG)}}
|PCGamingWiki = Dark_Messiah_of_Might_and_Magic}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = mm.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Dark Messiah of Might and Magic|Path = {InstallDir}\mm.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
 
 
{{Game.Scripts.Install
|Name = Install Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay
 
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "AutoConfigVersion" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenWindowed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenMonitorGamma" -Value "2.2" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_forceaniso" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_picmip" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_trilinear" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_vsync" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_forcehardwaresync" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_parallaxmap" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_reducefillrate" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_shadowrendertotexture" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_rootlod" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_waterforceexpensive" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_waterforcereflectentities" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_antialias" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_specular" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_bumpmap" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_hdr_level" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "VendorID" -Value 32902 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "DeviceID" -Value 338 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "DXLevel_V1" -Value 90 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "key" -Value "1234567890123" -Force
 
Set-Content -Path "$install\mm.bat" -Value "mm.exe -novid -w $($Display.Bounds.Width) -h $($Display.Bounds.Height)"
</syntaxhighlight>
}}
           
{{Game.Scripts.Uninstall
|Name = Uninstall Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source" -Recurse -Force
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Might and Magic\Dark Messiah of Might and Magic" -Recurse -Force
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Might and Magic\Settings" -Recurse -Force
</syntaxhighlight>
}}
           
{{Game.Scripts.NameChange
|Name = Name Change Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
Write-ReplaceContentInFile -Pattern 'PlayerName=(.+)' -Substitution "PlayerName=$NewPlayerAlias" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern 'ClanTag=(.+)' -Substitution "ClanTag=" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\cfg\config.cfg"
</syntaxhighlight>
}}
}}

Latest revision as of 00:41, 22 February 2024

Developers
Arkane Studios
Release Date
Windows: October 25, 2006
Genres
FightingRole-playing (RPG)
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Dark Messiah of Might and Magic {InstallDir}\mm.exe True

Install Script

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "AutoConfigVersion" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenWindowed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "ScreenMonitorGamma" -Value "2.2" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_forceaniso" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_picmip" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_trilinear" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_vsync" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_forcehardwaresync" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_parallaxmap" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_reducefillrate" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_shadowrendertotexture" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_rootlod" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_waterforceexpensive" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "r_waterforcereflectentities" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_antialias" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_specular" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_bumpmap" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "mat_hdr_level" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "VendorID" -Value 32902 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "DeviceID" -Value 338 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "DXLevel_V1" -Value 90 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source\./\Settings" -Name "key" -Value "1234567890123" -Force

Set-Content -Path "$install\mm.bat" -Value "mm.exe -novid -w $($Display.Bounds.Width) -h $($Display.Bounds.Height)"

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Source" -Recurse -Force
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Might and Magic\Dark Messiah of Might and Magic" -Recurse -Force
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Ubisoft\Might and Magic\Settings" -Recurse -Force

Name Change Script

Write-ReplaceContentInFile -Pattern 'PlayerName=(.+)' -Substitution "PlayerName=$NewPlayerAlias" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern 'ClanTag=(.+)' -Substitution "ClanTag=" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\cfg\config.cfg"