Marathon: Difference between revisions
DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Bungie}} |Publishers = {{Game.InfoBox.Publisher|Bungie}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|December 21, 1994}} |Genres = {{Game.InfoBox.Genre|Shooter}} | PCGamingWiki = Marathon }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = Marathon.exe|Arguments = |WorkingDirectory = |Primary = True}} }} {{Game.Scripts.NameChange |Name = Name Change Sc...") |
DoctorDalek (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
|Genres = | |Genres = | ||
{{Game.InfoBox.Genre|Shooter}} | {{Game.InfoBox.Genre|Shooter}} | ||
| PCGamingWiki = Marathon | |PCGamingWiki = Marathon}} | ||
}} | |||
{{Game.ActionBox | {{Game.ActionBox | ||
|Actions = | |Actions = | ||
{{Game.ActionBox.Row|Name = Play|Path = Marathon.exe|Arguments = |WorkingDirectory = |Primary = True}} | {{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\Marathon.exe|Arguments = |WorkingDirectory = |Primary = True}} | ||
}} | }} | ||
{{Game.Scripts. | |||
|Name = | {{Game.Scripts.Install | ||
|Name = Install Script | |||
|Description = | |Description = | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = | ||
<syntaxhighlight lang="powershell" line> | |||
New-Item -ItemType Directory -Force -Path "$($env:LOCALAPPDATA)\AlephOne" | |||
Copy-Item -Path "$InstallDirectory\Preferences" -Destination "$($env:LOCALAPPDATA)\AlephOne\Marathon Preferences" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
{{Game.Scripts. | {{Game.Scripts.NameChange | ||
|Name = | |Name = Name Change Script | ||
|Description = | |Description = | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = | ||
$ | <syntaxhighlight lang="powershell" line> | ||
$Path = "$($env:LOCALAPPDATA)\AlephOne\Marathon Preferences" | |||
Write-ReplaceContentInFile -Pattern "player name=""[^""]+""" -Substitution "player name=`"$NewPlayerAlias`"" -FilePath $Path | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 03:29, 6 January 2024
Developers | |
---|---|
Bungie | |
Publishers | |
Bungie | |
Release Date | |
Windows: December 21, 1994 | |
Genres | |
Shooter | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | {InstallDir}\Marathon.exe | True |
Install Script
New-Item -ItemType Directory -Force -Path "$($env:LOCALAPPDATA)\AlephOne"
Copy-Item -Path "$InstallDirectory\Preferences" -Destination "$($env:LOCALAPPDATA)\AlephOne\Marathon Preferences"
Name Change Script
$Path = "$($env:LOCALAPPDATA)\AlephOne\Marathon Preferences"
Write-ReplaceContentInFile -Pattern "player name=""[^""]+""" -Substitution "player name=`"$NewPlayerAlias`"" -FilePath $Path