What does this tool do?
This tool converts a simple list of object coordinates (from a map editor) into a complete and efficient `CfgUndergroundTriggers.json` file. Its key feature is **Optimization**: instead of creating one trigger for every single object, it intelligently groups nearby objects and covers them with a single trigger, which is placed at the center of the group and uses your specified Default Size. This significantly reduces the number of triggers your server needs to process, improving performance.
How to Use
- Upload Your File: Use the "Upload File" button to load a JSON file containing your object list. The content will appear in the read-only Input editor.
- Configure Optimization:
- Keep **"Optimize Triggers"** checked for the best results (recommended). Unchecking it will create one trigger for every object in your list.
- Adjust the **"Grouping Distance"** to control how far apart objects can be while still being merged into the same trigger. A larger number means fewer, bigger trigger groups.
- Set the **"Default Trigger Size"**. This size is applied to every trigger that is generated.
- Generate: Click the "Generate" button. The optimized output will appear in the "Live Output" editor on the right, and the stats will update.
- Review & Edit: You can edit the output directly in the editor if you need to make manual changes (e.g., rename a comment). Use the "Validate Output" button to ensure your edits haven't broken the JSON format.
- Download or Copy: Use the buttons to save your new file or copy it to your clipboard.