PRINT (“Hello World”)
Takes one item from the stack and writes it on a new line in a file called RPL.txt in the game’s root content folder, preceded by the identifying information that indicates which unit or component called the PRINT function. Note that this file is truncated (cleared) each time a map is loaded.
To avoid having to constantly re-open the RPL.txt file to refresh it, a Windows Powershell commad (or Linus shell command) can be written to monitor the file and show new output. The location of RPL.txt can be found in player_log.
Eg. Create a file in the game’s root directory named ShowRPL.PS1. Put this single line in the file
Get-Content RPL.txt -wait
Now, in the context menu for the file, click on “Run with PowerShell”.
# Assume this core is at map coordinates (100, 50). Assume this script is named "Hello.prpl" "Hello World!" print # Each time this line is invoked, a new line appears in PRPL.txt: # [100,50] Hello.prpl: Hello World!
⇐ Index