Inactive [MECH] MultiInv V2.4.1 - Per World Inventories [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Pluckerpluck, Feb 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Revenger

    Worlds folder and player files under the worlds seems the safest way also it will allow people to bridge of worlds to other servers etc and still allow them to keep there inventories for that world.

    Mby would have a option to toggle between that single file and a file for each world?
     
  2. Offline

    Celtic Minstrel

    Oh, by the way, I remember hearing that this is incompatible with Backpack; maybe look at fixing that? I don't need it myself, but some people do.
     
  3. Offline

    rockNme2349

    I would love having a folder for each world, and a file for each player. As it stands right now there is no way to restore individual inventories from a backup in case there is some error (with some other plugin) that causes them to lose their inventories unfairly.
     
  4. Offline

    Martin-zz

    Hey! love the plugin! It's is an essential part of my little server. Is the plugin currently compatible with 733? or is that coming in an update?
     
  5. Offline

    Pluckerpluck

    It should be compatible... only problem people seem to get is if they re-spawn in a different world than the one they died in.

    Update: Update is a bit delayed from a problem with bukkit itself (I think) working on it... was adding transference of health and bukkit said no :(
     
  6. Offline

    CptSausage

    I did't read the whole thread, but can't you just move the ../WorldName/players/playerName.dat around? Isn't it the data where health, armor and inventory is saved?
     
  7. Offline

    minecityweb

    Per world inventorys do not work.
     
  8. Offline

    Pluckerpluck

    ... Any particular errors? Does it say it loaded when you start the server? What craftbukkit build are you using?
     
  9. Offline

    Psycho Robot

    I assume health transference will work like inventories, in that you can configure which worlds share health?

    Anyways, there's one thing I'd like to see from this, and that is an admin mode, that's toggled via some in-game command, where you can keep the same inventory when you go to a new world, overriding the switch. It could even use an admin-mode inventory that's unique from all other inventories, and only activated when admin mode is.
     
  10. Offline

    Samkio

    Hmm having trouble with this.
    It works and all but not the MultiWorlds inv.
    This is my
    shares.txt
    Code:
    creative, nether, survival, creative2
    Fallout
    Build: 733.
    Multiinv: 1.5.2

    I tried 1.5.0 but that didn't work at all. :p
    No errors on the console either. :S
     
  11. Offline

    Pluckerpluck

    Right.... I'll push harder to get my new version working (how to miss out on health for now because it's a problem with bukkit internally... I could quite easily hack around it but I'd rather try and get it fixed at the source of the problem).

    Also what's the problem exactly? No shares (i.e. every world individual) or just nothing happens...
     
  12. Offline

    Samkio

    @Pluckerpluck
    Thanks
    Every world is individual. I tried multiple combinations but to no avail.
     
  13. Offline

    Imitation

    I think separate player files per world is definitely the way to go. That way you are the most compatible and people can easily come and go from this plugin.
     
  14. Offline

    Pluckerpluck

    Erm... how important is it that you can get the inventories onto the new system that I'm making.... I just realized I changed some internal code so I'd have to create another jar file for you to run which will extract the inventories and get them in the form that the new version will understand.
     
  15. Offline

    Imitation

    For my server not a huge deal as we are only using a single world atm. We were going to rush in and setup but then we decided to wait for Permissions 3.0 with fixed Multiworld support (negating for example) and for MultiInv with the new format :)
     
  16. Offline

    Gallion

    It may or may not have to do with the way the servers, files and plugin are managed at multiplay. I'm going to post a thread there to see if anyone is having the same problem. Or course, it causes MultiInv not to save inventories at all.

    Code:
    2011-04-28 11:28:39 [SEVERE] Could not pass event PLAYER_TELEPORT to MultiInv
    java.lang.NullPointerException
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.itemStackToObject(MultiInvPlayerData.java:21)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.inventorySlotsToObject(MultiInvPlayerData.java:49)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.saveInventory(MultiInvPlayerData.java:62)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.storeWorldInventory(MultiInvPlayerData.java:98)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerListener.onPlayerTeleport(MultiInvPlayerListener.java:46)
        at org.bukkit.plugin.java.JavaPluginLoader$8.execute(JavaPluginLoader.java:248)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.NetServerHandler.teleport(NetServerHandler.java:352)
        at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:172)
        at com.onarandombox.Rigby.MultiVerse.MVCommands.MVTP(MVCommands.java:617)
        at com.onarandombox.Rigby.MultiVerse.MultiVerse.onCommand(MultiVerse.java:248)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
    -------------------------------
    2011-04-28 11:31:44 [SEVERE] Could not pass event PLAYER_QUIT to MultiInv
    java.lang.NullPointerException
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.itemStackToObject(MultiInvPlayerData.java:21)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.inventorySlotsToObject(MultiInvPlayerData.java:49)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.saveInventory(MultiInvPlayerData.java:62)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.storeWorldInventory(MultiInvPlayerData.java:98)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerListener.onPlayerQuit(MultiInvPlayerListener.java:32)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:212)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:115)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:574)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:199)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  17. Offline

    Psycho Robot

    Is it possible for you to write a script/program/patcher/whatever that will convert the inventory data from the old format into the new format? That sounds like the best solution to me.
     
  18. Offline

    Pluckerpluck

    Erm... that's an error that I got on older version of the plugin... Which version are you trying to use and which CB do you have?

    Use /version <plugin> in game to get the version of the <plugin>

    e.g. /version MultiInv

    I shall do my best... from what I know I should be free tomorrow. So I'll finish up the new version then start working on a script to convert it... it shouldn't be too hard.

    Being added:
    • /MultiInv ignore <name> (defaults to user) causes this person to not change inventories... ever.
      On removal I'm unsure what to do... inventory becomes the inventory of which ever world you are in? Or the inventory that was originally loaded with that world is reverted back? (Plus if you want to change the word ignore to someone else, ask now)
    • Adding config file to turn health transfer on/off (currently same as inventory shares) though that won't actually work... however it should automatically start working when bukkit fixes the problem and if I don't see any solutions I will hack around the problem
    • Adding cross-shared inventories. Share a world between two/more other worlds. So you get the inventory in that world of whichever world you enter from. (entering from a non shared world opens a separate inventory)
    • Erm... last minute thought.... I may add an admin mode like suggested with a completely separate inventory that's the same over all worlds.
    • Oh, and world folders with separate files for each player.
    Also, config will allow permanent ignores.
     
    jasonznack likes this.
  19. Offline

    Yggy

    Just thought I would let you know that the system as it stands right now works great with MultiVerse and Bukkit's latest (as of this posting). Also have Essentials and WorldEdit/Guard and LWC, along with a few other plug-ins running. No problems whatsoever. Perfect for my multi-Survival Worlds portals.
     
  20. Offline

    zeeveener

    What does this error mean and can you fix it please? I believe this is what is stopping the plugin from working as there are no MultiInv's... Only one.

    V.1.50
    The company hosting the server hasn't upgraded yet. Would that be the cause?

    Code:
    [SEVERE] Could not pass event PLAYER_QUIT to MultiInv
    java.lang.NullPointerException
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.itemStackToObject(MultiInvPlayerData.java:21)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.inventorySlotsToObject(MultiInvPlayerData.java:49)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.saveInventory(MultiInvPlayerData.java:62)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerData.storeWorldInventory(MultiInvPlayerData.java:98)
        at uk.co.tggl.Pluckerpluck.MultiInv.MultiInvPlayerListener.onPlayerQuit(MultiInvPlayerListener.java:32)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:212)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:115)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:574)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:199)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  21. Offline

    Pluckerpluck

    Thanks for telling me. It really helps to know that it works for some people out there other than just on my server. I always wonder if half the people who download this are just quietly suffering.

    Yes, that's the error that bukkit added when they changed how inventories were returned.... Craftbukkit 651 was the first to change it I think.

    From then on you have to have a new version of MultiInv for it to work.
     
  22. Offline

    Gallion


    Thanks, Multiplay uses version 1.5.0. I notified them that they need to update. :)
     
  23. Offline

    Mook

    Working perfectly - Latest bukkit with multiverse and multiinv.
     
  24. Offline

    Jdbye

    It's pretty essential to all the players on my server, half the server would quit if everyone lost all their stuff.
     
  25. Offline

    ToitagL

    Bug report here, dunno if it's really useful as you're re-coding everything but, meh, why not ?

    On my test server, I have two worlds, which do not share their inv. Jumping from one to another give me the specific inv, everything is cool. But if I die in the secondary world, I'm teleported to the default one, and when I teleport back to the second one, my inventory is restaured, as if I didn't die. Then, my inv is also on the ground, where I died, allowing me to dump items...

    Using Multiverse, a dozen of other plugins, Factions and mcMMO. CB 733, MultiInv 1.5.2. Will try 740 :)

    I have no urge on using your plugin, as we have a lot of work to do before opening the world, but I wanted to let you know about this issue. Eagerly waiting the new release, no matter what :) Thanks for your work !
     
  26. Offline

    Revenger

    We removed essentials.spawn and remapped multiworlds mvspawn to /spawn on command helper that way each world has there own spawn and world well when players die.

    Also remove any warp home on death stuff if you are using multihomes etc.

    That way when each person dies in that world they just go back that worlds spawn and not the default one.
     
  27. Offline

    ToitagL

    Dang, just recalled that I left MyHome with 'tp-to-home-on-death : true'. Gonna try this, thanks for the tip.
     
  28. Offline

    Pluckerpluck

    I've been trying to fix that for a while now... it's quite an annoying bug. But yes, causing to spawn in the same world you die in stops the problem atm.

    And omg... I can see why people fall behind and delay their work. It's HARD to get everything done to a schedule when stupid problems keep cropping up.

    Also, drinking well into the night does not make for a good working condition the next day...

    But I'm staring at the code now. Inventories seem to be saving properly which is always a good sign. Just making sure shares work and I'm trying to ensure that installing the plugin doesn't force a reset of everyone's inventories.
     
  29. Offline

    ToitagL

    Yeah, solved my problem. Thanks ! :)
     
  30. Offline

    Waffletastic

    This isn't sharing inventory's for my server!

    My config:

    noobworld, battle, mobworld, wafflecraft
    arvina
     
Thread Status:
Not open for further replies.

Share This Page