Latest News: OOTP PATCH 9.2.2 released! - OOTP 9 RELEASED! - Title Bout Championship Boxing 2.5 released! - OOTP 2007 receives Editors Choice Award from PC Gamer - Inside the Park Baseball Patch 1.03 released, DEMO now available

Click here to download Out of the Park Baseball 9!

Go Back   OOTP Developments Forums > Out of the Park Baseball 8/2007 > OOTP 8/2007: General Discussions
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

OOTP 8/2007: General Discussions Talk about our upcoming version of the game...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-24-2008, 12:17 AM   #1 (permalink)
Major Leagues
 
Join Date: Mar 2007
Posts: 415
Reading the Retired.DAT file

Has anybody figured out how to do this? The only piece of information I'm looking for is the year that each player retired so that I can use it for the 5 year eligibility rule for the Hall of Fame. I figured if it would be anywhere, it would be in this file.

If anybody knows how I can find this piece of information, please let me know.

Thanks!!!!
__________________
GM of the OBL - Cincinnati Reds (811-898, .477)
1938 NL West Champs
1938 National League Champs

GM of the SSBL - Atlanta Braves (451-325, .581)
2022, 2024-2026 NL East Champs
2024 National League Champs

GM of the BJHL - Avery Island Hot Peppers (235-251, .484)
falkonisback is offline   Reply With Quote
Old 01-24-2008, 02:37 AM   #2 (permalink)
Global Moderator
 
Join Date: Feb 2006
Posts: 3,526
As far as I know and I've deciphered a lot of the .dat files I couldn't find anything in there that related to the date of retirement - it only appears to be in the text file for the player.
Tony M is offline   Reply With Quote
Old 01-24-2008, 10:35 AM   #3 (permalink)
Major Leagues
 
Join Date: Mar 2007
Posts: 415
Man, that's silly. I would have thought that piece of information would be really easy to save somewhere.

Anybody else have any thoughts on this?
__________________
GM of the OBL - Cincinnati Reds (811-898, .477)
1938 NL West Champs
1938 National League Champs

GM of the SSBL - Atlanta Braves (451-325, .581)
2022, 2024-2026 NL East Champs
2024 National League Champs

GM of the BJHL - Avery Island Hot Peppers (235-251, .484)
falkonisback is offline   Reply With Quote
Old 01-24-2008, 10:52 AM   #4 (permalink)
Global Moderator
 
Join Date: Feb 2006
Posts: 3,526
Quote:
Originally Posted by falkonisback View Post
Man, that's silly. I would have thought that piece of information would be really easy to save somewhere.

Anybody else have any thoughts on this?
I've just ran a 2 team league for a few years to get a few retired and there is definitely nothing in the bits I haven't deciphered that looks in the correct format for a date. The player I was looking at retired on the 1st January 2009 so I'd expect to see the following sequence of numbers in those areas 1, 1, 219, 7, 0, 0, 0 but there isn't...

I once toyed with creating a lahman style file set from the data in a game but couldn't find the retired date in the files - I could go through and parse the text files but that's a bit too much processing.
Tony M is offline   Reply With Quote
Old 01-24-2008, 01:27 PM   #5 (permalink)
All Star Reserve
 
billethius's Avatar
 
Join Date: Apr 2004
Posts: 807
Quote:
Originally Posted by redsoxford View Post
I've just ran a 2 team league for a few years to get a few retired and there is definitely nothing in the bits I haven't deciphered that looks in the correct format for a date. The player I was looking at retired on the 1st January 2009 so I'd expect to see the following sequence of numbers in those areas 1, 1, 219, 7, 0, 0, 0 but there isn't...

I once toyed with creating a lahman style file set from the data in a game but couldn't find the retired date in the files - I could go through and parse the text files but that's a bit too much processing.
If you used a regular expression and a perl, python, or ruby script it shouldn't be too bad. You could probably write the script in 5 minutes (assuming you know a scripting language and a bit about regular expressions) and then just point it at the directory and let it run.
billethius is offline   Reply With Quote
Old 01-24-2008, 01:38 PM   #6 (permalink)
Hall Of Famer
 
Join Date: Mar 2002
Location: Gainesville, FL USA
Posts: 3,369
Quote:
Originally Posted by billethius View Post
If you used a regular expression and a perl, python, or ruby script it shouldn't be too bad. You could probably write the script in 5 minutes (assuming you know a scripting language and a bit about regular expressions) and then just point it at the directory and let it run.
grep is your friend
__________________
If not perfection, when is good enough, good enough?

jarmenia is offline   Reply With Quote
Old 01-24-2008, 02:26 PM   #7 (permalink)
Global Moderator
 
Join Date: Feb 2006
Posts: 3,526
Quote:
Originally Posted by billethius View Post
If you used a regular expression and a perl, python, or ruby script it shouldn't be too bad. You could probably write the script in 5 minutes (assuming you know a scripting language and a bit about regular expressions) and then just point it at the directory and let it run.
Yeah, I know I could, and I could probably knock it up in a few minutes in VB as well.

So anyway, to the OP, the only way to do it is to look at the last line of any player_nnnn.txt where they have retired and parse the date from it.
Tony M is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 Out of the Park Developments