Multiverse-Inventories icon indicating copy to clipboard operation
Multiverse-Inventories copied to clipboard

Import/Export player.dat Files

Open jessedufrene opened this issue 13 years ago • 15 comments

I am redoing my entire server and unfortunately i have run into a wall. In the first server, i had multiverse core and portals. i had the main worlds (world, world_nether, world_the_end) and i had a protected plot world as a safe haven for the members' important belongings. (using multiverse core and portals, and plotme for plots). the inventories were automatically linked together (and stored in \world\players\usernamehere.dat) so i didnt need mv inventories for what i was doing.

now i have a brand new server. i redid almost everything from the ground up. but i took the main worlds from the 1st server and put em in the new one as multiverse worlds. because of the setup i want on my new server, i now need the mvinventory. and the problem is i cant do anything to get my members' inventories on to the multiverse world (that used to be the main world on the 1st server) without having it on the main world as well (i want it to be 2 different inventories). i have tried several things but it just comes down to figuring out how to import or convert my players' vanilla inventories to mvinventories.

the inventories i need to convert to are located at \plugins\Multiverse-Inventories\group\my2ndgroup\usernamehere.yml

(1st server inventories are .dat while 2nd server with MVInv is .yml, which i need to convert to)

i have all the config files set up correctly and working the way i want it. the inventories are separated between the worlds successfully, but i still need the old inventories from the first server on only the multiverse worlds.

sorry if this is long and repetitive, i did my best to explain things. thank you for any help you can give. :D

EDIT: i have experimented on this issue greatly and have concluded the only current way for me to convert the .dat files to .yml would either to 1) get my old members to join while the server is set up so the inventories are linked between worlds (so mvInv creates .yml files for them) or to 2) use a hacked client to log in as each member's username manually. both options are out of the question for me.

jessedufrene avatar Sep 18 '12 03:09 jessedufrene

I will accept this as a suggestion but I think it is unlikely that I will implement anything like this (assuming I revive this plugin at all).

dumptruckman avatar Jun 08 '17 13:06 dumptruckman

Please leave a thumbs up if you'd like to see an import function in MV Inv!

nicegamer7 avatar May 27 '20 06:05 nicegamer7

Please leave a thumbs up if you'd like to see an export function in MV Inv!

nicegamer7 avatar May 27 '20 06:05 nicegamer7

I guess I never did tell anyone... I almost finished an import function a long while ago, but never did finish it. I'm going to push the branch to GitHub later today so that anyone who wants to contribute can.

Maybe it'll motivate me to finish it 😝.

nicegamer7 avatar Jan 23 '21 15:01 nicegamer7

Turns out I pushed it a while ago... but I did have some local changes that weren't pushed. I rebased what I had locally and pushed it to GitHub, anyone who wants to contribute can let me know either here or on Discord.

edit: it's the vanilla_import branch.

nicegamer7 avatar Jan 23 '21 20:01 nicegamer7

How is this project going? I’d really love to see and export feature! Trying to switch from mutiverse and mutiverse inv to bunggecord as my server grows is turning out to be basically impossible. It would be really great if this was a thing! Please let me know how this is going!

Ryamonster10 avatar Oct 04 '21 02:10 Ryamonster10

I haven't started working on exporting, and I've made no progress on importing since my last comment. School is occupying pretty much all of my time, and the little free time I do have, I like to use on other things. I don't envision this getting done any time soon, not until December at least (unless someone else does it). But when I'm done this semester, I will most likely work on this and try to get it done.

nicegamer7 avatar Oct 04 '21 21:10 nicegamer7

I made a script that can export. Might that help you after your school semester is over?

Ryamonster10 avatar Oct 05 '21 19:10 Ryamonster10

It just takes in the json and exports the nbt. It can also import

Ryamonster10 avatar Oct 05 '21 19:10 Ryamonster10

Sure, why not. Join our Discord and send them to me on there. Thanks.

nicegamer7 avatar Oct 09 '21 05:10 nicegamer7

@Ryamonster10 Can you please upload your script somewhere? I'm trying to switch to Velocity. Thanks.

HyperKiko avatar Mar 27 '22 15:03 HyperKiko

Someone @ me when this is possible and tell me how to do it. I have been researching and can't find anything

MattTelles-7 avatar Jan 18 '24 17:01 MattTelles-7

@MattTelles-7 Just created my own converter in few days because could not find a ready-made solution. Just put link here if it's allowed. https://github.com/AnTi3z/nbt2MVI

AnTi3z avatar Feb 01 '24 14:02 AnTi3z

@MattTelles-7 Just created my own converter in few days because could not find a ready-made solution. Just put link here if it's allowed. https://github.com/AnTi3z/nbt2MVI

This is awesome thank you @AnTi3z

MattTelles-7 avatar Feb 01 '24 16:02 MattTelles-7