2020-03-04 23:45:52 +00:00
2020-03-04 21:06:47 +00:00

pwn-compile

Compile.ps1 repository.

Installation

First copy compile.ps1 to your maps directory and unblock the script with Unblock-File:

Unblock-File compile.ps1

Then open an Administrative powershell prompt and update your powershell execution policy to allow unsigned scripts from remote sources:

Set-ExecutionPolicy RemoteSigned

And answer with A:

Execution Policy

Usage

All-Cores mode

To run this script with all available cores, either double-click it or open a powershell terminal, cd to this directory and run:

.\compile.ps1

X Cores mode

To override the number of cores used to compile, set the Cores param when calling the script:

.\compile.ps1 -Cores 2

Enable Logging

To have the script log to compile.txt in the maps directory, set the $Logs param to $True:

.\compile.ps1 -Logs $True

Or update the default Parameter on line 4 to $True

Performance Note

When logging is enabled, although the files compile just as fast, the script takes longer to finish as it writes the file. All you need to know is that as soon as the red text starts rushing past, all the files have finished compiling.

Credits

Don't we all use stackoverflow?

Description
Compile.ps1 repository
Readme 49 KiB
Languages
PowerShell 100%