Army Men: Difference between revisions

From LANCommander
(Created new page for Army Men)
 
No edit summary
 
Line 5: Line 5:
{{Game.InfoBox.Developer|The 3DO Company}}
{{Game.InfoBox.Developer|The 3DO Company}}
|Publishers =
|Publishers =
{{Game.InfoBox.Developer|2K}}
{{Game.InfoBox.Publisher|2K}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|January 1, 1998}}
{{Game.InfoBox.ReleaseDate|Windows|January 1, 1998}}
Line 15: Line 15:
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\Armymen.exe|Arguments = -nomovies|WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\Armymen.exe|Arguments = -nomovies|WorkingDirectory = |Primary = True}}
}}
{{Game.Scripts.Install
|Name = Install Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
# Trim a string down to a specified amount of characters
if ($NewPlayerAlias.Length -gt 16) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 16);
}
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company" -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioSFX" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioMUSIC" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioVOICE" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer1" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer2" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer3" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer4" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "Cursor" -Value "Red" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "MouseRight" -Value "ChgWeapon" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "JoystickOn" -Value "Yes" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "Config" -Value "Default1" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "ServiceProvider" -Value "{36E95EE0-8577-11CF-960C-0080C7534E82}" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "PlayerName" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "SessionName" -Value "LANCommander" -Force
</syntaxhighlight>
}}
           
{{Game.Scripts.Uninstall
|Name = Uninstall Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Force -Recurse
</syntaxhighlight>
}}
           
{{Game.Scripts.NameChange
|Name = Name Change Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
if ($NewPlayerAlias.Length -gt 16) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 16);
}
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer1" -Value "$NewPlayerAlias" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "PlayerName" -Value "$NewPlayerAlias" -Force
</syntaxhighlight>
}}
}}

Latest revision as of 00:38, 22 February 2024

Developers
The 3DO Company
Publishers
2K
Release Date
Windows: January 1, 1998
Genres
AdventureStrategyTactical
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\Armymen.exe -nomovies True

Install Script

# Trim a string down to a specified amount of characters
if ($NewPlayerAlias.Length -gt 16) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 16);
}

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company" -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioSFX" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioMUSIC" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioVOICE" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer1" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer2" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer3" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer4" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "Cursor" -Value "Red" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "MouseRight" -Value "ChgWeapon" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "JoystickOn" -Value "Yes" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "Config" -Value "Default1" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "ServiceProvider" -Value "{36E95EE0-8577-11CF-960C-0080C7534E82}" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "PlayerName" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "SessionName" -Value "LANCommander" -Force

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Force -Recurse

Name Change Script

if ($NewPlayerAlias.Length -gt 16) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 16);
}

New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer1" -Value "$NewPlayerAlias" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "PlayerName" -Value "$NewPlayerAlias" -Force