View Single Post
Old 08-20-2022, 01:14 PM   #18
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Quote:
Originally Posted by reds1 View Post
Thanks fhomess! I wonder how this would work with oddball leagues such as mine that start in one calendar year and end in another. Perhaps that's what the multiple years are for? (i.e.. <template>_<year(s)>.xml)

At any rate, I just checked my league and even though the awards were handed out in April 1956, the year generated in the various texts of the xml files is 1955, so I guess it works for overlapping years.
I think OOTP has a concept of season year. I'm not sure if that's typically the year that it starts in or the year it ends in for leagues that cross the calendar, but I suspect it's the start year. I would assume that the card template chosen matches the season year.

The multiple year option (e.g. default_1901-1902.xml) is to allow the same template to be used multiple seasons in a row without having to duplicate the template for each year in the span.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote