Vault

Vault

7M Downloads

Converting from iConomy6 to EssentialsEco

MindlessKyle opened this issue ยท 5 comments

commented

I'm trying to convert all my flatfile (.mini) iConomy data to EssentialsEco. I stumbled upon the thread where you talk about vault's converter. I used the command /vault-convert iconomy6 EssentialsEconomy. After deleting the Essentials player data and running the command, everything seems to work fine but checking afterwards all the data values are doubled. Instead of $30 it's $60. Instead of $150 it's $300, etc. Do you have any idea what could be causing this? I'm using the most recent Vault, iCon 7.0 (the april fools one) and CraftBukkit v1.2.5-R5.0.

Oh and why do you have it so it won't overwrite any essentials data? Having to delete all Essentials player data is kinda terrible. I might just try out CraftConomy.

commented

the idea is to always leave the original data in-case the transfer didn't work.
Did you accidentally run the command twice? also I'm not sure that it will work with EssentialsEco due to how essentials handles it's economy.

You may need to force essentials to ignore any other economy and use it's own if there's an option for that.

commented

Well the way it is now, since it won't overwrite the essentials data you have to delete it if you want to transfer the economy data. Since essentials stores it's economy data in the player files with all the other data for that player (/homes, last login place, bans, etc) you lose all that extra data when you transfer. I just backed up the data before hand.

No I'm 100% positive I did not run the command twice, since I had to delete the essentials data every time before I ran the command there was no way that it could count it twice.

I used CraftConomy's iCon converter and am now happily using CraftConomy. I wish I could of just used EssentialsEco for simplicity but the data doubled every time.

commented

@MindlessKyle - I'm fairly certain the conversion wont work with Essentials. I'll look into it, but with how it handles the data I'm fairly certain it's going to just add it onto whatever the original value was due to how Essentials also hooks economy plugins outside of itself. The way vault handles the conversion is incredibly simplistic. Get amount from econ1, check if account exists in econ2, if not create a new account and deposit the amount in.. There's very little room for logical error here, which makes me think that essentials is also adding in data from iConomy when the deposit is made.

The conversion utility purposely doesn't overwrite data in case there was some good data still, I might alter it so it just overwrites though.

commented

I can't see any coding problems in how vault does the conversion, It seems more likely this is an issue due to how Essentials registers it's economies, as it uses a priority system similar to vault's registration. I imagine what is happening is Vault pulls the data from iConomy and then attempts to shove it back into Essentials, but essentials tells it to propogate into iConomy, since you have iconomy loaded. I don't think there's really anyway for me to get around this issue, and will just need to tell people that they can't convert to/from essentials eco using Vault.

commented

Okay, thank you for checking. :)