View Single Post
Old 03-06-2015, 03:39 AM   #1
Matt Arnold
OOTP Developer
 
Matt Arnold's Avatar
 
Join Date: Jun 2009
Location: Here and there
Posts: 14,136
New Feature: BB Cards by Year

New in OOTP 16, which may be of interest to modders, is the ability to use different baseball card templates depending on the year. How it works is as follows:

When we search for a bb_card to use, say for the hall of fame, our default file is hof.xml, found in the bb_card directory. However, if you have the following files in your directory:
hof.xml
hof_1995.xml
hof_1980-1990.xml
hof_1985.xml

Then instead of using the base value always, in 1985 we will use the 1985 file, in 1995 we will use the 1995 file, and for every other year in 1980-1990 (inclusive), we will use the 1980-1990 file.

There is no other changes needed to the xml files. All those files above may point to the same image files, or different ones. They can use the same text or not. The only difference is when we search for what card to use in game.

I'm no modding expert, but I hope that this will give you guys some fun work to do, creating cards for every year This should work for any cards (default, all_star, hof, etc..). Enjoy!
Matt Arnold is online now   Reply With Quote