A simple script that converts an XDBot macro to Geometry Dash Option Triggers
- Install the GD Savefile Editor by WEGFan - https://github.com/WEGFan/Geometry-Dash-Savefile-Editor
- Decrypt your CCLocalLevels.dat. Make sure to prettify the XML for easier modifications!
- Go into CCLocalLevels.dat.xml and find the level string. This should be 2 lines below the level name. Then copy the level string.
- Go to https://cyberchef.org/ and create a recipe, the recipe should be: From Base64 (URL Safe) Gunzip Then paste the zipped and base64 encoded level string into the input section.
- Copy the gunzipped level string. Create a new file called level.txt in the same folder as the script. Paste the fully decoded level string into this file.
- Run through the script. This will modify levels.txt and add option triggers to it.
- Copy the new level string generated by the script
- Paste the new level string back into your CCLocalLevels.dat.xml.
- Re-encrypt the level string using the GD Savefile Editor
- Drag the re-encrypted CCLocalsLevels.dat back into your GeometryDash folder.
In the future, I may try to make this more user friendly, possibly automatically decrypting and encrypting your save file and automatically retrieving your top level.
This script will not work unless vanilla mode is disabled, due to vanilla mode not logging player X. Unfortunately, this can break a lot of levels. To increase accuracy, ensure frame fixes is disabled! Dual portals can also break option trigger converted macros. In the future, I may create a fork of XDBot that logs Player X with vanilla mode enabled.
This only works with Player 1 macros for the time being