Converting
NOTE: These scripts are made for Python 2. They will not work with Python 3.
CommandBook
To convert to RoyalCommands from CommandBook, please download this file. From the commandline (*nix systems), please do the following - please note that you should have Python installed before you do this.
python cmdbook_converter.py -h # Get help python cmdbook_converter.py -w <CommandBook warps file> # Convert a warps file python cmdbook_converter.py -H <CommandBook homes file> # Convert a homes file python cmdbook_converter.py -b <CommandBook bans file> # Convert a bans file
Good practices:
- Convert warps, then homes, then bans. If you convert bans before homes, it will break something.
Essentials
To convert from Essentials to RoyalCommands, please download this. Make sure to keep essentials_converter.py
and yaml
in the same directory when you convert. From the commandline (*nix systems), please do the following - please note that you should have Python installed before you do this.
python essentials_converter.py -u <userdata folder> # Converts userdata files
Good practices:
- Please note that if you decide to convert your userdata files in the same directory (bad idea), unless you rename Essentials' old userdata folder, nothing will convert. The converter will not convert old userdata to new userdata because where it's trying to save new userdata (userdata/name.yml) already exists. Rename Essentials' data folder to userdata_bak or something.
Also note:
- This converter is far from complete. The only userdata file I have received to base this converter on was very small. If you have an extensive userdata file, please send it my way so I can complete this converter.
- This converter does not handle warps or other data. If you have examples of such other data, please send it to me so I can include a converter for it.
AdminCmd
We need data for AdminCmd! Please contact us if you have sample data for us to use.
There seems to be a syntax error when using Python 3.3 when using the Essentials converter.
Line 21 execpt GetoptError, err:
It points at the comma.
EDIT: There seems to be a lot of errors in the code when using Python 3.3. I'm going through it and trying to correct the errors best I can (I don't know how to code in Python).
EDIT#2: Well, I fixed the essentials_converter.py but I got stuck when it said that the error.py file was not a correct import.
Could you PLEASE PLEASE update the links? I recently switched from crappy Essentais to this amazing plugin and my players are getting angry cause they cant get their homes! we have over 1,000 and i cant convert all by hand
Not sure why this wasn't updated here but wizzard posted this in response to a PM. Really hoping this can be quickly recoded. I don't see much benefit otherwise.
<<code WizardCM Jul 25, 2014 at 23:10 As stated in the comments of RoyalCommands, the converter was lost long ago. I have provided jkcclemens with some example userdata so he can rebuild the converter. We'll post in the comments of the RoyalCommands page when the converter is available again.>>
<</code>>