BattleDef.ini

Game won't run. Keeps crashing. Hopefully we won't get any posts here, but if we do, we'll try to help you out. You can also post any bugs that you find here. IMPORTANT: Don't post mod related problems here!
Post Reply
CoB4thTEXAS
Reactions:
Posts: 153
Joined: Tue Jan 15, 2008 11:08 am

BattleDef.ini

Post by CoB4thTEXAS »

Does this file work?, if so should it stay in logistics or go somwhere else?

Sorry posted first then shearched, works better the other way around. :pinch:

To bad this doesnt work anymore.
Last edited by CoB4thTEXAS on Sun Nov 20, 2011 10:25 pm, edited 1 time in total.
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: BattleDef.ini

Post by Marching Thru Georgia »

CoB4thTexas wrote:
Does this file work?, if so should it stay in logistics or go somwhere else?
No. The SDK has an incorrect copy of it. As such it will not work. However, if you place the following: [BattleDef] as the 1st line in the file, it will work just fine. Then flank and rear fire can be modded to have a proper moral effect. :)
I can make this march and I will make Georgia howl.
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re: BattleDef.ini

Post by Garnier »

Is BattleDef.ini mod-able for MP?
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: BattleDef.ini

Post by Marching Thru Georgia »

Garnier wrote:
Is BattleDef.ini mod-able for MP?
I believe so. That was the reason for separating it from the defines.ini file.
I can make this march and I will make Georgia howl.
CoB4thTEXAS
Reactions:
Posts: 153
Joined: Tue Jan 15, 2008 11:08 am

Re: BattleDef.ini

Post by CoB4thTEXAS »

CoB4thTexas wrote:
Does this file work?, if so should it stay in logistics or go somwhere else?
No. The SDK has an incorrect copy of it. As such it will not work. However, if you place the following: [BattleDef] as the 1st line in the file, it will work just fine. Then flank and rear fire can be modded to have a proper moral effect. :)

Sometimes i go dense, and sorry this is one of those times.

So the file should look like this in notepad?:

,,
[BattleDef],,
;[CasualtyMorale],,
; This is done for every man lost in battle,,
; This is modified by factors in unitattributes.csv,,
CMBaseLoss=8,,
; This modifier is multiplied by the percentage of men lost, then by the morale loss,
; So 100 with 50% of men lost and modified loss of 10 would mean a total 15 point loss,,
; So this value means take 100% of the percent lost modifier,,
CMPctMenRemainingMod=50,,
; Lastly we modify for where the fire came from, this value is the percent of the remaining value to use,
CMPctFrontFire=300,,
CMPctRearFire=800,,
CMPctFlankFire=600,,
; So the final formula is: ,,
; result = BaseLoss + unitattributes modifiers,,
; result = Random( result - randfact, result + randfact ),
; the minimum value of result will be 1 at this point,,
; result = result + (result * PctMenLost) * PctMenRemainingMod,,
; result = result * FireType,,
CMRandFact=3,,
; this is used to specify the killing rate in seconds,,
CMMaxNextKillTime=10,,
CMMaxKillTimePenalty=5,,


Also this line bothers me, ;[CasualtyMorale],,
is this correct, and should this file even be in the logistics folder?
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: BattleDef.ini

Post by Marching Thru Georgia »

It looks as if you tried to open this in Excel as there are commas in the 1st line and at the end of all the other lines. This is just a text file. You'll have to remove them. Here is my copy of the file so you can see what it should look like. [BattleDef] is the very 1st line.

[BattleDef]
;[CasualtyMorale]
; This is done for every man lost in battle
; This is modified by factors in unitattributes.csv
CMBaseLoss=8
; This modifier is multiplied by the percentage of men lost, then by the morale loss
; So 100 with 50% of men lost and modified loss of 10 would mean a total 15 point loss
; So this value means take 100% of the percent lost modifier
CMPctMenRemainingMod=50
; Lastly we modify for where the fire came from, this value is the percent of the remaining value to use
CMPctFrontFire=100
CMPctRearFire=1190
CMPctFlankFire=1050
; So the final formula is:
; result = BaseLoss + unitattributes modifiers
; result = Random( result - randfact, result + randfact )
; the minimum value of result will be 1 at this point
; result = result + (result * PctMenLost) * PctMenRemainingMod
; result = result * FireType
CMRandFact=3
; this is used to specify the killing rate in seconds
CMMaxNextKillTime=10
CMMaxKillTimePenalty=5
Also this line bothers me, ;[CasualtyMorale],,
is this correct, and should this file even be in the logistics folder?
Yes. This determines how fast the morale decreases every time a unit takes a casualty.
I can make this march and I will make Georgia howl.
CoB4thTEXAS
Reactions:
Posts: 153
Joined: Tue Jan 15, 2008 11:08 am

Re: BattleDef.ini

Post by CoB4thTEXAS »

Thanks for the help MTG, i could have figured this out, in about SIX WEEKS :woohoo: .
Post Reply