Liaison Tools Modding Questions

Post Reply
TimDee58
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 216
Joined: Wed Mar 07, 2018 1:32 am

Liaison Tools Modding Questions

Post by TimDee58 » Tue Feb 11, 2020 11:58 pm

I hope to achieve the following by tweaking the Liaison Tools file however as a non programmer / scripter I'm hesitant to change the file without seeking guidance from those cleverer (and more experienced) than I am...

I've obviously created a Mod folder in the appropriate place so am now wondering how to achieve the following....

Attacker or Defender?
I wish to ensure that the player that owns the province in which the battle is to be fought is always considered to be the defender, likewise if in an enemy province my army should always be the attacker.

(I'm constantly frustrated to find that my better defensive generals fighting in their home territory often are considered to be attacking for some reason, how can I base a strategy on my generals abilities when I cannot be certain that they will actually defend? - likewise when in enemy territory I'd like to know that I can rely on my better attacking generals to actually do so)

I'd also like to know if this could be integrated with Rise of AI which I use for playing out my campaign battles.

Being naive I'm assuming this is an easy tweak?

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

Re: Liaison Tools Modding Questions

Post by rbodleyscott » Wed Feb 12, 2020 9:50 am

TimDee58 wrote:
Tue Feb 11, 2020 11:58 pm
I hope to achieve the following by tweaking the Liaison Tools file however as a non programmer / scripter I'm hesitant to change the file without seeking guidance from those cleverer (and more experienced) than I am...

I've obviously created a Mod folder in the appropriate place
That won't work as Empires battles uses the script from the main build.
Attacker or Defender?
I wish to ensure that the player that owns the province in which the battle is to be fought is always considered to be the defender, likewise if in an enemy province my army should always be the attacker.
You can't without modding Empires, as Empires sends the relevant information in the export file. (Which is really just which ratings each general uses). It doesn't send the information as to who is attacker and defender, nor indeed what the generals' other rating is, it just sends the rating that Empires deems should be used. FOG2 does not have access to the data to do what you want.
(I'm constantly frustrated to find that my better defensive generals fighting in their home territory often are considered to be attacking for some reason, how can I base a strategy on my generals abilities when I cannot be certain that they will actually defend? - likewise when in enemy territory I'd like to know that I can rely on my better attacking generals to actually do so)

I'd also like to know if this could be integrated with Rise of AI which I use for playing out my campaign battles.

Being naive I'm assuming this is an easy tweak?
It can't be done by modding FOG2, only by modding Empires.
Richard Bodley Scott

Image

TimDee58
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 216
Joined: Wed Mar 07, 2018 1:32 am

Re: Liaison Tools Modding Questions

Post by TimDee58 » Wed Feb 12, 2020 10:00 am

Thanks Richard

(if I had any teeth left I'd gnash them lol)

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

Re: Liaison Tools Modding Questions

Post by rbodleyscott » Wed Feb 12, 2020 10:05 am

TimDee58 wrote:
Wed Feb 12, 2020 10:00 am
Thanks Richard
You could of course manually edit the export file for each battle, to change the generals' ratings. It would only take a few seconds. You would need to do it before hitting the Empires Battle button in FOG2.

You will find the export file at:

/Documents/My Games/FieldOfGloryEmpires/SAVES/AgeodBattleData.TXT

It starts as follows:

Code: Select all

SAVENAME 450057002700>600020013000200350007001600270047001600020067005600270037005700370002003500070016002700470016000200740027001600>6004600020034001600=6000700160096007600>60002003300130003000200240034005400
BATTLEID 12887
SIDEID0 39
SIDEID1 14
MAPTYPE 1
NOCOAST
SEEDNUMBER 1014248831
REGION 1400270036001600460096001600
DATE -310
 
[GENERAL0]
AGEOD_ID 576192512
NAME 540067005600270076005600470056003700
QUALITY 1
 
 
[GENERAL1]
AGEOD_ID 0
 
 
########## UNITS RECORDS ##########
You just need to change the value of QUALITY (Only 0, 1 or 2 are valid values) for one or both generals. (GENERAL0 is your general, GENERAL1 is the AI general. In the example above, the AI army has no named general).
Richard Bodley Scott

Image

TimDee58
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 216
Joined: Wed Mar 07, 2018 1:32 am

Re: Liaison Tools Modding Questions

Post by TimDee58 » Wed Feb 12, 2020 10:09 am

BRILLIANT! Thank you Richard

Post Reply

Return to “Field of Glory II: Modding”