Sim Dynasty

View Old Forum Thread

Old Forum Index » Baseball Beta Testing » Beta News » League Leaders
Admin

League Leaders

April 09, 2009 at 09:34PM View BBCode

I've added the League Leader in Bold Italics on the player card for all the "positive" categories for pitching and hitting. This is the overall MLB leader.

The code to refresh these will run with the OffSeason.

Tyson
barterer2002

April 09, 2009 at 09:44PM View BBCode

Terrific, thanks T
shutout1277

April 10, 2009 at 02:10AM View BBCode

Nice! This one has been asked for plenty of times.
Admin

April 10, 2009 at 03:25PM View BBCode

It took a lot longer than you might expect - I've been working on it on-and-off for the last week or so. I couldn't just add the logic to the player card page, as that would basically be the equivalent of loading every league leaders page for every season for that league each time any player card is loaded. So I needed a more elegant solution, hence why it gets set during the offseason.

Tyson
tworoosters

April 16, 2009 at 06:12PM View BBCode

It's a nice feature but ideally I'd like to see it show "league" leaders not MLB.

Also does ABE do a coin flip on ties or do both players get credit ?
Jughead

April 16, 2009 at 06:50PM View BBCode

Will it put a black diamond next to it, like on Topps cards?
Admin

April 16, 2009 at 08:55PM View BBCode

It's a nice feature but ideally I'd like to see it show "league" leaders not MLB.
I debated this and decided to go with MLB. I left room in the code to someday add AL vs. NL.

Also does ABE do a coin flip on ties or do both players get credit ?
Both should get credit.

Will it put a black diamond next to it, like on Topps cards?
Just bold and italics for now.

Tyson
DwightKSchrute

April 19, 2009 at 05:39AM View formatted

You are viewing the raw post code; this allows you to copy a message with BBCode formatting intact.
This doesn't appear to be working correctly at all.

http://beta.simdynasty.com/player.jsp?id=19055
Admin

April 22, 2009 at 08:53PM View BBCode

I think the code ran for the current season - in which everyone had 0s in all columns so everyone was the league leader. That is my guess at least, I need to look into this.

Tyson
Admin

April 22, 2009 at 09:07PM View BBCode

Ok, I've updated this code so it should work properly next OffSeason for the 2033 leaders. I've reset the league leaders for 2033.

Tyson
DwightKSchrute

May 05, 2009 at 04:03PM View BBCode

this looks great Tyson will it go back and do past seasons like Beta has done when it is moved to the main site because that would be outstanding. Thanks!
Admin

May 05, 2009 at 04:20PM View BBCode

I think I wrote the code to do past seasons, but I'll have to confirm that.

Tyson
DwightKSchrute

May 05, 2009 at 04:23PM View BBCode

It is doing them. Which is awesome.
DwightKSchrute

May 07, 2009 at 03:29AM View BBCode

I just noticed this doesn't appear to be working for the rate stats:

http://beta.simdynasty.com/player.jsp?id=20731
Admin

May 07, 2009 at 04:07PM View BBCode

Thanks, I will look into it.

Tyson
Admin

May 08, 2009 at 08:50PM View BBCode

Good catch. I forgot to look for minimum plate appearances for AVG. Let me fix that going forward:

http://beta.simdynasty.com/player.jsp?id=20217

Tyson
DwightKSchrute

May 08, 2009 at 09:10PM View BBCode

I presume the same thing happened with the pitching stats.
DwightKSchrute

May 13, 2009 at 07:03PM View BBCode

Did this get fixed before the changes were put in?
Admin

May 13, 2009 at 07:16PM View BBCode

I fixed this for batters. For pitchers, I don't believe it was a problem. I just checked the code and it looks for at least 162 IP for Pitchers, which is the MLB rule.

Tyson
DwightKSchrute

May 13, 2009 at 07:20PM View BBCode

Cool I figured you had but wanted to check since your example above was still bold.
Admin

May 13, 2009 at 07:28PM View BBCode

ERA doesn't seem to be working. I am guessing WHIP isn't working either. I'm looking into this now.

Tyson

Pages: 1