Get an Epic Experience with Premium

LibSlash

Development Tools Login to Add Favorites
  • 1 Like
  • Warhammer Online
  • 328 Monthly Downloads
  • Supports: 1.3.5
  • 482,003 Total Downloads
  • Updated 05/19/2010
  • Created 08/19/2008
  • 1,226 Favorites
  • Project Site
  • Comments
  • Release Type: Mature
  • License: MIT License
  • Newest File: v3.0-release
or

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.

------------------------------------------------------------------------
r56 | aiiane | 2010-05-19 18:15:17 +0000 (Wed, 19 May 2010) | 1 line
Changed paths:
   A /tags/v3.0-release (from /trunk:55)

Tagging as v3.0-release
------------------------------------------------------------------------
r55 | aiiane | 2010-05-19 18:12:20 +0000 (Wed, 19 May 2010) | 1 line
Changed paths:
   M /trunk/LibSlash.mod
   A /trunk/LibSlash.xml
   A /trunk/tint_square.tga

Added tint_square to replace texture lost in 1.3.5.
------------------------------------------------------------------------

Comments

First Previous Page 10 of 10 Next Last
  • #10
    @shivaskunk - you need to go into your Warhammer Online directory, then into the User directory, and open UserSettings.xml - down at the bottom there will be a line that says something like MainUI path="Interface/Custom" enabled="true" ---- you need to change the "true" to "false" and save the file (while WAR is not running).
  • #9
    @jokerkaaos - The #7 section of Curse's WAR addon installation instructions is incorrect; it was copy-pasted from the WoW guide but they forgot to remove that part because it doesn't apply to WAR. There is no Add Ons button in WAR.
  • #8
    OK I have a problem. in the /addon menu i went and clicked on "use customized ui" and when that happened everything disappeared and now I cant play. What do i do!?!?
  • #7
    @Jerch: that is the wrong folder. That folder is simply for saving variables from installed mods.

    Go to your Warhammer folder and create a new folder 'interface' directly under that. Then within 'interface' create a new folder called addons. Extract all your downloaded mods into the NEW addons folder. Hope this helps.
  • #6
    I put it in my user/interface/all characters folder last night and couldn't get any of my addons to work or either the /addon or /uimod commands to do anything.
  • #5
    How did you fix it FlackMonkey?
  • #4
    Ignore my first comment, i fixed it
  • #3
    I used the auto-installer client from curse to install this, yet in-game when i type any of the slash commands i get "unknown command". Any idea what i might have done wrong?
  • #2
    What do you mean "stopped working"?
  • #1
    This has stopped working for me.
  • #64
    It seems this library need an update with the last WAR patches.
  • #119
    i have the same problem with my bag, i'm lvl10 and i have 3 bags but if i enable libslash, i lose 1 bag and just have 2. i can't find my 3' bag only if i disable libslash ( and reload the game. reloading the ui dont work)
    is somebody can help me ?
    thank you
  • #143
    I have gone through the process a number of times - but I can't get anything working. It's as if the mods are now totally ignored..yes it's warhammerdirectory/interface/addons (not user) - yes I have libslash - etc. No /addons uimod or any commands are recognized. Even when I look at the mods I have all I see are the EA mods. Any advice or are mods done for this game?
  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Infinite Crisis NA

Get Your Preferred Access Code!