LibItem
I have spent considerable time debuging the War Lookup tables and hidden API
functions to grab stats in a dynamic matter that doesn't require addon specific
lookup tables. This is an attempt to centralize all of the Item lookup and
helper functions for getting stats on Items.
Currently:
* ItemLib.Get*(W)String(itemData) functions that will take an item and
return a (w)string for requested * value, such as Name, Rating, and most
other stats. It will return a table of strings for types that can be on
an item twice, such as bonuses.
* Dynamic lookup of Potion stats! Give the itemData and get a table of
correct stat descriptions and for all the use: strings. This is bundeled
with the same GetBonuses call.
* All strings return will be part of the WAR function returns, so return
strings will be in the same localization as WAR.
* Versioned with Libstub, this library is embeddable and can also be loaded
as another addon, developers choice.
Current TODO List:
* Use libstub
* Fix function logic so I dont do WStringToString and then call the GetStr
from GetWStr. I found this late and wanted to quickly fix the wrong
behavior.
* Add a generic GetStringItem( itemData ) method that will do just a raw
print of all the other calls on an item.
* Add a GetStringifiedItemTable( itemData ) that will return a table that
is itemData equiv except instead of reference ids it will have text
strings
* Support more information, such as talisman data on item
* Add Has* methods.
------------------------------------------------------------------------
r16 | beeblebrox42 | 2008-10-05 20:22:20 +0000 (Sun, 05 Oct 2008) | 1 line
Changed paths:
A /tags/v0.2.0Beta (from /trunk:15)
------------------------------------------------------------------------
r15 | beeblebrox42 | 2008-10-05 20:21:54 +0000 (Sun, 05 Oct 2008) | 1 line
Changed paths:
M /trunk/LibItem.mod
M /trunk/Source/LibItem.lua
changed API to from using *rarirty to rarity. Required major version release too for libstub
------------------------------------------------------------------------
r13 | beeblebrox42 | 2008-10-04 06:27:06 +0000 (Sat, 04 Oct 2008) | 1 line
Changed paths:
M /trunk/LibItem.mod
Adding version update to .mod
------------------------------------------------------------------------
r12 | beeblebrox42 | 2008-10-04 06:13:46 +0000 (Sat, 04 Oct 2008) | 1 line
Changed paths:
M /trunk/Source/LibItem.lua
Updating minors since this is a slightly different release now
------------------------------------------------------------------------
r11 | beeblebrox42 | 2008-10-04 06:10:36 +0000 (Sat, 04 Oct 2008) | 1 line
Changed paths:
M /trunk/Source/LibItem.lua
Hmm doesn't look like the update LibItem.lua got added... adding... Update .1.1 beta, slight API change and now should work with more item types for getting the extra bonuses
------------------------------------------------------------------------
r9 | beeblebrox42 | 2008-10-04 05:21:20 +0000 (Sat, 04 Oct 2008) | 1 line
Changed paths:
M /trunk/LibItem.mod
M /trunk/Source/LibItem.lua
Update .1.1 beta, slight API change and now should work with more item types for getting the extra bonuses
------------------------------------------------------------------------
r7 | beeblebrox42 | 2008-10-03 04:50:20 +0000 (Fri, 03 Oct 2008) | 1 line
Changed paths:
M /trunk/LibItem.mod
Putting correct lib name in mod.
------------------------------------------------------------------------
r5 | beeblebrox42 | 2008-10-01 11:41:54 +0000 (Wed, 01 Oct 2008) | 1 line
Changed paths:
M /trunk/.pkgmeta
Fixing packaging
------------------------------------------------------------------------
r4 | beeblebrox42 | 2008-10-01 11:33:52 +0000 (Wed, 01 Oct 2008) | 1 line
Changed paths:
M /trunk/LibItem.mod
M /trunk/Source/LibItem.lua
Bunch of fixes to get working correctly after initial work.
------------------------------------------------------------------------
r3 | beeblebrox42 | 2008-10-01 08:35:30 +0000 (Wed, 01 Oct 2008) | 1 line
Changed paths:
M /trunk/.pkgmeta
A /trunk/Lib
A /trunk/Lib/LibStub.lua
M /trunk/LibItem.mod
M /trunk/Source/LibItem.lua
Submitting LibItem with updates to handle wstring vs string in return tables and added libstub for versions.
------------------------------------------------------------------------
r2 | beeblebrox42 | 2008-10-01 06:25:27 +0000 (Wed, 01 Oct 2008) | 1 line
Changed paths:
A /trunk/.pkgmeta
A /trunk/LibItem.mod
A /trunk/Source
A /trunk/Source/LibItem.lua
------------------------------------------------------------------------
r1 | root | 2008-10-01 04:07:25 +0000 (Wed, 01 Oct 2008) | 1 line
Changed paths:
A /branches
A /tags
A /trunk
"libitem/mainline: Initial Import"
------------------------------------------------------------------------
Installation Guide
- Exit "Warhammer Online" completely
- Download the mod you want to install
- Make a folder on your desktop called "My Mods"
- Save the .zip/.rar files to this folder.
- If, when you try to download the file, it automatically "opens" it... you need to RIGHT click on the link and "save as..." or "Save Target As".
- Extract the file - commonly known as 'unzipping'
Do this ONE FILE AT A TIME!
- Windows
- Windows XP has a built in ZIP extractor. Double click on the file to open it, inside should be the file or folders needed. Copy these outside to the "My Mods" folder.
- WinRAR: Right click the file, select "Extract Here"
- WinZip: You MUST make sure the option to "Use Folder Names" is CHECKED or it will just extract the files and not make the proper folders how the Authors designed
- Verify your WAR Installation Path
That is where you are running WAR from and THAT is where you need to install your mods.
- Move to the Addon folder
- Open your Warhammer Online folder. (default is C:\Program Files\Warhammer Online\)
- Go into the "Interface" folder.
- Go into the "AddOns" folder.
- In a new window, open the "My Mods" folder.
- The "My Mods" folder should have the "Addonname" folder in it.
- Move the "Addonname" folder into the "AddOns" folder
- Start Warhammer Online
Translations
When you download a mod, please be sure that the mod is compatible with your translation of WAR. Some mods only work on the US versions, while some only work on some of the various European versions. These variations are called "Localizations".
Directory Structure
Warhammer Online
|_ Interface
|_AddOns
|_*AddonName*
|_ *AddonName*.mod
|_ *AddonName*.lua
|_ (possibly others as well)...