SKYNET
All systems online Add to Discord Setup

Dark

Light

Saved in this browser. Log in to keep it everywhere.

Position & Spawn Converters

Spawn to Position Converter

No description has been written for this tool yet.

Input

Output (MapGroupPos XML)

How to Use

Simply paste your object code or upload a file. The tool automatically detects whether it's JSON or Init.c format and converts it to MapGroupPos XML.

JSON Format Example

{
  "Objects": [
    {
      "name": "staticobj_furniture_fluor_lamp",
      "pos": [1187.99, 347.36, 9988.70],
      "ypr": [341.51, 0, 0],
      "scale": 0.99
    }
  ]
}

Init.c Format Example

// Land_Shed_W4 objects
SpawnObject("Land_Shed_W4", "11895.96 7.74 3476.95", "-13.46 0 0", 1.0);
SpawnObject("Land_Shed_W4", "11989.47 7.74 3454.58", "169.99 0 0", 1.0);

Notes

  • For JSON files, the tool expects a specific format with "Objects" array containing items with "name", "pos", and "ypr" properties.
  • For Init.c files, the tool parses "SpawnObject" function calls with the proper parameters.
  • The converter automatically adjusts the angle ("a" attribute) based on the yaw value.
  • All rotation values are preserved in the output XML.