Blockland

From LANCommander
Revision as of 02:03, 6 January 2024 by DoctorDalek (talk | contribs) (Created new page for Blockland)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Publishers
Blockland LLCStep 1 Games LLC
Release Date
Windows: February 24, 2007
Genres
SimulatorAdventurePuzzleIndieRacingShooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\BLRebuilt.exe True

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '^\$pref::Video::fullScreen = "(.+)";' -Substitution "`$pref::Video::fullScreen = ""1"";" -FilePath "$InstallDirectory\config\client\prefs.cs"
Write-ReplaceContentInFile -Pattern '^\$pref::Video::resolution = "(.+)";' -Substitution "`$pref::Video::resolution = ""$($Display.Bounds.Width) $($Display.Bounds.Height) 32"";" -FilePath "$InstallDirectory\config\client\prefs.cs"

Name Change Script

Write-ReplaceContentInFile -Pattern '^\$pref::Player::LANName = "(.+)";' -Substitution "`$pref::Player::LANName = ""$NewPlayerAlias"";" -FilePath "$InstallDirectory\config\client\prefs.cs"
Write-ReplaceContentInFile -Pattern '^\$pref::Player::LANName = "(.+)";' -Substitution "`$pref::Player::LANName = ""$NewPlayerAlias"";" -FilePath "$InstallDirectory\base\client.cs"

Get-ChildItem "$InstallDirectory\config\client\AvatarFavorites" -Filter *.cs | 
Foreach-Object {
    Write-ReplaceContentInFile -Pattern '^\$pref::Player::LANName = "(.+)";' -Substitution "`$pref::Player::LANName = ""$NewPlayerAlias"";" -FilePath $_.FullName
}