OOTP Baseball Card Templates

From StatsLab Wiki
Revision as of 11:56, 2 June 2014 by Frank Esselink (talk | contribs) (Created page with "OOTP has the ability to generate baseball cards for players in your game. This page is still a work in progress, but will attempt to capture the basics of baseball card templ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

OOTP has the ability to generate baseball cards for players in your game. This page is still a work in progress, but will attempt to capture the basics of baseball card template creation.

Template Documentation

Tag Attributes

Fonts

OOTP provides several fonts which can be used when generating baseball cards. All of them are located in the game's install location in the data/fonts folder. Adding a font to this folder does not allow you to then use that font in your cards.

There are several versions of the default font, Vera, that can be used:

  • vera
  • bold
  • italic
  • light - a thinner version of the font
  • regular - the same as vera
  • medium - between regular and bold
  • condensed - letters are narrower and closer together

In addition there are other fonts that have significantly different typography:

  • l_college - an italicized all-caps font where lowercase letters are shorter versions of the upper case letters
  • l_emilio - a block letter font with a 3D aspect

There are some additional fonts in the OOTP fonts folder that only work with capital letters in baseball cards. These are commonly used by the game for game generated team and league logos:

  • l_averia
  • l_ball - script capital letters
  • l_black - sans serif
  • l_college2 - think of college football jersey numbers
  • l_font - similar to college2, but more modern blocky
  • l_staubach - similar to college2, but with serif style additions to numbers


Stats Tokens

Stats tokens are of the [%TOKEN_NAME] format with options for seasonal stats or career stats. Season stats can have a number appended to the word SEASON to indicate how many years in the past to look.

Batting stats tokens will not show up for pitchers and pitching stats tokens will not show up for non-pitchers, whether or not those players have accumulated stats in the alternate role. In fact, putting a batting stat token in a text string will prevent the entire text string from showing up for a pitcher (and vice versa). This is useful in tailoring stats to the different types of players without needing multiple templates.

Some token examples:

  • [%SEASON_AB] - Will show the batter's current season total for at bats.
  • [%SEASON1_ERA] - Will show the pitcher's ERA for last year.
  • [%SEASON5_RBI] - Will show the batter's RBI total for 5 seasons ago.
  • [%CAREER_W] - Will show the pitcher's career win total.

Batting Stats

  • G - Games played by batter
  • AB - At bats
  • H - Hits
  • 2B - Doubles
  • 3B - Triples
  • HR - Home runs
  • R - Runs
  • RBI - Runs batted in
  • SB - Stolen bases
  • AVG - Batting average
  • OBP - On-base percentage
  • SLG - Slugging percentage
  • OPS - On-base plus slugging percentage

Tags that do not work: PA, BB, K, SF, SH, TB, VORP, WAR

Pitching Stats

  • GP - Games pitched
  • GS - Games started
  • W - Wins
  • L - Losses
  • SV - Saves
  • IP - Innings pitched (formatted as ###.#)
  • HA - Hits allowed
  • HRA - Home runs allowed
  • BB - Walks allowed
  • K - Strikeouts
  • ERA - Earned run average
  • WHIP - Walks plus hits per inning pitched

Tags that do not work: HLD, BK, WP, BF, 2BA, 3BA, ER, RA, PCT, WINPCT, VORP, WAR

Fielding Stats

At the moment, no tokens are available for fielding stats.