Age of Empires II: The Age of Kings

From LANCommander
Revision as of 00:36, 27 July 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{InfoBox.Game |Cover = cover.jpg |Developers = {{InfoBox.Game.Developer|Ensemble Studios}} |Publishers = {{InfoBox.Game.Publisher|Konami}} {{InfoBox.Game.Publisher|Microsoft}} |Release Date = {{InfoBox.Game.ReleaseDate|Windows|September 30, 1999}} |Genres = {{InfoBox.Game.Genre|Real Time Strategy (RTS)}} {{InfoBox.Game.Genre|Strategy}} | PCGamingWiki = Age_of_Empires_II:_The_Age_of_Kings }} == Install Script == Names are encoded in a compressed `play...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:InfoBox.Game

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.

$InstallDir = $PSScriptRoot

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