Home | Webstore
Latest News: OOTP 25 Available - FHM 10 Available - OOTP Go! Available

Out of the Park Baseball 25 Buy Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 25 > OOTP Mods > OOTP Mods - Schedules

OOTP Mods - Schedules Create your very own game schedules, or share historical schedules

Reply
 
Thread Tools
Old 07-19-2006, 01:47 PM   #1
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
Scheduler Progress as of 7/18/06

Thought I would post another update, as its been about 10 days---

Everything is progressing nicely to this point, although I am not as far along as I would have hoped to be at this juncture. A lot of this has been due to my insane work schedule which has resulted in less time to work on this.

Anyways, here is the update:

--Games and series are built for all teams, now all that's left is to schedule them on a daily basis.

--Spent a good 2 days running back thru and fixing some code that allowed games between teams that played an odd number of games between opponents(example 17) to have extra home or away games. For instance, if they were scheduled to play 9 home games and 8 away games, then against the other team they would need to play 8 home and 9 away. The problem lied in making sure that all of the teams played the correct number of games, not just for the one being scheduled at that time. Its just about fixed, I have a syntax error which I isolated yesterday but was to tired to go thru and fix, so I will get to that today and it should be good to go.

--Created the daily schedule, which needs a little fine tuning, but for the most part is fine

--Spent a good 2 days fixing some randomization code that was incorrect I found on the net...I could have used a different method here, but I really,really like the way this works.

--Created the checks for Playing on Days of the Week, Number of Days in between off days, Game Start Times, and Normal/Split Season. All there is left to do is implement the Start Times and Normal/Split Season code into the proper section...

---Numerous other minor fixes and optimizations that are small and minor, but needed to be done.

Anyways, I believe I should be able to have this finished by the end of the month, but I may need some time to test everything out...

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Old 07-19-2006, 02:20 PM   #2
Hellion9
Minors (Triple A)
 
Hellion9's Avatar
 
Join Date: May 2005
Posts: 222
Infractions: 0/1 (1)
This is excellent news as this is one of the mods I am most looking forward to. I had considered starting this project myself but (yes, I'm lazy) I never would have got round to it. Thanks for your efforts and I'm very excited to hear the latest update!
__________________
They still believe that they can hold the reins, but then they've got no sense of history.
Hellion9 is offline   Reply With Quote
Old 07-19-2006, 05:53 PM   #3
scefalu
Major Leagues
 
scefalu's Avatar
 
Join Date: Dec 2001
Posts: 355
Well, if you need testers, I'm sure there's a ready and willing supply of them, here! Thanks for all your efforts.
__________________
Shawn
scefalu is offline   Reply With Quote
Old 07-19-2006, 06:02 PM   #4
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
Quote:
Originally Posted by scefalu
Well, if you need testers, I'm sure there's a ready and willing supply of them, here! Thanks for all your efforts.
Yes, I would love people to test it out when its done, as I am sure there are going to be some bugs, since no matter how many configurations I test, I will never be able to do all of them. I am sure there will be some bugs that pop up, but I also know that once they are found, they will be fixed

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Old 07-20-2006, 03:07 AM   #5
Le Grande Orange
Hall Of Famer
 
Le Grande Orange's Avatar
 
Join Date: Feb 2002
Location: Up There
Posts: 15,386
Quote:
Originally Posted by Matter2003
--Spent a good 2 days running back thru and fixing some code that allowed games between teams that played an odd number of games between opponents(example 17) to have extra home or away games. For instance, if they were scheduled to play 9 home games and 8 away games, then against the other team they would need to play 8 home and 9 away. The problem lied in making sure that all of the teams played the correct number of games, not just for the one being scheduled at that time.
Allow me to step in with some schedule creation theory at this point:

Splitting an odd number of games between opponents (and even numbers too for that matter) need not be nearly or exactly even; it can be uneven. It depends on how the number of series in the schedule compares to the number of days you have into which to fit the series, as well as if you are trying to reduce the occurrence of 2-game series.

For example, 17 games between opponents could be split 10-7 or 7-10 instead of 9-8 / 8-9. The 9 games would most likely be split into 3-3-3, but the 8 games can be split in a variety of ways. It could be 4-4, 3-3-2, 4-2-2, or 2-2-2-2, with the most likely candidate being 3-3-2.

What a 3-3-2 split means is that the 17 games are split into a total of six series (3-3-3 and 3-3-2) per opponent (for the moment I'm leaving out the further complication where the 9 games might have to be split into 4-3-2 in order to use the 2-game series to squeeze three series into one week in order to fit all the series into the allotted calendar length of the season).

A 10-7 / 7-10 split can be done as just five series: 4-3-3 and 4-3. This means one series is cut from the matchup as well as a 2-game series being eliminated (and MLB hates 2-game series).

So adjusting an odd number of games against an opponent can be done heavily unevenly as well. This is something that MLB itself has done since 1998: 9 games against an opponent is split 6-3 / 3-6 ; 10 games is split 6-4 / 4-6 or 7-3 / 3-7 ; 16 games is split 9-7 / 7-9 ; and 17 games is split 10-7 / 7-10.

Whether a split should be done evenly or nearly evenly or not depends on the number of series needed for the schedule, the number of days in the season, and whether or not there is any emphasis put on reducing the occurrence of 2-game series. Of course the original format of the schedule (i.e. how many times a club plays each of its opponents) is also an important factor.

Last edited by Le Grande Orange; 07-20-2006 at 03:08 AM.
Le Grande Orange is offline   Reply With Quote
Old 07-20-2006, 11:09 PM   #6
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
Quote:
Originally Posted by Matter2003
--Spent a good 2 days fixing some randomization code that was incorrect I found on the net...I could have used a different method here, but I really,really like the way this works.
Matter2003
Well, I have decided to make a change with the randomization code, and have ported the Mersenne Twister code to vb as there were some occasssional problems with the other code not generating a proper value...

This is considered by many to be the best random generation code available, and should ensure some good results with almost no chance of repeats...

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Old 07-21-2006, 12:20 AM   #7
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
Quote:
Originally Posted by Le Grande Orange
Allow me to step in with some schedule creation theory at this point:

Splitting an odd number of games between opponents (and even numbers too for that matter) need not be nearly or exactly even; it can be uneven. It depends on how the number of series in the schedule compares to the number of days you have into which to fit the series, as well as if you are trying to reduce the occurrence of 2-game series.

For example, 17 games between opponents could be split 10-7 or 7-10 instead of 9-8 / 8-9. The 9 games would most likely be split into 3-3-3, but the 8 games can be split in a variety of ways. It could be 4-4, 3-3-2, 4-2-2, or 2-2-2-2, with the most likely candidate being 3-3-2.

What a 3-3-2 split means is that the 17 games are split into a total of six series (3-3-3 and 3-3-2) per opponent (for the moment I'm leaving out the further complication where the 9 games might have to be split into 4-3-2 in order to use the 2-game series to squeeze three series into one week in order to fit all the series into the allotted calendar length of the season).

A 10-7 / 7-10 split can be done as just five series: 4-3-3 and 4-3. This means one series is cut from the matchup as well as a 2-game series being eliminated (and MLB hates 2-game series).

So adjusting an odd number of games against an opponent can be done heavily unevenly as well. This is something that MLB itself has done since 1998: 9 games against an opponent is split 6-3 / 3-6 ; 10 games is split 6-4 / 4-6 or 7-3 / 3-7 ; 16 games is split 9-7 / 7-9 ; and 17 games is split 10-7 / 7-10.

Whether a split should be done evenly or nearly evenly or not depends on the number of series needed for the schedule, the number of days in the season, and whether or not there is any emphasis put on reducing the occurrence of 2-game series. Of course the original format of the schedule (i.e. how many times a club plays each of its opponents) is also an important factor.
LGO---thanks a lot for the info---that is good to know...

Since, its already complete and working good, I will stick to what I have for right now, but I can easily just overload the function and create an option to play unbalanced home-away series....something I will probably wait to do til the second release, as that would take more time than I would like to spend on adding code to this section...

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Old 07-21-2006, 01:16 AM   #8
Le Grande Orange
Hall Of Famer
 
Le Grande Orange's Avatar
 
Join Date: Feb 2002
Location: Up There
Posts: 15,386
Understood, but the main thing is the schedule itself and how it looks.

I suggest, in essence, a four step plan to creating a schedule:

1) Determine the format (that is, how many times a club plays each of its opponents).
2) Break that format down into series. Note that the numbers arrived at may change but the first breakdown serves as a starting point.
3) Compare the number of series to the number of weeks in the season.
4) Adust the series breakdown to fit the number of weeks available.
5) Lay out the series in the schedule.

Here's an example using a 12 team league split into two 6-team divisions playing a 162 game schedule over 26 weeks in an 18-12 format (18 games against each divisional rivals and 12 games against each interdivisional rival).

The 18-12 format yields a total of 90 divisional games and 72 interdivisional games. The first breakdown splits the 18 games into 3-3-3 3-3-3 and the 12 interdivisional games into 3-3 3-3. This yields a total of 30 divisional series and 24 interdivisional series, and a total number of 54 series being played in the season with it initially all being 3-game series.

The 26 weeks in the season, using the normal MLB system of two series per week, means a total of 52 "slots" into which series can be placed. An All-Star Game break would remove one slot, leaving a total of 51. But we have a total of 54 series, meaning we need three weeks during the season in which three series are played instead of two. But to play three series in a week we need some 2-game series which we haven't yet created in our series breakdown. Three series in a week means a 2-2-3 series pattern, and since we need three such weeks, we now know that we need a total of at least six 2-game series.

With this information in hand, we can rework the series breakdown. We can split some of the 9 home or away divisional matchups into 4-3-2 instead of 3-3-3, and/or we can split some of the 6 home or away interdivisional games as 4-2 instead of 3-3.

Doing a bit of both might result in a revised series breakdown like this:

4-3-2 4-3-2
4-3-2 3-3-3
3-3-3 4-3-2
3-3-3 3-3-3
3-3-3 3-3-3

4-2 3-3
3-3 4-2
3-3 3-3
3-3 3-3
3-3 3-3
3-3 3-3

We still have a total of 54 series, 30 of which are divisional and 24 interdivisonal. But we've now altered the series distribution into a total of 6 2-game, 42 3-game, and 6 4-game series. And now with the six 2-game series we can have three weeks where three series are played fitting our schedule into 26 weeks without problem.

The above, incidentally, is exactly what the National League schedule looked liked for the years between 1982-1992. Most teams had either a 6-42-6 or 7-40-7 distribution of 2-, 3-, and 4-game series; a few had 8-38-8.

Last edited by Le Grande Orange; 07-21-2006 at 01:17 AM.
Le Grande Orange is offline   Reply With Quote
Old 07-21-2006, 01:35 AM   #9
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
Quote:
Originally Posted by Le Grande Orange
Understood, but the main thing is the schedule itself and how it looks.

I suggest, in essence, a four step plan to creating a schedule:

1) Determine the format (that is, how many times a club plays each of its opponents).
2) Break that format down into series. Note that the numbers arrived at may change but the first breakdown serves as a starting point.
3) Compare the number of series to the number of weeks in the season.
4) Adust the series breakdown to fit the number of weeks available.
5) Lay out the series in the schedule.

Here's an example using a 12 team league split into two 6-team divisions playing a 162 game schedule over 26 weeks in an 18-12 format (18 games against each divisional rivals and 12 games against each interdivisional rival).

The 18-12 format yields a total of 90 divisional games and 72 interdivisional games. The first breakdown splits the 18 games into 3-3-3 3-3-3 and the 12 interdivisional games into 3-3 3-3. This yields a total of 30 divisional series and 24 interdivisional series, and a total number of 54 series being played in the season with it initially all being 3-game series.

The 26 weeks in the season, using the normal MLB system of two series per week, means a total of 52 "slots" into which series can be placed. An All-Star Game break would remove one slot, leaving a total of 51. But we have a total of 54 series, meaning we need three weeks during the season in which three series are played instead of two. But to play three series in a week we need some 2-game series which we haven't yet created in our series breakdown. Three series in a week means a 2-2-3 series pattern, and since we need three such weeks, we now know that we need a total of at least six 2-game series.

With this information in hand, we can rework the series breakdown. We can split some of the 9 home or away divisional matchups into 4-3-2 instead of 3-3-3, and/or we can split some of the 6 home or away interdivisional games as 4-2 instead of 3-3.

Doing a bit of both might result in a revised series breakdown like this:

4-3-2 4-3-2
4-3-2 3-3-3
3-3-3 4-3-2
3-3-3 3-3-3
3-3-3 3-3-3

4-2 3-3
3-3 4-2
3-3 3-3
3-3 3-3
3-3 3-3
3-3 3-3

We still have a total of 54 series, 30 of which are divisional and 24 interdivisonal. But we've now altered the series distribution into a total of 6 2-game, 42 3-game, and 6 4-game series. And now with the six 2-game series we can have three weeks where three series are played fitting our schedule into 26 weeks without problem.

The above, incidentally, is exactly what the National League schedule looked liked for the years between 1982-1992. Most teams had either a 6-42-6 or 7-40-7 distribution of 2-, 3-, and 4-game series; a few had 8-38-8.
LGO,

Thanks for the breakdown, I have actually incorporated most of what you are talking about already---perhaps not in the same manner, but it has been incorporated(per your first post in regards to using series and not games to schedule)

I have already coded the section that breaks the games into series, and I use a gaussian distribution(box-mueller transformation) to schedule games between the min, normal, and max series lengths. For instance, the American Association(independent league) has a min series length of 1, normal series length of 3, and a max series length of 4, meaning it will generate series of 1,2,3 and 4 games in length, with the most common being a 3 game series, and the least common a 1 game series, since its the furthest from the norm. I will probably incorporate another Input box, where users can edit the Standard Deviation, which is used in determining how many of each series lengths are generated(the higher the SD, the more 1, 2 and 4 length series). It currently is hardcoded, but I can see where users would want a higher degree of flexibility with this...

Thanks for the suggestions and keep them coming, I can definitely incorporate some of what you are talking about into what I am currently working on...

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Old 07-21-2006, 04:54 AM   #10
Le Grande Orange
Hall Of Famer
 
Le Grande Orange's Avatar
 
Join Date: Feb 2002
Location: Up There
Posts: 15,386
Quote:
Originally Posted by Matter2003
Thanks for the suggestions and keep them coming, I can definitely incorporate some of what you are talking about into what I am currently working on...
I'll certainly mention stuff as it comes to mind or I in response to something I see mentioned.

It'll be easier when seeing the actual output of the schedules.

A suggestion here: incorporate something like OOTP2006's schedule report where the dates are listed in rows on the left and there's a column for each team listing what their opponent is that day. It serves as a very handy way to see the flow of a schedule all at once. I personally find it the easiest way to judge how a schedule looks so if you have a report like that I can easily compare your generated results to various real-world major and minor league schedules.

Having it output series counts and distribution, along with weekend dates, is also useful for working towards getting the results as realistic as possible.

About series lengths, it should be anywhere from 1-game at the short end and up to 5-games at the high end. 5-game series are not common in the majors but have been scheduled from time to time (moreso in earlier years).

If you're aiming for replicating modern-day major league restrictions, here's what to keep in mind:
  • Teams should be scheduled for no more than 20 days of play in a row
  • Teams should have no more than 2 days off in any 7 day period (excluding the first week of the season and the All-Star break)
  • Home stands and road trips should be no longer than 14 games
  • 1-game series are only allowed as season openers (and even then are very rarely used)
  • 2-game series should be kept to a bare minimum; most series are either 3 or 4 games long
  • For the 162 game season, all major league teams are scheduled to play 52 series in total
  • Instances of semi-repeaters (that is, a team playing opponent A, then playing opponent B, then playing opponent A again) should be kept to a minimum
  • Weekend series at home for a team should be distributed as equally as possible amongst its opponents
Le Grande Orange is offline   Reply With Quote
Old 07-21-2006, 09:47 PM   #11
davep1967
Minors (Double A)
 
Join Date: Dec 2001
Location: Cleveland, OH
Posts: 176
Quote:
Originally Posted by Matter2003
.. and I use a gaussian distribution(box-mueller transformation) to schedule games ...
Wow! I am impressed with all the mathematical talk! (From a HS math teacher)
__________________
Try the StickWare Schedule Generator!
davep1967 is offline   Reply With Quote
Old 07-21-2006, 10:04 PM   #12
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
Quote:
Originally Posted by Le Grande Orange
I'll certainly mention stuff as it comes to mind or I in response to something I see mentioned.

It'll be easier when seeing the actual output of the schedules.

A suggestion here: incorporate something like OOTP2006's schedule report where the dates are listed in rows on the left and there's a column for each team listing what their opponent is that day. It serves as a very handy way to see the flow of a schedule all at once. I personally find it the easiest way to judge how a schedule looks so if you have a report like that I can easily compare your generated results to various real-world major and minor league schedules.

Having it output series counts and distribution, along with weekend dates, is also useful for working towards getting the results as realistic as possible.

About series lengths, it should be anywhere from 1-game at the short end and up to 5-games at the high end. 5-game series are not common in the majors but have been scheduled from time to time (moreso in earlier years).

If you're aiming for replicating modern-day major league restrictions, here's what to keep in mind:
  • Teams should be scheduled for no more than 20 days of play in a row
  • Teams should have no more than 2 days off in any 7 day period (excluding the first week of the season and the All-Star break)
  • Home stands and road trips should be no longer than 14 games
  • 1-game series are only allowed as season openers (and even then are very rarely used)
  • 2-game series should be kept to a bare minimum; most series are either 3 or 4 games long
  • For the 162 game season, all major league teams are scheduled to play 52 series in total
  • Instances of semi-repeaters (that is, a team playing opponent A, then playing opponent B, then playing opponent A again) should be kept to a minimum
  • Weekend series at home for a team should be distributed as equally as possible amongst its opponents
Thanks again, LGO

The series lengths are fully editable, because for instance, the Puerto Rican League plays 1 game at a time, and there are no series, so the min and max length would be 1...I made it this way so people can create schedules with whatever series lengths they want(within reason of course)...repeating games should never be a problem, as the randomization engine used is purportedly one of the best invented(Mersenne Twister algorithm ported to VB). Agian, I am gonna let the schedule do its thing as far as determining scheduling for the first run, and then after that I can address specific types of scheduling(ie, MLB 1990-2000, MLB 1900-1910, MILB, etc) with overloaded functions in the second release...want to make sure I have the base down first before I start adding lots of stuff, but yes, I will get to those situations, etc

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Old 07-21-2006, 10:05 PM   #13
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
Quote:
Originally Posted by davep1967
Wow! I am impressed with all the mathematical talk! (From a HS math teacher)
Hehe,

Yes, we utilized that with great success in randomizing our database info for the football game we are working on...

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Old 07-22-2006, 01:05 AM   #14
Matter2003
All Star Starter
 
Matter2003's Avatar
 
Join Date: Jun 2004
Location: In the vicinity of Buffalo,NY
Posts: 1,634
7/21/06 UPDATE:

---100% fixed the home/away issue with scheduling odd numbers of games---
each team now has the same # of home and away games scheduled...

Now I can move onto the actual scheduling of the games...

Matter2003
__________________
Goal Line Stand Football---An Open Source Project

Check us out on the Git Hub Pages:
Goal-Line-Stand-Football
Matter2003 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:11 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright © 2020 Out of the Park Developments