FRTG(Forts随机地形生成器)
🟠 Updated over a year agoPreview
🔍 Analysis
- 🏆 #17 of 107 Mod, Misc, Vanilla mods in this game by downloads
📋 About This Mod
What Can This Mod Do? FRTG can generate random terrains based on a linear noise function and smooth interpolation. You can create terrains with fixed features by adjusting various detailed parameters. If you want to create a large map but don't want to deal with the hassle of terrain details, then this mod might be a great choice. Here’s How to Use It Before that, you may need to understand some basic knowledge about generating terrain using noise functions and linear interpolation. After subscribing to this mod, you'll need to find the local files of this mod. Open the file scripts/Generator/Terrain.lua, and you will see the following content: -- FRGT Terrain.lua -- FRGT_ANCHOR_TYPE_LEFT_UPPER = 0 FRGT_ANCHOR_TYPE_LEFT_LOWER = 1 FRGT_ANCHOR_TYPE_CENTER = 2 RegisterModuleFunction([], function(gameStart) end) RegisterModuleFunction([], function(key, down, code) if down then if key == "l" then local group = CreateRandomNodesGroup(5000, 200000, 5000, 12, Noise3) CreateTerrainByNodesGroup(group, ScreenToWorld(MousePos), FRGT_ANCHOR_TYPE_CENTER) end end end) This defines the logic for triggering terrain generation. The code above shows that when the "L" key is pressed, the specified terrain is generated at the mouse position. For now, it's triggered by a key press, but you can change it according to your needs. RegisterModuleFunction([], function(key, down, code) if down then if key == "l" then local group = CreateRandomNodesGroup(5000, 200000, 5000, 12, Noise3) CreateTerrainByNodesGroup(group, ScreenToWorld(MousePos), FRGT_ANCHOR_TYPE_CENTER) end end end) You first need to generate the serialized node data for the terrain, and then use the CreateTerrainByNodesGroup function to orderly add the nodes into the world. The function parameters are as follows: function CreateTerrainByNodesGroup(table_group, Vec3_AnchorPos, int_AnchorType) table_group is the node data group that you need to pass in, which is provided by the main generation function defined i
📊 Mod Details
- Game
- Forts Mods
- Author
- 76561199009855499
- Version
- N/A
- Downloads
- 284
- Endorsements
- 0
- Category
- Mod, Misc, Vanilla
- Created
- 8/15/2024
- Updated
- 1/29/2025
🔧 How to Install Forts Mods
Subscribe on Steam Workshop. Mods auto-download and install. Launch the game to activate.
📖 Full step-by-step install guide for Forts →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Forts commands, item IDs, and more.
Keep browsing — more Forts mods await