Shows visualizations of recorded runs from Test Mode and Track Validation within the Map Editor.
If you're a developer interested in contributing new features or customizations, please explore the code, get in touch on Discord, and submit a pull request.
This plugin uses a custom preprocessor to add C-Style Macro support. The plugin code is not valid AngelScript code for OpenPlanet and must not be placed in the OpenPlanet plugin folder directly.
We will use the pluginbuilder.exe
with the debug command to preprocess the plugin code and copy it to the OpenPlanet plugin folder:
Before using the debug
command, ensure you have the following:
pluginbuilder.exe
: The executable should be placed in the root folder of the repository.Navigate to the Repository Root: Open a command prompt or terminal and navigate to the root directory of the cloned repository.
cd path/to/your/cloned/repository
Verify info.toml
:
Ensure the info.toml
file exists in the root directory. The pluginbuilder.exe
requires the working directory to be the root directory of the repository.
Run the Debug Command:
Use the pluginbuilder.exe
with the debug
command. You need to specify the path where the OpenPlanet plugins are located.
pluginbuilder.exe debug C:/Users/YourUsername/OpenplanetNext/Plugins
Replace C:/Users/YourUsername/OpenplanetNext/Plugins
with the actual path to your OpenPlanet plugins directory.
Checks Performed by the Debug Command:
info.toml
file with the [meta]
section and name = "Editor Route"
.Expected Behavior:
C:/Users/YourUsername/OpenplanetNext/Plugins/EditorRouteDev
directory exists and deletes it if it exists. src
, info.toml
, LICENSE
, Readme.md
) to the target directory.mcpp
C-Preprocessor on the copied src
folder, updating the files as necessary for the debug environment.//#require
CommentTo handle dependencies between AngelScript files, use the //#require
comment to specify the required files. Paths are relative to the root folder.
Example:
//#require "My/Other/File.as"
This directive ensures that My/Other/File.as
is processed before the current file.
To use builtin OpenPlanet preprocessor directives, use these predefined custom macros:
#define AS_IF #if
#define AS_ELIF #elif
#define AS_ELSE #else
#define AS_ENDIF #endif
Use these macros in your AngelScript files:
AS_IF TMNEXT
print("I am running on Trackmania (2020)");
AS_ELIF MP4
print("I am running on Maniaplanet 4");
AS_ELSE
print("I am running on a different game");
AS_ENDIF