Latest News: OOTP 13 Announced with Screenshots & Feature List! Pre-Order Now! - OOTP Baseball 12 Available! - iOOTP Baseball 2011 Available! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Pre-Order OOTP 13, Save & Win! | OOTP 12 Off-Season Special, just $19.99!

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

Reply
 
LinkBack Thread Tools Display Modes
Old 06-01-2006, 12:41 AM   #1 (permalink)
Hall Of Famer
 
Join Date: Jun 2004
Posts: 3,655
Thanks: 519
Thanked 506x in 242 posts
Is there a method to the madness of the cities.txt?

I want an all Michigan League with player only coming from Michigan cities. I know I need to erase every city except the Michigan ones to do this (yes, I renamed it before I started changing things). Is there an easy way to do this? Are the cities organized in any way other than alphabetical? Any help would be great.
__________________

NEW 2/10/12 400+ Expansion Pack
cephasjames is offline   Reply With Quote
Old 06-01-2006, 01:23 AM   #2 (permalink)
Hall Of Famer
 
RBLwebguy's Avatar
 
Join Date: Jun 2002
Location: Canuckistan
Posts: 4,240
Thanks: 28
Thanked 60x in 33 posts
Not sure if you can open the txt file in excel and sort on a specifc column, delete all of those not michigan and bring it back into txt? Maybe?
__________________
On Adrian Gonzalez playing RF and David Ortiz playing 1B against the Phillies ---

"It'll be good offensively, but damn, I've gotta play second, first and right. That's a lot of ground to cover, man. I've got small legs." -- Dustin Pedroia
RBLwebguy is offline   Reply With Quote
Old 06-01-2006, 10:00 AM   #3 (permalink)
OOTP Developments
 
battists's Avatar
 
Join Date: Jul 2004
Posts: 17,024
Blog Entries: 7
Thanks: 30
Thanked 703x in 194 posts
You can definitely do it in Excel, if you're good at that sort of thing.

1. Open the file in Excel
2. Delete every row without a state of Michigan
3. Save the file as a csv file
4. Rename the saved file nations.txt

That's really simplified, assumes you somewhat know what you're doing. Gotta run!

More on this later!
battists is offline   Reply With Quote
Old 06-01-2006, 10:37 AM   #4 (permalink)
Hall Of Famer
 
Join Date: Jun 2004
Posts: 3,655
Thanks: 519
Thanked 506x in 242 posts
Thanks, guys. I'm not too familiar with this but I'm willing to try it.

1. I opened in excel. It said the whole file couldn't load. Does that mean it's too big?

2. I see the columns with Michigan in it. Is there an easy way of isolating the rows that are not Michigan? EDIT: Nevermind... that filter thingy rocks

3. I've saved the file as a csv. That's comma delimited, correct?

4. Rename the file as nations.txt? Not cities.txt? I've seen you explain this before (to me actually) I just don't remember the reason. EDIT: I've just renamed it nations.txt and... wow! it opens in in notepad! That should do it, right?

Thanks again.
__________________

NEW 2/10/12 400+ Expansion Pack

Last edited by cephasjames; 06-01-2006 at 10:51 AM.
cephasjames is offline   Reply With Quote
Old 06-01-2006, 10:56 AM   #5 (permalink)
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Location: 39.84 N -84.12 W
Posts: 8,327
Thanks: 76
Thanked 53x in 36 posts
link is borked. . .fixing!

Go to that link, get the US cities only cities.txt

The game included cities.txt cannot be completely opened by excel, it is too big, by about 35,000 lines. It's too comprehensive!

The alternate file is only about ~30,000 lines, and is easily opened in Excel.

Open up the alternate cities.txt, sort by the state row, and delete what you want.

I will have to write this up well later tonight, maybe with screen caps.

Last edited by Raidergoo; 06-01-2006 at 12:09 PM.
Raidergoo is offline   Reply With Quote
Old 06-01-2006, 11:01 AM   #6 (permalink)
OOTP Developments
 
battists's Avatar
 
Join Date: Jul 2004
Posts: 17,024
Blog Entries: 7
Thanks: 30
Thanked 703x in 194 posts
Crap, sorry, I meant "Cities.txt" not "nations.txt"

But you're on the right track. Especially if you backed up first.
battists is offline   Reply With Quote
Old 06-07-2006, 12:04 PM   #7 (permalink)
Hall Of Famer
 
Join Date: Jun 2004
Posts: 3,655
Thanks: 519
Thanked 506x in 242 posts
Quote:
Originally Posted by battists
Crap, sorry, I meant "Cities.txt" not "nations.txt"

But you're on the right track. Especially if you backed up first.
Always back up! I got it figured out. You helped a ton, thanks.
__________________

NEW 2/10/12 400+ Expansion Pack
cephasjames is offline   Reply With Quote
Old 06-07-2006, 12:08 PM   #8 (permalink)
All Star Starter
 
jnshmoo's Avatar
 
Join Date: Apr 2004
Location: Not Here
Posts: 1,226
Thanks: 0
Thanked 0x in 0 posts
Quote:
Originally Posted by Raidergoo
link is borked. . .fixing!

Go to that link, get the US cities only cities.txt

The game included cities.txt cannot be completely opened by excel, it is too big, by about 35,000 lines. It's too comprehensive!

The alternate file is only about ~30,000 lines, and is easily opened in Excel.

Open up the alternate cities.txt, sort by the state row, and delete what you want.

I will have to write this up well later tonight, maybe with screen caps.
It's fully openable with Excel 2007 Beta!
__________________
Beer Snob and Baseball Sim Geek

jnshmoo is offline   Reply With Quote
Old 06-07-2006, 12:18 PM   #9 (permalink)
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Location: 39.84 N -84.12 W
Posts: 8,327
Thanks: 76
Thanked 53x in 36 posts
Quote:
Originally Posted by jnshmoo
It's fully openable with Excel 2007 Beta!
That's what I was hoping, but kept forgetting to ask.

Thanks a whole bunch for this data!
Raidergoo is offline   Reply With Quote
Old 06-07-2006, 12:35 PM   #10 (permalink)
Minors (Single A)
 
Join Date: Mar 2006
Posts: 67
Thanks: 0
Thanked 0x in 0 posts
Quote:
Originally Posted by jnshmoo
It's fully openable with Excel 2007 Beta!
Then they've gone the unlimited route on spreadsheet size ala Corel QuattroPro. That'll make the purchase of the suite worth my while.

Considering that the first spreadsheet I ever owned (Visi-Calc for the Apple II in the late 1970s) was limited to a 64x256 grid, like the commercial says, "You've come a long way, baby!"
johnph77 is offline   Reply With Quote
Old 06-07-2006, 12:42 PM   #11 (permalink)
All Star Starter
 
jnshmoo's Avatar
 
Join Date: Apr 2004
Location: Not Here
Posts: 1,226
Thanks: 0
Thanked 0x in 0 posts
Quote:
Originally Posted by johnph77
Then they've gone the unlimited route on spreadsheet size ala Corel QuattroPro. That'll make the purchase of the suite worth my while.

Considering that the first spreadsheet I ever owned (Visi-Calc for the Apple II in the late 1970s) was limited to a 64x256 grid, like the commercial says, "You've come a long way, baby!"
Not truly unlimited, but I weep for anyone who needs to work with a spreadsheet that taxes the new maximums.

Columns went from 256 to 16,000
Rows went from 64,000 to a cool Million.
__________________
Beer Snob and Baseball Sim Geek

jnshmoo is offline   Reply With Quote
Old 06-07-2006, 12:45 PM   #12 (permalink)
All Star Starter
 
jnshmoo's Avatar
 
Join Date: Apr 2004
Location: Not Here
Posts: 1,226
Thanks: 0
Thanked 0x in 0 posts
Dola,

they really overhauled the interface though. I think I like it, but it's been taking some time getting used to it. It probably doesn't help that I've been going back and forth between 2007 and 2003 throughout the day either.
__________________
Beer Snob and Baseball Sim Geek

jnshmoo is offline   Reply With Quote
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 03:05 AM.


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