File information

Last updated

Original upload

Created by

orax

Uploaded by

0R4X

Virus scan

Safe to use

About this mod

Flatten the terrain following the planet's curvature. Restore terraformed terrain to its original state. Create a sloped terrain with the chosen angle. Change deformation size. Paint the terrain in non-creative mode.

Requirements
Permissions and credits
Mirrors
Changelogs
Donations
Installation
UE4SS v3 experimental (requirement)
Download UE4SS experimental : UE4SS_v3.0.1-*-*.zip
- Steam: unzip the UE4SS archive into (GameInstallDir)\Astro\Binaries\Win64\
More information: https://docs.ue4ss.com/dev/installation-guide.html (Official Installation Guide)


Mod
- Steam: unzip the mod archive into (GameInstallDir)\Astro\Binaries\Win64\ue4ss\Mods\
How to find the game install directory in Steam? Right click on the game > Manage > Browse local files.
You can copy options.example.lua to options.lua otherwise it will be automatically copied on first run.



Example of an installation on the Steam version of the game. The file list is not exhaustive.
Spoiler:  
Show
(GameInstallDir)\
├── Astro.exe
└── Astro\
  └── Binaries\
    └── Win64\
      ├── Astro-Win64-Shipping.exe
      ├── dwmapi.dll
      └── ue4ss\
        ├── UE4SS.log
        ├── UE4SS-settings.ini
        └── Mods\
          ├── mods.txt
          └── TerrainToolMod\
            ├── .luarc.json
            ├── enabled.txt
            ├── options.example.lua
            ├── options.lua
            └── Scripts\
              └── main.lua

This mod is experimental. Make a backup of your game save before using the mod.

How to update the mod?
If you already have an older version of the mod installed, delete your existing options.lua file or merge it with the new one.

Usage and configuration
Select the Flat mode of the Terrain Tool.
Press F2 to turn on the mod, F3 to turn it off and SHIFT+F2 to turn on the "Revert Modifications" mode.

Shortcuts
[Globals]
Show this help text                                                           F1
Enable Terrain Tool Mod; update/reload UI                                     F2
Disable Terrain Tool Mod                                                      F3
Toggle Terrain Tool Mod                                                         
Create tangent terrain at player position                                     F9
Toggle the visibility of the "color" UI                                SHIFT+ONE
Set "tangent" method                                                         ONE
Set "slope" method                                                           TWO
Set "smoothen" method                                                      THREE
Set "auto" method                                                           FOUR
Set "paint" method                                                          FIVE
Increase brush (max: 550, step: 50)                    SHIFT+MIDDLE_MOUSE_BUTTON
Decrease brush (min: 50, step: 50)                   CONTROL+MIDDLE_MOUSE_BUTTON
Set "Revert modifications" mode                                                R
Set "Flatten" mode                                                       SHIFT+F
Set "Flatten subtract only" mode                                 CONTROL+SHIFT+F
Set "Flatten add only" mode                                  CONTROL+ALT+SHIFT+F
[Method: slope]
Set slope direction from camera                                                w
Set slope direction from camera (reversed)                                     x
Set slope direction from slope (under cursor)                          LeftShift
[Method: auto]
Increase angle by 1                                                         Home
Decrease angle by 1                                                          End
Increase expected angle by 5                                        LeftAlt+Home
Decrease expected angle by 5                                         LeftAlt+End
Set expected angle to 45                                                  PageUp
Set expected angle to -45                                               PageDown
Set expected angle to 0                                                   Delete
Set angle equal to slope angle (under cursor)                             Insert
Set angle equal to -slope angle (under cursor)                    LeftAlt+Insert
Set angle equal to expected angle                                 LeftAlt+Delete

Commands: deform_type, get_altitude, ttmod, look.
Notes:
- Method-specific shortcuts only work when your terrain tool is equipped.
- Some features do not work in Creative mode.


Tutorials
Tutorial/demonstration. Mod version 0.6.0.

Tutorial 1/2 (old mod version).

Tutorial 2/2 (made with mod version 0.2.0). GeoGebra graph used in video: geogebra.org/classic/expmeyxw

Article: Smoothen method. Press "3" to activate the "Smoothen" method.
Files
There is a configuration Lua file: options.lua. This file will be automatically created on first run.
Commands
Example: https://imgsh.net/i/0f6ca34ae8
deform_type, get_altitude, ttmod, look



Alternative and credits
The "tangent" method of this mod is inspired by Tangent mod. There is an updated version on the Astroeneer Modding Discord server. Join the server: https://discord.com/servers/astroneer-modding-774729322674126858 and download the Tangent_Mod-*.CT file in this channel.


Troubleshooting
Known issues
- The game can crash on startup. This is probably an issue with UE4SS, I can't fix it. However, if the game crashes frequently on startup, try setting bUseUObjectArrayCache to false in the UE4SS-settings.ini file.
Logging
You can see the logs in UE4SS.log or in the UE4SS GUI Console.
You can enable the UE4SS GUI Console in UE4SS-settings.ini in the [Debug] section.



Mod license: MIT.