BeamNG.Lib C#/Net6 Library derived of my [BeamNG_LevelTemplateCreator] project. Its currently focusing on level data and is generally very WIP. If you find a piece of code useful but don’t want to include the whole library, feel free to copy paste. Credits to this project are appreciated but not necessary. Links [GitHub] https://github.com/Grille/BeamNG_LevelTemplateCreator/tree/main [NuGet] https://www.nuget.org/packages/Grille.BeamNG.Lib Features Read/Write BeamNG terrain binary files (testet againt file version 9 used by 0.32) Parsing/Writing of BeamNG scene-tree json
if you mean the map template creator, that can still be found here: https://www.beamng.com/threads/beamng_leveltemplatecreator-pbr-v0-2.98334/
The downloadable zip files contain a standalone program, you extract the zip it and run the program. As for this thread, it’s a net6 programming library consumed by other programs, neither is an regular BeamNG mod that does anything useful while zipped.
One question. With the Lib, is it possible to read an existing already terraformed terrain, add a material and save it so that the new material is selectable in the terrain painter? Or do I have to do some split and merge operations on the binary?
Ist possible ^^ The Grille.BeamNG.Terrain class can both load and save, and exposes an string[] MaterialNames property that can be changed. It has also a TerrainDataBuffer Data property, that gives complete access to the terrain data like height and used material. --- Post updated --- I also plan on adding some extra functionality to terrain like resizing terrain data, or drawing one terrain block on another to combine them. Would be relatively easy for me to add and potentially very useful.