Home | Webstore
Latest News: OOTP 25 Available - FHM 10 Available - OOTP Go! Available

Out of the Park Baseball 25 Buy Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 25 > OOTP Mods > OOTP Mods - Logos, Graphics, and HTML
Register Blogs FAQ Calendar Today's Posts Search

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,992
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
Old 02-11-2013, 06:31 AM   #2
cephasjames
Hall Of Famer
 
Join Date: Jun 2004
Posts: 8,735
Blog Entries: 1
Woohoo! This is awesome. Thanks for this change.
__________________
5000+ Generic Logos Free for the Taking
FREE: Uniforms and logos for 500+ teams spanning 1871-present
Great Lakes League: 10 Conferences, 100 Teams
Pre-OOTP 23 Custom Cap & Jersey Template v3.0 by Deft and NoPepper (with layers from other various artists) that I use: Caps, Jerseys
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: 601
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
Old 02-11-2013, 07:52 AM   #4
BaseballMan
Hall Of Famer
 
BaseballMan's Avatar
 
Join Date: Jan 2002
Posts: 6,273
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,992
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
Location: United States
Posts: 10,456
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
Old 02-11-2013, 11:33 AM   #7
BaseballMan
Hall Of Famer
 
BaseballMan's Avatar
 
Join Date: Jan 2002
Posts: 6,273
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,801
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
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: 30,807
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
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,553
Looks like I need to do some renaming...Thank you!!!
No Pepper is offline   Reply With Quote
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,714
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,388
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
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
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,928
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
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
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,992
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
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
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,992
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
Old 02-20-2013, 02:31 PM   #20
cephasjames
Hall Of Famer
 
Join Date: Jun 2004
Posts: 8,735
Blog Entries: 1
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?
__________________
5000+ Generic Logos Free for the Taking
FREE: Uniforms and logos for 500+ teams spanning 1871-present
Great Lakes League: 10 Conferences, 100 Teams
Pre-OOTP 23 Custom Cap & Jersey Template v3.0 by Deft and NoPepper (with layers from other various artists) that I use: Caps, Jerseys

Last edited by cephasjames; 02-20-2013 at 02:39 PM.
cephasjames is offline   Reply With Quote
Reply

Bookmarks


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:48 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

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

 

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