[INACTIVE][MISC] SignColours v0.3 - for allowing coloured text on signs [672]

Discussion in 'Inactive/Unsupported Plugins' started by Edward Hand, Feb 12, 2011.

  1. Offline

    Edward Hand

    SignColours v0.3

    This plugin allows all players on the server to add coloured text to signs. Simply use the # character followed by a hexidecimal digit (0-f) to give the rest of that line a colour.

    Instructions

    Colour codes are the same as chat message colours:
    [​IMG]
    using a # in a sign in any other circumstances will keep the # symbol

    As an example, adding the text to a sign:

    #4###WARNING###
    #6Land Mines
    so be #Ecareful
    (or #fdie#0)

    results in:

    [​IMG]

    (and as you can see it shows up quite well at night)

    Permissions

    To customise permissions, you can add any of the following to your permissions plugin config.yml (permissions subsection):

    #Allow user to use the colour yellow (e):
    - 'signColours.e'
    #Allow user to use all colours:
    - 'signColours.*'
    #To avoid offending anyone's sensibilities, American spelling works too (here for allowing red):
    - 'signColors.4'

    Permission Notes:
    • As many or as few colours can be added as desired
    • If someone without permission uses a hash-code, the hash-code will remain there unchanged
    • Anyone who can use any colour will automatically be allowed to use black too
    • In permission definitions, the hex digits must be lower case (a,b,c rather than A,B,C). Signs are not case sensitive, however
    • If the permissions plugin is not installed, colours are enabled for everyone
    Feature Summary
    • Allows players to easily add a variety of colours to their signs
    • Compatible with the Permissions plugin
    DOWNLOAD LINK:
    http://www.srcf.ucam.org/~eh392/minecraft/SignColours/SignColours0.3.zip
    (source code is included)

    Change log:
    version 0.1
    • Plugin Released
    version 0.2
    • Added Permissions plugin compatibility
    version 0.25
    • Compatibility bug-fix
    version 0.3
    • Major Bugfix (eliminating possibility of sign corruption)
     
  2. Offline

    Juze

    Thanks, my friend seemed to place the sign... change your thread title to v0.3? Also, that client mod worked quite fine.
     
  3. Offline

    Edward Hand

    Ah thanks. I'm glad you got it fixed.
     
  4. Offline

    Jdbye

    By the way, here's the FontRenderer.java fix:
    Line 161
    Change: for(; s.charAt(i1) == '\247' && s.length() > i1 + 1; i1 += 2)
    to: for(; s.charAt(i1) == '\247' && s.length() > i1 + 2; i1 += 2)
    Tested and no crashes with iChat or SignColours :)
    Maybe someone should report this bug to Notch...
     
  5. Offline

    Zenergyx3

    I accidentally put #5 in a sign... and now whenever that specific sign comes into render range it seems to crash Minecraft for that person. How can I remove that sign safely?
     
  6. Offline

    Edward Hand

    Install this mod on your client: http://www.srcf.ucam.org/~eh392/minecraft/SignColours/oz.tar.gz

    Version 0.3 of the plugin doesn't have this problem.
     
  7. Offline

    Juze

    @Edward Hand
    You still didn't rename your title. :( That's why people don't know about these updates and fixes.
     
  8. Offline

    Edward Hand

    there we go [​IMG]
     
  9. Offline

    Zenergyx3

  10. Offline

    Dr_Herbalist

    My map is massive, these signs are in a lot of places I cant find. any advice?
     
  11. Offline

    Edward Hand

    Are you saying you have corrupt signs everywhere? It's not like all coloured signs were corrupt in the previous versions - only in the very rare circumstance when someone put a colour marker without a message afterwards.
     
  12. Offline

    Dr_Herbalist

    I mean there is at least 3 signs that cause crashes, colour marker without text.
    Im running your client patch(ty) but cant find which signs are causing it.
    --- merged: Feb 21, 2011 7:20 PM ---
    and the v3 of the plugin doesnt seem to work either.
     
  13. Offline

    Edward Hand

    Ok. I've written a new mod that should be able to detect and tell you the location of corrupt signs. As soon as minecraft servers come back I'll test that it works and send you a link.

    Could you be a little more specific?
     
  14. Offline

    Dr_Herbalist

    sure, I use any colour code and it just stays as the colour code. i type "#4WARNING:" and it will stay the same. i do notice it add spaces on to lines though, obviously thats the fix.
     
  15. Offline

    Edward Hand

    If you just moved from v0.1 to v0.3 and have the permissions plugin enabled then you will need to add the relevant permissions as specified in the first post. (I'm very much hoping that's what your problem is)

    That's the client mod working its magic ;)

    Speaking of which:
    http://www.srcf.ucam.org/~eh392/minecraft/SignColours/oz.tar.gz
    This is the new version. Its not quite what I wanted to make but I ran into some trouble recompiling it so had to make a quick substitute. If you can get close enough to the sign (within the distance that would normally crash people) then it will log the coordinates to a text file called corruptions_log.txt, which will be placed in the same folder as where minecraft.exe is.

    Best of luck!
     
  16. Offline

    McLrn227

    thank you for your help Edward, I guess it was my mistake. I wasn't aware that bukkit is updated so often.
     
  17. Offline

    Edward Hand

    No problem! Bukkit gets updated every few days actually.
    Make sure you install the the latest version of the SignColours plugin wont you. It has some quite important bug fixes.
     
  18. Offline

    Dr_Herbalist

    unfortunately I upgraded from v2 and the permissions worked previously.
    I also have -"*" access.
    :(
     
  19. Offline

    Edward Hand

    Could you try updating your bukkit and craftbukkit to the very latest version? There was an update a few days ago that made all developers have to change their plugin structure and I think the new structure might not work right with older bukkit versions.
     
  20. Offline

    Dr_Herbalist

    aww okay. Last time I updated it broke my 25 plugins.
    Its just having to find/update these will take all day, and everyone compiles to different versions.
     
  21. Offline

    viviengaetan

    Hi Edward Hand,

    Thanks for your mod, I like it.

    I use :
    2011-02-23 23:32:36 [INFO] This server is running Craftbukkit version git-Bukkit
    -0.0.0-450-gd3c1ba4-b432jnks (MC: 1.3)

    And SignColours works, I just get this warn.

    2011-02-23 23:32:38 [WARNING] Using the stupidly long constructor org.bukkit.dis
    charge.signColours.SignColours(PluginLoader, Server, PluginDescriptionFile, File
    , File, ClassLoader) is no longer recommended. Go nag the plugin author of SignC
    olours to remove it! (Nothing is broken, we just like to keep code clean.)
     
  22. Offline

    Edward Hand

    Thanks for nagging me ^_^
    Re-downloading version 0.3 should fix it.
     
  23. Offline

    viviengaetan

    Yes it's good, thanks ;)
     
  24. Offline

    Jekotia

    Can anyone confirm if this is working with CraftBukkit 432jnks? I'd test it myself but updating everything took much longer than anticipated and I don't want to disrupt the players anymore D: (6 hour downtime due to database migrations ): ).
     
  25. Offline

    Edward Hand

    I can. It's unlikely to ever stop working. It's such a simple plugin.
     
  26. Offline

    Cosmic Break

    sweet, this is an awesome plugin
     
  27. Offline

    Jekotia

    Everything seems to work fine until I go to break the sign. It keeps coming back, as if it's protected. There is no error in the console. We're running CraftBukkit build 432jnks. It seems to make ALL signs unbreakable without using a plugin feature such as WorldEdit's SuperPickaxe.
     
  28. Offline

    Edward Hand

    Hi. I am using 432 also and I'm not getting this. The plugin doesn't do anything when a sign is destroyed - only when it is created. Nobody else has complained of this issue with the latest version, so I'm assuming its specific to you. Are you sure it isn't another plugin?
     
  29. Offline

    Jekotia

    I suppose so. 6:30am without any sleep probably isn't the best time to be pestering plugin authors with this stuff xD My apologies.
     
  30. Offline

    gallexme

    im gotting following error my bukkit ver is 425

    Code:
    2011-02-24 13:40:24 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to SignColours
    java.lang.NullPointerException
        at com.edwardhand.commandsigns.SignListener.onBlockRightClick(SignListener.java:36)
        at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.java:232)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:495)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
     
  31. Offline

    Edward Hand

    The problem is occurring in the CommandSigns plugin. Can you tell me what text is on the sign being right clicked on?
     

Share This Page