The General and The Sergeant 1.2n

Upload your latest creations here.
Please note that by posting comments to posts in this forum you forfeit your personal copyright on whatever you post. AI Scripters reserves the right to re-use objective comments in script reviews without requiring the posting author's permission. Credit, where appropriate will be given in such cases.
Post Reply
User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1a

Post by Leif Ericson »

:( I couldn't repeat the forward TCs in about ten tests, so I thought it was fixed. I never figured out which code was causing it to build them forward.

And lol, it happened in both games against ER. What are the odds?

If you guys are fine with giving me even more extra time, I'll temporarily remove the DUC TC rules and revert to the sn-town-center-placement rules. I'll probably want some time to test that it doesn't cause any bugs.

And yeah, double barracks was a bug. Another mystery. Some code is setting the number of desired barracks to 2, but I double checked the code and it shouldn't be possible. :head

But yay for beating ER 2-0.:D

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1b

Post by Leif Ericson »

The General 1.1b:
- fixes forward TC bug (backup TC build system was setting sn-mining-camp-max-distance equal to sn-maximum-town-size)
- adds ability to play Huns (so I can test the knight rush in UP) :D
- removed DUC build system for non-dropsite buildings because it was occasionally unreliable, might add back in at a later date
- removed forward siege workshop until I can add better conditions for its construction
- removed some conditions to build watch towers in castle age, removed entirely in imperial age
- fixed a bug where The General occasionally failed to determine its correct flank/pocket partner in team games
- fixed a resign bug in team games
- deprioritized some techs to sustain military production when appropriate

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1c

Post by Leif Ericson »

The General 1.1c:
- Added conditions to build buildings at the back of the town when under attack
- Added counters for camels and fixed some logic issues that prevented support units from being trained
- Slightly improved tower placement to prioritize building near dropsites (place-point seems to sometimes place the tower 3-5 tiles away from the target point, not sure why)
- Increased prioritization of building lumber camps on forests near starting TC
- Improved rules for garrisoning soldiers when under attack
- Decreased villager sensitivity to attack forward towers
- Added experimental code for villagers to target rams

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1c

Post by Leif Ericson »

Reuploaded 1.1c due to a "rule too long" error in WK.

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1d

Post by Leif Ericson »

Uploaded 1.1d. It's a small update that prevents soldiers from staying garrisoned too long, prevents premature resigns in 1v1, and builds a market when defending.

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1e

Post by Leif Ericson »

Uploaded version 1.1e to hopefully fix the freezing bug in imperial. Please test to see if it works properly. There was a jump loop in the lumber camp construction code that could loop infinitely.

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1e

Post by Leif Ericson »

Reuploaded 1.1e to remove/fix some annoying chats.

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1f

Post by Leif Ericson »

The General 1.1f. Tiny update to hopefully fix the farming issue from one of the games. Some of the checks to increase the town size are removed.

User avatar
Leif Ericson
Waheguru
Posts: 1423
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: The General 1.1g

Post by Leif Ericson »

The General 1.1g:
- now plays Incas
- soldiers are now more intelligent about when to retreat from enemy town centers
- several military techs are now only researched if the AI has a specified number of affected units trained
- removed most conditions for researching castle age and limited the training of excess villagers in feudal age
- adjusted the timing and limits of several buildings
- added small adjustments to countering and attacking rules

User avatar
FireBall37
Swami
Posts: 175
Joined: Sat Aug 22, 2020 10:49 pm
Location: United States

Re: The General 1.1g

Post by FireBall37 »

:alien
author of the Shadow AI and Snippets

Post Reply