[INACTIVE]

Discussion in 'Inactive/Unsupported Plugins' started by Protected, Mar 10, 2011.

  1. DISCONTINUED
     
    Nox13last, Noppoly, zeeZ and 4 others like this.
  2. Offline

    Hanswalter123

    pls don't cry Nox13last
     
    Nox13last likes this.
  3. lrn2spellfag waaaaa

    Don't worry about me. I'll get through to the uninitiate and desperate somehow probably with a lot of alcohol and/or patience. Worry about those people.
     
  4. Offline

    marvinbek

    I can't turn the song on... Says "PLAYING" on the sign and all that, but i can hear nothing. Nothing in the console either...
     
  5. Offline

    aspire1337

    yes.
    same for me. :x
     
  6. Offline

    nintendoto

    It's probably just because it hasn't been updated yet.
     
  7. Offline

    Shalobee

    this is the output i get when i try it in 1060:
    Code:
    00:02:58 [SEVERE] Exception in thread "Timer-1"
    00:02:58 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.block.NoteBlock.setNote(B)V
    00:02:58 [SEVERE]       at net.myshelter.minecraft.midibanks.SongInstance.nextTick(SongInstance.java:125)
    00:02:58 [SEVERE]       at net.myshelter.minecraft.midibanks.MidiPlayerStep.run(MidiPlayerStep.java:15)
    00:02:58 [SEVERE]       at java.util.TimerThread.mainLoop(Timer.java:512)
    00:02:58 [SEVERE]       at java.util.TimerThread.run(Timer.java:462)
    
    are there any java gurus out there that can fix this? Dunno if he has a source posted somewhere but it would be epic to get another dev to take this over. Its the best clientmod-free music solution in my opinion. A little hard to setup and get right for each song but over all an awesome plugin.
     
  8. Offline

    OnlyTrueCulture

    I dont know what i did wrong, but this weirdly doesnt work for me! :(
    I do rightclick on the sign, it means "PLAYING" but not even one of the note block reacts...

    Whats wrong?
    I tried with the mountainking file.

    Sorry for my bad english


    //Edit Log says this:

    Exception in thread "Timer-0" 2011-09-01 01:26:45 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.block.NoteBlock.setNote(B)V 2011-09-01 01:26:45 [SEVERE] at net.myshelter.minecraft.midibanks.SongInstance.nextTick(SongInstance.java:125) 2011-09-01 01:26:45 [SEVERE] at net.myshelter.minecraft.midibanks.MidiPlayerStep.run(MidiPlayerStep.java:15) 2011-09-01 01:26:45 [SEVERE] at java.util.TimerThread.mainLoop(Timer.java:555) 2011-09-01 01:26:45 [SEVERE] at java.util.TimerThread.run(Timer.java:505)
     
  9. All of you. The answer is patently obvious.

    Read the thread! Pay attention!

    MidiBanks hasn't been updated yet. It is currently broken. The author hasn't signed into the Bukkit forums since this update happened.
    Be patient. Either wait for @Protected to come back, or... Well... No, I suppose that's the only solution.
     
  10. Offline

    The PC Tech Guy

    Or until someone forks it...
     
  11. That works, too.
     
    The PC Tech Guy likes this.
  12. Offline

    The PC Tech Guy

    He was here August 21st... I wish he would at least tell us something. Otherwise, I may have to look for another plugin........... or wait for a fork or fix...
     
  13. Offline

    jwnordquist

    Nox13last, nintendoto and zhuowei like this.
  14. Offline

    jwnordquist

    ^works with the latest craft bukkit also
     
  15. Offline

    jwnordquist

    works on bukkit 1150 to, but the real thanks gos to zhuowei, he was the one who updated it, i just publicized what would otherwise be a private update.
     
  16. Offline

    Evangon

    Code:
    package net.myshelter.minecraft.midibanks;
    import java.util.ArrayList;
    import javax.sound.midi.MidiEvent;
    import javax.sound.midi.MidiMessage;
    import javax.sound.midi.Track;
    import org.bukkit.Material;
    import org.bukkit.block.Block;
    import org.bukkit.block.BlockFace;
    import org.bukkit.block.NoteBlock;
    public class SongInstance
    {
      private MidiBanks plugin;
      public org.bukkit.block.Sign midiSign;
      private Track music;
      protected int track = 0;
      protected double resolution = 1.0D;
      protected double tempoCoef = 1.0D;
      protected boolean chanCollapse = false;
      protected boolean shift = false;
      protected boolean loop = false;
      protected boolean display = false;
      protected boolean remRepeated = false;
      protected String chans = "l";
      protected int window = -1;
      protected boolean repOctave = false;
      protected Integer instrument = Integer.valueOf(-1);
      private double tick = 0.0D;
      private int event = 0;
      private int count = 0;
      private int[] latestNote;
      private boolean paused = false;
      int sx = 0; int sz = 0;
      Block firstBlock;
      protected SongInstance(MidiBanks plugin, org.bukkit.block.Sign midiSign, Track music, String ochans)
      {
        this.plugin = plugin;
        this.midiSign = midiSign;
        this.music = music;
        BlockFace direction = ((org.bukkit.material.Sign)midiSign.getData()).getFacing();
        if (direction == BlockFace.NORTH) this.sx = 1;
        if (direction == BlockFace.SOUTH) this.sx = -1;
        if (direction == BlockFace.EAST) this.sz = 1;
        if (direction == BlockFace.WEST) this.sz = -1;
        this.firstBlock = midiSign.getBlock().getRelative(this.sx * 2, 0, this.sz * 2);
        this.latestNote = new int[16];
        for (int i = 0; i < this.latestNote.length; i++) this.latestNote[i] = -1;
        if (ochans != null) {
          this.chans = "";
          for (int i = 0; i < ochans.length(); i++) {
            if (ochans.charAt(i) == 'l') this.chans += "0123456789abcdef"; else
              this.chans += ochans.charAt(i);
            if ((ochans.charAt(i) == 's') || (ochans.charAt(i) == 'm')) {
              plugin.pinHandler.outputPin(midiSign.getBlock().getRelative(this.sx * (this.chans.length() + 1), 0, this.sz * (this.chans.length() + 1)), SongEvent.START);
            }
          }
          this.chans = this.chans.substring(0, 32 < this.chans.length() ? 32 : this.chans.length());
        }
      }
      protected void nextTick() {
        if (this.paused) return;
        this.tick += this.resolution * this.tempoCoef;
        if (this.tick >= this.music.ticks()) { over(); return; }
        int lcount = 0;
        int keyNote = 0;
        if (this.window > -1) keyNote = -6 + 12 * this.window;
        for (; (this.event < this.music.size() - 1) && (this.music.get(this.event).getTick() <= this.tick); this.event += 1) {
          if (this.music.get(this.event).getMessage().getStatus() >> 4 != 9)
            continue;
          ArrayList relBlocks = new ArrayList();
          int channel = 0;
          if (this.chanCollapse) { relBlocks.add(this.firstBlock);
          } else {
            channel = this.music.get(this.event).getMessage().getStatus() & 0xF;
            for (int i = 0; i < this.chans.length(); i++) {
              String si = String.valueOf(this.chans.charAt(i));
              if ((si.equals(Integer.toHexString(channel))) || (si.equals("o")))
                relBlocks.add(this.midiSign.getBlock().getRelative(this.sx * (i + 2), 0, this.sz * (i + 2)));
              if (si.equals("n"))
                this.plugin.pinHandler.outputPin(this.midiSign.getBlock().getRelative(this.sx * (i + 2), 0, this.sz * (i + 2)), SongEvent.NOTE);
            }
          }
          if (relBlocks.size() <= 0)
            continue;
          this.count += 1; lcount++;
          if (this.display) {
            this.midiSign.setLine(0, String.valueOf(this.count));
            this.midiSign.update();
          }
          int midiNote = this.music.get(this.event).getMessage().getMessage()[1];
          if (this.remRepeated) {
            if (this.latestNote[channel] != midiNote)
              this.latestNote[channel] = midiNote;
          }
          else
          {
            Integer iaux;
            Integer iaux;
            if (this.window < 0) {
              iaux = Integer.valueOf((midiNote + (this.shift ? 6 : -6)) % 24);
            }
            else
            {
              Integer iaux;
              if ((midiNote >= keyNote) && (midiNote < keyNote + 24)) { iaux = Integer.valueOf(midiNote - keyNote);
              }
              else
              {
                Integer iaux;
                if ((this.repOctave) && (midiNote < keyNote)) { iaux = Integer.valueOf((midiNote - 6) % 12);
                }
                else
                {
                  Integer iaux;
                  if ((this.repOctave) && (midiNote >= keyNote + 24)) iaux = Integer.valueOf(12 + (midiNote + 6) % 12); else
                    iaux = Integer.valueOf(-1);
                }
              }
            }
            if (iaux.intValue() < 0)
              continue;
            for (Block relBlock : relBlocks) {
              if ((relBlock == null) || (relBlock.getType() != Material.NOTE_BLOCK)) continue;
              try {
                NoteBlock nb = (NoteBlock)relBlock.getState();
                if (this.instrument.intValue() > -1) { nb.play(this.instrument.byteValue(), iaux.byteValue());
                } else {
                  nb.setNote(iaux.byteValue());
                  nb.update();
                  nb.play();
                }
              } catch (NullPointerException localNullPointerException) {
              }
            }
          }
        }
      }
      private void over() {
        boolean loopnow = false; boolean theend = true;
        if ((this.loop) && (this.count > 0))
          loopnow = true;
        for (SongInstance si : this.plugin.songs)
          if ((si != this) && (si.midiSign.getBlock().getLocation() == this.midiSign.getBlock().getLocation())) {
            loopnow = false;
            theend = false;
          }
        if (loopnow)
          this.plugin.learnMusic(this.midiSign);
        if (theend) {
          for (int i = 0; i < this.chans.length(); i++)
            if ((this.chans.charAt(i) == 'z') || (this.chans.charAt(i) == 'm'))
              this.plugin.pinHandler.outputPin(this.midiSign.getBlock().getRelative(this.sx * (i + 2), 0, this.sz * (i + 2)), SongEvent.END);
        }
        this.plugin.songs.remove(this);
      }
      public boolean toggle() {
        if (this.paused) {
          this.midiSign.setLine(0, "PLAYING");
          this.midiSign.update();
          return this.paused = 0;
        }
        this.midiSign.setLine(0, "PAUSED");
        this.midiSign.update();
        return this.paused = 1;
      }
    }
    
    If someone would be kind to fix this for 1185 :D
    I'm sorry if this is against your rules, but hey. I'm trying to get it fixed :'(
     
  17. Offline

    Spencer Sharkey

    It seems to work in 1185 for me...? What are you doing to break it?
     
  18. It works for me, also on 1185.
    If you think it's broken, you should explain why. Console pukes are a very good place to start if you get those.
     
  19. Offline

    Evangon

    It can't pass an event of setNote for me.
    I'm trying to debug it.
     
  20. Offline

    kkamil4sz

    Is it still work ? It doesnt work for me :(

    I have newest craft bukkit 1240
     
  21. Works for me. Use the forked version on this page.
     
  22. Offline

    devhook32

    Hello. Since the 1.8.1 update, i've been getting a strange console output when attempting to play a midi. It goes;

    Code:
    22:08:06 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.block.NoteBlock.setNot
    e(B)V
    22:08:06 [SEVERE]       at net.myshelter.minecraft.midibanks.SongInstance.nextTi
    ck(SongInstance.java:125)
    22:08:06 [SEVERE]       at net.myshelter.minecraft.midibanks.MidiPlayerStep.run(
    MidiPlayerStep.java:15)
    22:08:06 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    22:08:06 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    
    I can specify details if necessary. I have updated to the latest stable release.
     
  23. Offline

    Evangon

    Like I said, it's the new SetNote function screweing everything up for this.
     
  24. Offline

    alex3223223

    Doesn't work on 1.8.1 anymore :'( Do you have an update or something?
     
  25. I'm not the guy who made it, and the author hasn't been around in weeks.
    However, I can confirm that my MidiBanks works as of version 1337. Have you tried the forked MB? It was linked a while back. In fact, the post you replied to was a reply to that same link.

    In any case, if you have an error, you need to be specific. Submit your Java puke and see if any gurus around here know what the problem is.

    Not me, though.
     
  26. Offline

    alex3223223

    Well i tried the one that he posted but it didn't work.. it had an error....

    13:23:28 [INFO] Essentials: Using config based permissions. Enable superperms in config.
    2011-10-27 13:23:28 [INFO] Loaded EssentialsChat build 2.6.2 by: essentials team
    2011-10-27 13:23:28 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
    2011-10-27 13:23:28 [INFO] Loaded EssentialsProtect build 2.6.2 by: essentials team
    2011-10-27 13:23:28 [INFO] Loaded EssentialsSpawn build 2.6.2 by: essentials team
    2011-10-27 13:23:28 [SEVERE] Error occurred while enabling MidiBanks v2.0b_1060test (Is it up to date?): tried to access method net.myshelter.minecraft.midibanks.MidiBanksOutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.midibanks.MidiBanks
    java.lang.IllegalAccessError: tried to access method net.myshelter.minecraft.midibanks.MidiBanksOutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.midibanks.MidiBanks
    at net.myshelter.minecraft.midibanks.MidiBanks.onEnable(MidiBanks.java:110)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-10-27 13:23:28 [SEVERE] Error occurred while enabling MidiBanks v2.0b_1060test (Is it up to date?): tried to access method net.myshelter.minecraft.midibanks.MidiBanksOutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.midibanks.MidiBanks
    java.lang.IllegalAccessError: tried to access method net.myshelter.minecraft.midibanks.MidiBanksOutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.midibanks.MidiBanks
    at net.myshelter.minecraft.midibanks.MidiBanks.onEnable(MidiBanks.java:110)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    And the original one just said playing and nothing came out...

    and i just tried 1337 and it didn't work :/ if there is not much trouble could u upload the entire file from your minecraft server except your world?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  27. What 'entire file'?
    Nothing worth doing, bub. The contents of my plugin folder alone is in triple digits.

    Load your server, and enter plugins into the console. Post what it churns out here. Perhaps you have a plugin confliction, or something.
     
  28. Offline

    alex3223223

    161 recipes
    17 achievements
    22:55:13 [INFO] Starting minecraft server version Beta 1.8.1
    22:55:13 [WARNING] **** NOT ENOUGH RAM!
    22:55:13 [WARNING] To start the server with more ram, launch it as "java -Xmx102
    4M -Xms1024M -jar minecraft_server.jar"
    22:55:13 [INFO] Loading properties
    22:55:13 [INFO] Starting Minecraft server on 46.4.226.214:123
    22:55:13 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131
    -g86b7fa8-b1337jnks (MC: 1.8.1)
    22:55:13 [INFO] Preparing level "world1"
    22:55:13 [INFO] Default game type: 0
    22:55:13 [INFO] Preparing start region for level 0 (Seed: 6682429639122208710)
    22:55:14 [INFO] Preparing spawn area: 89%
    22:55:14 [INFO] [MidiBanks] Enabled! Version is 2.0b_1060test
    22:55:14 [INFO] [MidiBanks] Auto-starting A banks in currently loaded chunks...
    22:55:14 [INFO] [MidiBanks] Done; found 0 A banks.
    22:55:14 [INFO] [PermissionsAttributeProvider] Enabled!
    22:55:14 [INFO] Server permissions file permissions.yml is empty, ignoring it
    22:55:14 [INFO] Done (0.134s)! For help, type "help" or "?"
    22:55:14 [INFO] [PermissionsAttributeProvider] SETUP ABORTED: Permissions not fo
    und.
    22:55:14 [INFO] [MidiBanks] Disabled.
    22:55:14 [INFO] [PermissionsAttributeProvider] Disabled...
    AND THIS LOG IS FROM THE ORIGINAL MIDIBANKS


    23:14:51 [INFO] Starting minecraft server version Beta 1.8.1
    23:14:51 [INFO] Loading properties
    23:14:51 [INFO] Starting Minecraft server on 46.4.226.214:212
    23:14:51 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131
    -g86b7fa8-b1337jnks (MC: 1.8.1)
    23:14:52 [INFO] MLog clients using java 1.4+ standard logging.
    23:14:52 [INFO] Preparing level "world1"
    23:14:52 [INFO] Default game type: 0
    23:14:53 [INFO] Preparing start region for level 0 (Seed: 8636648236521589785)
    23:14:54 [INFO] Preparing spawn area: 56%
    23:14:54 [INFO] BlockThatTNT v1.2.1 Enabled sucessfully.
    23:14:54 [INFO] CustomMusic version 0.8c is enabled!
    23:14:55 [INFO] Loaded Essentials build 2.6.2 by: Zenexer, ementalo, Aelux, Bret
    tflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits
    23:14:55 [INFO] Essentials: Using config based permissions. Enable superperms in
    config.
    23:14:55 [INFO] Loaded EssentialsChat build 2.6.2 by: essentials team
    23:14:55 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? tr
    ue; trace: 10]
    23:14:55 [INFO] Loaded EssentialsProtect build 2.6.2 by: essentials team
    23:14:55 [INFO] Loaded EssentialsSpawn build 2.6.2 by: essentials team
    23:14:55 [SEVERE] Error occurred while enabling MidiBanks v2.0b_1060test (Is it
    up to date?): tried to access method net.myshelter.minecraft.midibanks.MidiBanks
    OutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.midibanks.MidiBan
    ks
    java.lang.IllegalAccessError: tried to access method net.myshelter.minecraft.mid
    ibanks.MidiBanksOutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.m
    idibanks.MidiBanks
    at net.myshelter.minecraft.midibanks.MidiBanks.onEnable(MidiBanks.java:1
    10)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    23:14:55 [SEVERE] Error occurred while enabling MidiBanks v2.0b_1060test (Is it
    up to date?): tried to access method net.myshelter.minecraft.midibanks.MidiBanks
    OutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.midibanks.MidiBan
    ks
    java.lang.IllegalAccessError: tried to access method net.myshelter.minecraft.mid
    ibanks.MidiBanksOutputPinHandler.<init>(Z)V from class net.myshelter.minecraft.m
    idibanks.MidiBanks
    at net.myshelter.minecraft.midibanks.MidiBanks.onEnable(MidiBanks.java:1
    10)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  29. Offline

    pawes2000

    When I RIGHT-CLICK the sign i've got this error:
    16:23:05 [SEVERE] Exception in thread "Timer-1"
    16:23:05 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.block.NoteBlock.setNote(B)V
    16:23:05 [SEVERE] at net.myshelter.minecraft.midibanks.SongInstance.nextTick(SongInstance.java:125)
    16:23:05 [SEVERE] at net.myshelter.minecraft.midibanks.MidiPlayerStep.run(MidiPlayerStep.java:15)
    16:23:05 [SEVERE] at java.util.TimerThread.mainLoop(Unknown Source)
    16:23:05 [SEVERE] at java.util.TimerThread.run(Unknown Source)
     
  30. Offline

    Yandols

    Hey, can you add support for RB 1337? I really miss this plugin, it was really cool when i used it back in older versions.
     
    Lilplayah101 likes this.

Share This Page