Latest News: Updated Patch #4, version 10.4.31 available! - OOTP 10 RELEASED! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Click here to download Out of the Park Baseball 10!

Go Back   OOTP Developments Forums

> OUT OF THE PARK BASEBALL 9 > OOTP 9 - Mods


OOTP 9 - Mods Logos, roster packs, historical databases, OOTP tools, FaceGen files... it's all here!

Reply
 
LinkBack Thread Tools Display Modes
Old 06-12-2007, 06:23 PM   #1 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Players Importer

Just a quick heads up on where this is.

The re-importation of players*.csv files is progressing nicely. In terms of the csv's left to add into the reading routine, there are just over half. It should progress quickly, but the brain does tend to gloss over staring at the list of field numbers file after file.

I would say it should be ready by the end of the week (that's Sunday, not Friday)
Tony M is offline   Reply With Quote
Old 06-13-2007, 09:50 AM   #2 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Leaderboard positions and values will not be able to reloaded through this utility due to a fairly important field being missing in the players_league_leaders.csv file (the League ID is not there!)

That just leaves players_pitching, players_roster_status, players_streak and players_value to program the load for now.
Tony M is offline   Reply With Quote
Old 06-13-2007, 10:52 AM   #3 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,751
Couldn't you look up the year in another file.

For instance, in the league leader file, there is the player's ID and the year. So, you can look up the players league in the players.csv file based on this information.

NOTE ALSO: I reported that this file is not complete. Not all of the league leader data is there.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 06-13-2007, 11:09 AM   #4 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Quote:
Originally Posted by Comedian2004 View Post
For instance, in the league leader file, there is the player's ID and the year. So, you can look up the players league in the players.csv file based on this information.
There is a potential that a player has been in more than one league in a season and got onto the leaderboard in both of them. It would then involve calculating the relevant stats and comparing them.

I'll probably look at that after I've completed the import process.
Tony M is offline   Reply With Quote
Old 06-13-2007, 11:52 AM   #5 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,751
I bet it only happens every 30 years...
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 06-13-2007, 12:29 PM   #6 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Well, it seems to work fine...

Apart from the occassional Joe somebody or somebody Unknown or Joe Unknown appearing in the game.

Very strange that a name appears in a new game, but doesn't necessarily appear in the names file. Unless first names are being used as surnames and vice versa by the game...

When I've sorted that issue, I'll publish it for general testing!
Tony M is offline   Reply With Quote
Old 06-13-2007, 12:36 PM   #7 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Quote:
Originally Posted by redsoxford View Post

Very strange that a name appears in a new game, but doesn't necessarily appear in the names file. Unless first names are being used as surnames and vice versa by the game...
The guy who became Joe Santana after re-import was originally called Jos Santana and Jos only appears in names.txt not in firstnames.txt so the game must be using surnames as first names and vice versa.

Rather wonder what the point of having separate files is...

edit, my mistake. Opening the files in ASCII in the code is stripping off the accented characters...

Last edited by Tony M; 06-13-2007 at 01:14 PM. Reason: my mistake
Tony M is offline   Reply With Quote
Old 06-13-2007, 01:19 PM   #8 (permalink)
Hall Of Famer
 
Join Date: Apr 2007
Location: London
Posts: 3,307
Thanked 6x in 2 posts
Quote:
Originally Posted by redsoxford View Post
Well, it seems to work fine...

Apart from the occassional Joe somebody or somebody Unknown or Joe Unknown appearing in the game.
If 'Joe Unknown' is the only problematic name you're seeing, it's just a ghost player- they're all named 'Joe Unknown'. I would expect the surname 'Unknown' to be purposefully excluded from the surnames database for that reason, but I've never checked.
injury log is offline   Reply With Quote
Old 06-13-2007, 01:27 PM   #9 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Quote:
Originally Posted by injury log View Post
If 'Joe Unknown' is the only problematic name you're seeing, it's just a ghost player- they're all named 'Joe Unknown'. I would expect the surname 'Unknown' to be purposefully excluded from the surnames database for that reason, but I've never checked.
Nope,

It was down to me using ASCII encoding to load the csv's when I shouldn't have.. I cleared that problem now, and tested a full import (minus leaderboards at the moment)

I put one team's players all on 10 year, $1,000,000 a year salaries and the rest of players on irrevocable waivers.

It took a fair while to process the following three days because of 8000+ players on the waiver wire!

The program is available at http://www.bourtonville.co.uk/OOTPEditor/publish.htm for testing...
Tony M is offline   Reply With Quote
Old 06-14-2007, 01:43 AM   #10 (permalink)
All Star Reserve
 
CBLCardinals's Avatar
 
Join Date: Feb 2002
Posts: 813
Quote:
Originally Posted by redsoxford View Post
Just a quick heads up on where this is.

The re-importation of players*.csv files is progressing nicely. In terms of the csv's left to add into the reading routine, there are just over half. It should progress quickly, but the brain does tend to gloss over staring at the list of field numbers file after file.

I would say it should be ready by the end of the week (that's Sunday, not Friday)

would this utility allow me to import past, retired players (from a dummy league importing from lahman for 2003 season) into a league that started in 2004? (ie anyone that played & retired from 1900-2003).

thanks for your time,
HP
CBLCardinals is offline   Reply With Quote
Old 06-18-2007, 07:20 PM   #11 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Quote:
Originally Posted by CBLCardinals View Post
would this utility allow me to import past, retired players (from a dummy league importing from lahman for 2003 season) into a league that started in 2004? (ie anyone that played & retired from 1900-2003).

thanks for your time,
HP
Let me have a look into that. The problem there will come with a new game expecting the player IDs to be down near the start (ie 1 upwards) but a copy of the files from a previous game will probably be there instead.

I've added an Import Coach tab to the program as well now at http://www.bourtonville.co.uk/OOTPEditor/publish.htm
Tony M is offline   Reply With Quote
Old 06-26-2007, 08:13 AM   #12 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
An update is available at that link now. There are no new parts to the program, but I found a field in teams.dat that was different to what I had seen before so it now takes that into account.
Tony M is offline   Reply With Quote
Old 06-27-2008, 07:56 PM   #13 (permalink)
All Star Reserve
 
texasmame's Avatar
 
Join Date: Apr 2007
Location: Planet Texas
Posts: 504
Thanked 3x in 3 posts
Is this proggy working correctly or is it user error on my end?
__________________
"Lee Smith - boarderline MLB starter" - OOTP X


GM, Manager and clubhouse attendant - GRANITE CITY KRAZY KATS - World Champs 2000, 2003, 2004 and 2011; Pennants in 2001, 2005. A.L. East Champions 2010. (No seasons 2002, 2006-2009)
texasmame is offline   Reply With Quote
Old 06-28-2008, 04:56 AM   #14 (permalink)
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 5,161
Blog Entries: 2
Thanked 63x in 40 posts
Not working for OOTP9 yet...
__________________
Upcoming
OOTP X Utilities
Tony M is offline   Reply With Quote
Old 06-28-2008, 11:14 PM   #15 (permalink)
All Star Reserve
 
texasmame's Avatar
 
Join Date: Apr 2007
Location: Planet Texas
Posts: 504
Thanked 3x in 3 posts
K. Thx. Besides this proggy, any way to edit players.csv and re-import it?
__________________
"Lee Smith - boarderline MLB starter" - OOTP X


GM, Manager and clubhouse attendant - GRANITE CITY KRAZY KATS - World Champs 2000, 2003, 2004 and 2011; Pennants in 2001, 2005. A.L. East Champions 2010. (No seasons 2002, 2006-2009)
texasmame is offline   Reply With Quote
Old 06-21-2009, 09:07 PM   #16 (permalink)
Hall Of Famer
 
endgame's Avatar
 
Join Date: Aug 2002
Posts: 8,163
Thanked 76x in 36 posts
Okay, looks like this is the thread AND the OP I should be looking for and talking with.

Tony? Help on the .csv file? I have a thread active in beta, one in General Discussions, and now adding this one looking for some help? Is this process dead in the water for X?
__________________
"Try again. Fail again. Fail better." -- Samuel Beckett

We live in the shadowlands. The sun is always shining somewhere else.
_____________________________________________
endgame 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 08:27 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2009 Out of the Park Developments