Aljubarrotta script bug?

Moderator: rbodleyscott

Post Reply
stockwellpete
Field of Glory Moderator
Field of Glory Moderator
Posts: 14501
Joined: Fri Oct 01, 2010 2:50 pm

Aljubarrotta script bug?

Post by stockwellpete »

I have been talking to Paul59 about an extra scenario script for my Blore Heath scenario that makes the Lancastrian cavalry contingent stay controlled by the script for 3-4 turns instead of just 1 turn currently. I like the way the script works in Aljubarrotta, but I have noticed something a bit odd happening with it on Turn 3/4 . . .

Screen_00000000.jpg
Screen_00000000.jpg (907.25 KiB) Viewed 975 times

The French unit on the very left of the line engaging the Castilians drew its last combat and did not break off. But then it made a diagonal move into the centre, but then continued melee-ing with the same Castilian unit from its new position. Ordinarily, it would just stay where it was (where the white brackets are) and continue to the next round of melee.

Any ideas?
Paul59
General - King Tiger
General - King Tiger
Posts: 3864
Joined: Tue Jul 21, 2015 11:26 pm

Re: Aljubarrotta script bug?

Post by Paul59 »

stockwellpete wrote: Tue Aug 30, 2022 1:58 pm I have been talking to Paul59 about an extra scenario script for my Blore Heath scenario that makes the Lancastrian cavalry contingent stay controlled by the script for 3-4 turns instead of just 1 turn currently. I like the way the script works in Aljubarrotta, but I have noticed something a bit odd happening with it on Turn 3/4 . . .


Screen_00000000.jpg


The French unit on the very left of the line engaging the Castilians drew its last combat and did not break off. But then it made a diagonal move into the centre, but then continued melee-ing with the same Castilian unit from its new position. Ordinarily, it would just stay where it was (where the white brackets are) and continue to the next round of melee.

Any ideas?
During Beta testing we made at least one revision to the script to address perceived errors. I remember someone complained that a unit just stood stationary when the way straight ahead was blocked, but it could have made a diagonal move instead. We then adjusted the script to allow diagonal moves, but I think this must be an unplanned consequence of the change!

These automatic move scripts are very tricky to get right. We are basically trying to replace most of the games AI scripting with one scenario script! So things can occasionally go wrong.

I think I have an original version of the Aljubarrota script gathering dust on my hard drive, so maybe we can use that for your Blore Heath instead. In any case, I don't think this issue will be a problem with Blore Heath, as the units will only be uncontrolled for 3 turns at most, and being cavalry they will be falling back from most impacts/melees.
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.
stockwellpete
Field of Glory Moderator
Field of Glory Moderator
Posts: 14501
Joined: Fri Oct 01, 2010 2:50 pm

Re: Aljubarrotta script bug?

Post by stockwellpete »

Paul59 wrote: Tue Aug 30, 2022 3:25 pm
During Beta testing we made at least one revision to the script to address perceived errors. I remember someone complained that a unit just stood stationary when the way straight ahead was blocked, but it could have made a diagonal move instead. We then adjusted the script to allow diagonal moves, but I think this must be an unplanned consequence of the change!

These automatic move scripts are very tricky to get right. We are basically trying to replace most of the games AI scripting with one scenario script! So things can go wrong.

I think I have an original version of the Aljubarrota script gathering dust on my hard drive, so maybe we can use that for your Blore Heath instead. In any case, I don't think this issue will be a problem with Blore Heath, as the units will only be uncontrolled for 3 turns at most, and being cavalry they will be falling back from most impacts/melees.
Yes OK, Paul. I'll send the Blore Heath scenario over to you then. So on Turn 4 the Lancastrian player can take control of his cavalry. Thanks. :wink:
Post Reply

Return to “Field of Glory II: Medieval - Scenario Design”