View Single Post
Old 07-03-2006, 04:02 AM   #12 (permalink)
The Great Demo
Major Leagues
 
The Great Demo's Avatar
 
Join Date: Apr 2004
Location: Moz Angeles, Republic of Hollywood
Posts: 378
Thanks: 0
Thanked 1x in 1 post
Quote:
Originally Posted by Carplos
I don't really see a significant difference between the two... isn't changing the player names and their ratings to those in the league you're trying to import all you want? What is actually missing from the former process?
League A's roster has less players than League B.

if you were to just import the roster.txt files to League B without switching the players.dat file, then you're only replacing some players.

Say that League A has 5 players and League B has 10 players.

the roster.txt file for League A probably looks like:

Code:
player id player name
0001     John Smoltz
0002     Greg Maddux
0003     Tom Glavine
0004     Jeff Francouer
0005     Chipper Jones

and lets say the players in players.dat file for League B are:

Code:
player id player name
0001     John Smith
0002     Tommy Reeves
0003     Sandy Herrera
0004     DJ Trigg
0005     JD Hershiser
0006     Jose Palma
0007     Rich Stenson
0008     Ricky Barrera
0009     Mario Valenzuela
0010     Frankie Unitas
If you were to just import the roster.txt file, your new players.dat file would look like:

Code:
player id player name
0001     John Smoltz
0002     Greg Maddux
0003     Tom Glavine
0004     Jeff Francouer
0005     Chipper Jones
0006     Jose Palma
0007     Rich Stenson
0008     Ricky Barrera
0009     Mario Valenzuela
0010     Frankie Unitas
because youre only replacing the names of the first 5 players in "League B," without editing the other five players in the league.

by replacing the players.dat file, you are telling the league, "there are only five players in this league now, and in the roster.txt file is their information and their team assignments"
__________________

Future Forties League

NL President and owner of Los Angeles Dodgers: 31-31, defending NL West champs

Owner of:
BBSC's Current League Los Angeles Dodgers: 100-62, 2010 Wild Card
BBSC's Reagan League Los Angeles Dodgers: 51-36, We took Bulldog's old team and made it better!
Alma Mater League's USC Trojans: 32-28
BBSC's Victory League's SouthCentral Saints of San Fernando Valley: 10-19 in our expansion year.

Last edited by The Great Demo; 07-03-2006 at 04:04 AM.
The Great Demo is offline   Reply With Quote