Breakfast Stat Sig (revisited)

Mmmm... What's cookin in the kitchen?

Moderator: Lucifer

User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Breakfast Stat Sig (revisited)

Post by Lucifer »

Ok, the statsig is working again. Here's how you do it:

1. All old URLs are still valid, but I strongly urge you to update to the new form, which is:

http://breakfast.servegame.com/statsig/player.png

Example:

http://breakfast.servegame.com/statsig/Lucifer.png

2. To configure the statsig, follow these steps:

a) Register as a user on the Breakfast off the Grid website (http://breakfast.servegame.com/) if you haven't already.

b) Click on the "Server Stats" link. You will now see a navigation menu at the top.

c) VERY IMPORTANT. Click on the "Player Registration" link to reserve your nickname. Color codes need to be put in as hexes (no, I haven't made it load a list yet, but I'm thinkin about it). If you're in doubt, contact me through the website contact form (or here) and I'll look in the stat files for the actual string you should use. You can reserve as many as you'd like, but once a name is reserved, no one else can get it. It doesn't affect the gameserver itself, hopefully that will come sometime. IN the meantime, in the case of any disputes, someone's not going to be happy. Probably me. :(

d) Click on the "Statsig" link and enjoy!
Last edited by Lucifer on Sat Jul 28, 2007 6:23 am, edited 1 time in total.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Ok, I made it support choosing your player name from a list when registering a player name. You can either click a box and type in a name or you can click a different box and select from the list.

After seeing the list of players, I really don't want to have to hold hands of people with color codes in their names. :) Anybody got some good php code that'll remove armagetron color codes? I'm still undecided on if I should try, seeing as how the color codes could conceivably be the only difference between two names (none right now that I know of, though).
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Is there still an option to not have text shadow, and was there a top-margin/bottom-margin setting? Works well, altough its quite an odd list of fonts. Just looking for a good serif. Please make Georgia, Ms.Eaves (<--doubt it), Baskerville, or even Lucida Grande available if you have it. :wink:

Nice job 8)
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Theoretically you should be able to put in "off" as the option and it should work. I'll test it, but I don't think I changes that code.

Ok, I had disabled it. I restored it, so you can turn off shadow by setting it's value to "off" instead of a RGB triplet.

Edit: I went ahead and changed yours for you, nemo. Hope you don't mind. :)

Edit2: Yeah, well, it's a cool class I made. :) I added two more options, shadow distance and top margin. If you set shadow distance to 0, it's the same as disabling the shadow. (It still gets rendered, it just gets overwritten) The class is cool because you just add the config parameter in the config array and then go and implement it, like this:

Code: Select all

'tm'=>array(
      'default'=>3,
      'description'=>'The size of the top and bottom margins',
      'type'=>'int',
      'label'=>'Top Margin Size',
      'required'=>false),
Then you refer to $this->tm to use this particular one, and since there's a couple of collector methods that collect config items like this and initialize various values with them, it's a cinch to add new things. :) (I used the statsig to prototype this config system and then did its first implementation in a project for work that hasn't yet been released. :( It's even cooler there because of how it works with the inheritance hierarchy)
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Your_mom
Match Winner
Posts: 653
Joined: Sun Jun 06, 2004 1:45 am

Post by Your_mom »

original swampland is no longer part of the stats :(
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Your_mom wrote:original swampland is no longer part of the stats :(
It was down when I last updated. I'll update again and see. :)
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Ok, stats appear to be updating again, with all the servers. Looks like it was a permissions problem, I was trying to redirect the cronjob to a file in a directory where the user didn't have write access. I took off the redirection, but I kinda refuse to get an email every 5 minutes with a log of the stat update, so I updated the cronjob again (after verifying it was updating without redirection) to redirect to the benign /dev/null. I hope he'll be happy to receive all the stat emails.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Awesome. Sorting by type (rounds won, matches, ladder) coming soon? :wink:

Edit: Are the raw text files accessible? I'm making a stats analyzer, that tracks changes. Also making a small dashboard widget to track current players, so if I actually could use a played on servers stats it would make me happy :D
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

PM me and I can set you up with Hell's stats. Send Swampy an email through the website to get his stats.

Stat syndication and column sorting are both planned features, however. I do not know when I'll have a chance to do them, though.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Post by Phytotron »

Image

So, um, I have the colors at the default (255,255,255), but as you see the text is bluish. :? I tried other combos as well, but it just stayed that color. Is it the fault of me wee custom background?

Also, any chance that sometime one will be able to specify a set of servers? I never play in Swampland, you see, so those stats are irrelevant to me. But I do play in the other three. I'd like to just show those, if possible. If not, ain't no thang.

Oh, and uh, the stats on your page aren't the same as what the server tells me as I play. :?

Me confuzzled.
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Post by Phytotron »

Oh, and I have shadow distance at 0, but you see there's also still a shadow.
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Set shadow color to "off"
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Post by Phytotron »

Actually, at this point, whatever change I make doesn't seem to take—any of them.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Oscilloscope wrote:Actually, at this point, whatever change I make doesn't seem to take—any of them.
You're probably suffering from a browser cache problem then. Clear your cache and see. I just tested the shadow distance as "off" and it works fine, notice my sig right now.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
Post Reply