OMSI Spline Combiner

OMSI Spline Combiner is a program that combines multiple OMSI splines to one thus saving you time in aligning many splines together. Also, it helps in optimizing your map by allowing you to avoid repeating splines.

The program works with all splines, but it is recommended that your splines have X = 0  and Z = 0 as midpoints.

Download OMSI Spline Combiner on WebDisk


Configuration file

To combine spline you have to prepare a JSON file. In one JSON you can make multiple splines in a single run since the configuration file represents an JSON array.

Let's examine this JSON:


[
  {
    "OmsiDirectoryPath": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\OMSI 2", -- the path to your OMSI installation directory
    "SplinesSourcePath": "Splines", -- base directiory for your splines, you can set this to specific folder but then you won't have access outside of that directory
    "SplinesOutputPath": "Splines\\MySplines", -- where the program should save your new splines (and copy textures too)
    "FileName": "my-spline1", -- this is self-explanatory but if you remove this property then the OMSI Spline Combiner will ask you for file name.
    "SplinesInputs": [ -- here you need to add all your splines
      {
        "Path": "MyModularSplines/asphalt1.sli",  -- remember, Splines is our base directory so imagine you are trying to find the file in Splines folder, then MyModularSplines
        "Settings": {
          "XOffset": 0 -- X offset can be confusing, but actually it's a very straightforward thing. You need to push/pull a spline in a direction so it fits where you want, read more details below
          "ZOffset": 0 -- same as X offset, just vertically,
          "Mirror": false -- this option will do the same thing like the default mirror option from the OMSI 2 Editor.  This saves a lot of time since you can quickly place things like sidewalks.
        }
      },
      {
        "Path": "MyModularSplines/sidewalk.sli",
        "Settings": {
          "XOffset": -3,
          "ZOffset": 0,
          "Mirror": false
        }
      }
    ]
  }
]


Offsets explained

When you open your modular splines they have area that they span, so usually a 3m width spline will be -1.5 to 1.5. So now with offsets we are pushing/pulling the spline. That's it.
When it becomes tricky is when you have to put other splines, but just remember that you have to pull/push spline so it fits where it belongs.

So when we pull the spline by -1.5, we have set it to span from -3 to 0. So now, if we have 1.5m sidewalk, we need to pull it so it becomes -4.5 to 3. You can calculate that offset like this, 4.5-(1.5/2) = 3.75

The same applies from Z offset too.