Download
(109 Kb)
Download
Updated: 07-08-11 01:07 PM
Pictures
File Info
Updated:07-08-11 01:07 PM
Created:10-02-09 09:59 PM
Downloads:4,361
Favorites:40
MD5:
sStats
Version: 1.2.1
by: Seerah [More]

This is beta quality software. As such, the framework outlined below may change or be expanded upon as the core is developed.


sStats is a framework for a module-based data display system. The sStats core addon comes with three modules by default. Additional modules may be found by clicking the "Optional Files" tab above, and can be installed like any other addon.

The included modules are:
  • sStats_mem - a memory display
  • sStats_fps - a framerate display
  • sStats_lat - a latency display

Modules are fully movable about the screen when unlocked, and their elements may be configured (such as font and color).

Future Features:
  • ability to change font, etc. on a per-module basis [ADDED!]
  • ....


The sStats API Documentation:
Code:
frame, fontstring = sStats:CreateModule(key)
     -- key = a unique identifier/name of your module (string)
     -- frame = a reference to your module's frame
     -- fontstring = a reference to your module's fontstring
Code:
sStats.RegisterCallback(module, event, method)
     -- module = the module registering for the callback
     -- event = the event fired by sStats - it is called "sStats_Modules_Ready"
     -- method = the function to call when the event fires (may be declared elsewhere in your module's code or right in the RegisterCallback script)
Code:
-- optional:
sStats:SetModuleText(fontstring, prefix, suffix)
     -- fontstring = the module's fontstring
     -- prefix = the value/data to display in the module
     -- suffix = any descriptor text after the data (ex. "MB")
If you wish to create a module, download the sStats_Clock module from the Optional Files tab above. There are more docs and comments in its code, and it is a simple example.
1.2.1
- updated libs
- updated TOC number

1.2
- latency module now uses World Latency in its display
- there is a new tooltip for the latency module, showing both UI and World latency (you can disable it in options)

1.1.2
- updated libs

1.1.1
- updated libs
- bumped TOC number

1.1
- per-module options are in! not for colors though
- updated SharedMedia widgets for options - nice new looks!
- added font shadow option

1.0 beta 4
- updated libs and TOC number

1.0 beta 3
- ack! accidentally had a generic variable as a global. that could have cause some problems...

1.0 beta 2
- fixed bug where modules were white when logging in with them locked
- added class color support for suffix texts
- added CUSTOM_CLASS_COLORS support
Optional Files (10)
File Name
Version
Size
Author
Date
Type
v1.1
1kB
03-10-12 03:43 AM
Addon
1.0.3
1kB
07-08-11 01:10 PM
Addon
1.0.4
2kB
07-08-11 01:09 PM
Addon
1.0.2
1kB
12-28-10 03:25 PM
Addon
1.0.1
904B
12-27-10 09:04 PM
Addon
1.0.0
1kB
12-27-10 08:55 PM
Addon
1.0.0
1kB
12-27-10 08:31 PM
Addon
1.0
955B
12-27-10 04:42 PM
Addon
1.0.20100309
1kB
03-09-10 10:07 PM
Addon
1.0.20100308
2kB
03-08-10 10:28 PM
Addon


Archived Files (8)
File Name
Version
Size
Author
Date
1.2
109kB
Seerah
02-19-11 03:55 PM
1.1.2
109kB
Seerah
02-15-11 08:01 PM
1.1.1
108kB
Seerah
11-05-10 10:51 PM
1.1
107kB
Seerah
07-13-10 10:31 PM
1.0 beta 4
101kB
Seerah
12-10-09 10:01 PM
1.0 beta 3
96kB
Seerah
10-03-09 07:49 PM
1.0 beta 2
96kB
Seerah
10-03-09 06:24 PM
1.0 beta 1
96kB
Seerah
10-02-09 09:59 PM


Post A Reply Comment Options
Old 04-29-12, 04:07 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 8673
File comments: 532
Uploads: 21
I don't think you sounded like a smart ass. The "few hours trying" line put you in the clear.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Last edited by Seerah : 04-29-12 at 04:07 PM.
Seerah is offline Report comment to moderator  
Reply With Quote
Old 04-29-12, 07:41 AM  
Kendian
A Firelord
 
Kendian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 467
File comments: 115
Uploads: 6
Apparently I'm no intelligent enough to figure out how to do that, although I DID spend a few hours trying. My thanks, lady, as always, for your help, and your time~


Edit: Just re-read this and saw it looked like I was being a smart ass. I was not, and no offense was intended~
__________________
Last edited by Kendian : 04-29-12 at 01:27 PM.
Kendian is offline Report comment to moderator  
Reply With Quote
Old 04-28-12, 12:27 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 8673
File comments: 532
Uploads: 21
Well, the tooltip shows total, Blizzard, and addon memory amounts. If you want to show it on the display rather than in the tooltip, you'll have to do the calculations in OnUpdate rather than OnEnter. (You'll see those two sections in the Lua file.)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline Report comment to moderator  
Reply With Quote
Old 04-28-12, 04:21 AM  
Kendian
A Firelord
 
Kendian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 467
File comments: 115
Uploads: 6
Is there any way to have the memory module show just addon memory, as opposed to total? My thanks, in advance, for any and all help~
__________________
Last edited by Kendian : 04-28-12 at 07:15 AM.
Kendian is offline Report comment to moderator  
Reply With Quote
Old 06-08-11, 02:57 PM  
Salv
A Kobold Labourer
 
Salv's Avatar

Forum posts: 0
File comments: 31
Uploads: 0
No errors so far.

Running /run print(sStats_clockText:GetText()) I get the response of 'nil'.
Salv is offline Report comment to moderator  
Reply With Quote
Old 06-07-11, 09:50 AM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 8673
File comments: 532
Uploads: 21
Are you getting any errors? (Make sure that you do not have "hide Lua errors" checked in Interface Options.)

What do you get when doing
/run print(sStats_clockText:GetText())
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline Report comment to moderator  
Reply With Quote
Old 06-06-11, 04:45 PM  
Salv
A Kobold Labourer
 
Salv's Avatar

Forum posts: 0
File comments: 31
Uploads: 0
Didn't seem to change anything.

Here's a screenshot: http://i.imgur.com/JWMSZ.jpg
Salv is offline Report comment to moderator  
Reply With Quote
Old 06-04-11, 09:41 AM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 8673
File comments: 532
Uploads: 21
Originally posted by Salv
Nope. I'm using the main 3 (memory, fps and latency) and the clock.
Try disabling all other addons besides sStats and sStats_clock.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline Report comment to moderator  
Reply With Quote
Old 06-04-11, 07:42 AM  
Salv
A Kobold Labourer
 
Salv's Avatar

Forum posts: 0
File comments: 31
Uploads: 0
Originally posted by Seerah
sStats_clock is working fine for me. Do you happen to have sStats_Gold installed? There's an error with that code where it registers the module as "clock" instead of "gold". If so, it's simple enough for you to open up and fix.
Nope. I'm using the main 3 (memory, fps and latency) and the clock.
Salv is offline Report comment to moderator  
Reply With Quote
Old 06-02-11, 08:48 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 8673
File comments: 532
Uploads: 21
sStats_clock is working fine for me. Do you happen to have sStats_Gold installed? There's an error with that code where it registers the module as "clock" instead of "gold". If so, it's simple enough for you to open up and fix.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Last edited by Seerah : 06-02-11 at 08:48 PM.
Seerah is offline Report comment to moderator  
Reply With Quote
Old 05-30-11, 09:12 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 8673
File comments: 532
Uploads: 21
Originally posted by Salv
This might sound silly but is the clock an actual working module?

The preview screenshots would indicate to me that it is but the time just isn't appearing for me. I can see the clock module 'mover' when the addon's unlocked but other than that it's no where to be found. I've tried redownloading both of them and adding the clock lua file to the modules folder in the sStats core but neither worked.

The clock module also isn't creating a separate lua/bak file. Don't know if that means something or it's because the saved options are tied into the main sStats addon.

Anything I can do or try to get this working? Maybe it has something to do with the Blizzard clock?
It should be working, yes. I'll check into it. I've had it disabled recently and have been using the default one on the minimap (since my PocketPlot addon configures it, too).
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline Report comment to moderator  
Reply With Quote
Old 05-30-11, 06:30 PM  
Salv
A Kobold Labourer
 
Salv's Avatar

Forum posts: 0
File comments: 31
Uploads: 0
This might sound silly but is the clock an actual working module?

The preview screenshots would indicate to me that it is but the time just isn't appearing for me. I can see the clock module 'mover' when the addon's unlocked but other than that it's no where to be found. I've tried redownloading both of them and adding the clock lua file to the modules folder in the sStats core but neither worked.

The clock module also isn't creating a separate lua/bak file. Don't know if that means something or it's because the saved options are tied into the main sStats addon.

Anything I can do or try to get this working? Maybe it has something to do with the Blizzard clock?
Last edited by Salv : 05-30-11 at 06:35 PM.
Salv is offline Report comment to moderator  
Reply With Quote
Old 11-11-10, 11:23 AM  
reets
A Kobold Labourer
 
reets's Avatar

Forum posts: 0
File comments: 3
Uploads: 0
ah ok, i went and rechecked all the modules (all which i got from the optional files section) and looks like the Gold module has the name of "clock" also.

i made my own module that shows everything in 1 line (instead of a bunch of different blocks of data) so i forgot to come back and respond.
reets is offline Report comment to moderator  
Reply With Quote
Old 11-05-10, 08:54 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 8673
File comments: 532
Uploads: 21
Re: error

Originally posted by reets
I figured out what causes the below error. It it the clock addon from the Optional Files.

Code:
Message: ..\AddOns\sStats\sStats.lua line 489:
   sStats has already been added to the Blizzard Options Window with the given path
?... I don't get that error. When do you get that error?

Do you have any other extra modules installed? The clock module serves as the tutorial for creating modules, and it sounds as if someone did not give their new module a unique identifier.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline Report comment to moderator  
Reply With Quote
Old 10-31-10, 01:03 PM  
reets
A Kobold Labourer
 
reets's Avatar

Forum posts: 0
File comments: 3
Uploads: 0
error

I figured out what causes the below error. It it the clock addon from the Optional Files.

Code:
Message: ..\AddOns\sStats\sStats.lua line 489:
   sStats has already been added to the Blizzard Options Window with the given path
reets is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: