Matrix Games Forums

To End All Wars: Mountain InfantryPandora: Eclipse of Nashira Announced! Deal of the Week: Command Ops goes half price!New Fronts are opening up for Commander: The Great WarCharacters of World War 1Sign of for the Pike and Shot Beta!More Games are Coming to Steam! Return to the Moon on October 31st! Commander: The Great War iPad Wallpapers Generals of the Great War
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Change no of turns per day and night turns

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

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Close Combat Series >> Close Combat: The Longest Day >> Mods and Scenarios >> Change no of turns per day and night turns Page: [1]
Login
Message << Older Topic   Newer Topic >>
Change no of turns per day and night turns - 12/23/2011 10:01:52 PM   
Hargrem

 

Posts: 16
Joined: 12/23/2011
Status: offline
Dear All

I've been enjoying the excellent ground tactics 3.1 mod.
I'd now like to play it by reinstating the night turns & increasing the no of stategic turns back to the original 4.
I know the Campaign.txt file is involved...

The original game entries are:
Campaign Length 4
Strategic Turns per day 4
Night turns 1,1,1,1

The 3.1 mod reads:
Campaign Length 5
Strategic Turns per day 3
Night turns 1,0,0,0,0

So, isn't it just a case of changing the entries to:
Campaign Length 5
Strategic Turns per day 4
Night turns 1,1,1,1,1

However, I get the error message:
Invalid Number of 0 days in C:/etc, etc, Campaign.txt.

What am I missing?

Thanks
Matthew
Post #: 1
RE: Change no of turns per day and night turns - 12/23/2011 10:17:52 PM   
Steve McClaire

 

Posts: 2916
Joined: 11/19/2007
Status: offline
The numbers for each entry should appear by themselves, without accompanying text. Possibly you're already doing this, but I wasn't sure from your description. For example, you'd want the the campaign length to appear like this:

5


You can use the "#" character at the start of the line to put a comment in the file, which will be ingored by the game, so by default the file usually looks like this:

# Campaign length ...
5


The position of the entries in the file determine their meaning, so you have to make sure what you change is the same line in the file as the game expects. For example, campaign lenght is the first non-comment line, and strategic turns per day is the second non-comment line, etc.

Hope that helps.

Steve

(in reply to Hargrem)
Post #: 2
RE: Change no of turns per day and night turns - 12/24/2011 1:50:28 PM   
Hargrem

 

Posts: 16
Joined: 12/23/2011
Status: offline
Steve
Thanks for your prompt reply. I think I understand what you're saying and I think I'm doing that - I've tried again, breating a new file, but same error message...
I've attached the file - perhaps you would be kind enough to have a look?
Regards
Matthew

Attachment (1)

(in reply to Steve McClaire)
Post #: 3
RE: Change no of turns per day and night turns - 12/25/2011 9:43:06 AM   
berndn

 

Posts: 205
Joined: 1/5/2007
Status: offline
I'm not sure but if you check the file there are several comments (#) enclosed with " like in this from the beginning:

#########################################################################
"# Campaign.txt for ""The Longest Day"""
##########################################################################
"# Campaign length, in days, max is 25"


I believe it should be

#########################################################################
# Campaign.txt for ""The Longest Day""
##########################################################################
# Campaign length, in days, max is 25


How is this generated?

(in reply to Hargrem)
Post #: 4
RE: Change no of turns per day and night turns - 12/25/2011 5:24:16 PM   
Steve McClaire

 

Posts: 2916
Joined: 11/19/2007
Status: offline
Yes, the quotation marks are going to cause the game to parse the file incorrectly. Those will need to be removed or the file re-saved with a different option so they're not present.

Merry Christmas,

Steve

(in reply to berndn)
Post #: 5
RE: Change no of turns per day and night turns - 12/25/2011 5:27:48 PM   
berndn

 

Posts: 205
Joined: 1/5/2007
Status: offline
Merry Christmas Steve!

(in reply to Steve McClaire)
Post #: 6
RE: Change no of turns per day and night turns - 12/27/2011 2:28:02 PM   
Hargrem

 

Posts: 16
Joined: 12/23/2011
Status: offline
Thanks guys - I've cracked it and it seems obvious now, but I'll explain what I did, so that it might help other modders not make the same mistake as me!!!
I'd made some changes to some of the other data files (soldiers, teams & weapons). All these files I modded through Excel, using the conversion via delimited text files, etc, as you do when working from the downloadable workbook.
I automatically did the same for the Campaign.txt file, so when I took on board yours and Steve's comments, I checked what I was saving into my modded file and then reopened it and there were no additonal " " marks...
This puzzled me - how were you seeing " " marks that I wasn't???
Then it occurred to me to open my modded Campaign.txt file in text (rather then excel) and there were all the additional " " marks plainly visible!
So, simple! I just went back to the original txt file, opened it in text, modded and saved it in text and it worked first time!
The only thing this doesn't answer is why excel puts the additional " " marks in the campaign file, but not in, say, a modded AlsTeams.txt file. But doesn't really matter if you know which to use...
Thanks again - easy when you know how...

Is there any guide that covers do's and don'ts like that?
Also, is there any Q & A guide for beginner modders for doing certain things, eg, if you want to make hedges impassable, open this file and change these columns (something I'm not sure on) or if you want to change the armour thickness of a vehicle, open this and do this (which I can do), etc, etc.

Kind regards
Matthew

(in reply to berndn)
Post #: 7
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Close Combat Series >> Close Combat: The Longest Day >> Mods and Scenarios >> Change no of turns per day and night turns 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.070