Page 1 of 1

BattleDef.ini

Posted: Sun Nov 20, 2011 10:15 pm
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.

Re: BattleDef.ini

Posted: Mon Nov 21, 2011 10:21 pm
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. :)

Re: BattleDef.ini

Posted: Mon Nov 21, 2011 11:31 pm
by Garnier
Is BattleDef.ini mod-able for MP?

Re: BattleDef.ini

Posted: Mon Nov 21, 2011 11:53 pm
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.

Re: BattleDef.ini

Posted: Wed Nov 23, 2011 12:27 am
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?

Re: BattleDef.ini

Posted: Wed Nov 23, 2011 1:20 am
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.

Re: BattleDef.ini

Posted: Wed Nov 23, 2011 3:59 am
by CoB4thTEXAS
Thanks for the help MTG, i could have figured this out, in about SIX WEEKS :woohoo: .