[CHAT] TextWrap v1.0.0 - Automatic chat text wrapping to next line [1337]

Discussion in 'Inactive/Unsupported Plugins' started by CraftFire, Apr 6, 2011.

  1. Offline

    CraftFire

    In order to centralize support of our legacy projects, we will no longer be providing support on Bukkit. Please use www.spout.org for support with our projects going forward.
     
    moselekm, dark1256 and PCITJunior like this.
  2. Offline

    dralletje

    can't you just set the priority of the event to highest?
     
  3. awesome plugin would be even better if it worked with iChat etc...
     
  4. Offline

    Shirtlesscow

    I love it but the bugs with caht plugins suck please fix this
     
  5. Offline

    Wulfspider

    Glad you like it! They aren't really bugs, just incompatibility with others. Once AuthDB v2.3.0 is out, we will be working on updates for TextWrap and BabelCraft.
     
  6. Offline

    rockxz2135

    I don't mean to bug you if this has already been asked but do you have a date that you expect this plugin to be compatible with ichat?
     
  7. Offline

    CraftFire

    We will be working on getting updates out for TextWrap and BabelCraft after AuthDB v2.3.0 is out.
     
  8. Offline

    khyperia

    Heres an idea- get the message length with a getformat() (or whatever does the entire message, forgot) then do your counting stuff, then getmessage() and edit THAT and paste it back into the message. You could even getformat().getlength() - getmessage().getlength() to get the length of the playername + <> symbols + extra stuff IF you need that count.

    Edit- oh, and dont forget to use displayname() instead of name(), because my chat plugin sets displayname and I think a lot of other plugins do too, like essentials nick. The length could also change for your counting formula.
     
  9. Offline

    contex

    Already planned :) We just haven't really got to edit the code for about 3-4 months.
    Thanks for the input!
     
  10. Offline

    Clucky

    Could you also make it compatible with the chatting section of the plugin Clans? It causes you to say the message twice... which is slightly annoying lol.
     
  11. Offline

    contex

    I will once I get to it :) Thanks for reporting.
     
  12. Offline

    Chris32

    Just to let you all know, this is NOT compatible with HeroChat.

    EDIT: more precisely, it shows your text twice.
     
  13. Offline

    SeeD419

    It's not compatible with any other chat plugin, and judging by the fact that for over four months the progress bar hasn't moved from 0%, I wouldn't hold your breath.

    At this point I'm just hoping Spout integrates word wrap into the Spout client.
     
  14. I fixed this in https://github.com/CraftFire/TextWrap/pull/1
     
  15. Offline

    Wulfspider

  16. Offline

    Jdbye

    I'm confused. Isn't this feature already in both the client and server? There's definitely text wrapping in the client, but even when I disable that by modifying the source, text is still wrapped. Unless there's a different plugin I have that does it, but I don't see which one it could be, it doesn't seem to be iChat.
     
  17. Offline

    Wulfspider

    As far as I know, the server doesn't do it yet. I haven't checked lately. Text has always been "wrapped", but by default it cuts words off.
     
  18. Offline

    Jdbye

    That counts as word wrapping in my head. Is there a way to disable that on the server, so I can have my chat box twice as wide on the client and actually have text fill the whole width?
    Right now, it looks a lot like this:
    [​IMG]
    It didn't use to do that, but when I updated the server (and plugins) at some point, it started wrapping on the server side too, so my mod wasn't so useful anymore.
     
  19. Offline

    Wulfspider

    I prefer my words whole. ;) Use a custom chat mod on your client or Spoutcraft as it has one in it.
     
  20. Offline

    Jdbye

    You missed my point. I made a custom chat mod on the client, but it still wraps on the server side making the mod useless. If it's one of the plugins doing it I can't imagine which one it would be. Essentials doesn't mention that feature anywhere, nor does iChat, and I have no other chat related plugins.
    Edit: I also tried TyrOvC's improved chat mod previously, and that added additional wrapping on some lines making single letters get wrapped onto their own line occasionally. If that's not a feature of Bukkit it has to be one of the plugins, I can't find out which one though.
     
  21. Offline

    Wulfspider

    What you see there is the native feature of the Minecraft server in cutting words off. Nothing changed there from what I can see.
     
  22. Offline

    Jdbye

    That's what I'm asking about. Is there a way to disable that? A plugin, or even something in the Bukkit API I could use to make my own plugin for it. It didn't do it in an earlier version, I think it started doing it around the time Minecraft Beta came out. I've noticed that even chat messages sent from plugins are wrapped, so I don't know if there's a way to stop it from happening with a plugin.
     
  23. Offline

    Wulfspider

    Minecraft has been Beta for about half a year and it has done that for as long as I've used it. :p
    The server is what wraps it I believe and would most likely be what would need to be changed.
     
  24. Offline

    Jdbye

    I swear when I made the mod it worked fine but on the next Minecraft update after that, it didn't work as expected anymore. Don't remember what version it was, but it couldn't have been before April. The client always wrapped text, but the server didn't.
     
  25. Offline

    Wulfspider

    Check in the server code. I believe there is a file in there called TextWrapper.
     
  26. Offline

    Jdbye

    Thanks for the pointer. Found it in org/bukkit/craftbukkit. There's even easy to modify length constants. Was afraid I'd have to weed through lots of obfuscated code to find what I was looking for.
    Edit: Got it to compile too after struggling to install Maven 3. Had to mod the client a bit more because it turns out he added a string length limit in Packet3Chat as well, so it made the client disconnect once it received a packet that was too long.
     
  27. Offline

    rockxz2135

    Will this be done anytime soon im sick of waiting I LOVE this plugin I just need it compatable with iChat!
     
  28. Offline

    Wulfspider

    Maaaybe, it just hasn't been our priority. AuthDB and BabelCraft come first. A few other chat plugins have been adopting chat word wrapping though.
     
  29. Hm, I'm just thinking if it would be possible to check if a message needs wrapping and, only if yes, cancel the event and make the player re-send the pieces (doesn't Player.chat() do that?). Like this, all those compatibility-problems would be fixed.
     
  30. Offline

    Wulfspider

    Feel free to submit a pull request ;)
     

Share This Page