Home | Webstore
Latest News: OOTP Update 20.6 - OOTP 20 Available - FHM 5 Available

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 20 > OOTP Mods > OOTP Mods - Logos, Graphics, and HTML

Reply
 
Thread Tools
Old 02-11-2013, 06:03 AM   #1
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,836
Thanks: 857
Thanked 4,832x in 1,562 posts
Modders, please read: new feature in OOTP14

OOTP will now look for years in file names of team logos, jerseys and ballcaps. Whenever OOTP looks for one of these files for a team, it will check the source folders for these file names. OOTP looks for these files when it needs to display a logo or when it creates a player picture. If OOTP found a file, it will be copied to the league folder and also cached in memory for later use. But on every start of the game OOTP will look again. Additionally, OOTP will reset the in-memory cache everytime when the simulation reached January 1st.

The following table shows where OOTP looks for files and where it copies the found file:
Source folders -> league folder & file name
Team logos: /data/logos or user defined logos folder -> /"league name".lg/news/html/images/team_logos/"team name_nick name".png
Team jerseys: /data/jerseys or user defined jerseys folder -> /"league name".lg/jerseys/jerseys_"team name_nick name".png
Team ball caps: /data/ballcaps or user defined ballcaps folder -> /"league name".lg/ballcaps/caps_"team name_nick name".png

The default names for these files are determind as follows:

  • Add a underscore to the team name.
  • Add the nickname.
  • Remove all periods.
  • The following characters will be replaced with an underscore "_":
  • Code:
    spaces
    " ' / \ : * ? < > | & ,
  • Add .png
  • Make all lowercase.


So for example the files for the St. Louis Cardinals would be st_louis_cardinals.png (logo file), jerseys_st_louis_cardinals.png and caps_st_louis_cardinals.png

OOTP has a neat, little-known capability, where you can use the logo file name to define a team's colors too. This means that just by loading a team logo, you can avoid all of that manual setup! Here's how it works. A logo file name might look something like this:

boston_cannibals.png

You can append up to eight different values to the end of the file name, separated by underscores ("_"), that tell the game what team colors you want to use. The appended values are 9 digits long, and represent the RGB (red, green, and blue) color codes for the color you wish to use. For example, you could do something like this:

boston_cannibals_204102050.png

This means that any team using the Boston Cannibals' logo should have a team background color of Red=204, Green=102, and Blue=050 (which is kind of orange). You can repeat this process for up to eight values, as follows:

Team background color
Team text color
Team secondary color (not used)
Ballcap main color
Ballcap visor color
Jersey main color
Jersey secondary color
Jersey pin stripe color

Alternately, if it's easier, you can also use the hexadecimal color codes, so a file name like this is also valid: augusta_greenJackets_ffffff_00372A.png.

In OOTP 14, you can also add years to the logo, jerseys and caps files. These are the correct formats:

team name_nick name.png
team name_nick name_1111.png
team name_nick name_1111_any text or color codes.png
team name_nick name_1111-2222.png
team name_nick name_1111-2222_any text or color codes.png

1111 = first year
2222 = second year (should be greater than first year)

For example there are the following files in the /logos folder:
boston_cannibals.png
boston_cannibals_1871-2008.png
boston_cannibals_2008-2010.png
boston_cannibals_2010-2011.png
boston_cannibals_2011.png

If the current game year in simulation is 2000, OOTP would use the file boston_cannibals_1871-2008.png.
In game year 2009, OOTP would use boston_cannibals_2008-2010.png.
In game year 2010, OOTP would use boston_cannibals_2010-2011.png.
In game year 2011, OOTP would use boston_cannibals_2011.png.
In game year 2012, OOTP would use boston_cannibals_2011.png as well.

The file names can also contain color codes and notes:
boston_cannibals_2010-2011_ffffff_00372A_some commentary.png

Last edited by Andreas Raht; 02-11-2013 at 06:11 AM.
Andreas Raht is offline   Reply With Quote
50 thanks for this post:
artfuldp (01-18-2016), ashantewarrier (02-21-2013), BigbyWolf (03-29-2013), Biggio509 (02-18-2013), BoofBonser26 (02-22-2013), Bowtie (02-15-2013), bwburke94 (05-17-2013), Caporegime (02-12-2013), cavebutter (02-15-2013), cephasjames (02-11-2013), Clemente21PIT (06-15-2014), Cras (02-25-2013), Cryomaniac (02-11-2013), ctorg (04-14-2013), Dark Horse (02-12-2013), Déjà Bru (02-11-2013), DreamTeams (02-11-2013), edm (02-15-2013), eriqjaffe (02-15-2013), Gern44 (04-19-2013), GMLoophole (02-12-2013), Jabez54 (02-12-2013), jotro (02-12-2013), justafan (02-11-2013), Jythier (03-07-2014), kingcharlesxii (02-11-2013), klavier (02-11-2013), LastMarlinsFan (02-17-2013), Layton is my Homeboy (02-12-2013), legofarley (03-04-2013), Leo_The_Lip (02-11-2013), Lukas Berger (07-30-2014), mark1529 (02-16-2015), No Pepper (02-11-2013), nutt (06-29-2013), OBSL Commish (02-11-2013), omniart (02-13-2013), ootp3to6 (02-11-2013), ootpFox07 (02-11-2013), RANGER11JP (04-21-2013), Riverdome (02-11-2013), rob_banzai (03-21-2014), rocknfire7 (07-22-2013), scuffleball (02-24-2013), SF_49er (02-11-2013), shawa666 (02-11-2013), The Game (02-11-2013), thehef (02-13-2013), Tycobbler (02-11-2013), Winnipeg59 (02-11-2013)
Old 02-11-2013, 06:31 AM   #2
cephasjames
Hall Of Famer
 
Join Date: Jun 2004
Posts: 6,379
Blog Entries: 1
Thanks: 3,786
Thanked 3,209x in 1,498 posts
Woohoo! This is awesome. Thanks for this change.
cephasjames is offline   Reply With Quote
Old 02-11-2013, 07:22 AM   #3
shawa666
All Star Reserve
 
shawa666's Avatar
 
Join Date: Apr 2010
Posts: 600
Thanks: 573
Thanked 229x in 136 posts
Infractions: 0/1 (1)
Andreas, I love you.

Now, please add the ability to set home and away uniforms. Please.

Kthxbai.

Last edited by shawa666; 02-11-2013 at 07:24 AM.
shawa666 is offline   Reply With Quote
6 thanks for this post:
ashantewarrier (02-21-2013), Cryomaniac (02-11-2013), DreamTeams (02-11-2013), Fyrestorm3 (02-15-2013), LloydLungs (02-15-2013), The Wolf (02-15-2013)
Old 02-11-2013, 07:52 AM   #4
BaseballMan
Hall Of Famer
 
BaseballMan's Avatar
 
Join Date: Jan 2002
Posts: 5,503
Thanks: 68
Thanked 506x in 324 posts
If i understand correctly the logos for a team will automatically change if the logo has been changed. I hope that is correct as i have historical logos organized from 1872-2011. I have been copying and pasting each year.
BaseballMan is offline   Reply With Quote
Old 02-11-2013, 08:17 AM   #5
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,836
Thanks: 857
Thanked 4,832x in 1,562 posts
Quote:
Originally Posted by BaseballMan View Post
If i understand correctly the logos for a team will automatically change if the logo has been changed. I hope that is correct as i have historical logos organized from 1872-2011. I have been copying and pasting each year.
That is correct, if the naming of the logo files is done correctly.
Andreas Raht is offline   Reply With Quote
Old 02-11-2013, 09:26 AM   #6
Déjà Bru
Hall Of Famer
 
Déjà Bru's Avatar
 
Join Date: Apr 2009
Posts: 7,036
Blog Entries: 4
Thanks: 1,471
Thanked 3,776x in 2,142 posts
I just copied and pasted your post into a text file for storage in my archives. This way, when a question along these lines arises in the forum in the not-too-distant future, I can call it up, copy and paste it into my response, and appear to be a genius! Works like a charm!
__________________

- Bru


Déjà Bru is offline   Reply With Quote
4 thanks for this post:
ashantewarrier (02-21-2013), Cryomaniac (02-11-2013), Jabez54 (02-12-2013), ootp3to6 (02-11-2013)
Old 02-11-2013, 11:33 AM   #7
BaseballMan
Hall Of Famer
 
BaseballMan's Avatar
 
Join Date: Jan 2002
Posts: 5,503
Thanks: 68
Thanked 506x in 324 posts
Quote:
Originally Posted by Andreas Raht View Post
That is correct, if the naming of the logo files is done correctly.
Fantastic. Thats one less thing to have to remember to do when moving to the next season. Less i have to do the more i can concentrate on enjoying the game.
BaseballMan is offline   Reply With Quote
Old 02-11-2013, 11:41 AM   #8
jaxmagicman
Hall Of Famer
 
jaxmagicman's Avatar
 
Join Date: Jun 2003
Location: Retired defloration-maker living in Myrtle Beach, SC
Posts: 7,790
Thanks: 199
Thanked 445x in 363 posts
Does this also mean that when looking at the history, the historical logo will be what is displayed?
__________________
See ID


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.
jaxmagicman is offline   Reply With Quote
2 thanks for this post:
cephasjames (02-11-2013), Cryomaniac (02-11-2013)
Old 02-11-2013, 11:42 AM   #9
The Game
Hall Of Famer
 
The Game's Avatar
 
Join Date: Feb 2012
Location: Inside The Game
Posts: 20,440
Thanks: 9,154
Thanked 3,077x in 2,458 posts
Gonna love this feature. So now I can do a history of baseball using No Pepper, Compilation and reds1 uniforms and Justafan logos and with the correct years I wont have to manually make changes anymore.
For me this will be the single reason why I buy 14 on release day. I had planned on waiting til the bugs and updates get worked out.
The Game is offline   Reply With Quote
Thank you for this post:
Leo_The_Lip (02-11-2013)
Old 02-11-2013, 01:07 PM   #10
No Pepper
All Star Starter
 
No Pepper's Avatar
 
Join Date: Jan 2003
Location: Milwaukee, WI
Posts: 1,250
Thanks: 126
Thanked 774x in 235 posts
Looks like I need to do some renaming...Thank you!!!
No Pepper is offline   Reply With Quote
6 thanks for this post:
ashantewarrier (02-21-2013), cephasjames (02-11-2013), justafan (02-11-2013), silvam14 (02-11-2013), Sparrow (02-11-2013), Tycobbler (02-11-2013)
Old 02-12-2013, 05:56 PM   #11
Caporegime
All Star Starter
 
Caporegime's Avatar
 
Join Date: Mar 2006
Location: The Borough of Kings
Posts: 1,636
Thanks: 1,687
Thanked 1,204x in 491 posts
Awesome new feature. It'll be a huge time saver when running historical leagues. I'd love to see a similar option available for stadiums as well.
__________________
"If you don't know where you are going, you'll wind up someplace else." - Lawrence Peter Berra
Caporegime is offline   Reply With Quote
Old 02-12-2013, 06:44 PM   #12
Gambo
Hall Of Famer
 
Gambo's Avatar
 
Join Date: Mar 2002
Location: Oklahoma
Posts: 2,363
Thanks: 164
Thanked 904x in 479 posts
Already got all the MLB historical logos uniforms and ballcaps renamed. This is gonna be awesome.

Any word on doing this with the photos directory also?

Once the photo guys get this set up for their stuff that will be all the better!
__________________
Give me league evolution with historical imports!!!

OOTP MODS:
Historical Face Gen Project, Spritze/Gambo Database, OOTP Stadium Chart and Ballpark Images, MLB Compiled Uniform & Logo Pack
available at...
http://www.ootpmods.com

Last edited by Gambo; 02-12-2013 at 06:45 PM.
Gambo is offline   Reply With Quote
4 thanks for this post:
ashantewarrier (02-21-2013), cody8200 (02-12-2013), Layton is my Homeboy (02-15-2013), old timer (02-28-2013)
Old 02-12-2013, 09:57 PM   #13
Layton is my Homeboy
Major Leagues
 
Layton is my Homeboy's Avatar
 
Join Date: Apr 2006
Location: Winnipeg, Mb
Posts: 429
Thanks: 129
Thanked 270x in 100 posts
Great addition that will be a huge timesaver for anyone doing sims over multiple years using custom graphical assets.

Layton is my Homeboy is offline   Reply With Quote
Old 02-15-2013, 12:02 AM   #14
Fyrestorm3
Hall Of Famer
 
Fyrestorm3's Avatar
 
Join Date: Aug 2011
Location: Tampa Bay, Massachusetts
Posts: 2,913
Thanks: 2,212
Thanked 2,929x in 1,342 posts
Huge, HUGE thanks for this. Also,

Quote:
Originally Posted by shawa666 View Post
Andreas, I love you.

Now, please add the ability to set home and away uniforms. Please.

Kthxbai.
^ Seconded.
Fyrestorm3 is offline   Reply With Quote
Old 02-15-2013, 09:43 AM   #15
The Wolf
Hall Of Famer
 
The Wolf's Avatar
 
Join Date: Jun 2006
Location: All alone
Posts: 12,612
Thanks: 1,790
Thanked 5,052x in 2,606 posts
Infractions: 0/1 (1)
This is great. Now please allow for home and away uniforms.
__________________
__________________
Quote:
Originally Posted by Markus Heinsohn View Post
Well, the average OOTP user...downloads the game, manages his favorite team and that's it.
According to OOTP itself, OOTP MLB play (modern and historical) outnumbers OOTP fictional play three to one.

Five thousand thanks for a non-modder? I never thought I'd see the day. Thank you for your support.
The Wolf is offline   Reply With Quote
Old 02-15-2013, 01:27 PM   #16
Layton is my Homeboy
Major Leagues
 
Layton is my Homeboy's Avatar
 
Join Date: Apr 2006
Location: Winnipeg, Mb
Posts: 429
Thanks: 129
Thanked 270x in 100 posts
Quote:
Originally Posted by Andreas Raht View Post
For example there are the following files in the /logos folder:
boston_cannibals.png
boston_cannibals_1871-2008.png
boston_cannibals_2008-2010.png
boston_cannibals_2010-2011.png
boston_cannibals_2011.png

If the current game year in simulation is 2000, OOTP would use the file boston_cannibals_1871-2008.png.
In game year 2009, OOTP would use boston_cannibals_2008-2010.png.
In game year 2010, OOTP would use boston_cannibals_2010-2011.png.
In game year 2011, OOTP would use boston_cannibals_2011.png.
In game year 2012, OOTP would use boston_cannibals_2011.png as well.

The file names can also contain color codes and notes:
boston_cannibals_2010-2011_ffffff_00372A_some commentary.png
I notice that the years that you provide in this example overlap (for example, 2008 to 2010 and 2010 to 2011; in that case, 2010 seems to be covered by both logos).

You indicate that in 2010, the game will use the 2010-2011 logo (and not the 2008-2010 logo). I assume that the reason for this is that the game has to be flexible enough to handle leagues that start in one year and end in the next (for example, a winter league that might start in November and end in February).

So, it seems to me that the game is interpreting the "2010-2011" range as meaning "any season that starts in 2010".

By contrast, a range that is more than one year long (for example, 2010-2012), would be interpreted as "any season that starts in 2010 or 2011", but not 2012.

Is that accurate, or am I misunderstanding the mechanics of the naming convention?
Layton is my Homeboy is offline   Reply With Quote
Old 02-15-2013, 01:49 PM   #17
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,836
Thanks: 857
Thanked 4,832x in 1,562 posts
OOTP 14 looks for a matching logo for each team whenever you start the game and a logo is required first time. For example you start OOTP, load a league which game date is 2010/08/20. Then you open a team screen which has the logo in the upper left corner. The game date's year at that moment will be taken to determine which logo is the correct one.
So currently OOTP 14 does not care about season start or season end.
Andreas Raht is offline   Reply With Quote
Old 02-18-2013, 04:09 PM   #18
Cornelius McGillicuddy
Banned
 
Join Date: Apr 2006
Location: Playing the inside game
Posts: 763
Thanks: 35
Thanked 100x in 60 posts
Infractions: 0/1 (4)
This is a very nice feature. Might I suggest you add ballparks? Then OOTP could look for a ballpark that matches the name of the one the team uses and automatically import it.
Cornelius McGillicuddy is offline   Reply With Quote
5 thanks for this post:
Cryomaniac (02-18-2013), David Watts (02-18-2013), ootpFox07 (02-19-2013), Sparrow (02-20-2013), thehef (02-19-2013)
Old 02-20-2013, 02:28 PM   #19
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,836
Thanks: 857
Thanked 4,832x in 1,562 posts
Quote:
Originally Posted by The Wolf View Post
This is great. Now please allow for home and away uniforms.
Done!
Andreas Raht is offline   Reply With Quote
9 thanks for this post:
ashantewarrier (02-21-2013), BoofBonser26 (02-22-2013), cephasjames (02-20-2013), cody8200 (02-20-2013), Corsairs (02-20-2013), Cryomaniac (02-20-2013), GMLoophole (03-13-2013), Sparrow (02-20-2013), The Game (02-20-2013)
Old 02-20-2013, 02:31 PM   #20
cephasjames
Hall Of Famer
 
Join Date: Jun 2004
Posts: 6,379
Blog Entries: 1
Thanks: 3,786
Thanked 3,209x in 1,498 posts
Quote:
Originally Posted by Andreas Raht View Post
Done!
Whoa! What? Really?

Awesome!

EDIT: How will the naming work with this? jerseys_boston_red_sox_home_2008-2012.png?

Last edited by cephasjames; 02-20-2013 at 02:39 PM.
cephasjames is offline   Reply With Quote
Thank you for this post:
Cryomaniac (02-20-2013)
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 06:08 PM.

 

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