• Warhammer Online Addons
Advertisement
  • Warhammer Online
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibSlash

  Download the Curse Client

Project Updated:
Files Updated: Mon, Nov 10 2008
Category: Development Tools
Tags:

, , and [Edit Tags]

Project Manager: Aiiane
Additional Authors: No additional authors
Current Version: v2.4-release
Downloads Today: 653
Downloads Total: 163,663
Favorites: 892
Comments: 78
  • 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.RegisterWSlashCommand() 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.4-release Release Beta 3.0 40,087 11/10/2008
  LibSlash v2.3-release Release Beta 3.0 45,345 10/12/2008
  LibSlash v2.2-release Release Beta 3.0 20,791 10/6/2008
  LibSlash v2.1-release Release Beta 3.0 17,344 10/2/2008
  LibSlash v2.0-release Release Beta 3.0 3,585 9/28/2008
Advertisement
  • 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.
  • warhammer install folder/ user / interface / allcharacters /libslash / open Modsettings file /





    Reply Permalink
  • Altimus said 

    libslash seems to have stopped working for me. i've re-installed all my add-ons twice now (including Libslash) and none of the /commands seem to be working any ideas?

    thanks in advance, Altimus

    Reply Permalink
  • X33 said 

    With the command Aiiane posted, you can get to the modmanager. Just turn there libslash on, and it should work.

    Reply Permalink
  • fogyreef said 

    When my wife was having problems with not being able to move items in her bags, I used /addon to uncheck all the mods to see if it was a mod issue. (research shows it's due to having both Auction Stats and Auction Assist mods running; get rid of Auction Assist)

    Now we don't have access to the /addon command (it's in LibSlash, ain't it?). How do I get that addon manager window back so we can turn on the addons again?

    Reply Permalink
  • Aiiane said 

    /script WindowSetShowing("UiModWindow", true)

    capitalization and punctuation count.

    Reply Permalink
  • X33 said 

    The same here... Since a crash to desktop, it stopped working. Neither /addons, /uimod nor my other Addons are working anymore. Must be an issue with the latest patch.
    If you´re working on a newer version, pls remind that they'll launch the next patch within december.

    Reply Permalink
  • Yeah, no addons seem to work anymore. I cleared my cache, uninstalled every addon, reinstalled them, and nothing.

    Reply Permalink
  • None of my curse addons works with WAR anymore. Did they destroy this nice UI with their last patch?

    Reply Permalink
  • Hah ha! Nice picture, thanks for all your contribution to the Warhammer Online community. Until recently you had done more for WAR client performance than Mythic themselves. lol

    Reply Permalink
  • locknor said 

    well since my last crash to desctop, libslash seem to be not working anymore, the commands /addon simply dont work and nothing helped, I installed it new and did everything but it just dont work.

    Reply Permalink
  • Anch said 

    same problem here... with libslash (and only libslash) in my addon folder i can't move anything in my bagpack. right-click works fine and items are usuable but no movement with left-click.

    Reply Permalink
  • varhamir said 

    It seems this library need an update with the last WAR patches.

    Reply Permalink
  • Aiiane said 

    Er? It works fine.

    Reply Permalink
  • Hello,

    I am seeing a new issue after the recent patch. I have removed all Addons except LibSlash. When I enable LibSlash I am unable to select or move items in the backpack. When I disable LibSlash I can move items in and out of my backpack again. Ideas?

    Thanks

    Reply Permalink
  • Aiiane said 

    You probably didn't actually disable/remove all of your addons. LibSlash does absolutely nothing that deals with the backback, but if you have an addon that uses LibSlash and *does* deal with the backpack, disabling LibSlash might disable that addon, making it "look" like LibSlash is what's doing it. Check your /addon list to see what addons are really loaded.

    Reply Permalink
  • Did that.

    I removed all addons, cleared all cache data, all user data. Reset everything to defaults. I basically had an out of the box install at this point. Unless I am missing a data directory somewhere. Meh, I will work around it by turning it off and on as needed I guess.

    Reply Permalink