|
||||
|
02-11-2013, 06:03 AM | #1 |
Administrator
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:
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. |
02-11-2013, 06:31 AM | #2 |
Hall Of Famer
|
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 |
02-11-2013, 07:22 AM | #3 |
All Star Reserve
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. |
02-11-2013, 07:52 AM | #4 |
Hall Of Famer
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.
|
02-11-2013, 08:17 AM | #5 |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
That is correct, if the naming of the logo files is done correctly.
|
02-11-2013, 09:26 AM | #6 |
Hall Of Famer
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 |
02-11-2013, 11:33 AM | #7 |
Hall Of Famer
Join Date: Jan 2002
Posts: 6,273
|
|
02-11-2013, 11:41 AM | #8 |
Hall Of Famer
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. |
02-11-2013, 11:42 AM | #9 |
Hall Of Famer
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. |
02-11-2013, 01:07 PM | #10 |
All Star Starter
Join Date: Jan 2003
Location: Milwaukee, WI
Posts: 1,553
|
Looks like I need to do some renaming...Thank you!!!
__________________
Uniforms compatible with OOTP23/24 Historical Major League Baseball 1901-current Historical Major League Baseball 1871-1900 Historical Federal League Historical Negro Leagues |
02-12-2013, 05:56 PM | #11 |
All Star Starter
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 |
02-12-2013, 06:44 PM | #12 |
Hall Of Famer
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. |
02-12-2013, 09:57 PM | #13 |
Major Leagues
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.
|
02-15-2013, 12:02 AM | #14 |
Hall Of Famer
Join Date: Aug 2011
Location: Tampa Bay, Massachusetts
Posts: 2,928
|
|
02-15-2013, 09:43 AM | #15 | |
Hall Of Famer
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:
Five thousand thanks for a non-modder? I never thought I'd see the day. Thank you for your support. |
|
02-15-2013, 01:27 PM | #16 | |
Major Leagues
Join Date: Apr 2006
Location: Winnipeg, Mb
Posts: 429
|
Quote:
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? |
|
02-15-2013, 01:49 PM | #17 |
Administrator
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. |
02-18-2013, 04:09 PM | #18 |
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.
|
02-20-2013, 02:28 PM | #19 |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
Done!
|
02-20-2013, 02:31 PM | #20 |
Hall Of Famer
|
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. |
Bookmarks |
|
|