[Chest-type block] SMP backend for Risugami's Shelf [Formatted]

Discussion in 'Archived: Plugin Requests' started by Keybounce, Apr 9, 2012.

  1. Offline

    Keybounce

    Plugin category: Storage block, similar to chest

    Suggested name: Shelf-smp

    What I want: An SMP backend for Shelf. Shelf is a chest-like storage block that lets you store 9 items and see what they are without having to open the chest.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed.

    When I'd like it by: Yesterday, though obviously it'll take a while before anyone more than a few takes notice of this post, I'll (NOT) keep bumping it. :)

    Similar plugin requests: None that I've seen. Well, I did request it in Risu's thread, but it doesn't look like it will happen.

    Devs who might be interested in this: No clue​
     
  2. Offline

    stefa168

  3. Offline

    Keybounce

    Sorry, Showcase doesn't do what I'm looking for.

    So let me be a little clearer: Shelf lets me put 9 different item stacks in a block, just like a chest lets me put 21 item stacks in a block. But I can see what 9 items are in it without having to open it up.

    The forum thread for it: [V1.2.5] Risugami's Mods - Everything Updated. - Minecraft Forum
     
  4. Offline

    mushroomhostage

    There is a CraftBukkit port of Risugami's Shelves mod, available from the MC Port Central forums. However it is only available for 1.1-R4 at the moment. You may try posting your request there asking for it to be updated.
     
  5. Offline

    Keybounce

    Thank you, requested there.
     
  6. Offline

    mushroomhostage

    Hey all, in case anyone is still looking for Risugami's Shelf for SMP on CraftBukkit I ended up updating it for 1.2.5 and Forge/ModLoader, available here: http://www.mcportcentral.co.za/index.php?topic=2310.0

    Note you'll (of course) need the client mod installed as well, but then it should work. Screenshot:

    [​IMG]
     
  7. Offline

    Keybounce

    So just a quickie --

    It looks like this new version requires forge for the client.

    I don't have forge, or modloader MP.

    Questions:
    1. Is this compatible client-side with the standard shelf mod?
    2. If not, is that an inherently unsolvable issue?
    3. Server side, are the files compatible? If I have a world with Risugami's SSP shelf, and I put that world up on a server, and use your SMP shelf, are the shelfs compatible with each other?
    4. Can I have a single configuration of the minecraft client with Risugami's SSP shelf, your SMP shelf, and have it work without problems if I'm playing single player on one world and multiplayer on a different world?
     
  8. Offline

    mushroomhostage

    I think it won't work, the client-side had to be modified to support SMP as well. Risugami's original SSP mod extends BaseMod, which comes from ModLoader, but the SMP port extends NetworkMod and implements IGuiHandler, which come from Forge and provide multiplayer capabilities. Something has to provide SMP since ModLoader by itself is only SSP. ModLoaderMp was another option, but now Forge has its own Forge ModLoader instead (which this port requires).

    Whether its possible to use the unmodified SSP version with a server backend.. interesting possibility, not sure if its possible or impossible. The main problem I believe is handling the GUIs. The client side does this:

    Code:
        public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
        {
            TileEntityShelf tileentityshelf = (TileEntityShelf)world.getBlockTileEntity(i, j, k);
            if (tileentityshelf == null || world.isRemote) {
                return true;
            }
            entityplayer.openGui(mod_Shelf.instance, mod_Shelf.shelfGuiId, world, i, j, k);
            return true;
        }
    
    ..meaning: if running on SSP, open the GUI ourselves, but if on SMP (world.isRemote), return immediately and let the server handle it. This allows for compatibility with both SSP and SMP. Risugami's original SSP-only version always opens the GUI client-side (using ModLoader.openGUI), so it may conflict with the server.

    Not tested, but I suspect so. However, you'll have to change the block ID to match (original uses 132, this port uses 180 by default for better compatibility with other mods). It can be changed in config/mod_Shelf.cfg, "ShelfID=180". Note that MCPC build 78 or greater is required for the config options to be read.

    No idea, but note that you can use the SMP port on both SSP and SMP :).
     

Share This Page