You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting mapdata from ftl to json and back can be done with arx-convert, but that repo doesn't do any checks or validations whether the provided mapdata is actually correct and will it load in the game. Creating a level with arx-level-generator is something like this:
import{ArxMap}from'arx-level-generator'constsettings=newSettings()constlevel=newArxMap();// ...level.finalize(settings)// <----- this part does the "magic"!level.saveToDisk(settings)
ArxMap.finalize(settings) removes out of bound polygons, calculates normals, room data and lighting. This needs to be exposed, like so:
There is one problem: changing the polygons would also affect the llf file, so the cli command would need to have 2 json files as an input and 2 files for output.
The text was updated successfully, but these errors were encountered:
Converting mapdata from
ftl
tojson
and back can be done witharx-convert
, but that repo doesn't do any checks or validations whether the provided mapdata is actually correct and will it load in the game. Creating a level witharx-level-generator
is something like this:ArxMap.finalize(settings)
removes out of bound polygons, calculates normals, room data and lighting. This needs to be exposed, like so:There is one problem: changing the polygons would also affect the llf file, so the cli command would need to have 2 json files as an input and 2 files for output.
The text was updated successfully, but these errors were encountered: