Re-Volt: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Acclaim Studios London}} |Publishers = {{Game.InfoBox.Publisher|Big Bit Ltd}} {{Game.InfoBox.Publisher|Throwback Entertainment}} {{Game.InfoBox.Publisher|Acclaim Entertainment}} {{Game.InfoBox.Publisher|We Go Interactive Co. Ltd}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|July 31, 1999}} |Genres = {{Game.InfoBox.Genre|Arcade}} {{Game.InfoBox.Genre|Sport}} {{Game.InfoBox.G...")
 
No edit summary
 
Line 5: Line 5:
{{Game.InfoBox.Developer|Acclaim Studios London}}
{{Game.InfoBox.Developer|Acclaim Studios London}}
|Publishers =
|Publishers =
{{Game.InfoBox.Publisher|Big Bit Ltd}}
{{Game.InfoBox.Publisher|Big Bit Ltd}}{{Game.InfoBox.Publisher|Throwback Entertainment}}{{Game.InfoBox.Publisher|Acclaim Entertainment}}{{Game.InfoBox.Publisher|We Go Interactive Co. Ltd}}
{{Game.InfoBox.Publisher|Throwback Entertainment}}
{{Game.InfoBox.Publisher|Acclaim Entertainment}}
{{Game.InfoBox.Publisher|We Go Interactive Co. Ltd}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|July 31, 1999}}
{{Game.InfoBox.ReleaseDate|Windows|July 31, 1999}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Arcade}}
{{Game.InfoBox.Genre|Arcade}}{{Game.InfoBox.Genre|Sport}}{{Game.InfoBox.Genre|Racing}}
{{Game.InfoBox.Genre|Sport}}
|PCGamingWiki = Re-Volt}}
{{Game.InfoBox.Genre|Racing}}
| PCGamingWiki = Re-Volt
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = rvgl.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\rvgl.exe|Arguments = -nointro -dev|WorkingDirectory = |Primary = True}}
}}
}}


{{Game.Scripts.Install
|Name = Install Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
$Display = Get-PrimaryDisplay
Write-ReplaceContentInFile -Pattern '^ScreenWidth = (.+)' -Substitution "ScreenWidth = $($Display.Bounds.Width)" -FilePath "$InstallDirectory\profiles\rvgl.ini"
Write-ReplaceContentInFile -Pattern '^ScreenHeight = (.+)' -Substitution "ScreenHeight = $($Display.Bounds.Height)" -FilePath "$InstallDirectory\profiles\rvgl.ini"
Write-ReplaceContentInFile -Pattern '^UseProfiles = (.+)' -Substitution "UseProfiles = 0" -FilePath "$InstallDirectory\profiles\rvgl.ini"
</syntaxhighlight>
}}
           
{{Game.Scripts.NameChange
{{Game.Scripts.NameChange
|Name = Change Profile Name
|Name = Name Change Script
|Description = Deletes all profiles in the game's directory and then makes a new profile with the player's name.
|Description = Deletes all profiles in the game&#x27;s directory and then makes a new profile with the player&#x27;s name.
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$NewName = $args[0]
<syntaxhighlight lang="powershell" line>
$InstallDir = $PSScriptRoot
Get-ChildItem -Path "$InstallDirectory\profiles" -Recurse -Directory | Remove-Item -Recurse -ErrorAction Ignore
 
Copy-Item -Path "$InstallDirectory\templateprofile" -Destination "$InstallDirectory\profiles\$($NewPlayerAlias.ToLower())" -Recurse
function Write-ReplaceContentInFile([string]$Regex, [string]$Replacement, [string]$FilePath)
Write-ReplaceContentInFile -Pattern 'PlayerName1 = "(.+)"' -Substitution "PlayerName1 = ""$($NewPlayerAlias.ToUpper())""" -FilePath "$InstallDirectory\profiles\$($NewPlayerAlias.ToLower())\profile.ini"
{
    $content = (Get-Content $FilePath) -replace $Regex, $Replacement
    [IO.File]::WriteAllLines($FilePath, $content)
}


Get-ChildItem -Path "$InstallDir\profiles" -Recurse -Directory | Remove-Item -Recurse -ErrorAction Ignore
Write-ReplaceContentInFile -Pattern 'DefaultProfile = "(.+)"' -Substitution "DefaultProfile = ""$NewPlayerAlias" -FilePath "$InstallDirectory\profiles\rvgl.ini"
Copy-Item -Path "$InstallDir\templateprofile" -Destination "$InstallDir\profiles\$($NewName.ToLower())" -Recurse
Write-ReplaceContentInFile -Regex 'Playername1 = "(.+)"' -Replacement "PlayerName1 = ""$($NewName.ToUpper())""" -FilePath "$InstallDir\profiles\$($newName.ToLower())\profile.ini"
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 21:55, 8 January 2024

Developers
Acclaim Studios London
Publishers
Big Bit LtdThrowback EntertainmentAcclaim EntertainmentWe Go Interactive Co. Ltd
Release Date
Windows: July 31, 1999
Genres
ArcadeSportRacing
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\rvgl.exe -nointro -dev True

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '^ScreenWidth = (.+)' -Substitution "ScreenWidth = $($Display.Bounds.Width)" -FilePath "$InstallDirectory\profiles\rvgl.ini"
Write-ReplaceContentInFile -Pattern '^ScreenHeight = (.+)' -Substitution "ScreenHeight = $($Display.Bounds.Height)" -FilePath "$InstallDirectory\profiles\rvgl.ini"
Write-ReplaceContentInFile -Pattern '^UseProfiles = (.+)' -Substitution "UseProfiles = 0" -FilePath "$InstallDirectory\profiles\rvgl.ini"

Name Change Script

Deletes all profiles in the game's directory and then makes a new profile with the player's name.

Get-ChildItem -Path "$InstallDirectory\profiles" -Recurse -Directory | Remove-Item -Recurse -ErrorAction Ignore
Copy-Item -Path "$InstallDirectory\templateprofile" -Destination "$InstallDirectory\profiles\$($NewPlayerAlias.ToLower())" -Recurse
Write-ReplaceContentInFile -Pattern 'PlayerName1 = "(.+)"' -Substitution "PlayerName1 = ""$($NewPlayerAlias.ToUpper())""" -FilePath "$InstallDirectory\profiles\$($NewPlayerAlias.ToLower())\profile.ini"

Write-ReplaceContentInFile -Pattern 'DefaultProfile = "(.+)"' -Substitution "DefaultProfile = ""$NewPlayerAlias" -FilePath "$InstallDirectory\profiles\rvgl.ini"