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

MLB All-Star Game Special: Save 50% on OOTP 20!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 20 > OOTP Mods > OOTP Mods - Names and Nations

Reply
 
Thread Tools
Old 04-16-2012, 07:29 PM   #61
Cryomaniac
Hall Of Famer
 
Join Date: May 2007
Location: Newark, Notts, UK
Posts: 4,679
Thanks: 15,229
Thanked 1,077x in 719 posts
Quote:
Originally Posted by Charlie Hough View Post
It should be as simple as data entry into a few clearly organized data tables. Then the game should take this and convert it into XML. Unfortunately, I'm not a programmer, but I dare say that any programmer that I've encountered could create this tool in a single day.
I am a programmer (albeit an unemployed one), and I don't think it would be massively difficult no, but that doesn't necessarily mean that anyone has the time or resources to do it at the moment. I have no experience with writing programs to manipulate XML files, else I'd maybe do it myself.
__________________

Cryomaniac is offline   Reply With Quote
Old 04-16-2012, 09:29 PM   #62
Scott Vibert
Hall Of Famer
 
Join Date: Dec 2001
Location: My Computer
Posts: 7,978
Thanks: 277
Thanked 231x in 163 posts
While the .csv file may have been easier to manipulate (and it was), the problem with .csv
is that its flat and not hierarchical. The XML file is hierarchical (is that a word?) and this has allowed OOTP to see some of the benefits, for example the use of regions. As OOTP continues to develop, there will be further benefits that simply would not be possible with the old .csv format.

Now don't get me wrong, dealing with the XML is not any easier, but in this case the benefits ultimately outweigh the inconvenience (and I'm someone who creates fully fictional worlds (still use davwms fictional world creator)). I would also guess that you are correct, if someone were motivated an application could be created to import XML structures into a spreadsheet and facilitate editing in that manner.
Scott Vibert is offline   Reply With Quote
2 thanks for this post:
Cryomaniac (04-17-2012), Ktulu (04-22-2012)
Old 04-19-2012, 06:28 AM   #63
Tony M
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 6,156
Blog Entries: 3
Thanks: 41
Thanked 328x in 190 posts
Quote:
Originally Posted by ukhotstove View Post
This maybe of help to you or someone else, I've been using it to get the latitude and longitude's for my fictional league I've been working on to help me map out my fictional world.

UK Towns & Villages

You can also download the OS OpenData Gazetteer and pull out the data for feature types C, T and O (City, Town and Other Settlement)
__________________
This signature is intentionally blank
Tony M is offline   Reply With Quote
Thank you for this post:
Cryomaniac (04-20-2012)
Old 04-20-2012, 06:05 AM   #64
Cryomaniac
Hall Of Famer
 
Join Date: May 2007
Location: Newark, Notts, UK
Posts: 4,679
Thanks: 15,229
Thanked 1,077x in 719 posts
Quote:
Originally Posted by Scott Vibert View Post
While the .csv file may have been easier to manipulate (and it was), the problem with .csv
is that its flat and not hierarchical. The XML file is hierarchical (is that a word?) and this has allowed OOTP to see some of the benefits, for example the use of regions. As OOTP continues to develop, there will be further benefits that simply would not be possible with the old .csv format.

Now don't get me wrong, dealing with the XML is not any easier, but in this case the benefits ultimately outweigh the inconvenience (and I'm someone who creates fully fictional worlds (still use davwms fictional world creator)). I would also guess that you are correct, if someone were motivated an application could be created to import XML structures into a spreadsheet and facilitate editing in that manner.
It would probably be easier to write a program that let you edit the XML directly using a simple form (i.e like the current in-game thing, but obviously using windows forms instead of the OOTP GUI.)
__________________

Cryomaniac is offline   Reply With Quote
Old 04-21-2012, 02:39 PM   #65
The Living Bubba
Bat Boy
 
Join Date: Aug 2010
Location: Young Harris, GA
Posts: 10
Thanks: 7
Thanked 0x in 0 posts
I've tried adding cities to the world_default.xml file using NotePad++. The cities get added just fine, and the document saves fine. But when I start a new league and try using the data I've added (for instance, by creating a fictional player and changing his hometown to one of those I've added), it doesn't work. Perhaps this is because I'm trying to start a new Major League game with the 2012 MLB rosters? Does this mean that if I start with the 2012 rosters, I can never, ever have a player from Hayesville, North Carolina? Because that would be very upsetting to me and the other 611 residents of Hayesville, North Carolina.
The Living Bubba is offline   Reply With Quote
Old 04-21-2012, 02:54 PM   #66
Cryomaniac
Hall Of Famer
 
Join Date: May 2007
Location: Newark, Notts, UK
Posts: 4,679
Thanks: 15,229
Thanked 1,077x in 719 posts
Quote:
Originally Posted by The Living Bubba View Post
I've tried adding cities to the world_default.xml file using NotePad++. The cities get added just fine, and the document saves fine. But when I start a new league and try using the data I've added (for instance, by creating a fictional player and changing his hometown to one of those I've added), it doesn't work. Perhaps this is because I'm trying to start a new Major League game with the 2012 MLB rosters? Does this mean that if I start with the 2012 rosters, I can never, ever have a player from Hayesville, North Carolina? Because that would be very upsetting to me and the other 611 residents of Hayesville, North Carolina.
You can add cities from within the game.
__________________

Cryomaniac is offline   Reply With Quote
Thank you for this post:
The Living Bubba (04-21-2012)
Old 04-21-2012, 10:15 PM   #67
The Living Bubba
Bat Boy
 
Join Date: Aug 2010
Location: Young Harris, GA
Posts: 10
Thanks: 7
Thanked 0x in 0 posts
Quote:
Originally Posted by Cryomaniac View Post
You can add cities from within the game.
Ah, found it. Thanks.
The Living Bubba is offline   Reply With Quote
Old 04-25-2012, 11:31 PM   #68
MitchUnworthy
Bat Boy
 
Join Date: Jan 2012
Location: Nashville, TN
Posts: 16
Thanks: 45
Thanked 8x in 6 posts
Is there a way to use the in-game city editor to edit the entire game so that every new game you start has the new cities, or do you just have to edit the world_default file?
MitchUnworthy is offline   Reply With Quote
Old 04-26-2012, 03:10 AM   #69
albatross11
All Star Reserve
 
Join Date: Mar 2003
Posts: 838
Thanks: 58
Thanked 148x in 121 posts
Quote:
Originally Posted by MitchUnworthy View Post
Is there a way to use the in-game city editor to edit the entire game so that every new game you start has the new cities, or do you just have to edit the world_default file?

You would have to edit the world_default.xml for that.
__________________
Peace,

albatross
albatross11 is offline   Reply With Quote
2 thanks for this post:
Cryomaniac (04-26-2012), MitchUnworthy (04-26-2012)
Old 04-28-2012, 12:21 AM   #70
NCBeachBum
All Star Starter
 
NCBeachBum's Avatar
 
Join Date: Jul 2003
Location: Topsail Island, NC, USA
Posts: 1,039
Thanks: 27
Thanked 171x in 93 posts
Has anyone explained the hardcoded player origins thing yet? I'm not sure I'm getting it.
__________________
And ain't that a shame, shame, shame
Shame, shame, the way you do
Oh, it's a shame, shame, shame
Shame, shame on you

NCBeachBum is offline   Reply With Quote
Old 04-28-2012, 02:00 AM   #71
NCBeachBum
All Star Starter
 
NCBeachBum's Avatar
 
Join Date: Jul 2003
Location: Topsail Island, NC, USA
Posts: 1,039
Thanks: 27
Thanked 171x in 93 posts
Quote:
Originally Posted by NCBeachBum View Post
I'd be much more impressed if I could find a good way to edit it. At my current pace, 13 will come out before I start my first league.
I was right. A year's time, and I didn't get even 10% done.
__________________
And ain't that a shame, shame, shame
Shame, shame, the way you do
Oh, it's a shame, shame, shame
Shame, shame on you

NCBeachBum is offline   Reply With Quote
Old 05-04-2012, 07:59 PM   #72
Murcer
Minors (Triple A)
 
Murcer's Avatar
 
Join Date: Jul 2011
Posts: 202
Thanks: 11
Thanked 46x in 33 posts
Hmm, well this is kind of a bummer! I wasn't around for OOTP12 so I skipped that version but I did buy 13. When I went to look for Cities and Nations .txt I found that the dev team went with this world_default approach.

Is there an easy way to translate the old file formats to the new one? I only created a few fictional nations and cities! I've attached the files in the event someone can possibly point me in the right direction.

Thanks!
Attached Files
File Type: txt nations.txt (603 Bytes, 83 views)
File Type: txt Cities.txt (3.7 KB, 89 views)
File Type: txt ethnicities.txt (210 Bytes, 92 views)

Last edited by Murcer; 05-05-2012 at 04:25 PM.
Murcer is offline   Reply With Quote
Old 05-05-2012, 10:53 AM   #73
Muzamba
Hall Of Famer
 
Muzamba's Avatar
 
Join Date: Apr 2002
Location: St. Louis, MO
Posts: 2,325
Thanks: 1,010
Thanked 857x in 411 posts
Quote:
Originally Posted by MitchUnworthy View Post
Is there a way to use the in-game city editor to edit the entire game so that every new game you start has the new cities, or do you just have to edit the world_default file?
Albatross already answered this, but I want to offer a different perspective to help the OOTP community in general to commit it to memory...

If you want to start a new league with edited locations, make your changes in the world_default.xml database file.

If you want to edit locations in a pre-existing league, make your changes using the in-game editor. (However, know that these changes won't be applied to future leagues you create. You must use the aforementioned world db file for that.)
__________________
"It may be nothing. But it usually is always something and more than something." - Cardinals GM John Mozeliak
Muzamba is offline   Reply With Quote
Old 05-05-2012, 05:49 PM   #74
Murcer
Minors (Triple A)
 
Murcer's Avatar
 
Join Date: Jul 2011
Posts: 202
Thanks: 11
Thanked 46x in 33 posts
After much reading about these changes I must admit that I still don't get it!

Has anyone created a custom file that I might steal a look at? Thanks!
Murcer is offline   Reply With Quote
Old 05-05-2012, 07:35 PM   #75
albatross11
All Star Reserve
 
Join Date: Mar 2003
Posts: 838
Thanks: 58
Thanked 148x in 121 posts
Quote:
Originally Posted by Murcer View Post
Hmm, well this is kind of a bummer! I wasn't around for OOTP12 so I skipped that version but I did buy 13. When I went to look for Cities and Nations .txt I found that the dev team went with this world_default approach.

Is there an easy way to translate the old file formats to the new one? I only created a few fictional nations and cities! I've attached the files in the event someone can possibly point me in the right direction.

Thanks!

After much reading about these changes I must admit that I still don't get it!

Has anyone created a custom file that I might steal a look at? Thanks!
There's no "easy' way to do it, but, if your world is only going to include the fictional nations and cities you posted, you should be able to do it. Look at the world_xml file that came with the game and go from that. In other words, create your own default_world.xml file and use that for your game.
__________________
Peace,

albatross
albatross11 is offline   Reply With Quote
Old 05-05-2012, 07:56 PM   #76
txranger
Hall Of Famer
 
txranger's Avatar
 
Join Date: Dec 2008
Location: "Deep in the Heart Of"
Posts: 6,527
Thanks: 4,659
Thanked 19,472x in 5,306 posts
Quote:
Originally Posted by Murcer View Post
After much reading about these changes I must admit that I still don't get it!

Has anyone created a custom file that I might steal a look at? Thanks!
Here is a copy of one that someone posted for OOTP12...

Last edited by txranger; 05-02-2013 at 11:17 AM.
txranger is offline   Reply With Quote
Old 05-05-2012, 09:11 PM   #77
kq76
Global Moderator
 
kq76's Avatar
 
Join Date: Nov 2002
Location: Vancouver, Canada
Posts: 8,874
Thanks: 1,189
Thanked 937x in 527 posts
Quote:
Originally Posted by Murcer View Post
Hmm, well this is kind of a bummer! I wasn't around for OOTP12 so I skipped that version but I did buy 13. When I went to look for Cities and Nations .txt I found that the dev team went with this world_default approach.

Is there an easy way to translate the old file formats to the new one? I only created a few fictional nations and cities! I've attached the files in the event someone can possibly point me in the right direction.

Thanks!
Okay, so I took your files and created an openoffice workbook that should help you create the world_default.xml file. Note that you still have to:

1) input some data like nations' populations and timezones (see each sheet's yellow columns)
2) copy and paste the resulting columns (blue "A" columns) into a sample world_default.xml (like the one I previously attached to the thread)
3) place each ethnicity line under its associated nation's line (that is, as you have them they are not to be left all in a row like the languages rows, but they would be if you wanted nations to have multiple ethnicities)
4) place the states lines under their associated nation's ethnicities section
5) place the cities under their associated state's line
6) place the appropriate region_states (or region_nations) lines under their associated region's line (looking at your files I'm thinking you at least want to have the same regions as you have nations which means you'll want at least 7 region IDs)

There might be other stuff that comes up, but the above should get you almost all the way there. Good luck!

Others can make use of this workbook too. Just copy and paste the contents of your appropriate *.txt files into their correspondingly named sheets at the green cell (cities.txt doesn't have headers so I created them) and when the dialog box opens up select it to separate by commas. From there you'll still have some manual work to do (e.g. probably creating more ethnicities lines and possibly adding rows to the different sheets) so while this is certainly no automatic converter, it should help.
Attached Files
File Type: zip database files to world_default.xml conversion.zip (31.7 KB, 51 views)
__________________
Support the one-and-done DH or the SP-only DH
(I think they're both better than both the AL and NL games)
and more flexible substitution rules.
kq76 is offline   Reply With Quote
Thank you for this post:
Muzamba (05-06-2012)
Old 05-06-2012, 06:45 AM   #78
Murcer
Minors (Triple A)
 
Murcer's Avatar
 
Join Date: Jul 2011
Posts: 202
Thanks: 11
Thanked 46x in 33 posts
Wow thanks guys (and especially kq for the workbook). I'll give this a shot and see what happens!
Murcer is offline   Reply With Quote
Old 05-06-2012, 09:30 PM   #79
Murcer
Minors (Triple A)
 
Murcer's Avatar
 
Join Date: Jul 2011
Posts: 202
Thanks: 11
Thanked 46x in 33 posts
Ok I think I've almost got it! However, a question...

Are the ethnicities in the world_default file for facegen photos or for name sets? I'm THINKING it's for the namesets and the ethnicities.txt file will control facegen but I wanted to verify before putting in TOO MUCH more work!

Thanks.
Murcer is offline   Reply With Quote
Old 05-06-2012, 11:07 PM   #80
kq76
Global Moderator
 
kq76's Avatar
 
Join Date: Nov 2002
Location: Vancouver, Canada
Posts: 8,874
Thanks: 1,189
Thanked 937x in 527 posts
I don't know for sure, but considering that the xml file's ethnicity lines only have a language ID and a % while the txt file has asian, indian, etc %s, that's my impression too.
__________________
Support the one-and-done DH or the SP-only DH
(I think they're both better than both the AL and NL games)
and more flexible substitution rules.
kq76 is offline   Reply With Quote
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 03:10 AM.

 

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