StarLancer: Difference between revisions
DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Digital Anvil}} {{Game.InfoBox.Developer|Warthog PLC}} |Publishers = {{Game.InfoBox.Publisher|Microsoft}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|March 31, 2000}} |Genres = {{Game.InfoBox.Genre|Simulator}} | PCGamingWiki = StarLancer }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = lancer.exe|Arguments = |WorkingDirectory = |Primary = True}} }}...") |
DoctorDalek (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
|Cover = cover.jpg | |Cover = cover.jpg | ||
|Developers = | |Developers = | ||
{{Game.InfoBox.Developer|Digital Anvil}} | {{Game.InfoBox.Developer|Digital Anvil}}{{Game.InfoBox.Developer|Warthog PLC}} | ||
{{Game.InfoBox.Developer|Warthog PLC}} | |||
|Publishers = | |Publishers = | ||
{{Game.InfoBox.Publisher|Microsoft}} | {{Game.InfoBox.Publisher|Microsoft}} | ||
Line 11: | Line 10: | ||
|Genres = | |Genres = | ||
{{Game.InfoBox.Genre|Simulator}} | {{Game.InfoBox.Genre|Simulator}} | ||
| PCGamingWiki = StarLancer | |PCGamingWiki = StarLancer}} | ||
}} | |||
{{Game.ActionBox | {{Game.ActionBox | ||
|Actions = | |Actions = | ||
{{Game.ActionBox.Row|Name = Play|Path = lancer.exe|Arguments = |WorkingDirectory = |Primary = True}} | {{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\lancer.exe|Arguments = |WorkingDirectory = |Primary = True}} | ||
}} | }} | ||
{{Game.Scripts.NameChange | {{Game.Scripts.NameChange | ||
Line 23: | Line 22: | ||
|Description = | |Description = | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = | ||
<syntaxhighlight lang="powershell" line> | |||
# Converts a string to a UTF16-encoded byte array. This looks like ASCII characters separated by 0x00 in most cases. | |||
$bytes = ConvertTo-StringBytes -Input $NewPlayerAlias -MaxLength 18 -MinLength 18 | |||
Edit-PatchBinary -FilePath "$InstallDirectory\profile.bin" -Offset 0x4 -Data $bytes | |||
Write-ReplaceContentInFile -Pattern '^name00=(.+)' -Substitution "name00=$NewPlayerAlias" -FilePath "$InstallDirectory\starlancer.ini" | |||
Write-ReplaceContentInFile -Pattern '^name01=(.+)' -Substitution "name01=$NewPlayerAlias" -FilePath "$InstallDirectory\starlancer.ini" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 21:57, 8 January 2024
Developers | |
---|---|
Digital AnvilWarthog PLC | |
Publishers | |
Microsoft | |
Release Date | |
Windows: March 31, 2000 | |
Genres | |
Simulator | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | {InstallDir}\lancer.exe | True |
Name Change Script
# Converts a string to a UTF16-encoded byte array. This looks like ASCII characters separated by 0x00 in most cases.
$bytes = ConvertTo-StringBytes -Input $NewPlayerAlias -MaxLength 18 -MinLength 18
Edit-PatchBinary -FilePath "$InstallDirectory\profile.bin" -Offset 0x4 -Data $bytes
Write-ReplaceContentInFile -Pattern '^name00=(.+)' -Substitution "name00=$NewPlayerAlias" -FilePath "$InstallDirectory\starlancer.ini"
Write-ReplaceContentInFile -Pattern '^name01=(.+)' -Substitution "name01=$NewPlayerAlias" -FilePath "$InstallDirectory\starlancer.ini"