Age of Empires II: The Age of Kings: Difference between revisions

From LANCommander
No edit summary
No edit summary
Line 3: Line 3:
|Cover = cover.jpg
|Cover = cover.jpg
|Developers =
|Developers =
{{Game.InfoBox.Developer|Ensemble Studios}}
{{Game.InfoBox.Developer|Ensemble Studios}}|Publishers =
|Publishers =
{{Game.InfoBox.Developer|Konami}}{{Game.InfoBox.Developer|Microsoft}}|Release Date =
{{Game.InfoBox.Publisher|Konami}}
{{Game.InfoBox.Publisher|Microsoft}}
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|September 30, 1999}}
{{Game.InfoBox.ReleaseDate|Windows|September 30, 1999}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Real Time Strategy (RTS)}}
{{Game.InfoBox.Genre|Real Time Strategy (RTS){{Game.InfoBox.Genre|Strategy|PCGamingWiki = Age_of_Empires_II:_The_Age_of_Kings
{{Game.InfoBox.Genre|Strategy}}
| PCGamingWiki = Age_of_Empires_II:_The_Age_of_Kings
}}
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = AoFE_Launcher.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\AoFE_Launcher.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}


{{Game.Scripts.Install
{{Game.Scripts.Install
Line 25: Line 21:
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents = <syntaxhighlight lang="powershell" line>
$InstallDir = $PSScriptRoot
Remove-Item "$InstallDirectory\Games\Forgotten Empires\player.nfz" -ErrorAction Ignore
 
Copy-Item -Path "$InstallDirectory\blankprofiles.nfz" -Destination "$InstallDirectory\Games\Forgotten Empires\player.nfz"
Remove-Item "$InstallDir\Games\Forgotten Empires\player.nfz" -ErrorAction Ignore
Copy-Item -Path "$InstallDir\blankprofiles.nfz" -Destination "$InstallDir\Games\Forgotten Empires\player.nfz"
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Revision as of 19:27, 30 December 2023

{{Game.InfoBox |Cover = cover.jpg |Developers = Ensemble Studios|Publishers = KonamiMicrosoft|Release Date = Windows: September 30, 1999 |Genres = {{Game.InfoBox.Genre|Real Time Strategy (RTS)Strategy

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\AoFE_Launcher.exe True

Install Script

Names are encoded in a compressed `player.nfz` file. This is potentially different for older versions of the game. They cannot be changed without running into corruption issues. Removing the file and replacing it with a copy that has no profiles forces the player to create a profile when going into multiplayer.

Remove-Item "$InstallDirectory\Games\Forgotten Empires\player.nfz" -ErrorAction Ignore
Copy-Item -Path "$InstallDirectory\blankprofiles.nfz" -Destination "$InstallDirectory\Games\Forgotten Empires\player.nfz"