Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Commanders.txt

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [American Civil War] >> Forge of Freedom: The American Civil War 1861-1865 >> Commanders.txt Page: [1]
Login
Message << Older Topic   Newer Topic >>
Commanders.txt - 12/18/2006 1:53:17 AM   
jsaurman

 

Posts: 129
Joined: 6/28/2000
From: Alexandria, VA
Status: offline
I've been trying to mess around with this file a bit. I wanted to make all the Union Generals start out at one star, as I always play the Union.
Somehow, whatever I did, erased all the generals from any new game I start. All old saved games still have their generals.
Luckily I saved a backup of the original file, so I'm not worried about that, I can go back to the default whenever I want.

But here are the interesting things I found out.
1. Another poster in another thread, said this file was a comma separated text file, that appears to be incorrect. I think it is a TAB separated text file.
2. Here are the attributes for each general:
Name
Mugshot
Nation
StartDate
StartProv
HomeState
Chance (This appears to be a percentage, but instead of 100 percent, which no general has, all of the 100% generals say 200)
rank (One through Five, obviously)
Leadership
Tactical
Initiative
Command
Cavalry
WP (I think they get a bonus if they are a West Point graduate)
VMI (Same for VMI)
GradRank (Appears to be only 1 or 2, or zero if they didn't finish in the top two of their class)
Foreign
Relieved
Resigned
Medal
Special0 (I guess this is their special abilities)
Special1
Special2
Special3
Special4
Notes (Appears to be notes that the designers were using)


What I did was take this file, and look at it in Notepad, but it was too messy to work with.
I did notice that there were no commas separating any of the data.
Then I imported it into Excel, as a tab delimited list
It looked fine. I did a Data Sort by Nation to get the Union and Confed seperate.
Then I did a sort by rank, and changed all the Union numbers in the rank column to 1
Then I saved the file as tab-delimited text with the same name (Commanders.txt)

Anyone have any idea what went wrong? All new games with this file have NO generals at all. There are no Generals icons, the only place that I can see any reference to generals, is in the military screen where it lists the total quantity of various star ranks at the bottom left, but when I do a sort to ditch everything but generals there are no generals listed there either.

Thanks!
JIM
Post #: 1
RE: Commanders.txt - 12/18/2006 2:03:07 AM   
scott64


Posts: 4019
Joined: 9/12/2004
From: Colorado
Status: offline


_____________________________

Lucky for you, tonight it's just me


Any ship can be a minesweeper..once !! :)

http://suspenseandmystery.blogspot.com/

(in reply to jsaurman)
Post #: 2
RE: Commanders.txt - 12/18/2006 3:57:14 AM   
satchel


Posts: 18
Joined: 9/26/2001
From: Fort Smith, Ark. USA
Status: offline
quote:

ORIGINAL: jsaurman
I did a Data Sort by Nation to get the Union and Confed seperate.
Then I did a sort by rank, and changed all the Union numbers in the rank column to 1


This might be part of your problem. Modifying the data in the fields should be work fine, but changing the order of the generals might have messed up the way the game is reading the file. I'd leave all the lines in the same order, and just go into the fields and change the data. I wouldn't "sort" in any way.

(in reply to jsaurman)
Post #: 3
RE: Commanders.txt - 12/18/2006 5:26:55 AM   
jsaurman

 

Posts: 129
Joined: 6/28/2000
From: Alexandria, VA
Status: offline
That was it exactly.
Upon further examination, it appears the original sort order was by Chance, then by Number, then by Nation.
Works perfectly now.

Thanks!

JIM

(in reply to satchel)
Post #: 4
RE: Commanders.txt - 12/18/2006 3:58:39 PM   
ericbabe


Posts: 11927
Joined: 3/23/2005
Status: offline
The first line of the file is always a comment line, so anything there doesn't get read.  The last line should be the "end of file" line -- the game stops reading the file whenever it reaches that line.  If a sort moves the end of file line up to the top, then the game reads that line and stops.  Apart from these two lines, the order of the other lines does not matter.

_____________________________



(in reply to jsaurman)
Post #: 5
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [American Civil War] >> Forge of Freedom: The American Civil War 1861-1865 >> Commanders.txt Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.125