Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

How to mod manpower available?

Tue Aug 28, 2007 2:25 pm

I was trying to locate the parameters for adjusting manpower provided during "call for volunteers" and "draft/mobilization".

I went through every available database plus the scenario files. There was one database spreadsheet dealing with game options which touched on costs for draft/mobization/volunteers but didn't cover manpower provided.

So I have I just missed the information? If so, can someone point me in the right direction.

If not available, Pocus, any possibility you could make the data available for modding?

User avatar
Clovis
Posts: 3222
Joined: Wed Nov 09, 2005 7:43 pm
Location: in a graveyard
Contact: Website

Tue Aug 28, 2007 3:23 pm

Jagger wrote:I was trying to locate the parameters for adjusting manpower provided during "call for volunteers" and "draft/mobilization".

I went through every available database plus the scenario files. There was one database spreadsheet dealing with game options which touched on costs for draft/mobization/volunteers but didn't cover manpower provided.

So I have I just missed the information? If so, can someone point me in the right direction.

If not available, Pocus, any possibility you could make the data available for modding?


I figure manpower is ruled by a formula based on cities size, National Moral.

in the scenario file the string for one the options is:

1&12&mdl_CSA_Mil5.png&strPaidVolunteersTitle&strPaidVolunteers&strPaidVolunteersTool&5&0&0&2&0&1&0&0&0&0&0&&&&


the first 1 and 12 determines frequence of the option, the last 5, 2 and 1 are yet to explain...

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Aug 28, 2007 3:35 pm

spot on Clovis. The options you see in the ledger are parametized (sp?) in the scenarios, not in the database.

See
AACW_inc_CMN_GameOptions05.xls for more details on the options available initially (grouped into an include which is used when you build a scenario). The late game options are triggered by events, so are in the events files.

You will see in the said XLS:

$gmaFreeVolunteers|MaxUse|1|ResetFreq|12|ImageID|mdl_CSA_Mil5.png|Title|strFreeVolunteersTitle|MsgString|strFreeVolunteers|ToolString|strFreeVolunteersTool|Param1|-40

Which is much more readable compared to the export that Clovis list (the export is the final step, but you should always work with the XLS which are more user friendly).

The -40 parameter is the modifier to the formula, morale-based used for the option. The lower the number, the less men you get, and the more morale-sensitive the formula is.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Clovis
Posts: 3222
Joined: Wed Nov 09, 2005 7:43 pm
Location: in a graveyard
Contact: Website

Tue Aug 28, 2007 4:10 pm

Is it possible to disable an option during game by events?

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Thu Aug 30, 2007 8:30 am

yes, set MaxUse to 0
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Sat Oct 20, 2007 3:54 am

Ok, I was playing around with the modifier values for Volunteers/draft manpower in the GameOptions file within the Includes folder.

I noticed the April 61 scenario calls up the GameOptions file. So I assume my modifier changes within the GameOptions file should automatically apply to the scenarios without any changes by me to the scenarios.

Yet after making the manpower modifier changes, I restarted the game and checked the April 61 and 62 scenarios. I also ran a few turns. The volunteer and draft manpower did not change at all from the original values.

Am I missing a step beyond changing the draft/volunteer manpower modifiers and saving the GameOptions file?

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Sat Oct 20, 2007 8:11 am

yes, there is a common misunderstanding about includes files. They are only used when a scenario are created, if called by the setup.

If called by an event, they are used dynamically, as the event file is reread every turn.

An include is just a way to classify easily the various data used at setup, so if you change something in them, you have to recreate the scenario.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 21 guests