Sim Dynasty

View Old Forum Thread

Old Forum Index » Baseball Beta Testing » Beta News » Larger League Sizes
Admin

Larger League Sizes

January 28, 2014 at 11:35PM View BBCode

We are currently working on a few initiatives, one of them will be to allow for different league sizes.

The reason we are tackling this now is that there are too many teams for sale and supply is outpacing demand for teams. Most of the site management stuff was designed while we were growing, without a lot of mechanisms for dealing with shrinking numbers. We want to have mechanisms in place for both conditions, growth and decline.

Initially, we plan to use this to combine leagues with poor renewal histories. For example, taking two leagues that are looking for 4 new owners each and combining them into a single 24 team league. When teams leave that league, we can dial it back to a 20 team league, and then a 16 team league.

Yes, I will need help testing these larger leagues. I will let you know when we are ready for volunteers, we don't need them yet. For now though, please keep an eye on your existing teams in the beta leagues to make sure there aren't any problems. We'll be updating a lot of code on the backend to allow support for larger leagues, so I want to make sure nothing is broken.

Areas that could pose problems:
- Anything where AL/NL is important. For instance, selection of All Star teams, MVPs, Gold Gloves.
- Anything to do with scheduling of games.
- Anything to do with playoffs or Tiebreakers

We will have more to add to this as we work on the code.

Thanks!
Tyson
ballplayer3

January 29, 2014 at 01:35AM View BBCode

On the waiver wire, I just noticed that the date is 4/8, and there are players with Claim dates of 4/6 & 4/7 still on the Waiver wire. It seems like they should have been removed, right?

This probably has nothing to do with the subject of Larger League Sizes, but it does seem to be a problem.
Admin

January 29, 2014 at 07:29PM View BBCode

I'll take a look, I believe it is related. Thanks for pointing it out.

Tyson
Admin

January 29, 2014 at 08:53PM View BBCode

Ok, that has been fixed.

Thanks!
CaseyStengel

Apache Error

January 29, 2014 at 10:58PM View BBCode

When I try to access Head-to-Head results I get the following error:
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 164 in the jsp file: /headtohead.jsp
numteams cannot be resolved
161: query +="join league on hometeam.team_league_id = league.league_id ";
162: query +="join city as homecity on hometeam.team_city_id = homecity.city_id ";
163: query +="join city as awaycity on visteam.team_city_id = awaycity.city_id ";
164: query +="where schedule_teams = " + numteams + " and (schedule_date >= '" + year + "-01-01' and schedule_date<= '" + year + "-12-31') and ((visteam.team_id=" + teamid + ") or (hometeam.team_id=" + teamid + ")) ";
165: query +="group by otherteam order by othercity";
166:
167:


An error occurred at line: 200 in the jsp file: /headtohead.jsp
numteams cannot be resolved
197: double pct;
198: double pythpct;
199: int i = 1;
200: int max = numteams / 2;
201: if(cityleague.equals("1")) {
202: i = (numteams / 2) + 1; // 9
203: max = numteams;


An error occurred at line: 202 in the jsp file: /headtohead.jsp
numteams cannot be resolved
199: int i = 1;
200: int max = numteams / 2;
201: if(cityleague.equals("1")) {
202: i = (numteams / 2) + 1; // 9
203: max = numteams;
204: }
205:


An error occurred at line: 203 in the jsp file: /headtohead.jsp
numteams cannot be resolved
200: int max = numteams / 2;
201: if(cityleague.equals("1")) {
202: i = (numteams / 2) + 1; // 9
203: max = numteams;
204: }
205:
206: for(; i<=max; i++) {


An error occurred at line: 221 in the jsp file: /headtohead.jsp
numteams cannot be resolved
218: String homepctstr = ".000";
219: String roadpctstr = ".000";
220: if(i != schedulingid) {
221: query = "select sum(if(boxscore_home_runs > boxscore_away_runs, 1, 0)) as homewins, count(*) as homegames, sum(boxscore_home_runs) as homeruns, sum(boxscore_away_runs) as homerunsagainst from boxscore, schedule where schedule_teams = " + numteams + " and boxscore_schedule_id = schedule_id and boxscore_league_id = " + leagueid + " and (schedule_date >= '" + year + "-01-01' and schedule_date<= '" + year + "-12-31') and schedule_home = " + schedulingid + " and schedule_away = " + i;
222: rset = stmt.executeQuery(query);
223: if(rset.next()) {
224: numgames = rset.getInt("homegames");


An error occurred at line: 230 in the jsp file: /headtohead.jsp
numteams cannot be resolved
227: runs = rset.getInt("homeruns");
228: runsa= rset.getInt("homerunsagainst");
229: }
230: query = "select sum(if(boxscore_away_runs > boxscore_home_runs, 1, 0)) as awaywins, count(*) as awaygames, sum(boxscore_away_runs) as awayruns, sum(boxscore_home_runs) as awayrunsagainst from boxscore, schedule where schedule_teams = " + numteams + " and boxscore_schedule_id = schedule_id and boxscore_league_id = " + leagueid + " and (schedule_date >= '" + year + "-01-01' and schedule_date<= '" + year + "-12-31') and schedule_away = " + schedulingid + " and schedule_home = " + i;
231: rset = stmt.executeQuery(query);
232: if(rset.next()) {
233: numgames += rset.getInt("awaygames");


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.

Apache Tomcat/6.0.29
Admin

January 30, 2014 at 08:57PM View BBCode

Sorry, that has been fixed as well.

Thanks!
poppa2

February 06, 2014 at 02:02PM View BBCode

This may not be related to the increased league size but the MVP results are not available.
Admin

February 11, 2014 at 09:14PM View BBCode

It is likely related, I will take a look at this.

Tyson
num014

February 12, 2014 at 04:35PM View BBCode

Will this include Salary Leagues future?:spin:
Admin

February 18, 2014 at 07:45PM View BBCode

The MVP issue should be fixed going forward.

Any leagues with lousy renewal rates may be combined into 24 team leagues.

Tyson
Admin

February 20, 2014 at 07:21PM View BBCode

Ok, I have re-written the playoff code completely to make it more flexible in dealing with different league sizes. Both leagues are far from the playoffs at the moment, I'm going to work with a test league myself and try to iron out any issues before you guys get to the playoffs.

The biggest change that you may notice is that the playoff matchups are no longer generated right before the game runs. They will be generated in advance. This doesn't matter in 99% of cases, but when there is a tiebreaker or two teams tie and home field advantage is up in the air, the schedule page and the playoff game code should be in sync. The tiebreaker series will be generated immediately following game 162.

For the first post season, I'm going to just let it run to make sure it works. For the 2nd league to get to the post season, I might manufacture some ties.

Tyson
Admin

February 27, 2014 at 07:50PM View BBCode

I am ready for your help in testing. If you want to check out the league, you can sign in as betauser24, pw: betauser24.

If you'd like a team of your own (or 2), please post here and I'll set you up.

The initial talent level of the league was very screwed up. I took a test 16 team league and just tried to jam the players onto the teams. So there is a lot of bad players from the waiver wire on teams, and really there wasn't enough players to go around. This will sort itself out over time.

Also, for testing I did not always run 162 games in the prior seasons, and sometimes manually finagled team's records to result in ties. In case you're looking at past seasons and wonder what happened.

Most of my testing has been with the playoff schedule, and tie breaking. I think everything is working well. Some changes to the playoffs that will effect not only this league, but all leagues:

1) The 2 division winners will make the playoffs. The next 2 teams with the highest records will be the wild cards. Division winners have home field advantage, even if the wild card team has a better record.

2) The schedule page will only show the next playoff series. And it uses the same logic as the game engine, so we will no longer have the issue where the schedule page and game engine disagree about who the home team is in an upcoming series.

3) The downside to this is that the schedule page will not show the Division Series (or LCS in 16 team leagues) if there is a tiebreaker game that has yet to be played. It will only show up once the TB game has been played. I may try to find a fix for this.

4) I added some logic to the playoff code to pause the league if there is a tie that the code can't handle. Currently, the code cannot handle any 4 way ties. And in the case of 24 team leagues, it cannot handle ties in which 2 teams tie for the division AND also tie with a wild card team from the other division AND one of those teams won't make the playoffs. The good news is that the code is in a better place to address these in the future, if these types of ties turn out to be common.

5) In the case of 3 way ties, if each team wins a game in the tiebreaker, the tie will be broken by regular season head-to-head records rather than run differential in the tiebreaker games. If the teams tied in head-to-head, a coin toss will determine the playoff team.

Let me know if you see any issues, or if you want a team.

I'm also going to speed the regular beta league to October so I can make sure the new playoff code works with 16 team leagues. I will likely play the playoff games multiple times and finagle team records to make sure tiebreaking works.

Tyson
kyleturf30

February 27, 2014 at 11:10PM View BBCode

Me please....I'll take as many or as few as you want me to have.


[Edited on 2-27-2014 by kyleturf30]
Mongrel

February 28, 2014 at 01:31AM View BBCode

I'd like a team
kyleturf30

February 28, 2014 at 01:48AM View BBCode

Mongrel is my kinda owner. Good to see you over here.
num014

February 28, 2014 at 10:35AM View BBCode

Originally posted by Mongrel
I'd like a team

Me too
Admin

February 28, 2014 at 06:23PM View BBCode

I've set you guys up with teams.

Tyson
paulcaraccio

March 01, 2014 at 07:39AM View BBCode

dynasty vision doesnt work for me, it loads but i can't un-pause it.
poppa2

March 01, 2014 at 11:11AM View BBCode

I will certainly help out. You can set me up for a team (two if there is a need).

Poppa
alecansky74

March 01, 2014 at 05:47PM View BBCode

I can take on a team. Set me up.

Thanks
Alec
Mongrel

March 01, 2014 at 05:52PM View BBCode

Originally posted by paulcaraccio
dynasty vision doesnt work for me, it loads but i can't un-pause it.


I normally skip to the boxscore, but just set it on, and it's not working for me either. Pressing the Play and Reverse buttons makes the green bar change, but it doesn't show any game activity.
ballmark

March 01, 2014 at 06:47PM View BBCode

If you still need owners to test, Tyson, I'll take a team.
Mongrel

March 01, 2014 at 07:27PM View BBCode

If it helps get the ball rolling I'll take another kind sir.
heinerkin

March 02, 2014 at 08:10PM View BBCode

I'll take one, Tyson!
Bandito

March 02, 2014 at 09:54PM View BBCode

I would love to be a tester

Pages: 1 2