Home | Webstore
Latest News: OOTP 14: Third Update Released! - Out Of The Park Baseball 14 Released! - iOOTP 2013 Available NOW! - OOTP 13 Offseason Special - Save $20! - iOOTP 2012 Available NOW on the AppStore - Title Bout Championship Boxing 2.5 released!

Out Of The Park Baseball 14 Released!

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

Reply
 
LinkBack Thread Tools Display Modes
Old 02-11-2013, 06:03 AM   #1 (permalink)
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 7,204
Thanks: 323
Thanked 2,182x in 757 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
42 thanks for this post:
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), 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), 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), No Pepper (02-11-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), 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 (permalink)
Hall Of Famer
 
Join Date: Jun 2004
Posts: 4,876
Thanks: 2,022
Thanked 1,891x in 833 posts
Woohoo! This is awesome. Thanks for this change.
__________________
cephasjames is offline   Reply With Quote
Old 02-11-2013, 07:22 AM   #3 (permalink)
Major Leagues
 
shawa666's Avatar
 
Join Date: Apr 2010
Posts: 475
Thanks: 369
Thanked 151x in 90 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 (permalink)
Hall Of Famer
 
BaseballMan's Avatar
 
Join Date: Jan 2002
Posts: 3,699
Thanks: 10
Thanked 125x in 82 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 (permalink)
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 7,204
Thanks: 323
Thanked 2,182x in 757 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 (permalink)
All Star Starter
 
Déjà Bru's Avatar
 
Join Date: Apr 2009
Location: LawnGuy Land
Posts: 1,440
Thanks: 270
Thanked 422x in 271 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 (permalink)
Hall Of Famer
 
BaseballMan's Avatar
 
Join Date: Jan 2002
Posts: 3,699
Thanks: 10
Thanked 125x in 82 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 (permalink)
Hall Of Famer
 
jaxmagicman's Avatar
 
Join Date: Jun 2003
Location: Retired defloration-maker living in Myrtle Beach, SC
Posts: 7,701
Thanks: 157
Thanked 423x in 348 posts
Does this also mean that when looking at the history, the historical logo will be what is displayed?
__________________
See ID

www.langfordbooks.com
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 (permalink)
Hall Of Famer
 
The Game's Avatar
 
Join Date: Feb 2012
Location: Inside The Game
Posts: 2,602
Thanks: 2,226
Thanked 512x in 450 posts
Infractions: 0/1 (1)
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 (permalink)
All Star Starter
 
No Pepper's Avatar
 
Join Date: Jan 2003
Location: Milwaukee, WI
Posts: 1,120
Thanks: 65
Thanked 354x in 140 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 (permalink)
All Star Reserve
 
Caporegime's Avatar
 
Join Date: Mar 2006
Location: The People's Republic of Yankeestan
Posts: 730
Thanks: 39
Thanked 50x in 27 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.
Caporegime is offline   Reply With Quote
Old 02-12-2013, 06:44 PM   #12 (permalink)
All Star Starter
 
Gambo's Avatar
 
Join Date: Mar 2002
Location: Oklahoma
Posts: 1,821
Thanks: 45
Thanked 503x in 261 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!
__________________
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 (permalink)
Major Leagues
 
Layton is my Homeboy's Avatar
 
Join Date: Apr 2006
Location: Winnipeg, Mb
Posts: 429
Thanks: 128
Thanked 243x in 78 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 (permalink)
Major Leagues
 
Fyrestorm3's Avatar
 
Join Date: Aug 2011
Posts: 432
Thanks: 173
Thanked 305x in 156 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 online now   Reply With Quote
Old 02-15-2013, 09:43 AM   #15 (permalink)
Hall Of Famer
 
The Wolf's Avatar
 
Join Date: Jun 2006
Location: At your door
Posts: 7,418
Thanks: 305
Thanked 1,300x in 790 posts
This is great. Now please allow for home and away uniforms.
__________________
__________________

"It never troubles the wolf how many the sheep may be." - Virgil

__________________

Quote:
Originally Posted by olivertheorem View Post
This would be cool, but the pertinent question is how much would it add to gameplay relative to the time it would take to code?
The Wolf is offline   Reply With Quote
Old 02-15-2013, 01:27 PM   #16 (permalink)
Major Leagues
 
Layton is my Homeboy's Avatar
 
Join Date: Apr 2006
Location: Winnipeg, Mb
Posts: 429
Thanks: 128
Thanked 243x in 78 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 (permalink)
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 7,204
Thanks: 323
Thanked 2,182x in 757 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 (permalink)
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 (permalink)
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 7,204
Thanks: 323
Thanked 2,182x in 757 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 (permalink)
Hall Of Famer
 
Join Date: Jun 2004
Posts: 4,876
Thanks: 2,022
Thanked 1,891x in 833 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
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.1
Copyright © 2013 Out of the Park Developments