BREITENFELD 1631

Moderators: rbodleyscott, Slitherine Core, Gothic Labs

rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28294
Joined: Sun Dec 04, 2005 6:25 pm

Re: BREITENFELD 1631

Post by rbodleyscott »

edward77 wrote:Richard, The two versions of the impressive community scenario Marsaglia have exactly the same units and map but a different AI. However the units are at reduced levels (eg below average) for the player and increased levels (eg superior) for the AI. Obviously this is to make the game more challenging for the player but how do you change the level of a unit?
If you play at the highest difficulty level an adjustment is made automatically. Otherwise you would need to change the "Experience" and "Elan" Attribs for each unit in the scenario script in the CustomiseUnits() function.

If you give me more detail on what you are trying to achieve I can probably give you a code fragment to insert.
Richard Bodley Scott

Image
Paul59
General - King Tiger
General - King Tiger
Posts: 3859
Joined: Tue Jul 21, 2015 11:26 pm

Re: BREITENFELD 1631

Post by Paul59 »

edward77 wrote:Richard, The two versions of the impressive community scenario Marsaglia have exactly the same units and map but a different AI. However the units are at reduced levels (eg below average) for the player and increased levels (eg superior) for the AI. Obviously this is to make the game more challenging for the player but how do you change the level of a unit?
To achieve this I changed the "Experience" and "Elan" values (These are columns AS and AT) for each unit in the Squads.csv file. The values can range from 0 to 300, but roughly correspond to this;

Raw; 50 and 50
Average; 100 and 100
Superior; 200 and 200

Each scenario has it's own unique Squads.csv file, I altered the Experience and Elan values to make the scenarios challenging for the player. So for instance in the Savoyard scenario the Savoyard Garde du Corps have Experience and Elan values of 150, in the French player scenario those values have been changed to 200, making the unit a little more potent to play against.


Regards


Paul
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
edward77
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 231
Joined: Wed Nov 10, 2010 9:11 pm

Re: BREITENFELD 1631

Post by edward77 »

Thanks Richard & Paul for info. Sorry to bother you again. I have the squads.csv file in front of me now. I have opened it with Office.org spreadsheet. The row numbers are down the left but cannot see any column identification. All the numbers with commas seem to be in the first column. Also if I click on the spreadsheet it reverses to white print on a black background
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28294
Joined: Sun Dec 04, 2005 6:25 pm

Re: BREITENFELD 1631

Post by rbodleyscott »

edward77 wrote:Thanks Richard & Paul for info. Sorry to bother you again. I have the squads.csv file in front of me now. I have opened it with Office.org spreadsheet. The row numbers are down the left but cannot see any column identification. All the numbers with commas seem to be in the first column. Also if I click on the spreadsheet it reverses to white print on a black background
I think you need to use a spreadsheet program that will display the correct formatting. You should not be seeing any commas.
Richard Bodley Scott

Image
edward77
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 231
Joined: Wed Nov 10, 2010 9:11 pm

Re: BREITENFELD 1631

Post by edward77 »

Dumbo me! Did not import it! Works fine now. Thanks for help. Have created a new scenario which works ok but there is no squad.csv file. Is this possibly linked to having side 0 on the wrong side of the map?
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28294
Joined: Sun Dec 04, 2005 6:25 pm

Re: BREITENFELD 1631

Post by rbodleyscott »

edward77 wrote:Dumbo me! Did not import it! Works fine now. Thanks for help. Have created a new scenario which works ok but there is no squad.csv file. Is this possibly linked to having side 0 on the wrong side of the map?
You need to put a copy of the squads.csv file from the main build (in \Data) into your custom campaign directory. (In the main directory of your campaign, not in a \Data subdirectory). Then you can edit the copy.

There is no problem having side0 on the "wrong" side of the map, except that you won't be able to use AI_Masterplan() because it won't work. AI_Masterplan() is commented out by default in SCENARIOTEMPLATE.BSF.
Richard Bodley Scott

Image
edward77
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 231
Joined: Wed Nov 10, 2010 9:11 pm

Re: BREITENFELD 1631

Post by edward77 »

Richard, Thanks to your help the new scenario as mentioned above is going pretty well now apart from getting the AI reinforcement messages to appear. I have three AI Groups 0-2 each of which appear in the scenario at the correct place and time but with no message. I have checked that the messages are in the TEXT9 file.

ie IDS_AUTO_REINF_0_BP0TEXT,"The Germans have now turned around and are marching to William`s aid.",
IDS_AUTO_REINF_1_BP0TEXT,"Dutch Cavalry are coming into action on the left wing.",
IDS_AUTO_REINF_2_BP0TEXT,"HRE Cavalry reinforcements have arrived.",

I have not used the advanced method.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28294
Joined: Sun Dec 04, 2005 6:25 pm

Re: BREITENFELD 1631

Post by rbodleyscott »

My memory of how the default reinforcements system works is hazy because I have never used it. I used scripted reinforcements in my scenarios. Perhaps someone who does use the editor method could answer your query (e.g. Odenathus or Paul59)

It may be that the messages are only reported to the player that is receiving the reinforcements.
Richard Bodley Scott

Image
Post Reply

Return to “Scenario Design”