I am getting errors<<code console>>17:56:05... #20


  • New
  • Defect
  • Replied
Open
Assigned to desht_08
  • desht_08 created this issue Feb 7, 2012
    Owner

    I am getting errors

    17:56:05 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'sms'
     in plugin ScrollingMenuSign v1.1.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    86)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:777)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:737)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:725)
            at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7
    8)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.util.IllegalFormatFlagsException: Flags = '0'
            at java.util.Formatter$FormatSpecifier.checkText(Unknown Source)
            at java.util.Formatter$FormatSpecifier.<init>(Unknown Source)
            at java.util.Formatter.parse(Unknown Source)
            at java.util.Formatter.format(Unknown Source)
            at java.util.Formatter.format(Unknown Source)
            at java.lang.String.format(Unknown Source)
            at me.desht.scrollingmenusign.views.SMSSignView.buildSignText(SMSSignVie
    w.java:103)
            at me.desht.scrollingmenusign.views.SMSSignView.update(SMSSignView.java:
    82)
            at me.desht.scrollingmenusign.views.SMSSignView.addSignToMenu(SMSSignVie
    w.java:203)
            at me.desht.scrollingmenusign.commands.AddViewCommand.execute(AddViewCom
    mand.java:75)
            at me.desht.scrollingmenusign.commands.CommandManager.dispatch(CommandMa
    nager.java:31)
            at me.desht.scrollingmenusign.ScrollingMenuSign.onCommand(ScrollingMenuS
    ign.java:140)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 12 more
    
  • desht_08 added the tags New Defect Feb 7, 2012
  • desht_08 posted a comment Feb 7, 2012

    Thanks for the report. I have some ideas about what the problem is, but I will need to see your plugins/ScrollingMenuSign/config.yml as well as the menu file for the menu you're having trouble with (in plugins/ScrollingMenuSign/data/menus). If it's easier, feel free to zip up the whole of plugins/ScrollingMenuSign.

  • desht_08 removed a tag Accepted Feb 7, 2012
  • desht_08 added a tag Waiting Feb 7, 2012
  • _ForgeUser6975652 posted a comment Feb 7, 2012

    ok so, the signs dont show what is says it should in the tutorial. Upon loading it comes up with

    19:31:58 [WARNING] [ScrollingMenuSign]: Caught java.util.IllegalFormatFlagsExcep
    tion while loading view WarpHome-1
    19:31:58 [WARNING] [ScrollingMenuSign]:   Exception message: Flags = '0'
    19:31:58 [WARNING] [ScrollingMenuSign]: Caught me.desht.scrollingmenusign.SMSExc
    eption while loading view warps-1
    19:31:58 [WARNING] [ScrollingMenuSign]:   Exception message: No such menu 'warps
    '.
    

    idk what i did with the other one but i deleted it ingame and it didnt delete the thing linked to it.

    config

    sms:
      menuitem_separator: '|'
      actions:
        leftclick:
          normal: execute
          sneak: none
        wheeldown:
          normal: scrolldown
          sneak: scrolldown
        wheelup:
          normal: scrollup
          sneak: scrollup
        rightclick:
          normal: scrolldown
          sneak: scrollup
        spout:
          execute: key_return
          down: key_down
          up: key_up
      autosave: true
      no_explosions: true
      no_physics: true
      no_destroy_signs: true
      item_prefix:
        selected: '%6'
        not_selected: '%0'
      item_justify: left
      ignore_view_ownership: true
      elevation:
        nodes: []
        grant_op: false
      spout:
        double_click: false
        list_alpha: 0.5
        list_background: ccc072
        show_command_text: true
      persistent_user_vars: false
      resource_base_url: ''
      log_commands: true
      command_log_file: ''
    

    All of the menus appear like this but with different names

    usesRemaining: {}
    title: Home_Warps
    autosort: false
    items: []
    defaultCommand: ''
    name: HomeWarp
    owner: evil_dan2wik
    

    I tried both of the R3 versions with no success. 19:43:07 [INFO] Plugins: MagicCarpet, MobCatcher, WorldEdit, BookWorm, BlockHat, DragRod, Vault, Quarantine, MobDisguise, Essentials, SignColours, MobRider, Scr ollingMenuSign, EssentialsProtect, MCCasino, EssentialsSpawn, EssentialsChat

  • _ForgeUser6975652 removed a tag Waiting Feb 7, 2012
  • _ForgeUser6975652 added a tag Replied Feb 7, 2012
  • desht_08 posted a comment Feb 7, 2012

    @dan2wik: Go

    OK, thanks - I can see exactly what the problem is: the "%" signs you've put in the item_prefix.selected and item_prefix.not_selected config settings. Those confuse the Java formatter.

    Do you mean to use colour codes there? In that case use "&6" and "&0". If you really need to use "%" signs, you can get a literal percent sign in with a double %, e.g. "%%6".

    I will get a fix for this exception into the next SMS release, anyway.

    Let me know if this solves your problem...

  • _ForgeUser6975652 posted a comment Feb 7, 2012

    hmm, that wasnt meant to be a percentage sign, it was meant to be the raw sign color code... ill use & like you said.

  • _ForgeUser6975652 posted a comment Feb 7, 2012

    I have changed it and have erased the menus and views folder for a fresh start. i am about to try it.

  • _ForgeUser6975652 posted a comment Feb 7, 2012

    It works but i have to /sms sync WarpList to get the sign to show anything.

  • _ForgeUser6975652 posted a comment Feb 7, 2012

    Quick question, how do i make it run a command for a user who doesnt have perms to run it normally?

  • desht_08 posted a comment Feb 7, 2012

    @dan2wik: Go

    Running permission elevated commands is documented in Command Parser - see the section on Permission Elevation. Let me know if you have any questions.

    Now that you've done the /sms sync on the sign, it should continue to work fine. That's normal behaviour - it's how you connect new signs (or maps etc.) to existing menus.

  • _ForgeUser6975652 posted a comment Feb 7, 2012

    Can you fix the tutorial so it says you have to /sms sync for it to say anything because it just says to do /sms create [menu name] [title] while facing a sign and it shows it straight away.

  • _ForgeUser6975652 posted a comment Feb 8, 2012

    I still have issues, There is no error or info in the console other than what it usually says but ingame it says You do not have permission to run this command! but i am an op and i should be able to run all shouldnt I? btw i am trying to use the elevated permissions without success. @/<command> <args> and /@<command> <args> doesnt work at all.

  • desht_08 posted a comment Feb 9, 2012

    @dan2wik: Go

    1) You don't have to use /sms sync whenever you're creating a new menu. You use it if you want to add a new sign (or other type of view, e.g. map or spout view) to a menu you created earlier. I've added a new section to the tutorial called Adding a new Sign View which might clarify that.

    2) Without a lot more info, I can't really help with your elevation problem. "You do not have permission to run this command!" isn't an error message that SMS produces, so it's probably coming from the command you're trying to run. Can you send me your plugins/ScrollingMenuSign folder zipped up so I can have a look? There's an Attach button at the top right of this page where you can upload attachments to the ticket.


To post a comment, please login or register a new account.