XIII: Difference between revisions
DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Ubisoft Paris}} |Publishers = {{Game.InfoBox.Publisher|Feral Interactive}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|November 18, 2003}} |Genres = {{Game.InfoBox.Genre|Shooter}} | PCGamingWiki = XIII }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = XIII.exe|Arguments = |WorkingDirectory = {InstallDir}/System|Primary = True}} }} {{Game.Scripts.Name...") |
DoctorDalek (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
{{Game.InfoBox.ReleaseDate|Windows|November 18, 2003}} | {{Game.InfoBox.ReleaseDate|Windows|November 18, 2003}} | ||
|Genres = | |Genres = | ||
{{Game.InfoBox.Genre|Shooter}} | {{Game.InfoBox.Genre|Puzzle}}{{Game.InfoBox.Genre|Shooter}} | ||
| PCGamingWiki = XIII | |PCGamingWiki = XIII}} | ||
}} | |||
{{Game.ActionBox | {{Game.ActionBox | ||
Line 18: | Line 17: | ||
}} | }} | ||
{{Game.Scripts.Install | |||
|Name = Install Script | |||
|Description = | |||
|RequiresAdmin = False | |||
|Contents = | |||
<syntaxhighlight lang="powershell" line> | |||
# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height | |||
$Display = Get-PrimaryDisplay | |||
# Use regex to replace text within a file. Quotes are escaped by double quoting ("") | |||
Write-ReplaceContentInFile -Pattern '^FullscreenViewportX=(.+)' -Substitution "FullscreenViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\XIII.ini" | |||
Write-ReplaceContentInFile -Pattern '^FullscreenViewportY=(.+)' -Substitution "FullscreenViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\XIII.ini" | |||
# Might need to set FOV | |||
# if (($Display.Bounds.Width / $Display.Bounds.Height) -eq (16 / 9)) | |||
</syntaxhighlight> | |||
}} | |||
{{Game.Scripts.NameChange | {{Game.Scripts.NameChange | ||
|Name = Name Change Script | |Name = Name Change Script | ||
|Description = | |Description = | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = | ||
$ | <syntaxhighlight lang="powershell" line> | ||
$NewPlayerAlias = $NewPlayerAlias.Split([IO.Path]::GetInvalidFileNameChars()) -join '_' | |||
New-Item -ItemType Directory -Force -Path "$ | New-Item -ItemType Directory -Force -Path "$InstallDirectory\Save" | ||
Copy-Item -Path "$ | Copy-Item -Path "$InstallDirectory\Default.pro" -Destination "$InstallDirectory\Save\$NewPlayerAlias.pro" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 21:58, 8 January 2024
Developers | |
---|---|
Ubisoft Paris | |
Publishers | |
Feral Interactive | |
Release Date | |
Windows: November 18, 2003 | |
Genres | |
PuzzleShooter | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | XIII.exe | {InstallDir}/System | True |
Install Script
# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay
# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^FullscreenViewportX=(.+)' -Substitution "FullscreenViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\XIII.ini"
Write-ReplaceContentInFile -Pattern '^FullscreenViewportY=(.+)' -Substitution "FullscreenViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\XIII.ini"
# Might need to set FOV
# if (($Display.Bounds.Width / $Display.Bounds.Height) -eq (16 / 9))
Name Change Script
$NewPlayerAlias = $NewPlayerAlias.Split([IO.Path]::GetInvalidFileNameChars()) -join '_'
New-Item -ItemType Directory -Force -Path "$InstallDirectory\Save"
Copy-Item -Path "$InstallDirectory\Default.pro" -Destination "$InstallDirectory\Save\$NewPlayerAlias.pro"