• Warhammer Online Addons
  • Warhammer Online
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibSlash

 
Project Updated:
Files Updated: Fri, Oct 16 2009
Supports Game Version: 1.3.1
Category: Development Tools
Tags:

, , and [Edit Tags]

Project Manager: Aiiane
Additional Authors: No additional authors
Current Version: v2.93-release
License: MIT License
Development Site: CurseForge.com
Avg Daily DL (last 30 days): 104
Downloads Total: 425,203
Favorites: 616
Comments: 96
  • About LibSlash
  •  

A basic library for registering slash commands in the WAR interface.

If you're downloading this because an addon you want to use requires it, just extract it into the interface\addons directory, and that's all you need to do.

With LibSlash installed, you'll also be able to use /addon or /uimod to open the Addons window in-game.


If you're writing an addon and want to utilize LibSlash, place it in the proper addons directory along with your other addons. Then, add it as a dependency in your addon's .mod file, like so:

<Dependencies>
    <Dependency name="LibSlash" />
</Dependencies>

This will ensure that LibSlash is loaded before your addon, so that its functions will be available for use.

To register a slash command handler, call LibSlash.RegisterSlashCmd() with the slash command you want to register (a string, NOT INCLUDING THE /) and a function to serve as the handler:

LibSlash.RegisterSlashCmd("myslash", function(input) MyAddonHandleSlash(input) end)

The single argument passed to the handler is a string containing the rest of the chat line entered after the initial slash command, so the above code would call MyAddonHandleSlash with an argument of "testing" if I typed "/myslash testing" at the command line.

Alternatively, LibSlash.RegisterWSlashCmd() can be used to register a handler to receive a wstring version of the chat line, instead of having it automatically translated to a string.

To unregister a slash command, use LibSlash.UnregisterSlashCmd("myslash") - the only argument it takes is a string specifying the slash command to unregister. You can also use LibSlash.IsSlashCmdRegistered("myslash") to see if a slash command is already registered, possibly by another addon.

Both the register and unregister functions will return true on success, or false on failure for any reason such as attempting to register a slash command which is already registered, or other silly things.

  • Downloads (7)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibSlash v2.93-release Release 1.3.1 26,218 10/16/2009
  LibSlash v2.92-release Release 1.30b 34,100 8/18/2009
  LibSlash v2.91-release Release 1.3 35,803 7/9/2009
  LibSlash v2.9-release Release 1.3 22,752 6/26/2009
  LibSlash v2.8-release Release 1.2.1 24,868 6/16/2009
  • Comments

Add Comment

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • max23 said

    update ?

    Reply Report Permalink
  • Is there like a library where we can see all the slash commands and what they do and for what addon?
    Please PM me with answer.

    Reply Report Permalink
  • Taldren said

    Can libslash have a command to print all currently registered slash commands to chatwindow in order of mod?

    Reply Report Permalink
  • Brawla said

    Could you please remove the text "release" from your File Names for the sake of Curse Client. It makes it much easier to see the version of the addon and adds to the Aesthetic of it. Thanks!

    Reply Report Permalink
  • zhaoyun69 said

    I just reloaded the new libslash and now it appears everything is working fine. In fact now even my old mods that were not working are working. So it was probably something with the new Warhammer UI. Because it was showing the latest libslash and other mods before I camped, the folder showed they were there, but camping and logging back in made it all golden.

    Reply Report Permalink
  • zhaoyun69 said

    It might be the new features from Warhammers UI, but I uploaded all the upto date mods (probably half of them) that I use and I am not getting any / commands including /addon or /unimod to work. No matter what addon I use with a slash / command before it, it is not recognizing it. I downloaded the new Libslash and none of those old slash commands are now working. I'm gonna have to go back to the older version of libslash and see if this helps.

    Reply Report Permalink
  • boltman said

    ok, semi noob here. Can Libslash unregister a mythic slash command, or re-register it to something else? I'm looking for a way to disable /rel. Thanks

    Reply Report Permalink
  • Aiiane said

    It could override it, yes.

    If you put this in a macro, running the macro would disable "/rel" until the UI was reloaded/you quit the game:

    /script LibSlash.RegisterSlashCmd("rel", function() end)

    (If you wanted it to last between sessions, you'd have to put it into an actual addon code file to run each time the game started.)

    Reply Report Permalink
  • boltman said

    Thanks A bunch Aiiane, you truly are the Mod Queen.

    Reply Report Permalink
  • I just installed this addon and am not experiencing any bugs whatsoever, and everything is moving around in my bags just fine. The other addons I am using are squared, State of the Realm, and Think Out Loud.

    Reply Report Permalink
  • websphinx said

    I confirm this bug :

    "As of patch 1.2 the addon now locks all the items in the bag. I have tested all the addons i have and seems the bags lock only when i have libslash even if i dont use any other addons."

    I have the same problem, exactly. I have tested each addons, and I found that the cause of this problem was LibSlash.
    I uninstall all my addons except LibSlash and the bug was persistant.

    If LibSlash is enable, I can't move my items in my bags. So yes, unfortunately there is a bug with LibSlash and this version of Warhammer :(

    Reply Report Permalink
  • Aiiane said

    No, sorry, but it's not.

    Reply Report Permalink
  • After doing some testing, have determined that LibSlash is the cause behind why am getting ton of lagspikes, disconnects and crashes after the 1.2 patch and fixes.

    Thx.

    ps. Also noticed that when Libslash installed my loading time from is slow even when loading zones (where some of the CTD's have happened).

    Reply Report Permalink
  • Aiiane said

    You should know that disabling LibSlash will cause a lot of other addons not to load. Thus, there's a high chance that LibSlash itself is not what's causing your problems, but rather one of the addons that doesn't load if LibSlash is disabled.

    Reply Report Permalink
  • Andrushkin said

    Aliane,
    As of patch 1.2 the addon now locks all the items in the bag. I have tested all the addons i have and seems the bags lock only when i have libslash even if i dont use any other addons. If you can find time in your schedule to fix that issue or provide some help on it, it would be greatly appreciated. Overall keep up the good work. Thank you.

    Reply Report Permalink
  • Aiiane said

    Um, there is absolutely zero code in LibSlash that deals with inventory items... are you sure?

    Reply Report Permalink
  • Andrushkin said

    Problem fixed Aiiane. I did whant someone suggested below with Auction Stats and Assist mod and id did the trick. But i am still suprised it will lock when i have only lib slash running and no other add ons. Thank you for your response and keep up the good work.

    Reply Report Permalink
  • Andrushkin said

    Thats was my though exactly so originally i thought it had to do with a waagh bar bag plugin. But i have turn off all my mods leavin only libslash and my bags were locked. Only when i turn off lib slash my bags become unlocked. Weird.

    Reply Report Permalink
  • libslash is kind of screwy after 1.2, please fix it aiiane

    Reply Report Permalink
  • Ahkronn said

    Since 1.2 that the Advanced button does nothing.
    I'm looking for the debug window and the EA_ Native addons list there, but can't find a way to make them show.

    Reply Report Permalink
  • Addon Packs Containing LibSlash
  • Similar Addons
  •  

Average downloads per day

  1. 69 NerfedButtons Action Bars, and Development...
  2. 46 Phantom Buffs & Debuffs, Development...
  3. 31 RV_Mods Manager (RV) Unit Frames, Combat, Development...
  4. 19 RVAPI_Frames (RV) Development Tools, Artwork...
  5. 18 RVAPI_Range (RV) Development Tools