PDA

View Full Version : ShardCount - a Warlock's best friend


phobos
12-01-2004, 11:32 PM
ShardCount is a simple mod that keeps track of a Warlock's Soul Shards. The ShardCount window displays the current amount of Soul Shards in a Warlock's bags. The UI itself is about 60 pixels by 40 pixels and is moveable.

Installation instructions:
- Make a directory in Interface/AddOns called ShardCount
- Unzip all four files below to the directory
- Start WoW
- Open Key Bindings and scroll all the way down.
- Look for the ShardCount key and assign it, this will allow you to toggle the shardcount window on or off.
- Save the keybinding
- Hit your ShardCount key, there will be a small window at the middle-top of your screen. You can right-click-and-hold to move this window wherever you want.

Thts it, pretty simple. Props to Sarf for SarfEquip, I stole one of his functions for this.

The files in easy to use zip format:

http://ff-invictus.com/shardcount/shardcount2.zip

Feel free to post feedback or bugs here or send me mail - montch at gmail dot com

EDIT: code is updated to fix the 0 shard bug pointed out below.

Update : now supports 2 digits and will display a color coded indicator if you are in possession of a Soulstone or Healthstone. The indicatoprs are not clickable (I tried, it ended up making the UI too big for my liking) - but are simply there for a visual indicator. I have ot tested it with anything other than Minor stones, but its a wildcard lookup, so it should work with greater stones.

The red asterisk indicates you own a soulstone. Green asterisk is for healthstones.

OwlBoy
12-02-2004, 12:06 AM
Thanks so much!

jimmcq
12-02-2004, 12:54 AM
Nice!

Possible enhancements include an icon to show if you have a Healthstone and/or Soulstone in your inventory. Bonus points if the icon is clickable (as in click to use the item).

Sent
12-02-2004, 01:16 AM
Dude you are so awesome, I was talking with others about making a mod for this myself just yesterday lol

-Sent

Anonymous
12-02-2004, 06:21 AM
erm, it doesnt seem to be working fully, when i have 0 shards left it still says 1

Sent
12-02-2004, 12:34 PM
Is there a standalone version of this without Cosmos? Here is the error I get:


http://img69.imageshack.us/my.php?loc=img69&image=WoWScrnShot_8.jpg


-Sent

Aqe
12-02-2004, 12:44 PM
It doesnt show when you reach 0. doesnt update then.

phobos
12-02-2004, 02:52 PM
erm, it doesnt seem to be working fully, when i have 0 shards left it still says 1

I'll look into this tonite when I get home, could've swore I tested that :lol:


Is there a standalone version of this without Cosmos? Here is the error I get:


I can make a stand alone copy - It'll take a good deal of work though.

Anonymous
12-02-2004, 03:36 PM
I can make a stand alone copy - It'll take a good deal of work though.

I see, anything I can do to help or anything (probably not :( )

-Sent

Anonymous
12-02-2004, 05:40 PM
This will fix the not showing zero problem.

Shardcount.lua - the big fix is moving of the outputss command.

function do_SScount(event)
name = "Soul Shard"
SScount = 0
if ( event == "BAG_UPDATE" ) then
for bag = 0,4 do
for slot = 1,GetContainerNumSlots(bag) do
if ( name == SarfGetItemName(bag, slot) ) then
SScount = SScount + 1
end
outputSS(SScount)
end
end
end
end

Anonymous
12-02-2004, 05:46 PM
function do_firstSScount()
name = "Soul Shard"
SScount = 0
for bag = 0,4 do
for slot = 1,GetContainerNumSlots(bag) do
if ( name == SarfGetItemName(bag, slot) ) then
SScount = SScount + 1
end
outputSS(SScount)
end
end
end

Forgot one. :) Need to move the outputss in the do_firstsscount too..

Anonymous
12-02-2004, 07:35 PM
I followed the instructions, however I do not see ShardCount in keybindings. I am also running cosmos.

thanks

Anonymous
12-02-2004, 10:21 PM
I think it would be great if you add the healthstone and soulshard stuff mentioned above. What would be great is if there was some way to auto-move your soulshards to a specific backpack/backpacks as well. So basically whenever there was a bag update, if it was a soul shard it gets moved to one of the bags I specify in priority order.

Magus

phobos
12-02-2004, 10:58 PM
Thanks to Kylun for seeing my error, the files have been updated.

As for the person who isnt seeing it in keybindings, open a mod directory that you know is working and look at the .toc file (in notepad) and check the version.

You should see something like

## Interface: 4062


remember that number (or cut and paste it). More than likely your interface version is somehow a different number than 4062. Change the Shardcount.toc to the same number of the mod you know is working. This should allow it to show in keybindings.

As for the healthstone/soulstone suggestion, I'll see what I can do :D

Vinar
12-02-2004, 11:19 PM
Thanks to Kylun for seeing my error, the files have been updated.

As for the person who isnt seeing it in keybindings, open a mod directory that you know is working and look at the .toc file (in notepad) and check the version.

You should see something like

## Interface: 4062


remember that number (or cut and paste it). More than likely your interface version is somehow a different number than 4062. Change the Shardcount.toc to the same number of the mod you know is working. This should allow it to show in keybindings.

As for the healthstone/soulstone suggestion, I'll see what I can do :D

I'm not seeing the keybind in the menu either...and the version # is the same as the rest of the mods that work.

Anonymous
12-02-2004, 11:34 PM
hey there i think i got it. Eigther the file names when posted were wrong or they were changed somehow on the dl. Make sure that none of the files end in "txt". If they do remove that extention. This happened to my toc and lua files.

Vinar
12-03-2004, 12:22 AM
hey there i think i got it. Eigther the file names when posted were wrong or they were changed somehow on the dl. Make sure that none of the files end in "txt". If they do remove that extention. This happened to my toc and lua files.

Yes! that was my problem...DOH!

Anonymous
12-03-2004, 05:57 AM
I wish I understood the XML good enough to manipulate it (is there any WYSIWYG editors for the XML files?... I had an idea on how to lay it out that I think would work good

Ascii art time:

-----------------------
| Shards | 4 |
| Health | 1 |
| Soul | 1 |
-----------------------
For stones where you can't have more than one, it could say "yes" or something if you have one.

I would suggest putting all this in a colored box so it is easier to see. Also I had a hell of a time trying to move anything, can it be made so you can move it by dragging anywhere on it?

phobos
12-03-2004, 07:01 AM
I would suggest putting all this in a colored box so it is easier to see. Also I had a hell of a time trying to move anything, can it be made so you can move it by dragging anywhere on it?

I'll see what I can come up with this weekend for the health/soul stones. My warlock isnt high enough for soul stones yet, so I may need some alpha testing :)

As for the window moving, I originally had it so the whole area was moveable, but I found myself dragging it around the screen by accident on a couple of occasions, so I went with just the upper corner. I can certainly expand the selectable area.

Henna
12-03-2004, 07:05 AM
As for the window moving, I originally had it so the whole area was moveable, but I found myself dragging it around the screen by accident on a couple of occasions, so I went with just the upper corner. I can certainly expand the selectable area.

How about a lock feature?

Arioch5
12-03-2004, 02:49 PM
I've checked and I don't have .txt on any of my files. They are all as specified, but I don't see the key binding in cosmos. Is there anyway to turn it on w/o the key binding, or is there something I need to do in cosmos to get it to recognize ShardCount?

Thanks

Vinar
12-04-2004, 05:04 PM
The shard counter works great, but can you make it read 2 digits? When I have over 9 shards it just shows 1 in the window.

jimmcq
12-07-2004, 12:44 AM
I've been using ShardCount successfully for a little while now...

Any progress on Health/Soul Stones?

Keep up the great work!!

Arioch5
12-07-2004, 04:50 AM
Thanks a lot for this program it's AWESOM. The problem with mine was that Cosmos is automatically set to "keep interface directory clean" if you don't uncheck this it will keep deleting the files in ShardCount!

I'm not sure what the point of of showing if you have soul or health stone is b/c I always keep the health stone in one of the quick bars. BUT if you could utilize the Pager in Cosmos to notify me of when the Soul Stone has run out I would LOVE that. I'm tired of my Paladin dieing just after the soulstone runs out and neither of us notice it.

Thanks for this AWESOM program. Every warlock needs one.

oh yea and mine shows "1" on anything past 9 also.

Anonymous
12-07-2004, 04:55 PM
I've been making some custom mods on this great addin. I've added soul and health stones (only minor stones, cuz thats all i got at the moment, but thats easily changed)


I'll post my version of it here if you guys want..

One question (I dont know cuz i'm not high enough yet) Can you have a lesser and a minor healthstone/soulstone at the same time in inventory?

And for the format, would you guys rather see something like:

|--------|M|L|R| (minor, lesser, regular)
|Shard |-|-|4|
|Health|1|1|1|
|Soul |1|1|1|
|---------------|

Or more like the first format I suggested?

Also, I am *NOT* stepping on the original authors toes, I merely made some mods to make it more suitable for my needs and am willing to help share this. I also take no credit for anything if I were to relase anything..

--Kylun

Arioch5
12-07-2004, 05:02 PM
I was under the impression you could only have one of each stone at a time. So only one Minor, lessor, or Regular. Not one of each type.

Can somone that knows clear that up? If you can have more than one then I see the need for counters on them.

oh yes ... how about that "soulstone has ended" notification? = )

Anonymous
12-07-2004, 05:17 PM
That one is over my head! :) The first i've ever done with addon making was hacking around with this addon... I would imagine it can be done as you can see what buffs other players have, but I don't have the skills for that myself. Also, i would suggest for this to be a more universal seperate plugin, imagine, it could be used for just about any buff that is casted on party members by anyone.


--Kylun

Arioch5
12-07-2004, 05:20 PM
Good idea I'll post it in suggestions

Anonymous
12-07-2004, 06:36 PM
Thanks a lot for this program it's AWESOM. The problem with mine was that Cosmos is automatically set to "keep interface directory clean" if you don't uncheck this it will keep deleting the files in ShardCount!

I'm not sure what the point of of showing if you have soul or health stone is b/c I always keep the health stone in one of the quick bars. BUT if you could utilize the Pager in Cosmos to notify me of when the Soul Stone has run out I would LOVE that. I'm tired of my Paladin dieing just after the soulstone runs out and neither of us notice it.

Thanks for this AWESOM program. Every warlock needs one.

oh yea and mine shows "1" on anything past 9 also.

Easy way around that. Whenever you cast soul rez on someone, summon another soulstone and put the stone in one of your bars. You can watch the cooldown and be ready instantly recast it when it wears off.

Arioch5
12-07-2004, 06:43 PM
Yea I figured that out. I've been doing it but wouldn't you know when we got jumped by two level 21 orcs (we were 19) and for some reason the guards wouldn't help us out I just didn't see it run out.

Seems I'm always in the middle of some surprise combat when it's just about to finish.

It did save my butt against Bellygrub (lv 24). Which was a lot harder with 2 lv 19's than I expected = )

-Bysitra.dunemaul

Munki
12-07-2004, 07:48 PM
Somebody mentioned in a previous post that this add on only works with Cosmos? Is that true?

I don't use Cosmos, but I would love to use this add on as a standalone :)

Anonymous
12-07-2004, 11:55 PM
Yes, you can have a minor and lesser healthstone at the same time :)

Quite nice, though I'm sure they use the same timer.

I would very much like to see the 2 digit support as well.

Anonymous
12-08-2004, 03:14 PM
I too, would like to see double digit....


And, A STAND ALONE VERSION...

Please :)

Anonymous
12-09-2004, 06:17 PM
Any ETA on the standalone version

Sent
12-09-2004, 06:26 PM
Any ETA on the standalone version


About 3 seconds:

http://forums.worldofwarcraft.com/thread.aspx?FN=wow-warlock&T=11497&P=1

Standalone version.


-Sent

Anonymous
12-10-2004, 12:54 PM
Not getting an option to save these as lua or toc files. Either as a webpage or txt file. Any ideas how to make sure I can save as the proper file?

Anonymous
12-12-2004, 02:12 PM
I know this may be a dumb question but I can't figure it out. I am trying to save these files to my "ShardCount" folder but can't figure out how. I click the links and it opens up a page thats shows the file but I can't figrue out how to save it as a file into my folder. If someone could explain how I can do this I would appreciate it.

Ignotus
12-16-2004, 08:15 AM
RE: file extensions
Just download it with ANY extension, and then change the extension in windows. Hit "F2" or right click it and choose "rename" to remove or change the extension.

RE: saving to shardcount folder
Right click the links and choose "save target as". This will open a window that lets you browse to the folder you want to save them to. For the file extensions, see above reply.

Anonymous
12-17-2004, 06:21 AM
Anyone come up with an edit for this wonderful mod that will display double digits? I've tried, but no luck.

Anonymous
12-18-2004, 04:47 AM
Not getting an option to save these as lua or toc files. Either as a webpage or txt file. Any ideas how to make sure I can save as the proper file?

Same problem.

RE: file extensions
Just download it with ANY extension, and then change the extension in windows. Hit "F2" or right click it and choose "rename" to remove or change the extension.

This doesn't work. It doesn't change the filetype to lua or toc?

gottaa
12-18-2004, 12:19 PM
I had a look around the code and with the graphical number being used (which btw I really like and think look much better than the in game font), unless someone wants to start messing around with TGA files you're limited to single digits.

The addon I did does display shards in double digits but has a whole load of autobar stuff, clock etc along with it, and I don't think is a patch on the ploished look of this one. If you wanna see it though look for Logo X in here (doesn't require cosmos)

phobos
12-19-2004, 07:30 AM
Sorry for the long delay in updates, been a busy time for me.

Shardcount now supports 2 digits and will display a color coded indicator if you are in possession of a Soulstone or Healthstone. The indicatoprs are not clickable (I tried, it ended up making the UI too big for my liking) - but are simply there for a visual indicator. I have ot tested it with anything other than Minor stones, but its a wildcard lookup, so it should work with greater stones. Because of the indicators, the UI is a little bigger, but only by about 20 pixels.

The red asterisk indicates you own a soulstone. Green asterisk is for healthstones. If any warlocks with greater stones out there uses this, let me kow if it is working for the greater stones too.

Also, the files are up as a zip now , hopefully this will prevent the save-as problems some have had in this thread.

Anonymous
12-23-2004, 02:33 AM
can ya plz update so it works on current patch, i love this addon.

Anonymous
12-23-2004, 07:27 AM
WTB update for the current patch PST 100g 40s!

Anonymous
12-23-2004, 08:34 AM
I can't seem to move my Shard Counter even when i right click and hold...

Anonymous
12-23-2004, 12:03 PM
You can most likely update the addon yourself. Open the .toc file in a text editor and change the the Interface Version number to 4150. I have done this to the ShardSorter and a different ShardCounter addon and they loaded up perfectly. Disclaimer: This may not work for all addons, some may require recoding by the author to be compatible with the newest patch.

Anonymous
12-23-2004, 12:03 PM
You can most likely update the addon yourself. Open the .toc file in a text editor and change the the Interface Version number to 4150. I have done this to the ShardSorter and a different ShardCounter addon and they loaded up perfectly. Disclaimer: This may not work for all addons, some may require recoding by the author to be compatible with the newest patch.

phobos
12-26-2004, 04:46 PM
Updated:

http://ff-invictus.com/shardcount/shardcount_4150.zip

regarding moving the UI - try the upper left hand corner, its a small area about 5x5 that is selectable.

phobos
12-26-2004, 04:48 PM
Updated:

http://ff-invictus.com/shardcount/shardcount_4150.zip

regarding moving the UI - try the upper left hand corner, its a small area about 5x5 that is selectable.

phobos
12-27-2004, 07:23 AM
Updated for 4150


http://ff-invictus.com/shardcount/shardcount_4150.zip

phobos
12-27-2004, 03:42 PM
Updated:


http://ff-invictus.com/shardcount/shardcount_4150.zip

Anonymous
12-27-2004, 07:44 PM
i believe you have to click the top corner for the shardcounter, it took me a while to find the sweet spot

And you can update it yourself, just open the TOC file of a working mod, note the number, copy paste to shardcounters Toc file

Anonymous
12-29-2004, 08:40 AM
i cant seem to find it on my key bindings..... i followed all the directions up till that point and still no work.... i use cosmos and dl'd the 1st link on the 1st page

phobos
12-30-2004, 05:44 AM
Updated

http://ff-invictus.com/shardcount/shardcount_4150.zip

Anonymous
12-30-2004, 05:46 AM
updated:

http://ff-invictus.com/shardcount/shardcount2.zip

Anonymous
12-31-2004, 01:29 PM
wierd.. i dled the new version.. mines still doesn't work :(

phobos
01-04-2005, 05:58 PM
updated:


http://ff-invictus.com/shardcount/shardcount_4150.zip