diff --git a/custom_levels/test-zone/test-zone.jsonc b/custom_levels/test-zone/test-zone.jsonc index 3c3aeb8203..db2e1dd05f 100644 --- a/custom_levels/test-zone/test-zone.jsonc +++ b/custom_levels/test-zone/test-zone.jsonc @@ -31,6 +31,9 @@ // adds a vector tag 'movie-pos': // "movie-pos": ["vector", [4096000.0, -176128.0, 1353973.76, 1.0]] + // The base actor id for your custom level. If you have multiple levels this should be unique! + "base_id": 100, + "actors" : [ { "trans": [-21.6238, 20.0496, 17.1191], // translation diff --git a/goalc/build_level/build_level.cpp b/goalc/build_level/build_level.cpp index 5136f31250..bb5f7e6a6f 100644 --- a/goalc/build_level/build_level.cpp +++ b/goalc/build_level/build_level.cpp @@ -70,7 +70,7 @@ bool run_build_level(const std::string& input_file, // vis infos // actors std::vector actors; - add_actors_from_json(level_json.at("actors"), actors, 1234); + add_actors_from_json(level_json.at("actors"), actors, level_json.value("base_id", 1234)); file.actors = std::move(actors); // cameras // nodes