Download
(111 Kb)
Download
Updated: 08-26-12 09:44 PM
Pictures
File Info
Compatibility:
Mists of Pandaria (5.0.4)
Updated:08-26-12 09:44 PM
Created:10-02-09 09:59 PM
Downloads:5,791
Favorites:43
MD5:
sStats  Popular! (More than 5000 hits)
Version: 1.2.4
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.4
- updated TOC number for MoP
- updated libs
- removed "MONOCHROME" font flag because it crashes the client currently
- changed "THICK OUTLINE" to "MONOCHROME OUTLINE"

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 (8)
File Name
Version
Size
Author
Date
Type
1.1
1kB
04-07-13 05:27 AM
Addon
v1.3
1kB
09-06-12 11:14 PM
Addon
1.0.4
1kB
08-26-12 09:45 PM
Addon
1.0.5
2kB
08-26-12 09:45 PM
Addon
1.0.2
1kB
12-28-10 04:25 PM
Addon
1.0.1
904B
12-27-10 10:04 PM
Addon
1.0.0
1kB
12-27-10 09:55 PM
Addon
1.0
955B
12-27-10 05:42 PM
Addon


Archived Files (9)
File Name
Version
Size
Author
Date
1.2.1
109kB
Seerah
07-08-11 01:07 PM
1.2
109kB
Seerah
02-19-11 04:55 PM
1.1.2
109kB
Seerah
02-15-11 09: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 11: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
Unread 08-01-10, 08:58 PM  
Dyiera
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
lua error

That's exactly what I was looking for. But sadly it won't work for me.

Each time I try to activate/configure it, I get the following error:

Code:
Message: Interface\AddOns\sStats\sStats.lua:489: sStats has already been added to the Blizzard Options Window with the given path
Time: 08/02/10 04:41:34
Count: 1
Stack: [C]: ?
...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1899: in function `AddToBlizOptions'
Interface\AddOns\sStats\sStats.lua:489: in function <Interface\AddOns\sStats\sStats.lua:353>
Interface\AddOns\sStats\sStats.lua:499: in function <Interface\AddOns\sStats\sStats.lua:493>
Interface\AddOns\sStats\sStats.lua:534: in function <Interface\AddOns\sStats\sStats.lua:532>

Locals: (*temporary) = "sStats has already been added to the Blizzard Options Window with the given path"
I can only see grey boxes without any content and move them around, but no text's in there. What's wrong? What can I do?
Dyiera is offline Report comment to moderator  
Reply With Quote
Unread 08-09-10, 10:59 AM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9589
File comments: 586
Uploads: 25
Somehow, you have sStats trying to create its options twice, it looks like. Try disabling everything but the sStats core addon and try again.
__________________
"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

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 09-24-10, 04:38 PM  
thatguynz2010
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hi Seerah, slightly off topic question - what is the font that you are using in those screenshots? It's really nice and simple!
thatguynz2010 is offline Report comment to moderator  
Reply With Quote
Unread 09-24-10, 09:27 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9589
File comments: 586
Uploads: 25
Originally posted by thatguynz2010
Hi Seerah, slightly off topic question - what is the font that you are using in those screenshots? It's really nice and simple!
I believe it was Florencesans: http://www.dafont.com/florencesans.font
__________________
"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

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 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
Unread 11-05-10, 08:54 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9589
File comments: 586
Uploads: 25
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

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 11-11-10, 12:23 PM  
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
Unread 05-30-11, 06:30 PM  
Salv
A Kobold Labourer
 
Salv's Avatar

Forum posts: 0
File comments: 26
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
Unread 05-30-11, 09:12 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9589
File comments: 586
Uploads: 25
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

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 06-02-11, 08:48 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9589
File comments: 586
Uploads: 25
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

[SIGPIC][/SIGPIC]
Last edited by Seerah : 06-02-11 at 08:48 PM.
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 06-04-11, 07:42 AM  
Salv
A Kobold Labourer
 
Salv's Avatar

Forum posts: 0
File comments: 26
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
Unread 06-04-11, 09:41 AM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9589
File comments: 586
Uploads: 25
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

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

Forum posts: 0
File comments: 26
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
Unread 06-07-11, 09:50 AM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9589
File comments: 586
Uploads: 25
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

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 06-08-11, 02:57 PM  
Salv
A Kobold Labourer
 
Salv's Avatar

Forum posts: 0
File comments: 26
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
Post A Reply



Category Jump: