Understanding the Tool
This tool converts DayZ server INIT.C SpawnObject() function calls into the JSON format used by Object Spawner, allowing for easier map editing and object manipulation.
Step 1: Get Your SpawnObject Data
Locate the SpawnObject() function calls in your server's init.c file. Copy all the relevant lines that look like this:
SpawnObject("bldr_rock_monolith4", "2423.278809 363.777832 7692.463379", "0.000000 -0.000000 -0.000000", 1);
Step 2: Convert Your Data
Paste your SpawnObject function calls into the input text area and click the "Convert to Object Spawner" button. The tool will transform your SpawnObject code into the proper JSON format in the output box.
Step 3: Use the Result
You can either:
- Copy the output to your clipboard using the "Copy" button
- Save the result as a JSON file using the "Export" button
Object Translations
The tool automatically converts the bldr_ prefixed object names to their p3d equivalents using the same logic as in the original script.
Example:
Input:
SpawnObject("bldr_rock_monolith4", "2423.278809 363.777832 7692.463379", "0.000000 -0.000000 -0.000000", 1);
Output:
{
"Objects": [
{
"name": "DZ\\rocks\\rock_monolith4.p3d",
"pos": [
2423.278809,
363.777832,
7692.463379
],
"ypr": [
0,
0,
0
],
"scale": 1,
"enableCEPersistency": 0
}
]
}