Get it from CNET Download.com!
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!
Search the web
Search this site

Go Back   OOTP Developments Forums > Earlier versions of Out of the Park Baseball > Earlier versions of OOTP: Mods
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-16-2006, 12:10 PM   #1 (permalink)
Minors (Single A)
 
Join Date: Jul 2003
Posts: 91
Wanted: Some help creating a draft pick editor

Pierre's utilities used to be fantastic for this in 6.12, but there's nothing for 6.5. I know the layout of the tradedpicks.dat file, but have little experience coding outside of perl and bash scripts.


The anatomy of tradedpicks.dat is as follows:

Each 'line' contains 20 hexadecimal pairs.
1st line:
1st pair: total number of entries
remaining 18 pairs: 00

2nd line (and subsequent lines):
1st pair: rd of pick traded
next 7 pairs: 00
next pair: team no. of team that gives up the pick
next 3 pairs: 00
next pair: team no. of team that gets the pick
next 3 pairs: 00
next pair: entry number
next 3 pairs: 00


So, if the Yankees (Team 1) traded their 1st rd pick to Boston (Team 2), and the A's (Team 6) traded their 3rd rd pick to Pitt (Team 15):
02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 01 00 00 00
03 00 00 00 00 00 00 00 06 00 00 00 0f 00 00 00 02 00 00 00

You can associate team names with their numbers from the Teams.dat file.
Entry 0x0bb8-0x0be9 is Team Name 1
Entry 0x1770-0x17a1 is Team Name 2
Entry n*0xbb8 to n*0xbb8+31 is Team Name n

The last detail I'm a little less sure of. You can figure out the draft order from draft.dat. The beginning of that file consists of sets of 4 hexadecimal pairs:
line 1:
1st pair: team no. of team with 1st pick in the draft under normal circumstances
remaining 3 pairs: 00

Line 2: repeat until you get to end of a typical draft round.
__________________
http://cpl.shulermisra.org
doug melvin is offline  
Old 07-16-2006, 12:17 PM   #2 (permalink)
Global Moderator
 
sporr's Avatar
 
Join Date: Dec 2001
Location: Muscatine, IA
Posts: 8,233
You can still use Pierre's utility for 6.5. All you have to do is copy your league file from 6.5 over to v6, edit with Pierre's utility, do the draft in v6, and then copy the league folder back over to 6.5
__________________


Baseball Maelstrom - Commish/ St Louis Cardinals
USBA - Las Vegas Scorpions

sporr is offline  
Old 07-16-2006, 12:39 PM   #3 (permalink)
Minors (Single A)
 
Join Date: Jul 2003
Posts: 91
I used to do that myself, but then started just editing the tradedpicks.dat file by hand-- it saves me a lot of time.

However, a few of my fellow commishes are having troubles with the hoops involved in going back to 6. I thought I'd at least toss the info I know out there, as the code should be relatively easy to pound out (heck, if I had Visual Studio for Windows, I'd do it myself).
__________________
http://cpl.shulermisra.org
doug melvin is offline  
 


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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:45 PM.


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