This is a plugin for OpenPlanet for the game Trackmania 2020.
A utility tool to place blocks pixel perfect in the free block mode.
- Nudge blocks precisely in every direction and rotation along/around the three main axes via hotkeys
- Either global axes (fixed to the world) or local axes (rotated with the block) can be used
- Freely choose the nudge distance
- in multiples of the grid size (32x32x8) and without limitations
- with presets for BiSlope and Slope2 inclinations
- Hide the block helpers at the block boundaries for better visibility if the to be placed block fits perfectly
- Move your mouse cursor freely without messing up the position of the block
- Optionally show a coordinate system to help you in finding the global or local axes
- Open the track editor and enable the interface in the scripts menu of Openplanet
- Place one block in free mode
- Choose a block that snaps to the previous block in roughly the same position where you want the new one
- Snapping: when two blocks are similar and can connect they snap together at certain positions (e.g. tech road (1-1-1-1) snaps to itself in the direction of the road, sloped platform (5-2-2-2) snaps to the base platform (5-1-1-1))
- While your mouse cursor is in the position where the blocks snapped together, press
T
to save the coordinates of the snapped block - Choose the block you want to place
- Tick the box Fix cursor position. Your chosen block appears where the previous block snapped to the already placed block.
- You can now nudge the block via the keys
Left
,Right
,Up
,Down
,I
,K
- Toggle between moving the block and rotating it with
L
. Rotating uses the same keys - Switch between global and local axes with
J
- Move the pivot point by selecting the checkbox Nudge pivot point. This moves the point around which the block is rotated
- You can now nudge the block via the keys
- Place the block by clicking anywhere into the editor (like you place a block normally)
- Disable Fix cursor position
The hotkeys only work if your mouse cursor is not over any interface of Openplanet. This is a limitation of Openplanet itself.
Also the block may flicker sometimes between the fixed position and your mouse cursor. This is normal because Trackmania isn't built so that the to-be-placed block and your mouse cursor are not together. Just move your mouse some pixels or wait a bit until it stops again.
When rendering the coordinate system and block visualizer on top of each other, some lines may be on top of others when they shouldn't be.
Download it from https://openplanet.nl/files/109. You can also find a tutorial there on how to install the plugin.
- Maybe support items. Unforunately I still haven't found a way to implement this.
You can find the source code for this plugin on GitHub
- Performance improvements
- Add point on screen to visualize the pivot point when in the correct editor mode
- Fix applying nudge distance twice
- Fix closing sections in the main window when switching nudge mode
- Use new scripting functionality in the settings window
- Improvements under the hood
- Replace deprecated icon in the window that moves the coordinate system
- Use new font loading system
- Update callback functions to new signature
- Add ability to use modifier keys for keyboard shortcuts
- Organize sections of UI into collapsing headers
- Fix empty strings as UI element id
- Fix swapped left & right arrow keys for fixedAxisPerKey mode
- Fix block visualizer not finding a block size
- Fix blocking arrow keys when block is not fixed
- Refactor keybindings for better internal structure (you shouldn't notice anything)
- Remove alpha on keybinding window
- Fix plugin crash on start because of wrong path separator
- Tidy up interface
- Tidy up some code
- Add new nudge mode where the axis is selected depending on the current camera yaw angle
- Add new nudge mode where the axis is selected by a key (like rotating in the mesh modeller)
- Add help for the different nudge modes
- Add ability to remap the keys
- Changed default keybinding
- Draw point on screen when fixing camera to pivot position
- Add button to reset pivot position
- Display pivot position in interface
- Fix incorrect display of block frame in block visualizer
- Add ability to move the pivot point for rotations
Initial release