Home | Webstore
Latest News: OOTP Update 20.7 - OOTP 20 Available - FHM 6 Available

Offseason Discount! SAVE 50%!

  

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

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

Closed Thread
 
Thread Tools
Old 05-31-2006, 04:22 AM   #1
gmo
Hall Of Famer
 
Join Date: May 2002
Location: Grand Forks, ND
Posts: 2,901
Thanks: 0
Thanked 227x in 132 posts
Schedules for use in OOTPBB 2006

Files for OOTP6 as in this thread...
http://www.ootpdevelopments.com/boar...ad.php?t=63714
...will not work in their format with the new version OOTP2006.

However those schedules (and eventually more of course) will be made available here in this forum in the new file format used by OOTP2006.

It will take some time to bring the schedules over here and into the new format, so please be patient - there will be files and information up here soon!
gmo is offline  
Old 06-01-2006, 03:04 AM   #2
gmo
Hall Of Famer
 
Join Date: May 2002
Location: Grand Forks, ND
Posts: 2,901
Thanks: 0
Thanked 227x in 132 posts
There are a lot of details here (and it is not even complete right now!), but the key to having a schedule file work with a league is having the schedule format match the league settings for:
  • configuration (layout of subleagues, divisions, teams)
  • balanced or not
  • interleague play or not
  • games per team

Those settings for the file can be found within the filename and must be at the top of the file. Dig in below to see all the details.

But for the user just wanting a schedule or schedules it can be as simple as downloading the file(s) and making sure the options are set correctly in the game.

==================================================


Key features
  • A schedule compatible with a league's structure and schedule settings will be automatically loaded at league creation if such file is in the data/schedules folder
  • Multiple compatible schedule files within the data/schedules folder can be cycled by the game from one league season to the next
  • A single schedule has teams randomized from one season to the next as in previous versions, so the layout of the games are the same but the exact matchups vary
  • With a built-in real calendar schedules can be set to begin on certain weekdays, like the first Monday in April even though the exact date of that changes each year


==================================================


File naming convention
Schedule files can be saved in the "schedules" folder within the "data" folder within the "OOTP Baseball 2006" (or whatever you called the folder where the game is). There are certain naming conventions to be explained below that must followed for the game to be able to take advantage of the new features involving automatic loading of schedules. However schedule files not following the naming conventions and saved elsewhere on your computer still may be manually loaded.

Filenames should end with the suffix ".lsdl"

One way to name files is like this:
ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_empty.lsdl
With this file in your schedules folder it would load automatically when creating a league created with options set for no interleague play and a balanced schedule of 162 games per teams with a league structure of 2 subleagues, each with 2 divisions, each with 4 teams, because:
  • ILN : whether league is set for interleague play; in this case no - if yes would be ILY
  • BGY : whether league set with balanced schedule (all other teams in subleague played approximately same number of times); in this case yes - if no would be BGN
  • G162 : number of games played by each team in the schedule; in this case 162 - for another number would have that other number
  • SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4 : league structure defining each subleague, each division, and number of teams in each division; in this there are 2 subleagues, subleague 1 (SL1) has two divisions each with four teams (D1_T4 & D2_T4) and subleague 2 (SL2) also has two divisions each with four teams (D1_T4 & D2_T4)
  • C_ : opening for comment - there must be something there after this, though what is open
If there are multiple files with the same format in your schedules folder distinguished only by the comment at the end of the filename, the first in alphabetical order would be used at league creation then the game would move through the list as years progressed. If there were 3 such files named like below for a league created in 2006, the game would load them automatically for the league like this:
  • 2006 - ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_A
  • 2007 - ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_B
  • 2008 - ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_C
  • 2009 - ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_A
  • 2010 - ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_B.. .

Another way to name files is like this:
my_fantasy_league_ml_c_2006.lsdl
With this file in your schedules folder it would load automatically when creating a league with the name "My Fantasy League" (capitalization does not matter in league name or schedule filename), if the format of the schedule file (see below) matches the configuration and options of that league.
  • my_fantasy_league : must match exactly the name of league with the underscore character "_" replacing spaces and ignoring capitalization differences
  • ml : level of the league; in this case major league, but other options are "aaa" (AAA), "aa" (AA), "a" (A), "s_a" (short-season A), r (rookie), int (international), wl (winter league)
  • c_ : opening for comment - there must be something there, though what is open. If only the year the league is created is used as the comment, the game will load that file even if there were multiple files with the same name besides the comment.


Again files with different types names not following these patterns can still be loaded manually by the user, but the game will not load them automatically.


=================================================


Basic file format
Overall it is somewhat similar to HTML files. Here is an example of a file with most of the body removed:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SCHEDULE type="ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_" inter_league="0" balanced_games="1" games_per_team="162" start_month="4" start_day="1" start_day_of_week="2" allstar_game_day="100">
<GAMES>
<GAME day="1" time="1905" away="5" home="1" />
...
<GAME day="182" time="1905" away="11" home="16" />
</GAMES>
</SCHEDULE>

Constant heading line at top, like:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
No need to change this - it is always fine as is like that.


Next line the SCHEDULE opening line, like:
Code:
<SCHEDULE type="ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_" inter_league="0" balanced_games="1" games_per_team="162">
Those items within the line must always be defined: type, inter_league, balanced_games, games_per_team

type contains and also shows the league structure just line one of the naming conventions above
  • ILN : whether league is set for interleague play; in this case no - if yes would be ILY
  • BGY : whether league set with balanced schedule (all other teams in subleague played approximately same number of times); in this case yes - if no would be BGN
  • G162 : number of games played by each team in the schedule; in this case 162 - for another number would have that other number
  • SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4 : league structure defining each subleague, each division, and number of teams in each division; in this there are 2 subleagues, subleague 1 (SL1) has two divisions each with four teams (D1_T4 & D2_T4) and subleague 2 (SL2) also has two divisions each with four teams (D1_T4 & D2_T4)
  • C : opening for comment; nothing needed here in the SCHEDULE line
These others are redundant with the type information but are necessary
  • inter_league="0" : must either be 0 for no or 1 for yes
  • balanced_games="1" : must either be 0 for no or 1 for yes
  • games_per_team="162" : number of games played by each team through the schedule

The inter_league, balanced_games, and games_per_team setting in the file must match the "Interleague Play", "Schedule Balance", and "Number of Games per Team" settings under Game Setup > League Setup > Options. All of those settings may be defined at the creation of a league or set at a later offseason or preseason. They do not automatically apply as soon as switched - they are only taken into account at the next attempt to generate or load a schedule.


Some other information that is otherwise set in Game Setup > League Setup > Options may also be included in the SCHEDULE line like the following:
Code:
<SCHEDULE type="ILN_BGY_G162_SL1_D1_T4_D2_T4_SL2_D1_T4_D2_T4_C_" inter_league="0" balanced_games="1" games_per_team="162" start_month="4" start_day="1" start_day_of_week="2" allstar_game_day="100">
  • start_month="4" : month in which schedule is to begin; in this case the 4th month (April)
  • start_day="1" : day in the set month on which schedule is to begin; in this case the 1st (or one of the following 6 days - see below)
  • start_day_of_week="2" : day of the week on which the schedule is to begin; in this case Monday (1=Sun, 2=Mon, 3=Tue, 4=Wed, 5=Thu, 6=Fri, 7=Sat). When this option is selected the game will start the schedule on the first occurrence of that day of the week on or after the defined start month/day for the year when the league is. In this case the schedule would begin on the first Monday starting from April 1st (thus sometime inclusively between April 1 - April 7).
  • all_star_game_day="100" : day from the beginning of the schedule when the All-Star Game will be scheduled; in this case the 100th day of the schedule where day 1 is the start date
The start information (the date and whether to start on a certain day of the week then if so each one) can be set under manual the Options tab. However, the information from within a file will overwrite the settings there but only if the option "Auto adjust date if matching XML schedule found" is checked on. If not checked on whatever the start date settings are there on the Options screen will be used.

If no All-Star Game is defined by the schedule file, then if the options to "Hold All-Star Game" and "Automatically Schedule All-Star Game" are checked on then the game will pick a point around the middle of the schedule and insert a 3-day break with the All-Star Game in the middle of it. Take care with the "Automatically Schedule All-Star Game" option becasue doing this moves the post-All-Star Game schedule 3 days forward and thus may throw off the schedule from how was originally designed to be.


Code:
<GAMES>
This marks the beginning of the lines that include the schedule games information


This is how a typical GAME line looks:
Code:
<GAME day="1" time="1905" away="5" home="1" />
  • day="1" : the number of the day of the game beginning at 1 with the start date set in the league options or within the file; in this case the 1st day (the start date)
  • time="1905" : the game start time in military format (1035 = 10:35am, 1320 = 1:20pm, 2015 = 8:15pm, etc); in this case 1905 = 7:05pm
  • away="5" : ID number for the away team; in this case the 5th team (see below for what that means)
  • home="1" : ID number for the home team; in this case the 1st team (see below for what that means)
The ID numbers as set in the schedule apply only to the schedule and do not necessarily match up with anything else in the game. The ID numbers for the schedule file should range from 1 to the number of teams in the league. They are assigned numbers going in alphabetical order by team (city) name within each division, going through divisions from top to bottom, starting in and going through subleague 1, then going through subleague 2 the same way if it exists in the league.

After all the game lines there are closing tags at the bottom:
Code:
</GAMES>
</SCHEDULE>
gmo is offline  
Closed Thread

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 01:01 AM.

 

Major League Baseball trademarks and copyrights are used with permission of MLB Advanced Media, L.P. Minor League Baseball trademarks and copyrights are used with the permission of Minor League Baseball. All rights reserved.

The Major League Baseball Players Association (www.MLBPLAYERS.com ) is the collective bargaining representative for all professional baseball players of the thirty Major League Baseball teams and serves as the exclusive group licensing agent for commercial and licensing activities involving active Major League baseball players. On behalf of its members, it operates the Players Choice licensing program and the Players Choice Awards, which benefit the needy through the Major League Baseball Players Trust, a charitable foundation established and run entirely by Major League baseball players. Follow: @MLB_Players; @MLBPAClubhouse; @MLBPlayersTrust

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 © 2017 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

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