PDA

View Full Version : Investigation of AI reassessment upon reload



therother
04-05-2005, 17:43
Over the past month or so, a new game mechanics issue has arisen: does the AI reassess its actions after a reload of a saved game?

This thread is for investigating that issue, with the eventual aim of understanding the observations already made by many of the community. To be most effective, especially reading some posts from CA staff members, the thread must be as concise, relevant and conclusive as possible. Please try to be as complete and accurate as you can be before posting.

Also, take some time to familiarise yourself with the posting guidelines ( https://forums.totalwar.org/vb/showthread.php?t=39646) for this forum. Any post, or part of a post, which is not related to research of this issue will be removed from this thread.

Edit: In answer to Pode's first post, the sort of things we are looking for are: detailed observations, repeatable experiments, community attempts to gather large datasets, analysis of that data, and hopefully possible workarounds.

Which is a very long-winded way of saying, yes, that's fine! :thumbsup:

therother
04-05-2005, 17:46
added by A.Saturnus

It seems the discussion around this issue has come to a halt now. Therefore I post the conclusion I have drawn later in the thread here. The participants of the discussion have more or less agreed in general to this conclusion. Only the wording has drawn objections. But for simplicity I will leave it as it is. The objections can be found later in the thread.


It is certain that after loading a savegame, the AI will most of the time break up ongoing sieges in cases where it doesn't do that without save/load.
It seems that the objective to take the previously sieged city is not lost entirely, as the AI will usually try to reengage the siege the turn after the load.
As a consequence, saving and reloading will affect the development of AI factions, at least in the beginning of a campagne.
It is not yet clear to what extent the course of a campagne is influenced in an undesirable way by this. AI factions do conquer new territories at a slow pace, but it is not clear whether this is due to the save/load issue or general weakness of the AI. There are three possibilities:

Above the weakness of the strategic AI, this issue is irrelevant as its effect is only noticeable under extreme conditions.
Saving and reloading often does noticable affect gameplay, but doesn't make the game unplayable.
The effect is so pronounced that it can be called a "game-breaker".

A clearly noticable aspect is that, when saving and loading often, AI factions will not take the opportunity to capture rebel territory to the same extent as it does in continued playing.


It should be clear that point four is the most important aspect here, as it concerns the impact the issue has on gameplay. From reading the evidence in this topic everyone may come to his own conlusion on this.

Pode
04-05-2005, 21:39
Not sure if this is the type of post you're after here, therother, but this was what convinced me.

RTW 1.2, mods to build file only, M/M campaign as Britons, toggle_fow off. Zero player activity after first turn, simply hit end turn until an AI laid seige somewhere. When that happened, I hit ctrl-s, then ctrl-l, then end turn. Test ran to winter 265. 13 of 13 sieges were broken off by AI, zero provinces changed hands.

Have not tested the protectorate acceptance implications yet.

hrvojej
04-05-2005, 22:58
I'll quote my post from the thread in colosseum where this was discussed (minus the snide remark at the end):


A suggestion for a test:

Start a number of campaigns always with a same nation (one that is regularly unlockable) in vanilla unmodded RTW 1.2. Play a number of turns without reloading and without doing anything. Toggle FoW off, and count the number of provinces that have changed hands. Now do this with saving and reloading every time, and after the same number of turns count provinces that have changed hands. If a few of us do the same thing, take the same nation, play the same number of turns, use the same counting method etc. everything should be controlled for, and we would get a bigger sample size in a less time-consuming fashion. So, we would have to agree on the faction, No. of turns, No. of tests each of us would do, etc., but we would have respectable dataset in a short time, and without any of us spending several nights just clicking end of turn button.

After we gather all the data I volunteer to do the statistical anaysis on it and then we'll have cold hard evidence that something is going on. And no more "probability theory" arguments either - as we would have solid basis to counter them (another reason why we need a large sample size).

If people are interested, I'd be happy to elaborate further. Personally, I'm not sure it will change anything before XP though (if at all), but I'm willing to lend my time to this investigation.

hrvojej
04-06-2005, 15:14
Reposting from the Colosseum thread in case not everybody who is interested is reading both threads;

__________________________________________________________________

Ok, so, for those who are interested, here is the setup I would recommend:

- use umodded RTW 1.2; this means no custom mods either; we want everything to be the same and pristine in every experimenter's case so as to make the data cross-comparable
- take the Britons (thanks rcp ), medium/medium imperial campaign
- for the control, play 15 turns without doing anything; this literally means don't touch a thing other than the end of turn button; 15 turns is enough to bring two consecutive sieges that ended in starving the garrison out, I believe, hence I think this is a good number - not too big, not too small
- once 15 turns have passed (you hit end of turn for 15 times, to be exact), toggle FoW off and count the number of provinces that are not owned by the original owners; this means rebel provinces as well; this requires you to know beyond any doubt who was the original owner of the province - write it down beforehand if you think it's going to be necessary, or something to that effect
- for the "treatment" group, do everything like you did it in the control group - Britons M/M, hit end of turn (EoT) 15 times, don't touch anything - with the exception that now each turn you hit quicksave(QS) and then quickload (QL); hence, start - QS -QL - EoT - QS - QL -EoT -... etc. until you have hit EoT 15 times; at that point, turn FoW off and again count number of provinces not owned by the original owners
- if at any point in either your control or treatment campaigns you get attacked, abort that campaign, and start anew; we don't want to interfere at all, even if it's only autoresolve, and hence discard that campaign and instead do a new one fromt he begginging until you have the 5 controls (without reloads) and 5 treatments (with reloads)
- make 5 separate control campaigns (each running from fresh start to 15th EoT), and 5 separate treatment camapigns (again each running from fresh start to 15th EoT); save the campaigns at that point to a regular save, zip all those saves (you should have 10 of them, and this shuldn't take up much space) and keep them on your HD for the time being inc ase we need to send these to someone or verify something
- PM me the results, but keep in mind that I can only have 5 PMs at a time, so if I don't write back saying I got it in a day, PM me again; I'll do the analysis of the results, and post them here; I will not soup up the results, or do anything else to them other than analyze them - I do this kind of stuff for a living, and I know how to keep my personal feelings out of it, believe me


It is paramount that we all do it the same way, so please, if you think that you won't be able to do it in the way we all agree to do it, do not send me your data. I really do not want to deal with falsifications, souped up data for whatever reason, results that were collected through deviation of the basic rules, and similar things, as this would invalidate everybody else's effort as well. Let's do it right, or not do it at all.

This should tell us whether there is something fishy going on or not with saves.If we can't get 10 people (well, 9 other than myself), maybe each of us could do more runs. Say, 8 or 10 per control/treatment. Added bonus to this is that it cannot be said that it is due to a single PC configuration, or having FoW off all the time (which is a cheat and hence not an out-of-the-box game functionality). Please feel free to comment on the guidelines I posted above. If we agree, and there are no further comments until about 6pm GMT Friday, we can get to work, and by the end of the weekend, we should already be able to discuss the results. ~:cheers:

Cheers,

mishad
04-06-2005, 16:46
Another avenue for testing: can we predict when the "periodic re-assessment by the AI" will happen?

If we could, then we could remember to save only at those points (say, every 5 turns, or whatever). This would minimise the effect of the re-assessment on re-load (since the assessment would have happenned even if we didn't reload).

Problem 1: how do we tell whether there has been a re-assessment? Using broken sieges as our best indicator for re-evaluation, how about: turn FoW off and watch the map like a hawk for broken sieges on every end-turn, log such events, including the AI involved, over a large number of reasonably long (50 turns?) campaigns, and look at statistical patterns (it will have to be statistical, because sometimes there won't be a siege in progress when the re-eval happens, and sometimes the siege won't be broken).

Problem 2: it is quite possible be that (absent re-loads) AI re-assessment is staggered through the turns (AI#1 assesses on turns 1, 11, 21, etc; AI#2 on 2, 12, 22; ... AI#10 on 10, 20, 30 etc.) so there is never a "good" time to save. The test above should show this as separate repeating patterns for the various AIs.

Thoughts, anyone?

Also, we should standardise unit size as well: Britons/M/M/Normal?

Epistolary Richard
04-06-2005, 18:12
Another avenue for testing: can we predict when the "periodic re-assessment by the AI" will happen?


I'm not convinced the "re-assessment" only happens once in a while. Surely the AI would perform exactly the same processes between each turn. One of the most obvious examples of this issue is that AI leaves sieges and then goes immediately back to them. That kind of behaviour is not really indicative of the AI reassessing its strategy on reload (per the Shogun post) and then again at the beginning of its second turn. It's more indicative that for the first turn the AI doesn't know what it's doing and then it does a proper reassessment for the second turn.

If this is the case and the AI reassesses its position each turn, it would be useful to know at what point this happened. Of the viable times (beginning of its turn, end of its turn, end/beginning of year) it seems most likely that it occurs at the end/beginning of the year - any other time would not fit in with the available evidence.

A useful exercise would be to use Myrddraal's hot seat mod to halt the turn in the middle of the slave faction, save the game there and reload. The game should then reload from the slave faction's go under AI control, go over the year end, perform the proper re-assessment (hopefully!) and then go to the player's turn. It should be clear enough whether the AI has maintained a siege that on a normal save/load it would have abandoned.

sik1977
04-06-2005, 18:36
Reposting from the original Loadgame bug thread at the .com, now in the graveyard. I posted this on 27/02/05 on page 5 of that thread


Na, I am sure the problem wasn't as severe in v1.1. I continued an old campaign from 1.1 after installing 1.2. The AI was doing just fine, specially the Romans. They had made substantial gains, specially Brutii and Julii (I being Parhia never met them in combat till v1.2). After installing 1.2 I couldn't understand why Brutii which was so strong couldn't even take the two rebel settlements it would lay siege to every other turn and then break away. It went on for 50 or so turns. I play very slowly and micro-manage everything, hence quick saving/loading is a norm for me. This was true for 1.1 and never hurted the AI like this.

I did extensive testing after reading this thread. I never jump on the band wagon without first testing something myself. I have too much faith in CA to flame them without good reason (well I still can't flame them, they hold a special place in my heart... hehe). My tests confirmed that AI armies not only lift sieges, it always tends to completely walk away from the said settlement as if it has completely forgotten what it had set out to accomplish. Only to repeat the process ad-infinitum.

I thus played yesterday for 8 hour at a stretch without loading once and because i am quite further down my existing Parthian campaign, I only got some 5/6 turns done. And guess what, the Brutii finally took those two rebel settlements that they couldn't for the last 50 turns. They also laid siege to two other towns. Same with Scipii and Julii who each took one settlement and laid siege and maintained it, to atleast three more. However, after 8 hours, i had to save and go to sleep, and when i reloaded later, the AI had forgiven/forgotten its enemies/goals and walked away from all its previous sieges. When I say walked away, they had moved their sieging armies a whole turn length away from the previously sieged settlements.

Hope this helps.

here is the link

http://p223.ezboard.com/fshoguntotalwarfrm12.showMessageRange?topicID=1833.topic&start=81&stop=100

EDIT: Reposting another test i did and posted on 3-01-05 on page 7 of the above mentioned thread, this was while trying if there was any difference with autosaves/quicksaves/regular saves and difficulty settings.


Sorry for all that fuss guys. I just play tested autosaves on VH, and the bad news is that the bug is very much present in autosaves just like quicksaves etc.

I played my existing Parhia campaign for atleast 6 turns without loading and tested on a turn which had atleast 5 settlements undersiege, I checked them all repeatedly (by re-using the same autosave; manually copy pasting it back to check), and every single time the AI lifted all the 5 sieges as i pressed 'end turn', without any nearby threat.

So thats it for VH. Lets see if you guys have any luck on any different difficulty levels.

link is
http://p223.ezboard.com/fshoguntotalwarfrm12.showMessageRange?topicID=1833.topic&start=121&stop=140

Pritzl
04-06-2005, 22:34
hrvojej, your control/test concept is perfect imo. With enough numbers, we can do a simple statistical analysis (t-test?) to confirm that the AI's reassessment routinely results in much fewer provinces changing hands.

Might I suggest an improvement to the test though? Instead of manually noting the province allegiances, maybe a screenshot of the campaign-map mini-window on the bottom left at the beginning of the test and end of the 15 turns would improve accuracy. Furthermore, perhaps proper random selection of who tests with saves and who doesn't is worthwhile to remove any doubts of bias?

Finally, is there thread for participants to sign-up and post their results somewhere on the forum?

I should read better. 5 and 5 per tester and PMs it is.

A.Saturnus
04-06-2005, 23:19
- PM me the results, but keep in mind that I can only have 5 PMs at a time, so if I don't write back saying I got it in a day, PM me again; I'll do the analysis of the results, and post them here; I will not soup up the results, or do anything else to them other than analyze them - I do this kind of stuff for a living, and I know how to keep my personal feelings out of it, believe me

You can PM your results to me. My mailbox is bigger.

It would be ideal if FoW is toggled off all the time (including the controls), so every single reassessment can be spotted. However, please add to your results a description whether or not your trials have been exactly as hrvojej has layed out.

Simetrical
04-07-2005, 03:51
Probably a lot of you have seen this, but it certainly constitutes evidence that there's a problem: Protectorate: Total Peace (http://www.stampor.com/Rome/exploit.html).

-Simetrical

player1
04-07-2005, 10:39
The problem I see with Brits is that very soon will Gauls or Germans start seiging your mainland province.

Pode
04-07-2005, 15:12
Go out and make an alliance with them both using your lone diplomat, that should hold them off long enough to complete the test, and I don't *think* CA will argue that the approach of a diplomat with no money is enough of a threat to make the AI break every siege on the map.

player1
04-07-2005, 18:14
Or you could simple give province as a gift to one of those two factions...

hrvojej
04-07-2005, 20:27
It would be ideal if FoW is toggled off all the time (including the controls), so every single reassessment can be spotted. However, please add to your results a description whether or not your trials have been exactly as hrvojej has layed out.
True, but then you would have to scan the map all the time after every turn, instead of just doing it once at the end. Also, you would have to have FoW on all the time, and you wouldn't be able to escape arguments that the game was not intended to run without FoW and that the AI is lifting sieges because it's shy or something... ~;) In sum and a priori, I don't think that the information you would get from countinuous sampling outweighs the number of trials you can do by scaning at the end. I know what you're saying, but I predict the effect size to be so large that it won't really matter.

Do people have a lot of problems as the Britons from being besieged? I don't have time right now to do a lot of trials, it ended up being a busy end of the week, but I ran the control twice and was not besieged in 15 turns. Maybe I was just lucky? In any case, I thought that the suggestion to take Britons was a good one, since you're away from the action, and in addition to not being involved yourself you won't stand in a way of expansion of others. Another faction I can think of that also might be good is Parthia, but I have to admit that I have not played the regular campaign with either of the two, so I don't know how likely you are to get attacked.

And to answer therother's point about modding the game: I think that moving a single faction's name from nonplayable to playable factions list is really nothing we should concern ourselves about. I do however think that it is important we pick a faction that is unlockable through regular means, as it would seem that those which are not have some unfinished quirks about them. The only thing that remains to be seen is if with Britons you cannot avoid being attacked all the time, then we should consider other factions like Parthia. I'll test it as soon as I have time (tomorrow night it seems).

Cheers, and thanks to all who intend to participate ~:cheers:

A.Saturnus
04-07-2005, 20:57
True, but then you would have to scan the map all the time after every turn, instead of just doing it once at the end. Also, you would have to have FoW on all the time, and you wouldn't be able to escape arguments that the game was not intended to run without FoW and that the AI is lifting sieges because it's shy or something... In sum and a priori, I don't think that the information you would get from countinuous sampling outweighs the number of trials you can do by scaning at the end. I know what you're saying, but I predict the effect size to be so large that it won't really matter.

If not, the hypothesis becomes questionable anyway. I suppose we do both. For now, we should do it as you suggested to test our hypothesis. If it is proven beyond the shadow of a doubt that the bug exists, we can explore it to more detail by investigating individual AI actions.

Arphahat
04-07-2005, 21:43
Probably a lot of you have seen this, but it certainly constitutes evidence that there's a problem: Protectorate: Total Peace (http://www.stampor.com/Rome/exploit.html).

-Simetrical

I see that Simetrical has already posted the link, but I wanted to elaborate on the exact procedure I followed to gain the protectorates documented in the screenshots.

I started a medium/medium game as the Julii. I split my armies into individual units and built nothing but diplomats, ships and calvary. Each diplomat would travel with one of the army units. When the diplomat encountered a faction that we were not at war with, I would use the army unit to besiege the town and immediately lift the siege (or attack the faction's army) just to get the protectorate option on the negotiation screen. The diplomat would then ask the faction to be a protectorate, offering nothing in exchange. The faction would refuse. I would then use control-s to save and then control-l to load. I would have the same diplomat talk to the same unit or town and make the same offer of a protectorate for nothing. In every case, the other faction accepted.

Occasionally, I would already be on a turn that I had just loaded. When I encountered another faction, I could simply besiege, lift siege and then offer protectorate status and they would accept.

therother
04-07-2005, 21:45
And to answer therother's point about modding the game: I think that moving a single faction's name from nonplayable to playable factions list is really nothing we should concern ourselves about.Okay, just checking to see if you thought it was okay. I think the Brutii are perhaps the best choice, given their sheltered location, the fact that they are unlocked to begin with, and that they are a Roman faction (it is Rome: Total War after all). Of course, that last bit works against choosing them to some extent as you also have the Senate AI hardcode possibly interfering with things. Perhaps we can do both, and see if there are any significant differences?

Bromley
04-07-2005, 21:47
Just a basic test along the lines hrvojej mentions. I freely admit that I haven't counted the provinces that changed, but compare the world maps. The start one looks the same as the save/load one, whereas there's been a lot of movement on the no-save one.

Also, for a smaller close-up view, see Sicily. No loads meant that the Scipii went crazy and kicked everyone off. Save/load each turn and all three factions trade love notes.

1.2 Vanilla. Julii. Both tests over 10 years (20 turns).
Move armies into town. No other actions. Respond "no" to everything.

Starting Position
http://img174.exs.cx/img174/5283/270bcstart0kh.th.jpg (http://img174.exs.cx/my.php?loc=img174&image=270bcstart0kh.jpg)

Save/load every turn
http://img174.exs.cx/img174/1363/260bcreloadedeveryturn8om.th.jpg (http://img174.exs.cx/my.php?loc=img174&image=260bcreloadedeveryturn8om.jpg)

No loads
http://img174.exs.cx/img174/7643/260bcnoloads3dg.th.jpg (http://img174.exs.cx/my.php?loc=img174&image=260bcnoloads3dg.jpg)

There's been some talk about a similar issue in GalCiv over in the thread in .strategic (http://groups.google.co.uk/groups?hl=en&lr=&threadm=5eha51hbi558cqfevt1i0bqi92hbevoc23%404ax.com&prev=/groups%3Fhl%3Den%26lr%3D%26group%3Dcomp.sys.ibm.pc.games.strategic). Starting post is the Gerry Quinn response to my OP, currently no. 30.

Bromley
04-08-2005, 02:27
Just reproducing Arphahat's and Camp Freddie 1969 protectorate posts from the .com (http://p223.ezboard.com/fshoguntotalwarfrm7.showMessage?topicID=24408.topic) forum, just in case it disappears. I know that Sim already linked to the screenies, but some of this text might be useful.

Please note that I have not personally confirmed any of Arphahat's work, although beezer says that he has.


Arphahat.
There is a simple technique for winning the game. Simply siege a city of a rival faction, immediately lift the siege, save the game, reload the game and then have a diplomat ask the rival to become a protectorate. This works every time, without exception! Look at my glorious conquest in picture form below.
www.stampor.com/Rome/exploit.html
EDIT: here is a link to a list of the images, instead of loading all at once, if it helps www.stampor.com/Rome/exploit_links.html

Question.
One question I have is what happens when 2 of your protectorates go to war with each other. Are you forced to choose 1 and thus you loose the other???
You lose one of the protectorates. But, no problem; just make sure you keep a diplomat next to each of the factions. If you ever lose a protectorate, simply save, reload and ask again.

Camp Freddie 1969.
I found that if I declared war then immediately asked for a protectorate (before hitting end turn), I would always get one due to the much lauded re-evaluation feature.
However, I also tried it on the Thracians, with whom I've been fighting a long war. I outnumber them by a huge margin and regularly spank the armies they send my way with losses that are >10:1 in my favour. I've always been suprised that they don't accept being a protectorate in normal gameplay.
So I asked them after a reload - and they refused! Could it be that the auto-protectorate 'feature' is broken?! Then I looked at the refusal message:
"We cannot accept such generosity, since we have nothing to offer in return".
That's right folks. They refused because the AI re-evaluation decided that my demand of making them a slave nation was 'too generous'. They found themselves not worthy of my benevolent (er, yes, benevolent) rule!
After moving on a turn, I asked again and got the normal response of, "We are proud of our freedom and do not give it up lightly...."
So the re-evaluation feature seems to be totally underestimating the strength of the AI nations.

MajorFreak
04-08-2005, 03:41
could we workaround this issue by changing all the faction's AI personalities to aggressive ones?

rcp
04-08-2005, 07:09
I can also confirm Araphat's protectorate issue. I also agree that using the Brutii would likely be the best choice for this test if we are to ideally do nothing but press end turn during our testing.

Ramboost
04-08-2005, 12:10
At the forum in twcenter (http://www.twcenter.net/forums/index.php?showtopic=27076&st=108) Pode wrote an interesting discovery:

"The AI will almost always, upon a reload, abandon a siege and run as far away as possible. Unless you interrupt it again with another load, however, it almost always returns and lays siege again the next turn."

Has any of you had the same experience? It could be a workaround for the bug to minimize the negative effects, allthough it will not eliminate it.

chef4fun2
04-08-2005, 13:38
I never had any issues with the orginally and the first patch on this sieging of cities bug. Now that I have put in the last patch this issue shows it ugly head. I think it is pretty simple: they fixed one issue and created this issue. Now they say that the AI has changed its mind and wants to move the resources some place else. I have news for them I did the save game I was Seleucid and two of my cities were being sieged by Egypt. After I restarted the game the Egyptian left my cities and came right back in the same move. Now did they change there mind and than said no go back to the city!!! I can't see Alexander doing that at the sieging of tyre. :embarassed:

drone
04-08-2005, 15:19
Last night I ran a test using v1.1 to see if this was introduced with v1.2. The no-expansion issue is just as prevalent (didn't try the protectorate issue, that was bugged in 1.1 anyway). I played 20 turns for each, Med/Med, as the Britons (unlocked, not mod), FOG_OF_WAR:FALSE in preferences.txt.

With no saving/loading, the factions expanded normally, eating up the rebel provinces and fighting it out with each other.

With a save and load each turn, not much happened. Diplomats and stacks moved around, rebel stacks got pounded, but only one province changed hands, I think (Brutii took Thermon, no siege, just walked right in). It seemed like after a load, the AI would do whatever it could short-term within it's interests (mainly crushing rebels). I don't think I saw any sieges lifted, mainly because the AI never got around to sieging cities in the first place. This would probably be present if I waited 3-4 turns between saves/loads.

I have screenshots at each turn for both test cases, the end result is pretty much the same as Bromley's. These results lead me to think that the reassessment is an integral part of the game, just as the .com post said, not a new "feature".

On the FoW issue, it would be interesting if CA tries to use Heisenberg's Uncertainty Principle as an excuse. ~D

Epistolary Richard
04-08-2005, 15:25
could we workaround this issue by changing all the faction's AI personalities to aggressive ones?

The evidence collected so far indicates that this issue applies to all factions, not just those with a less aggressive personality.


"The AI will almost always, upon a reload, abandon a siege and run as far away as possible. Unless you interrupt it again with another load, however, it almost always returns and lays siege again the next turn."

Has any of you had the same experience? It could be a workaround for the bug to minimize the negative effects, allthough it will not eliminate it.

Yes, I noted the same experience in my post above. But even if the AI immediately returns to the siege it would be at least 3 turns before it could assault. This issue particularly effects users who can only play for one or two turns at a time. Users who play for longer stretches are less affected by this issue in any case.


On the FoW issue, it would be interesting if CA tries to use Heisenberg's Uncertainty Principle as an excuse.
:laugh4:

Ramboost
04-08-2005, 15:47
Yes, I noted the same experience in my post above. But even if the AI immediately returns to the siege it would be at least 3 turns before it could assault. This issue particularly effects users who can only play for one or two turns at a time. Users who play for longer stretches are less affected by this issue in any case.

I agree that it certainly does not solve the issue. Personally when I play I play an average of minimum 10-15 turns. If this "workaround" can minimize the amount of turns the AI waste, it is definetely worth pursuing from my point of view.

Unfortunately, I do not have the time to test it until sunday, so I cannot verify the AI behavior descriped by Pode.

Epistolary Richard
04-08-2005, 16:25
I don't quite understand what you're suggesting. What would people do differently to try and work around the issue? Just play for longer?

sunsmountain
04-09-2005, 10:36
Don't use the quick save at all! Use the normal saves, and it should be okay! Are you guys planning on testing that as well?

ie, 15 turns of doing nothing, versus
15 turns of saving and reloading using normal saves?

Maybe quicksave was MEANT not to save the army status (standing or laying siege) when on the campaign map, therefore you lose the siege, but you gain the benefit of quicksaving and loading.

roguebolo
04-09-2005, 11:38
Um, I hate to say this, but the proposed test does not seem to impose any controls which eliminate other possibilities.

For instance, is it possible that as part of game theory that the AI factions are approximating the aggressiveness exhibited by the human player? This is fairly commonplace in computer games. For one thing, it allows players of all different types to stand a chance at winning the game. For another, it offers gameplay which is compatible with the style of the human player. If the human player merely "turtles in", why shouldn't the AI do the same? There is no percieved threat as the human player is not yet being aggressive.

Second, the AI might use a "delta factor" to determine it's reassessment of moves -- in other words, the degree of change from the previous move prompts the AI to make decisions regarding the current move. Maintaining the status quo, as the human player seems to be doing, is not actually a losing scenario. With a delta of zero, the AI factions have an expansion factor of nearly zero.

The fact of the matter is, I have performed the proposed test and came up with identical results -- none of the territories change hands. However, in a REAL game, in which I actually do save and load every single turn -- usually multiple times per turn -- and which I play aggressively, each AI faction actually does seek to expand its empire.

So I don't think this test is a valid proposal. It needs more thought.

I'm a seasoned programmer myself and I've read through some threads by other programmers theorizing on the nature of this problem and one of them was pretty knowledgable. He stated that in order for the AI to remember its long term goals that its planned actions would need to be "serialized" to disk (meaning, stored in the save file along with the positions of units, etc.) which is a nontrivial programming issue because the information is stored in memory using objects that are linked together by pointers. He's probably absolutely correct about the data representation, but the truth is that serialization of such objects is actually not a complex task. I have done it numerous times with numerous software products -- and new languages like C++ make it a little easier since it's sort of a built-in feature of the language. It's actually a rather mundane and simple task when compared with some of the more complex programming that is tackled in a computer game, as another programmer pointed out to him. So I don't think the explanation that the programmers thought it was too difficult or too much work to save information in the save file is a good one. It would only seem the obvious thing to do so that a save game starts where it left off and merely requires a little grunt work.

One issue which even most of the programmers were a little confused about seemed to be the idea that the game looks ahead a given number of turns to make long range plans -- some of them were stating possibly as much as 20 turns. Have you ever played chess? One of the measures of a good chess player is how many half-moves he can look forward into the game. Five is considered good and I believe about seven or eight is the record for a human being. Chess programs do the same thing. So looking ahead 20 full turns is a little unrealistic on a map this size and with this many pieces and factions ("players"). The AI factions might have general goals but they cannot plan ahead for specific movements for too many turns because they need to react to the human player and the other AI factions. So it's not an issue of serializing detailed, long-term movement plans for a projected 20 moves; simply a matter of storing generalized objectives in the save file.

Taking all of this into consideration, if the AI is reevaluatiing its position as CA claims, then it must have elected a NEW set of campaign objectives when it relieves its sieges. These new objectives must take into consideration the fact the besieging faction is at war with the besieged faction and that trade is no longer possible with them. It must be able to find a more desirable alternative in light of that problematic issue. Does it attempt to negotiate a ceasefire and/or trade rights in the same turn? It would be interesting to analyze a move in which the AI has abandoned it's previous objectives and attempt to determine which objectives it has identified as more desirable.

By the same token, if the AI is reevaluating its military objectives it must also reevaluate its economic objectives, since the two go hand in hand. Is it canceling or changing building and economic development to match the military changes?

Also, does anyone know where I can read CA's official response regarding this issue and other bug reports?

slackker
04-09-2005, 12:30
rouge all CA currently stands in this issue is found here: http://p223.ezboard.com/fshoguntotalwarfrm7.showMessage?topicID=24377.topic

therother
04-09-2005, 13:37
I don't think we need a control for player passivity, as the player will be inactive in both tests, i.e. it's not a variable. It may well be interesting to try and devise a test for AI response to player actions, but I think it is unnecessary at this stage.

roguebolo
04-09-2005, 14:12
Well, then, that entirely discards the relevance of a real game, in which the player is actually making moves, but also loading and saving each turn, which is the way most people probably play. To simply refuse to move at ALL for 20 turns is to simply allow it to examine the starting position over and over again and decide amongst the many possible opening moves, but not to allow it to follow up on those openings because you are giving it nothing to "react to".

Most AI tends to be reactive to the human player -- sometimes called "triggers" in the gaming world. If you don't give it anything to react to, any kind of predictor on how you intend to play, it could very well just bide its time until you do. If a "load game" behavior triggers that particular AI behavior, it doesn't really mean much to me when I'm playing a real game and making moves. Because each turn I give it new information to react to when I make my moves.

therother
04-09-2005, 14:24
You may well have a point, but IMO it does not undermine the fundamental reason for this test. We are attempting to test if the AI acts differently in the two cases, where the player is triggering AI in exactly the same way, with the only variable being the saving/loading of the game in one case.

Kraxis
04-09-2005, 14:45
rouge the AI factions already react to each other... At least that is obvious from the non-save/load games. That we remove a single faction is of little consequence as the game is supposed to actually feature non-reactionary regions (rebels) and dead factions. One faction out of 21 is not much, and in general only means another 2-3 'rebel' provinces.

From all my games it doesn't seem that the AI factions react any differently to us than to all the other AI factions. We are 'just' another faction. And the AI factions have plenty to react to, each other.

roguebolo
04-09-2005, 15:04
Unfortunately, I think you're seriously wrong about that and it was one of the main issues I pondered over when I first played MTW. The faction AIs do indeed seem to act as seperate entities, but there seems to be an overriding AI governing the game in a certain direction for the benefit of the human player. I've always thought this is one of the reasons they've skirted around the prospect of a multi-player version of the campaign game. As long as it is not designed to be multi-player, balancing the relative strength of different factions on the campaign map is unnecessary. It allows the game developers to take liberties to impose situations on the human player. For instance, it would be simple for ANY bordering faction to simply crush the Polish faction in MTW early in the game. But they don't. Otherwise, it wouldn't make much sense to try to play the Polish as a human player, right? So this AI "overseer" makes sure that doesn't happen. I think we get a small glimpse of him through the Pope and the Senate, wherein he tries to direct your actions as well.

After you reach a certain skill level in the campaign game, the AI is never really that challenging, but what it can do (if you allow or encourage it to) is set up some really interesting scenarios.

Pode
04-09-2005, 15:04
For the benefit of newcomers to this issue, let me try to distill the past history of testing that lead us to this point. Not all of these points have been established to the same level of proof.
-Standard test methodology has been as described below. Run for a bit just ending turn and note the number of provinces taken or sieges prosecuted if you had FOW off. Run the same campaign saving and loading every turn and watch things fail to be conquered and the AIs move defensively or aimlessly.
-Quicksaves, autosaves, and named saves have all been tested and found to display the same behavior.
-Loading from the manual interface and loading using continue campaign have been found to produce the same behavior.
-Loading every other turn has been found to catch the AIs in a loop of alternately laying siege on the turn not preceeded by a load and lifting siege on the turn preceeded by a load, indicating that the decisions produced after a load are materially different that normal even in very similar situations.
-Timing of the load within the player's turn if the player is active has been shown not to have an effect.
-Player inactivity with loading produces AI inactivity. Player inactivity without loading produces AI activity.
-Two loads per turn without player activity does not appear to affect the AI's pacifism after loading in my VERY limited test last night. The fact that Roguebolo loads multiple times during a turn and has yet to see a single AI siege lifted in his campaigns indicates that this one needs testing badly.
-AFAIK, RB is the only person who has experienced the bug in testing but not in campaign.

That is the body of fact as I see it. My understanding of the purpose of this thread is to gather statistical evidence of these facts instead of the semi-anecdotal evidence currently available. Hypotheses that can explain these observed facts are probably welcome as well (especially testable ones), although that is the moderator's call. Personally, I'd be particularly interested in anyone that can explain or duplicate RB's results. What makes him special that his AI's work? ~:confused:

Pode
04-09-2005, 15:08
You may well have a point, but IMO it does not undermine the fundamental reason for this test. We are attempting to test if the AI acts differently in the two cases, where the player is triggering AI in exactly the same way, with the only variable being the saving/loading of the game in one case.

The goal seems to be to confirm statistically that there is in fact a difference, and only then evaluate whether that difference has a gameplay impact, correct?

roguebolo
04-09-2005, 15:41
Well, something must trigger the AI to be aggressive again. Possibly activity on the part of the player?

To be fair, I must admit that I never "sit out sieges". I always rally, usually on the turn after being besieged and never later than the turn after that.

I should mention that in my current campaign, which I'm playing as the Julii because I reinstalled RTW and Patch 1.2 from scratch, I still have the save games from just about every turn in the game. I think I will go back and take a look at them and turn off FOW and see what's happening with the OTHER factions -- the stuff I can't see.

*edit*

Actually, I just thought of another load game issue which I've always thought was unrelated but might not be. You know how random events can happen when you select End Turn? Well, if you don't like the outcome of those events, you can do a load game. If you just hit End Turn again, you usually get the same random events. But if you make ANY change -- say, move a noncrucial diplomat or something -- it will re-roll the dice for all of those random events, and you will get a completely different set of results.

Perhaps this is related, perhaps it is not. But the change definitely occurs only if there is player activity AFTER the load game and BEFORE the End Turn.

roguebolo
04-09-2005, 16:54
Looking back through my save games, I have found that I saved each and every one of my first twenty moves immediately prior to hitting "End Turn", so I can track each faction's activities for the first 20 turns. However, FOW doesn't seem to want to be disabled if it was originally enabled.

By turn 20, the majority of the nations were still in control of only their starting territories and had not engaged in warfare with other factions, with the following exceptions:

1.) The Seleucids and Egypt were at war, Egypt gaining a territory on turn 11 and losing a territory on turn 18; the Seleucids gained a territory on turn 18.
2.) Parthia and I (Julii) both gained a territory on turn 2.
3.) The Brutii gained a territory on turn 4 and another on turn 14.
4.) Pontus gained a territory on turn 14 and another on turn 16.
5.) The Greek Cities were at war with Macedon and Pontus.
6.) The Seleucids were at war with Egypt and Armenia.
7.) Gaul and I were at war.
8.) Brittainia and Germania were at war.
9.) Scythia and Parthia were at war.

Now, that's not exactly inert inactivity, and there were a considerable number of load games during those first twenty moves. I think the fact that I can upload each and every save game to whomever wants to look at them, as well as numerous variations I tried throughout the course of the campaign, is proof of that.

So far, I managed to find only one save game where I was under siege, in Thapsus, later in the game. There was another Numidian army approaching Carthage, obviously intent on laying siege, at the same time. As usual, I sallied when I was actually playing the game. However, if I load the save game and simply hit "End Turn" without sallying forth, the Numidians do indeed abandon the siege -- to block the bridge between Thapsus and Carthage, the only way I can get reinforcements there, while the other army layed siege on Carthage. Note that the second army did not forget that it's plans were to lay siege, and that the first army did move to a logical strategic point! (Except for the fact that I had a trireme in dock at Thapsus.) However, here's the bummer:

If you do a save/load at that point and hit "End Turn", Numidia also abandons the siege of Carthage and both armies walk away. If you just hit "End Turn" without the save/load, then they maintain the siege. So there's apparently some validity to this observation and it is some type of player activity which is defeating it. I will look at some additional save games and see if I can identify it. Anyone else who wants to look at them is welcome.

hrvojej
04-09-2005, 18:25
Hi all,
I apologize for not being around in the past few days, life got in the way of testing. ~:)


Okay, just checking to see if you thought it was okay. I think the Brutii are perhaps the best choice, given their sheltered location, the fact that they are unlocked to begin with, and that they are a Roman faction (it is Rome: Total War after all). Of course, that last bit works against choosing them to some extent as you also have the Senate AI hardcode possibly interfering with things. Perhaps we can do both, and see if there are any significant differences?
I don't think the Brutii would be great because of the senate, as you have mentioned, and because they are supposed to be an active faction due to the senate as well. Which therefore means that they are more likely to conquer something when controlled by AI and produce results.

As to the player's activity influencing AI moves, that's a separate variable that the test I originally proposed does not test for. However, it's kept constant in it, and hence does not influence its results. The only thing that is not constant, provided that everybody does the test in the exactly same way, is saving/reloading. This very basic test will tell us whether this single variable is doing something to the game, provided everything else is kept constant. Nothing more, nothing less. I won't go in whether the AI responds to player's moves or not right now, as this test is not designed to test for that in the first place. If really nothing happens when the player just stands still, then we'll go from there and redesign the test. But I can say right now that even though I'm highly aggressive in my campaigns, with sufficient reloads everybody else is static no matter what I do. Also, the preliminary result by Bromley are promising (thanks for posting them btw), and hence I think the save/reload test is worth doing in any case. ~:)

As far as my testing goes, I'll do my runs by tomorrow. Feel free to PM me your results if you already did your tests.

Cheers,

roguebolo
04-09-2005, 18:45
MORE TESTING

I decided to use the same, identical test that was proposed on this thread except starting from my save game at turn 19 rather than at turn 1. The Brutii laid siege to Segestica on the second turn and immediately released it after a save/load and "End Year". However, the following turn it laid siege again and I discovered that the city had suffered from attrition just as if the siege had never been relieved -- it could hold out for 3 turns now instead of 4. I followed this with three save/loads immediately followed by End Year during which time the Brutii maintained the siege. In addition, other factions were still declaring war on each other. I guess this kinda blows away the idea the save/load always forces the AI to relieve sieges, or paralyzes the AI into some kind of inactivity. I think it just needs for some kind of opening moves to be initiated before it can follow up on them a little more decisively. Again, I have the save game if anyone wants to see it. I've done it more than once and the Brutii always besiege Segestica.

OK, I'm coming to the conclusion that CA is right -- as I would expect them to be, since their information comes straight from the developers. "Load game" does indeed seem to cause random events and AI behavior to change, but not in any way that is game-breaking. In the Thapsus/Carthage-Lemonum/Condate Redonum example I'm still forced to ostracize them from my territories -- whether I sally from the siege or attack them in the open terrain. Otherwise I must succumb to repeated attrition and devastation. The change in the behavior of the AI caused by a save/load procedure allows me to select which of those two options I prefer, sallying or open terrain, but it does not otherwise dramatically change the course of the game -- the main problem, as I see it, is that it denies me the privilege of being the defender in a castle assault, which happens to be a lot of fun.

One can hardly come to the conclusion that the AI's behaviour is indicative of losing track of long-term goals in the light of these results. It took a total of five turns for the Brutii to arrive at Segestica by boat, initiate a siege, relieve the siege, then reinstate it, hold it for three turns, and finally occupy the territory.

Furthermore, in the test involving Thapsus/Carthage and Lemonum/Condate Redonum, although the existing sieges were temporarily released, those units that were approaching a settlement to initiate a siege continued toward their objectives. In other words, they did not lose track of those objectives. Apparently in these cases the AI deemed that instigating conflict through a siege or through desecrating the territory were equally acceptable and the load game caused them to choose the opposite one that was in effect at the time the game was loaded. This is something which can be exploited if I feel I'd like to endure the siege for a turn with the likelihood of being able to meet them in the field on the next turn by doing a save/load, but it's definitely not a game-breaker.

Colt45
04-10-2005, 06:10
Currently, the tests Ive seen are too broad, given the large amount of factions in the game. I propose that someone mod a game to be setup with 2 factions, plus senate. Use an isolated area and put both factions there, i.e. Britain. Give AI large army and yourself a minimal garrison. Now let him siege you and perform the save/load system. Make sure there are no rebels in his/your area for accuracy. Report results.

I feel, given the CA description, that you need to limit the variables much more than just starting a campaign with all factions on board. I feel this would definitely give a much better example.

ShellShock
04-10-2005, 09:00
As well as testing the effect of reloading every turn, I suggest we also test at other frequencies of reload, e.g., every 2, 4, 8, 16 turns (I know this is a lot of testing!). I know some people have done this elsewhere and they show evidence that the expansion of the AI is directly proportional to the frequency of reloads - this should produce a very convincing graph (number of provinces changing hands by rate of reloads).

I can imagine that CA may respond to a test of reloading every turn as being unrealistic (although I for one often only play one turn at a sitting). We can counter this by testing at other frequencies of reload.

Also I suggest we use the faction rankings graph (rather than removing FOW) to assess the impact on the AI. To simply things we could use the Top 5 ranking on e.g., Territory - that is, make a note of the number of territories each of the top 5 factions has. The beauty of the graph is it shows historical data too, so at the end of the test you can see how the AI expanded for each turn.

roguebolo
04-10-2005, 12:36
I think it is a confirmed fact that loading a saved game causes RTW to regenerate (or recalculate) random events and often changes the behavior of the AI, especially regarding sieges, and that it is supported by empirical and repeatable data.

My own tests were identical to the one that was proposed here, except that I started at various midgame points wherein alliances, declarations of war, and faction targets and strategies were clearly established to see what kind of impact this actually had on the game. I would have reverted to an earlier patch if it had turned out to be significant. However, I'm pretty convinced that this is not the case.

The problem with testing the phenomenon when no moves have been made by the player at the opening of the game is that it is testing an extrema which generally only happens once in a game -- at the first move. That is the point in the game where no alliances have been established, no warfare, no movement, and no building. Many computer algorithms exhibit awkward behavior with various extrema -- for instance, the quicksort (which is the fastest sorting algorithm on the average for most data types) exhibits its worst-case (slowest) behavior with data which is already sorted. That's not really a concern when the programmer expects the program to be working with unsorted data. Extrema can be very useful in determining actual bugs in a program such as integer overflow or divide-by-zero errors. But what's being analyzed here, the AI, is a complex network of heurisms and algorithms. The truth be told, the AI is probably playing a better game than the human player during this test, because it's undoubtedly building an economic infrastructure for each faction and moving its diplomats. It might be possible to force some military stagnation at the most extreme moment in the game through save/loads and nonactivity, but under more realistic conditions I found that it was not as easy to accomplish. Even in the first 20 moves, with multiple save/loads per turn I was unable to recreate that kind of stagnation. In midgame the proposition is even more difficult.

Knowledge of the fact that this reassessment logic is tied to the load game feature is surely something that I can exploit if I wish, but I am summarily unconcerned with any other ramifications of gameplay.

Finally, I'm not sure that it's really such a good idea to have the objective of just a few large AI factions in endgame, as was always the case with MTW. In the early stages of MTW, the AI was geared to force the player into situations modeled after historical realities. The historical reality is that Rome conquered each of these rivals individually, and ultimately become entangled in civil war.

A.Saturnus
04-10-2005, 21:15
roguebolo, just to clearify, you said you followed the research design developed in this thread. Did you compare a experimental condition (with save/load) to a control condition (the same without save/load)? If yes, did you find differences? I didn't get that clear from what you posted.


I don't think the Brutii would be great because of the senate, as you have mentioned, and because they are supposed to be an active faction due to the senate as well. Which therefore means that they are more likely to conquer something when controlled by AI and produce results.

I can't see how that should matter. If the effect is there for the Brutii, it exists and no alibi can lead around that.


I feel, given the CA description, that you need to limit the variables much more than just starting a campaign with all factions on board. I feel this would definitely give a much better example.

Why? All other variables are controlled. It doesn't matter how many factions there are, only whether save/load influences their behaviour. In fact, we want to test a vanilla version of the game. A mod with only two factions wouldn't be representative for the normal game.

roguebolo
04-10-2005, 23:45
I did not actually test twenty turns without the save/loads from Turn 1 because I have faith that I will get the same results that have been posted by others; the reason why is that I have a glimmering of the kinds of algorithms that were used and why and how the load game behavior is resetting the AI's behavior. It essentially feels free to select a new opening move. The available options are probably somewhat similar to a software random-number generator, which does not truly generate a random sequence of numbers but eventually will cycle through the sequence and start at the beginning again. While the test results are interesting, they seem to be specific to a given set of extrema.

The control, or the factor that was eliminated in my tests, was player inactivity. A review of the first 20 moves of my campaign -- each and every one of which was saved, because as I said I do multiple saves and loads each turn -- shows clearly that the AI factions are also seeking to expand. I listed the exact details of their expansion and other interactions with each other and with the human player (except alliances) in a previous post.

To test further, I introduced player inactivity at midgame save points, wherein alliances, declarations of war, sieges and other policies had already been initiated, and tried hitting "End Year" repeatedly both with and without save/loads. I posted those results as well, but I will summarize here. Although the AI did have a general tendency to relieve sieges after a save/load, I found cases both where it did so and where it did not; and in those cases where it did relieve a siege, it did not abandon its objective but merely changed the way in which it manifest itself as the aggressor. Units in route to a siege consistently continued toward their target, even with save/loads; units that relieved a siege because of a load game consistently continued to threaten the territory and sometimes blocked access to other besieging units for reinforcements; in some cases they abandoned their siege to add support to another siege in which they were undermanned. I found no cases in which they yielded an inferior strategic position as the result of relieving a siege -- and quite honestly, they were more annoying when they were relieving and reinstating the sieges, almost as if they were taunting me!

I have some really interesting save games that will allow you to observe the phenomenon yourself. It's actually kinda funny, watching the British in the north and the Numidians in the south alternately engaging and disengaging sieges each turn, which gets triggered by the save/load, but it also becomes pretty apparent that they are no less of a threat to your Empire than if they maintained the sieges as they do when you hit "End Year" without a save/load. That's when I realized that if I were willing to endure a siege for just one turn I could use a save/load to exploit this AI behavior to meet them in the field rather than sallying forth from the castle. However, that's probably not a very useful exploit since they will probably end up with the terrain advantage and I will lose the castle which can protect my flanks as I approach them. My guess is that this is one of the factors in the AI's assessment that relieving the siege is equally acceptable to maintiaining it; they can choose which square (or which realtime map) they wish to defend, giving them the advantage of position if I decide to attack them. That's always been an advantage of the AI, that it has a database of which realtime battle map will be used for any given square of the campaign map.

The reason I chose Turn 19 for my other test was because it was still early enough in the game that there had been some interaction between the different factions, but not extensively. I wanted to find out precisely how close to a position of extrema you needed to be in order to observe more stagnant behavior on the part of the AI as the result of player inactivity and load games. I expected results fairly similar to starting the test from Turn 1, but perhaps not quite as pronounced. However, my testing was rudely interrupted after just a few turns when the Brutii laid siege to the rebel town of Segistica. After the first save/load they relieved the siege, then after another save/load they reinstated it and after subsequent save/loads they maintained the seige and occupied the territory. They do that consistently, so in the reassessment logic there must be no "equally viable" alternative to maintaining the siege. The one interesting thing that I noticed is that when the AI relieved the siege after the first save/load, then reinstated it, it had no effect on the attrition of the settlement! The settlement could only hold out during the siege for 3 turns rather than 4, just as if the siege had never been relieved!

For players that play only on turn per sitting, I suppose this behavior could have a small advantage in that sieges on their settlements will be audibly announced every other turn.

Anyway, as you've probably guessed by now, I'm a programmer myself. After reading the response from "The Shogun" at http://p223.ezboard.com/fshoguntotalwarfrm7.showMessage?topicID=24377.topic it seemed to me as if he had brought up the topic to his programmers, and as if they fully understand the phenomenon and explained it to him, but as if he did a poor job of explaining how a load game causes the AI to reset the list of equally viable options -- selecting the "seed value", to describe things in terms of a random number generator. He also did not explain the fact that although this behavior can produce some awkward gameplay at the moment of greatest extrema (which happens to be the first turn of the game in the presence of player inactivity), those side-effects diminish as the game moves forward -- and that it can, in fact, enhance the gameplay experience because the computer cannot be relied upon to make the same move after a load game as it did when you simply pressed "End Turn", thereby making it less predictable.

My guess is that the developers showed him some concrete examples, like the ones in the save games from my campaign that I've experimented with. That's why I've offered to send them to anyone who wishes to review them. They were not specifically constructed to create a point; they are just save points from my campaign that I thought would be good points to test the effects of this phenomen during midgame -- specifically, those points at which sieges were in effect. Combined with a little explanation, they are sufficient evidence of the viability of strategic reassessment after a load game. Unfortunately, I think something was lost in the translation from developer to customer relations to end user. Have you ever played the game "Secret"?

Kraxis
04-11-2005, 10:16
Interesting... Anybody about to duplicate it?

So if I understand you correctly, you only differed by actually going out and attacking and basically playing the game for a while (while saving/loading every turn) then you sat back and watched what else would happen if you became stagnant (still saving/loading every turn)?

roguebolo
04-11-2005, 10:27
Right. Both with and without save/loads every turn during the period of stagnancy.

HarunTaiwan
04-11-2005, 11:03
So, Roguebolo, what would be the point of the extra re-assessment after the save/load as opposed to just letting the game go on as if there had been no save/load? Especially as the no load/save seems to bring fine results as is.

I guess we'll need someone to recreate the Sicily run of turns, but start after one player move...or do we need to play more than that Roguebolo?

If the person who did that test could simply start on Turn 20 and make one move as his faction, and then continue the test, we'd know for sure.

Also, with the Total Protectorate feature, how can a player know if the AI protectorates were ill-gotten or not? In fact, I had several protectorates that seemed too easy. Is this part of the "re-assessment" function to accept all protectorate requests after a seige/lift save/load?

roguebolo
04-11-2005, 11:23
I labeled each of my save games before "End Turn" as "1st Turn", "2nd Turn", etc...all the way to the 20th turn. I was quite surprised when I looked back and saw this because I had no idea how useful it would become a few weeks later for these tests.

I had just reinstalled RTW and installed Patch 1.2 for the first time. (I had been playing a different game for a couple of months.) I played as the plain-vanilla Julii (again) since all the factions were locked and I decided to unlock them with gameplay rather than by modifying the text file, as before. Assuming that I did not accidently skip a turn, I started the tests just before hitting "End Year" of the 19th turn. At any rate, it was the Winter of 261 B.C.

At the end of the turn in Winter 261 B.C., despite frequent saves and loads, here was the political climate:

1.) The Seleucids and Egypt were at war, Egypt gaining a territory on turn 14 and losing a territory on turn 18; the Seleucids gained a territory on turn 18.
2.) Parthia and I (Julii) both gained a territory on turn 2.
3.) The Brutii gained a territory on turn 4 and another on turn 14.
4.) Pontus gained a territory on turn 14 and another on turn 16.
5.) The Greek Cities were at war with Macedon and Pontus.
6.) Egypt and the Seleucids were at war.
7.) Brittainia and Germania were at war.
8.) Scythia and Parthia were at war.

Alliances:

1.) Scythia was allied with Armenia and the Seleucids.
2.) Carthage and Spain were allies.
3.) Parthia and Thrace were allies.
4.) As the Julii, I was allied with Carthage, Macedonia, Gaul, Germania, Dacia, the Greek Cities, Numidia, Scythia, Spain and Thrace. I believe I initiated all of those alliances with the possible exception of Gaul.

On the following turn, I began an invasion of Gaul and we declared war, which is why I chose this turn to start testing stagnation; up to this point my only military conflict had been with Segesta and random rebel stacks.

I think I will go back a little further toward the point of greatest extrema -- say, turn 12 since most territorial acquisitions began around turn 14 -- and see if the byproduct of a stagnant AI is more pronounced. At that point only Parthia, the Brutii, and myself had gained a territory.

HarunTaiwan
04-11-2005, 11:25
Did Parthia gain the rebel territory?

I think Julii and Bruti do that as well.

Could it be AI versus rebels as opposed to other AI is different?

HarunTaiwan
04-11-2005, 11:27
Note Pontus and Egypt could also be taking Rebel only territory.

roguebolo
04-11-2005, 11:30
To be quite honest with you, I had never succeeded in getting a faction to submit as protectorate until this most recent campaign. I had beaten Gaul back to just it's capital in Celtiberia, and laid siege to it, and they patently refused Protectorate status. I read about the save/load exploit on a forum, and I was absolutely determined to have them become a protectorate even if I had to use an exploit. So I tried it, and it had absolutely no effect. They only finally caved in after the siege had been held for several more years -- for a price, of course.

I ran into the same situation with Spain a few turns later at their capital in Lusitania. They had no other territories and their capital was under siege. Again, the save/load had no effect. However, after a few turns of being besieged $14000 convinced them.

I should have save games of both of these situations as well.

HarunTaiwan
04-11-2005, 11:33
4.) As the Julii, I was allied with Carthage, Macedonia, Gaul, Germania, Dacia, the Greek Cities, Numidia, Scythia, Spain and Thrace. I believe I initiated all of those alliances with the possible exception of Gaul.

LOL. That's pretty amazing for 20 turns. If you had asked them all to become protectorates, you'd have sewn the game up. When I play without save/load, I don't think I can achieve so many alliances.

roguebolo
04-11-2005, 11:47
Well, I guess that's just proof that I do save/loads every turn, in support of the other data I've provided.

I always send out my diplomat by boat from the first turn of the game. He moves from faction to faction trying to sell trade rights, usually unsuccessfully after which he gives them away. Then he tries to sell an alliance, which he also gives away if unsuccessful. As the Romans, it's easier to get alliances because it inhibits other Roman factions from warring with the proposed ally and often causes a ceasefire if hostilities are already underway. The AI is aware of this and likes that insurance policy. The wealthy Greeks are particularly suckers for this technique. If trade rights have already been established, an alliance seems easier to sell or give away. The last thing he tries to sell is map information.

I also build a diplomat in my territories so that I can approach foriegn diplomats traveling nearby. Sometimes I reject their diplomatic offers and come back to them with the same offer on the following turn, so that my diplomat will get the influence bonus.

I will check which territories were taken over, and I'm also going to try the same test from Turn 12.

Bromley
04-11-2005, 11:52
EDIT: Apologies, but I have missed out Rhodes (Greeks) in all of my tests. It's immaterial to the conclusions though.

As far as I know, only DimeBagHo has tried to quantify the effect on the AI of different intervals of save/load. I've just finished a series of tests to provide some similar evidence. Unlike Dime, I just ran one test for each interval, so I don't have averages. That weakness is offset by running the test for all intervals between every 2 turns to every 10 turns (inclusive).

Just to be clear, when I say an interval of, say, 4 turns I mean that I click End Turn 4 times and then save/load.

As intervals of 4-6 turns seemed to be key, I did perform a second run for each of those, so I have basic averages there. I also ran a no-load game. The first column in the results, labeled "Start" is the starting position in 270 BC. I started all the runs from this same saved position.

So:
RTW 1.2, no mods, M/M, Brutii, 20 turns, various intervals, everything moved to cities at start, no other player action, answer "no" to any diplo/marriage.

I recorded the number of territories owned by all of the factions (except rebels). The total of these show the total AI expansion, which is the key result for this test. The data on the individual factions is still there though, so others can draw conclusions from those if they'd like.

I also specifically recorded the state of Sicily.

Conclusion

Observations of Sicily show that the AI has real trouble expanding if loaded every 4 turns. The cusp seems to be 5 turns, where the Scipii in one run took one city yet in the other remained static. With 6 or more turns, the Scipii managed to overrun Sicily every time (although it took them longer at 6 turns than at 10).

Total AI expansion seems to really suffer until you hit intervals of 4 turns. It seems to require an interval of 7 turns to maximise (or get close enough for there to be little difference). Obviously, more runs would generate averages that would better pinpoint this, but I'm happy that the general trend is pretty obvious with what we've already got.

Note how that last paragraph disagrees with the first. i.e. in the first I'm saying that 6 turns will allow the Scipii to conquer Sicily happily and yet in the second I'm saying that intervals of 4 and 7 are the key ones. I believe this has to do with things like the distance between the cities and the level of opposition in the area. So extending the interval beyond 6 makes no difference to the Scipii in Sicily because they only need 6 clear turns to reach and overrun a city. It does help other AI factions reach the cities that are further away though. Likewise, the Scipii are completely boned with an interval of 4, yet other factions manage to do okay. That's because the Scipii are facing walls and armies rather than rebel settlements.

http://img212.exs.cx/img212/248/brutiitestresultstable4tp.jpg
http://img212.exs.cx/img212/9104/brutiitestresultschart1dj.jpg

If I haven't explained something properly, pm me (to keep this thread as uncluttered as possible) and I'll fix it. Likewise, if people want any of my saves pm me and I'll upload them somewhere.

Bromley
04-11-2005, 14:11
EDIT: Apologies, but I have missed out Rhodes (Greeks) in all of my tests. It's immaterial to the conclusions though.

I did a short extension, just to see what happens when alliances/wars etc are firmly in place.

Loaded the no-loads 260 file. Then (a) played to 250 with no loads and (b) played to 250 with 4 turn loads (i.e. long enough for the AI to recover from the previous load but still expected to impact AI behaviour).

Here are the results with a few notes. Basically, loading cut the Rebels some slack but also prevented the destruction of Gaul and held Egypt back. Also, the Brutii didn't try to establish a foothold in North Africa.

http://img63.exs.cx/img63/1997/brutiiextendedtesttable0fw.jpg

Interestingly enough, if you look at the absolute differences for the 250 no-save and 250 interval 4 compared to the 260 load used to start the test, you see some startling results.

The bottom line shows that the no-load has increased in total by 7 and the Int-4 by 3. A big difference, but not huge.

But then look at the territories by country though and compare them to the 260 start.
* Looking at the absolute changes (i.e. ignoring + and -, just the number)
* Removing the number of rebel provinces in that amount (which we know by looking at the total provinces owned before and after)
* Dividing the resulting number by 2 (as all provinces were taken from another faction, so are double counted)

That gives some stunning results. No provinces were taken from other factions in the interval 4 run, whereas 8 were taken in the no-load run.

That's huge. I know there might be a few logic errors in what I just did (as I haven't done maths for 15 years ~:) ), but not enough to explain away a variance that large.

Where it says "20", that's meant to read "start" or "260". Can't be bothered to fix the image ~:) .
http://img63.exs.cx/img63/5264/brutiiextendedtesttableprovinc.jpg

roguebolo
04-11-2005, 14:50
[edit] Sorry, I misunderstood something. OK, the AI factions have all made alliances but the human player has not made any alliances nor expanded yet after 20 turns, right? That introduces an entirely different extrema that is a little hard to concieve of, since the AI definitely attempts to respond to the human player.

I'm finding that alliances are actually a key factor. If I load my game at turn 14, then play forward to turn 19 with or without save/loads, I get results that are identical to when I was playing the actual game. The same factions have acquired the same territories, except that when I did not use save/loads Egypt apparently beat the Seleucids in their war because on turn 18 the Seleucids did not gain a territory and the Egyptians did not lose one; so the game with save/loads was actually less static, but that's merely a matter of an autocalculated battle turning out differently.

HOWEVER, there IS a breaking point. If I move back to turn 12 and play the game forward to turn 19 with save/loads, none of the factions take their rebel territories. Whether I use save/loads or not, the alliances and declarations of war are considerably different than when I had established alliances on my own, as well as considerably different than each other. The save/loads seem to be affecting who they select as allies and who they select as enemies, much the same way that random events are affected by a load game.

I know exactly why different declarations of war are occuring. At the beginning of turn 12, my only alliances were with Gaul, Germania, the Greek Cities, Numidia and Spain. At the beginning of turn 14, most of my alliances had been established and included Carthage, Germania, and Thrace as well, thereby preventing many of the other factions from declarations of war in order to keep their alliance with my Roman faction. Without these alliances, which is the only thing I did while actually playing the game except for building my faction's infrastructure, the other factions were free to make war or love as they pleased, without any regard to my faction's alliances. This strongly reminds me of MTW.

When starting from turn 12, without my alliances to guide their decisions, the alliances and declarations of war that they chose were considerably different depending on whether I used save/loads each turn or not. Without save loads, several of the factions were less active (but not inactive) in taking rebel territories, and several other factions were more active. However, WITH save/loads, no faction took any rebel territories. If this had something to do with the different nature of the alliances and war declarations, because they thought they needed the forces elsewhere, or because of other reasons, I cannot say. In any case, it does seem to support your idea that the rebels get a break, and it also seems to be growing in prevalence as I move closer and closer to the point of greatest extrema. But let me point out that it also seems to grow less in prevelance as I move away from it, so that by midgame it seems to have no effect on gameplay at all.

I don't know if this is coincidence or if it has something to do with the anomalies you've pointed out, but turn 12 also happens to be an even multiple of 4 and 6.

HarunTaiwan:

The point of reassessment after a load game is that it makes the AI less predictable. You can't say, "Oh, I didn't know it was going to do that. I'll just load the last turn and play a little differently."

ShellShock
04-11-2005, 19:17
Thank you Bromley.

Your second analysis answers the question that occurred to me on reading your initial results - the number of territories that changes hands is a much better measure of the effectiveness of the AI compared to the number of territories each faction owns. I assume as players we generally prefer an AI that is aggressive, expansive and therefore more likely to attack (if not conquer) our territories.

The community owns you a big thanks for the time you've put into this. ~:grouphug:

I hope this data will give CA some insight into the game mechanics over time, and will help them in their plans for the future of the TW series, if not RTW itself.

Puzz3D
04-11-2005, 19:18
In the test I did with a Julii campaign, the war declaration didn't change between playing continuously and reloading.

Julii imperial campaign, M/M difficulty, FOW false:

Start, 270 BC. Position the map so that you can see both Syracuse and Athens. Hit end turn.

Turn 1, 270 BC. Scipii sieges Syracuse which can hold 7 turns. This initial siege of Syracuse might be scripted. Hit end turn.

Turn 2, 270 BC. Decline the trade offer from Gaul. Syracuse can hold for 6 turns. Hit end turn.

Turn 3, 269 BC. Accept the marriage offer. Syracuse can hold for 5 turns. Hit end turn.

Turn 4, 269 BC. Syracuse can hold for 7 turns. (Perhaps an unsuccessful assault was made and the siege has been reinstated.) Macedonia sieges rebel owned Athens which can hold for 6 turns. Macedonia is at war with the rebels and no one else. Save the game. Hit end turn.

Turn 5, 268 BC. Syracuse can hold for 6 turns. Athens can hold for 5 turns. Hit end turn.

Turn 6, 268 BC. Syracuse can hold for 5 turns. Athens falls to Macedonia. Exit the game.

Load the savegame made on turn 4. The random number generator could introduce a difference at this point because after a reload the AI may not perform the exact same sequence of decisions requiring a random number. It's possible that a random number is used to weight the decision to break a siege, but I find this test to be very repeatable. Hit end turn.

Turn 5, 268 BC. Scipii lifts the siege on Syracuse and moves away. Macedonia lifts the siege on Athens and moves away. Macedonia is still at war with the rebles, and the Macedonian army which was sieging Athens moved north to an area where there are no rebel armies. There is in fact no observable threat to Macedonia anywhere on the map, and they are not at war with any other faction. Hit end turn.

Turn 6, 268 BC. Scipii sieges Syracuse which can hold for 7 turns. Macedonia sieges Athens which can hold for 6 turns with the same army as before. This is a futher indication that there are no other threats to Macedonia because the AI returned to the same strategy is was using before the save on turn 4.

End of test.

Conclusion:

Clearly, loading the game caused both sieges to be lifted because neither siege was lifted when play was not interrupted by the save/load cycle. The expansion by Scipii and Macedonian is set back by the lifting of these sieges. It's apparent that the AI reformulated it's siege strategy, and it took more than one turn to get the sieges back in place. It took the first turn (turn 5) to reassess the situation just as CA claims, and the second turn (turn 6) to reinstated the sieges. This reassessment was necessary only because the AI was not fully aware of the situation after the reload. The course of the campaign is altered by saving and loading because Macdonia should already be in possession of Athens on turn 5, and Scipii should be further along in it's conquest of Syracuse. This has a far reaching effect because a faction is set back economically for the rest of the campaign, it affects all AI factions and happens repeatedly as often as you reload.

It's true than not all sieges are necessarily lifted after a reload, but from observation with FOW off I would estimate that 90% are lifted. The AI may be moving these formerly sieging armies away from cities because it's programmed not to position them that close to cities that it isn't sieging.


Bromely's data is very nicely done, and it doesn't surprise me at all that it shows 4 continuous turns to be the level which allows expansion since the max siege length is typically 7 turns. I'll bet the average siege length is about 4 turns. I would say to get on a level footing with the AI you have to not only play at least 4 turns per sitting but also break off your own sieges and perform no diplomacy on the turn after a reload.

roguebolo
04-11-2005, 19:22
OK, after confirming that there was a breaking point at Turn 12 in my game, I began to wonder a few things. Why was it that if I did save/loads and "End Turn" consecutively after turn 12 that other factions would not take rebel provinces, when they seemed to have no qualms about doing it when I started from Turn 14 or Turn 19? The only thing I did other than building my internal infrastructure between turns 12 and 19 was establish alliances. But how could that have such a drastic effect on the AI?

So I went back to the original test scenario, starting at Turn 1. This time, I looked at the diplomacy panel each turn, both with save/loads and without them, to determine which factions were allies and which had declared war and -- more importantly, because it's not explicitely listed in that panel -- which ones had established a ceasefire from the previous turn.

As anyone who has played MTW is familiar, the course of the game was largely decided by the alliances that you established. The same is true of RTW.

It appears that in the reassessment process, the AI does not merely reassess its moves -- it reassesses who would make the best allies and the best enemies before making any other decisions. When "load game" is NOT used, it sticks with its original choices.

When a "load game" causes it to reassess the political landscape, and it sees multiple choices that are equally viable, it will often establish a ceasefire with hostile countries and select a new target -- I suppose all on the grounds of remaining "unpredictable". (It also has the byproduct that the human player can exploit load games to change the political landscape, allowing him to establish alliances that were previously not possible.)

The end result is that repeated "load games" on consecutive turns throws it into a floundering, confused state, with so many allies and enemies to select from, of switching sides over and again. You can confirm this by watching as ceasefires go into effect when sieges are released, and as they begin to ally with factions that they were besieging a few turns ago.

To further complicate things, the AI apparently percieves the Rebels as "just another faction" and sees the same benefits of nonhostile relations with them as with other factions. So the rebel factions make out like bandits (no pun intended) in this situation.

However, as I've pointed out, there seems to be a stabilizing factor that occurs as you move further and further away from this point of extrema, which is partially provided by the actions of the human player. As the human player begins to interact with the other factions, establishing declarations of war and ceasefires and alliances, and as other factions do so as well, each faction starts getting "locked in" to a situation in which it is less and less desirable to cease hostilities or establish or break alliances. This is the stabilizing factor that made it so much more difficult to recreate the phenomenon in midgame.

It does have some kind of an effect on the beginning of the game; primarily that if you load and save a lot, it will take longer for rebel territories to be occupied. The fact that the Scipii have two extra territories and the Greek Cities and Carthage each have one less territory before this stabilization process begins, assuming that you did not interfere with that course of events by using load games or by establishing alliances which prevent it, has very little effect on the progress of the game as a whole; in fact, as the Julii I'm more likely to be at war with Carthage or the Greeks before the Scipii, so it makes the game a little LESS challenging without the save/loads. Note that load games are not the only thing that will prevent the Scipii from conquering Sicily -- you can intentionally prevent it by manipulative use of alliances.

But the fact that save/loads causes rebel territories to be occupied later is more of a problem, because it sets back the development of those territories by several turns.

In my real game, the situation was becoming stabilized by turn 14; but as you can see, I was making a considerable number of alliances. It may take longer for players who wait for the AI to establish the political landscape.

Now that I understand the situation a little better, I actually do have a real gripe about the fact that rebels are being treated the same as other factions. Although it may not ultimately have a major impact on midgame or endgame, which is really the part that I'm looking forward to, it does have a minor impact. And furthermore, it just plain doesn't make sense.

I'm not exactly sure why you guys are studying this issue if CA has stated they do not intend to release another patch because of their two-patch limit. I think in the long run bugs and glitches and other phenomenon like this one will make themselves evident; what really needs to be addressed is the two-patch limit. Speaking as a programmer, I can honestly state that this is a ridiculous, arbitrary policy and needs to be changed. So go for it. I'm going back to my game. If there's any way I can help with your efforts, let me know.

And, btw, congratulations on whoever first discovered this phenomenon. Good work!

Kraxis
04-11-2005, 21:07
Wow... I'm impressed. You guys have done a gerat job.
It seems the player will have to play a good number of turns before doing a load, so that the political scene can work towards active AI factions. But even in that case many people are forced to reload pretty much every turn for a wide range of reasons. For them it is still impossible to get the AI to pose a threat, at least a fun one.

We know they read this forum, so this is more of a plea.

Bromley
04-11-2005, 21:40
Thanks for the hug ShellShock ~:) .

Another extension of my test. I loaded up the 260 save where I'd not save/loaded during play. That gave me some nicely expanded AI factions, so they could be expected to turn most of their efforts towards other factions rather than Rebels.

I then played 20 turns with a 2 turn save/load interval. But this time, I was active and really played them. If nothing else, this proved to me that the Medium portion of the strategic game is ridiculously easy ~;) . Greece and Macedon both felt my wrath.

Check out the results. Although there's obviously a slight problem with my method of determining how many provinces were taken from other faction (as I know I took 6 yet the function spews out 5), the variance is pretty immaterial.

What isn't immaterial is that I was responsible for ALL of the faction on faction province swaps. So I think that it's fair to assume that, for the purposes of AI expansion, player activity is not a determining factor.

I'm not going to perform an interval-2 test with no activity by myself because I think it's pretty obvious from earlier tests that the AI won't expand. I've included the 250 no-load data where I was passive for comparison - you can see that the AI might be expected to have nabbed 8 provinces off other AIs in those 20 turns without the save/load feature (on top of an extra 5 Rebel provinces)..

http://img119.exs.cx/img119/9728/brutiiextendedtesttableactivep.jpg

roguebolo
04-11-2005, 22:16
But even in that case many people are forced to reload pretty much every turn for a wide range of reasons. For them it is still impossible to get the AI to pose a threat, at least a fun one.

Not really. It just takes longer for the game to reach a more stable situation. The political climate will be DIFFERENT, not less challenging; the factions you are at war with may be different and they may be stronger or weaker, but eventually you need to face the majority of them and their wishy-washy alliance changes become less likely. However, the same logic that allows it to change alliances if they look equally viable could cause a long-time ally to suddenly break their alliance with you and form one with your primary rival. Or vice versa. Especially right after a load game, or any other event that triggers a reassessment.

The territories that started out as rebels, however, will always be underdeveloped if you were using a lot of load games in the earlier moves of the game. That's why my main gripe is regarding the fact that the AI is treating rebel factions as "just another faction." Eventually they will conquer the nearby rebel territories...just a little too late, and too slowly.

In my game I was saving and loading every turn, and the political climate *started* stabilizing by turn 14 -- but as someone mentioned, I formed an awful lot of alliances. It would take quite a bit longer if the human player is not as proactive about forming alliances. I like forming alliances early because it gives me more control over the political climate.

drone
04-11-2005, 22:47
Something Puzz3D said got me thinking:
Turn 1, 270 BC. Scipii sieges Syracuse which can hold 7 turns. This initial siege of Syracuse might be scripted. Hit end turn.
Does anyone know if the first AI moves are scripted? If they are, do the scripted decisions get saved and how do they fit into the reassessment? If they are scripted but not saved, this could be causing problems at the start of campaign games.

Nice work, Bromley! ~:cheers:

roguebolo
04-12-2005, 00:04
Especially right after a load game, or any other event that triggers a reassessment.

I feel funny quoting myself, but thinking about it I began to wonder...ARE there any other known events that can trigger a reassessment? Has CA mentioned any, or has anyone else observed any? Or is it just the load game?


I agree that it is the rather strange two patch policy that needs to be changed, but since it has been settled already (actually before the game was finished at all)

That's what I meant when I called the two-patch policy arbitrary. It's not a very realistic approach to software development. It's entirely arbitrary. I'd like to share a few anecdotes with you of similar situations but its too off-topic.

HarunTaiwan
04-12-2005, 01:42
So, roguebolo, should I save load every turn, for even BETTER AI?

Notice Bromley confirms that's it's all rebel territory many without walls that you are seeing being taken, and not AI territory.

I doubt alliance does much at all, since the AI breaks those at will.

I suspect the reasssessment if it exists leans toward peace and friendship, which could explain the protectorate issue a bit. Maybe it's designed so the human player who is coming back has some breathing space. LOL

Also, Roguebolo, the last thing you want in a wargame is stability. You need to feel threatened as well as threatening. In MTW, you definitely felt that. In RTW, only if I play a small nation am I ever worried.

Kraxis
04-12-2005, 01:52
Nah, I rather think that the AI goes "Hey what is going on here... Ok I better get in a position where I can formulate a good strategy (hence sieges broken off) and I need to secure myself (hence acceptance of Protectorates)."
Basically the AI goes into 'start'-mode. It starts over again as if the game starts at that date, which seems to be a fitting explaination as the info to make the AI realize it was actually in a running game could possibly be rather substantial, and an obvious place to cut if size was demanded smaller.

HarunTaiwan
04-12-2005, 02:09
I agree with you. I think the results show if you play 6-7 turns it's not so bad...so I will play less now since sometimes I only have 20-30 minutes...shouldn't have had that kid, should I?

Puzz3D
04-12-2005, 03:43
Basically the AI goes into 'start'-mode. It starts over again as if the game starts at that date, which seems to be a fitting explaination as the info to make the AI realize it was actually in a running game could possibly be rather substantial, and an obvious place to cut if size was demanded smaller.
I think that start-mode is a good word to describe what's happening. The AI has to rebuild some memory resident data structures.

roguebolo
04-12-2005, 04:27
Notice Bromley confirms that's it's all rebel territory many without walls that you are seeing being taken, and not AI territory.

Right. I've done the same tests. I've watched what happens in Sicily without load games. I've also watched what happens in midgame with them. Even then the AI will relieve sieges, but the net effect is different. It continues to threaten the same territories. Like I said, don't take my word for it. I'll send you a number of different save game positions that show it to you, from the same game even.

The truth is that the AI has never caught me with my pants down so that waiting out a siege would ever work anyway...so it boils down to a matter of, "Should I sally or meet them in the field?"

The fact of the matter is that in the first 20 moves, without load games, it's primarily rebel territories that fall.


I doubt alliance does much at all, since the AI breaks those at will.

Here, I agree with The Shogun in that there is (in his words) "a misunderstanding of the AI." In midgame, the AI definitely does not easily break or form alliances. There's a very clear logic on what it considers acceptable. However, in the early phases of the game it will change them willy-nilly whenever there's a reload. It doesn't seem to merely reassess the situation and roll some dice for 50% odds -- it seems to intentionally reverse its previous decisions.

Play through the test scenario one more time with load games, but this time watch what happens in the diplomacy Pane with Egypt/Seleucids/Armenia or the factions in Sicily. Make note of ceasefires as well. You'll soon see a pattern of ... they removed the siege ... a ceasefire is in effect ... now they've formed an alliance ... etc. I should have recorded that information and posted it because it gives some good insight as to what is going on.

At any rate, if you doubt that alliances have an effect on the AIs willingness to follow through with sieges, I can illustrate with specific save games in which that is the one and only determining factor that modifies the behavior of the AI, despite load games. Isn't there an upload area for sharing data?


the last thing you want in a wargame is stability. You need to feel threatened as well as threatening.

Now, that's taking everything I've said out of context. Stability is a very generic word which can mean a lot of different things. I think you know perfectly well that I was not referring to a "comfortable, easy-going game where everything is under my control." I was referring to a stable political landscape which causes the AI to behave in a more stable, reasonable manner. You certainly don't want the kind of instability that it exhibits early in the game with numerous save/loads to continue throughout the game.

Sometimes I wonder how many people here are actually playing games beyond the first twenty moves. I can definitely see that there has not been much testing beyond that period of extrema. But to truly understand the phenomenon, you need to come up with instances in which it is NOT exhibited, and determine why. You need both a positive and a negative.

While the statistical data supporting the load game behavior is very good, I have seen very few suggestions that explain this behavior -- nothing that illustrates a truly good understanding of it.

It's a hard proposition to make projections about the overall difficulty of the AI factions in midgame on the grounds of its early behavior resulting from load games. Generalized statements like "it's less aggressive" don't carry much weight in the light of actual savegames which illustrate the AI's midgame behavior to be substantially different. They tend to be semantical statements arguing a foregone conclusion of an empirically observed and repeatable fact, and that's simply not good enough. You not only need to be able to make projections about the future behavior of the game, but you need to back them up by observing and measuring the resultant behavior as well.

A similar semantical argument (and similarly illogical) would be, "It sounds to me like you want one of the AI factions to beat all of the others for you, so that you can take it on after it's overextended itself." When the Scipii, your allies at that stage of the game, grow stronger, Carthage and the Greek Cities grow weaker. But the sum total of the AI factions is the same, and must all eventually be defeated.

I really feel that some serious thought should be given to proven instances in which this phenomenon does not seem to exist or does not seem to exhibit the projected results. I don't think it will be fully understood unless those are understood as well. I have a number of such save games, which is why I've asked several times about sharing them with people. I'd like someone else to take a look at them and see what conclusions they come to. If anyone is interested, please PM me and I can send them by email.

Bromley
04-12-2005, 07:43
How does that fit with my last test? That seemed to show, to me, that the AI broke off all sieges (note that I did not visually confirm this, it's just that they ceased to expand into each other and only took a few Rebels). That's even with a human playing and after the diplomatic scene had been given 20 turns to mature (although the human was passive in those first 20 turns).

Also, although without save/loads the Rebel territories are a larger part of the total territories taken in the first 20 turns, there were more provinces swapped in my 270-260, no save/load test than taken from Rebels. The proportion of Rebel territories to all territories taken approaches 100% as save/load interval is reduced. I personally believe that this is because the Rebel territories are easier to take (fewer defences, smaller defending armies, no supporting armies), but may be wrong there.

HarunTaiwan
04-12-2005, 08:03
Not only easier to take, possibly hardcoded into diplomacy for the AI to ignore rebels as a negotiating partner, etc. If you can't negotiate with them, lifting a siege won't result in any diplomatic benefit, so you might as well see it through.

Also, Roguebolo, your point noted on "stability" but yes, I do think having AI's expand and compete along with you, to the point where you face factions of similar sizes makes a much better game.

roguebolo
04-12-2005, 13:03
Bromley, yours is some of the statistical data that I said was referring to as very good. I guess the point is that although you've been able to create scenarios which duplicate the phenomenon, I've been able to dig up some scenarios which duplicate explicitly contrary behavior. In some cases they illustrate the very kinds of AI behavior that The Shogun mentioned in his post, but that does not necessarily redeem them. Aren't both worth some study if you wish to understand that behavior?

I actually do visually confirm the results of the first 20 moves with an "End Year" without save/loads, and there are typically four territories under dispute that are not rebel. All of the remaining acquisitions are rebel, and if you ask me that's some pretty sensible playing. It's also easier to debate the stance and prove the projection that rebel territories being occupied at a later point in the game will be less developed than if they were occupied earlier. I hope no one disagrees on that point.

It's much more difficult to debate the idea that a vague concept like "the AI is less aggressive to other factions" has any real impact on the gameplay, particularly in midgame -- then you'll need to face the entire slew of possibilities that The Shogun mentioned in his post and show that each and every one was not a reasonable assumption.

I honestly do consider the inactivity on the part of the human player to be a weakness of these tests. I'm not going to debate the reasons why but eliminating that lack of inactivity is what yielded the contrary results that I consider worth studying. In one case, even something as simple as forming three alliances in the space of two turns completely changed the behavior of the AI and made it more aggressive.

I don't really agree that a single large faction makes a better opponent; I would rather see smaller factions allying against me as there is more diversity in the gameplay because of the different unit types they can create. The only case in which I would like to see other factions grow at an equal pace is when I'm playing a Roman faction and eventually have to face the other Roman factions after civil war begins. When I first played I thought this is the way things would turn out, and I was surprised to find my Urban Cohorts facing large bands of Hastati and Velites.

This is a little off-topic, but the thing that reduces the challenge the most for me is that the AI does a poor job of building the more powerful units and a balanced army, and that it does a poor job of upgrading the arms and armor for its units. (There was actually a minor improvement in the latest patch, but not enough to be significant.) If it did a better job at these issues, it would make a considerably superior opponent.

roguebolo
04-12-2005, 14:26
Apparently my posts on this forum have become somewhat controversial, but I guess I'm getting used to that. Recently on a different forum regarding a different game some of my posts were originally considered controversial, eventually got me flamed by a few individuals, and ultimately won me an award as their best strategy columnist. Bromley has asked me to post a summary of my position because apparently some people have been referring to my posts as evidence that there is no loadgame bug.

In some respects, they are correct. The problem here is the word "bug". To a programmer, a bug is a clear and undetected error that produces incorrect or unintended results or an interruptive abberation in the behavior of a program, such as divide-by-zero errors or integer overflows or a deadlock due to improper use of synchronization objects. I have encountered, tracked down, and eliminated many such bugs over the last 20+ years, and this does not truly qualify as a "bug." I assure you that if you were to refer to it in those terms to the developer(s) responsible for the AI that they would take at least a small amount of offense to it. In fact, as a fellow programmer, I take a small amount of offense to it myself on their behalf. I do wish everyone would adopt a more accurate description such as the "load game reassessment behavior" or "load game reassessment anomaly".

What we are dealing with here is a peculiar behavior of the reassessment strategy under conditions of polar extrema -- beginning from the opening move of the game, without player interaction except for the refusal of all alliances which serves to reinforce the extrema. I'm not undermining this test, because it quite possibly gives us some insight into the viability of the the algorithms and heurisms used by the AI throughout the course of the game, including midgame and endgame, in the absence of such extrema.

There is a clear tendency for the reassessment that occurs after a load game to often (not always) reverse diplomatic decisions and to relieve sieges. It's also clear that this behavior tends to diminish or manifest itself in a different way as the game moves away from a position of extrema. Unfortunately, I'm one of the few people who has apparently studied the phenomenon with that possibility in mind, although Bromley is moving in the same direction. It helps to have a large database of saved games to draw from.

I think there are some weaknesses with the research that's been undertaken here. It seems that many people have reached "obvious", foregone conclusions from their observations of this fairly limited test, projecting those "absolutes" to the conclusion of the game even when the extrema is removed. There is no support for such conclusions except inasmuch as they can be supported semantically. There is virtually no empirical evidence as to the resulting strength of the AI opposition as a whole due to the AI's reassessment behavior.

There are also a few conclusions that are entirely accurate, although unsupported empirically, such as the fact that the load game behavior will allow the human player more time to acquire rebel territories and more time to develop them than the AI factions, which definitely gives the human player an advantage. I think this could easily be supported empirically, although the mathematical analysis would be quite challenging.

There has been very little attempt to understand the reasoning behind the AI's behavior, which I consider to be a key factor in suggesting how it might be changed. To simply say, "The AI needs to stop relieving sieges" could very well introduce another undesirable behavior in the AI. In order to understand the decision-making process of the AI, and how it might be improved, it is important to analyze those scenarios where the AI is behaving in a different manner than that which was observed under conditions of extrema.

In other words, I think the research here is a good start, but incomplete. It is not conclusive because it does not exhibit empirical evidence of the projected conclusions.

Pode
04-12-2005, 20:16
RB, you've put forth a fairly solid case and my opinion of the impact of this issue is being revised accordingly. However, my primary concern is that the anomalous behavior at an extrema is at an *unavoidable* extrema. Every campaign must have a beginning, and if the AI takes 20 turns or so to really get its wits about it (more if you play as I do and never form alliances with people you intend to subjugate one day), that's a crippling handicap. Even if the behavior straightens out and the AIs begin to function better as you suggest, for a lot of players it may very well be too little too late for the AI to pose a challenge. Your evidence is *beginning* to convince me that it is WAD, but even so I stand by my assertion that it's a very bad WAD and needs serious attention for the XP.

roguebolo
04-13-2005, 01:07
Pode,

My idea about alliances is not 100% confirmed, but it's true that the human player can force ceasefires between AI factions with his alliances sometimes, which also means it would no longer be a "equally viable" option for the AI to change its mind about certain alliances, bringing about some degree of stabilization. An analysis of alliances and ceasefire agreements in the 20-move test with saveloads seems to support the idea that changing alliances are partially repsonsible for the loadgame behavior, as do the save games from turns 12 and 14 of my campaign in which the AI chose to agressively take territories (even distant rebel territories!) only because I had established three new alliances without any other movement, despite the fact that I was doing save/loads each turn. Furthermore, the exploit that has been reported (I've never tried it myself) which allows you to create alliances with an unwilling faction, or even to establish a protectorate (which I've tried only in midgame, to no avail) also seems to support the idea. I think it merits a little more investigation.

For example, let's take the first 20 moves, with no load games. A good player, who has a good grasp of the game and how to manipulate the other factions, will realize that he can use his starting diplomat to sail to Lilybaeum by the third turn and form trade rights and an alliance with Carthage, and then sail to Thermon in three more turns to form trade rights and an alliance with the Greeks, which causes the Scipii to relieve their siege at Syracuse. (It also establishes some fairly lucrative naval trade.)

Hence, the situation in Sicily is entirely under the control of the human player. If you consider the Scipii takeover of Sicily desirable, you can allow it; or, if you choose, you can prevent it. From that analysis alone I don't see the situation in Sicily as a strong contributing factor to the overall effectiveness of the AI later in the game. The Scipii siege of Syracuse was only as effective as I allowed it to be, so the AI was not any more effective in this case, with save/loads or without them.

However, with save/loads, it is a more difficult proposition to convince the Scipii to attack Syracuse. In this particular example, due to the unpredictability factor caused by save/loads, the AI is somewhat harder to manipulate, just as load games seem to make it easier to manipulate in other ways. Try making these moves yourself if you want -- you don't need to make any changes to the original test except for your diplomat and the boat he came in on.

But you are right about the fact that every single game will begin with a floundering period of uncertain alliances if there are a lot of load games, and that the period will last longer for different players depending on their style of play. One thing is for certain -- the AI won't be picking up a lot of rebel territories, giving the human player more time to invade unclaimed territories (assuming he can spare the resources and manpower) and to develop his own rebel acquisitions. Although I don't consider that to be a massive game imbalance introduced by the load game behavior, it certainly has some effect.

As to whether the AI begins to stabilize, I'm certain that it does as the result of some fairly extensive testing. But nevertheless its behavior is still worth observing because it gives me a clue about how the AI is reassessing the situation on a load game, a topic which continues to fascinate me.

Arphahat:

Chess programs are a great comparison in some respects. If you save between moves, they will reassess their next move each time you load and may not make the same move -- either if it's drawing the information from a database, as in the openings, or if it's in midgame and sees equally viable moves.

It's funny, because those same programmers on the other forum brought up the comparison between the AI in RTW and chess. One of them pointed out that chess is also substantially different because of the fact that it has only 64 squares, and a limited number of pieces with limited movements. So, yes, it's an unfair comparison in that respect.


A chess program would have the same type of bug if after you loaded a saved game the AI would expose itself to checkmate regardless of the difficulty setting.

That is, again, merely an unsupported assessment of the degree of impact of the load game behavior. I have encountered too many midgame scenarios which discredit the viewpoint that it simply gives up the game because of load games.

Simetrical
04-13-2005, 03:30
I still don't see the reason that the AI needs to reassess on reload at all. roguebolo suggested that perhaps this was to add an element of unpredictability, but the easiest way to do that would surely be to use exactly the same code with a different pseudorandom seed, and that can't be what's happening—if it were, the AI might lift a siege or not, but it wouldn't do so disproportionately if a new seed were selected. Unless the decision of which action to pick isn't pseudorandom at all, but I don't see why that would be if you're aiming for unpredictability.

Then again, what do I know? I'm not a programmer. Probably none of what I said makes any sense.

-Simetrical

Edit: Removed semantics discussion.

HarunTaiwan
04-13-2005, 03:36
Roguebolo,

Is there a way to test your hypothesis?

If I am playing Parthia, engaging in alliances and war, you are saying despite load/save every turn that the AI will figure things out and the Scipii will take all of Sicilly?

This seems like an easy test to run.

Please confim if this test would fit your hypothesis that human interaction is needed to jump start the aggressive behavior.

Or is it only working when the human player's faction is involved directly in the situation?

roguebolo
04-13-2005, 05:02
Simetrical:

Right. Exactly. I think the same thing. As I pointed out earlier, software random number generators are not truly random -- they will produce the same sequence with the same seed. (A timer tic can be used as a seed to introduce more randomness, but the sequence will still eventually repeat itself.) Apparently you're familiar with these concepts. I was comparing it to a random number generator because I think that partially explains the phenomenon -- if the list of possible choices were enumerated, it would seem to always start with the same choice after a load.

We know in advance that it does not have an enumerated list of available, equally viable options for different situations. The reassessment process must construct such a list...and whether it is doing so using recursion, or techniques of combinatorial optimization, or whatever...further complicated by a rule-based heirarchy, topological relationships, and so forth...well, as you can see the end result is a heurism. In the long run, all AI boils down to that, especially with a game as complex as RTW.

I've asked once before if anyone was aware of other triggers which might cause a reassessment. One can assume that they would result in another possible decision-change on the part of the AI midturn (to use the random number example, the next number in the sequence without changing the seed), which would explain why user interaction can change the results of the "sanitized" 20-turn test.


I agree with roguebolo that this isn't really a bug. That the AI does reassess its move on reload isn't a bug; it's intended. That it reassesses it poorly is not a bug, it's a flaw or a problem. Bad AI does not constitute a bug. However, this is a matter of semantics that doesn't really need to be discussed further on this thread.

I think it's a matter of semantics also, and I also think it should be dropped. However, I still question the veracity of the statement that it is "poor AI."

HarunTaiwan:

The establishment of alliances will have the most dominant effect on the factions nearest to you and the ones that are bordering them. However, by establishing alliances with distant factions you can still have some control over events on the far end of the map. I generally do both. Is it really going to matter to you who is the strongest faction you have to fight when you expand toward Rome and have to fight Carthage, or the Scipii, or the Brutii, or the Greek Cities? Or some combination thereof?

HarunTaiwan
04-13-2005, 05:30
The establishment of alliances will have the most dominant effect on the factions nearest to you and the ones that are bordering them. However, by establishing alliances with distant factions you can still have some control over events on the far end of the map. I generally do both. Is it really going to matter to you who is the strongest faction you have to fight when you expand toward Rome and have to fight Carthage, or the Scipii, or the Brutii, or the Greek Cities? Or some combination thereof?

Yes. Because if the Scipii overrun Sicily early on, they might have more than hastati and velites. If it doesn't matter, then have no AI vs. AI battles and the player can just conquer a static, unchanging world.

And, if alliances are so key, I still can't understand how Scipi overrun Sicily without save/loads and do nothing with save/loads when THEIR FACTION IS LOCKED INTO ALLIANCES WITH ALL THEIR LAND NEIGHBORS EXCEPT IN SICILY.

Not to mention the script or Senate missions that always lead Julli and Brutti to take Segesta (?) and Appolonia like clockwork. I assume Scipii get the same marching orders to take Siciliy, but when it's save/load it somehow goes away?

Scipii are already allies with the other Romans. Without loading they seize all of Sicily. With loading, they do nothing. And somehow the butterfly wings of the player's alliances would alter this result?

Maybe for Greeks and Carthage who definitely can be busy elsewhere your points could be valid, but Scipii? And keep in mind if you are a Roman faction, it will affect your end-game civil war if the Scipii have not expanded enough.

Now, in games where I did not save often, I saw Scipii do better than Brutii...could it be a way to slow down certain factions?

roguebolo
04-13-2005, 06:27
And, if alliances are so key, I still can't understand how Scipi overrun Sicily without save/loads and do nothing with save/loads when THEIR FACTION IS LOCKED INTO ALLIANCES WITH ALL THEIR LAND NEIGHBORS EXCEPT IN SICILY.

Umm, heck, I just explained this. I played as the Julii in my experiment, but the Brutii would probably still turn out the same way. All you have to do is make alliances with Carthage and the Greeks, and then your Roman allies will honor that alliance and the Scipii will not overrun Sicily. It depends if you want to weaken your future enemies, the other Romans, later in the game or if you would prefer to weaken Carthage or the Greeks immediately. Carthage is actually considered (historically) as the target of the Scipii and the Greeks are considered (historically) as the target of the Brutii, but both are excellent trade alliances for the Julii, especially if you build a port in Ariminum immediately. However, if you would prefer for the Roman factions to be stronger for more of a challenge later in the game, you can always allow the Scipii to take all of Sicily.

Harun, listen. If you don't feel the game is challenging enough for you, what's to stop you from making your own rules? What's the earliest year that you've hit the victory conditions? Well, OK. Do it ten years earlier.

And if that's not a challenge, then try fifteen. And so on.

Truthfully, Harun, the AI is not even close to a match for me also. Maybe, you know, the very first time you played a TW game, it seemed like a real challenge. You know, maybe, if you think about it, there were numerous possibilites you'd never encountered before in a standard RTS or action game. And maybe you've become so jaded over being a "professional" that you feel content in being critical of an AI.

The first Chess Master that ever got beat by an AI felt the same way. He thought an AI would never be able to beat him, and was so confident that he offered a $10,000 reward (which was nothing to him based on his chess championships). But he did get beat.

roguebolo
04-13-2005, 06:56
I have been asked time and again, and I have been challenged on my theories, to provide some concrete evidence.

Now, I'm going to ask you gentlemen the same thing. You provide me with some concrete, empirical evidence. How, you ask?

Well, for starters, use the first 20 moves in its sanitized format, if you prefer, and add up the relative strength that your own faction needs to conquer to win the game. Consider every single other faction as your eventual enemies -- which, of course, they will be -- add up their armor and arms bonuses, balancing pikement against cavalry, elephants against flaming arrows etc. And you tell ME how much of a differential you can find that is created by those first 20 moves, with or without a save/load. Mathematically. Numerically. Emperically. Prove this to me

Any takers?

HarunTaiwan
04-13-2005, 08:03
Simply do the reverse of your test: prove to me that gaining provinces is not useful in terms of arms, etc. More resources, especialy exterminating, means better armies, more provinces can mean better interior lines, less battle fronts, etc.

I give up, though. I guess we'll never know if it's a bug, a feature, poor programing, or just AI's state of the art.

Next time, may I suggest to CA that any re-assessment should be done on a fixed amount of turns basis with no relation to load/save. (I think that would be obvious to anyone working the problem in their mind, but I'm not a programmer.)

Back to the real job! It's been nice talking.

Midnight
04-13-2005, 12:00
Please allow me to clarify (I don't have a terribly technical mind!):

If I play the first 15 or so turns straight, no save\load, and let the factions 'settle in' then, if I'm reading roguebolo's posts right, things should be much smoother for me to play in more 'normal' sessions of 1-5 turns (although, the more turns played, the better?)?

roguebolo
04-13-2005, 18:32
To a layman, it is not desirable to have the AI lift sieges and wander off when you were about to sally and break them. It is not desirable for an AI faction to make a ceasefire with you and attack you on the next click of the end of turn button.

I usually sally immediately, but the fact of the matter is that in my midgame tests, wherein the AI alternately relieved and reinstated sieges due to save/loads, that was a better strategy for the AI than if they had maintained the sieges (as they do without save/loads). First, it denied me the use of the castle to protect my flanks while approaching them and to protect my onagers, which can fire over the castle walls.

Second, it allowed them to become the defenders on a realtime map of their choice.


So to the devs, it might be "functioning as designed", but that design is fundamentally flawed. I don't think it's any kind of a reach to say poor design logic is a bug.

Again, you're assuming that everyone agrees with you that the design is fundamentally flawed. You're saying that you have a bug and I don't because of our perceptions and opinions of the game design? Because our expectations are different?

Old Celt
04-13-2005, 19:44
Again, you're assuming that everyone agrees with you that the design is fundamentally flawed. You're saying that you have a bug and I don't because of our perceptions and opinions of the game design? Because our expectations are different?

No not at all. What I'm saying is that if the AI would have assaulted without a save/load involved, I should be able to get that assault to happen after a load. The save didn't change anything. This special reassessment makes the AI do illogical things because there is no continuity between what it was doing and what it is doing after a load.

You can say it's conditional, and we can test for it, but it isn't logical, and there's no way it makes better sense for the AI to merely harass me with the threat of a siege when the logical, and much better strategic move is for it to capture the settlement outright. The only logical reasons for dropping a siege are to relieve their own threatened outposts, or because they are hopelessly outmatched by the garrison. This is common sense.

I make no assumptions about who agrees with me, as it is immaterial here. We are talking about simple problems in military strategy which can be solved with just a small modicum of logic. There is only one best move for the AI, in each siege situation. That best move is lost quite often by a reload. I say that is a design flaw, and believe from much experience with users and bug reports, that this would show up on my desk as a bug report.

I must also point to the totally haywired Protectorate behavior and say the same thing: it isn't logical for the AI to behave this way; it is a design flaw, and many users would simply call it a bug. I could say it wasn't a bug all day long, but I'd be in there coding a fix for it, just as sure as death and taxes.

roguebolo
04-13-2005, 20:06
As far as the Protectorate issue goes, I've had no luck whatsover duplicating it, although I've only tried it in midgame. I just talked with a friend on the phone last night and he had no luck either.

In the example I gave before, the AI actually was outmatched by the garrison. Also, I've mentioned before that one of my complaints with the load game behavior is that it does not allow me to be the defender in a castle assault.

In a castle assault, the defender has the advantage. So it is to the AI's advantage to taunt me until I attack it. That's not a bad strategy. It's actually a far worse strategy for it to maintain a siege with an inferior force, as it attempts to do without the load game reassessment.

In retrospect, in all of my testing, the only time I've ever seen the AI maintain a siege or perform a castle assault despite successive load games is when it seriously outmatches the garrison. However, I was not the besieged party in any of these instances.

I don't think any of the above behavior is a flaw. If I were to point out some serious flaws, they would include things like how easy it was to bribe your way to victory in previous patches/releases. However, that has been fixed in the latest patch.

Old Celt
04-13-2005, 21:16
I've seen the Protectorate bug in action myself, and seen the test results in graphic detail posted by others. I think that's the worst one yet as it can totally unbalance the game as the AI creates whacky Protectorate arrangements willy nilly as it reassesses after loads. I don't know why you can't duplicate results RB, but our purpose here is to analyze demonstrated, reproducible results. Until you give me a test sequence to reproduce your results, I can make no sensible comments about your data.

I would like to know if others here support my conclusion that the reassessment process is performing illogically? Specifically, when the AI has the means and time to execute a capture of a city, it will do so when no loading of game interferes, but deliberately choose not to capture the city ASAP when a load game happens.

roguebolo
04-13-2005, 22:05
I can send you the save games in question. Since they are midgame saves, I obviously can't describe each and every move from the start of the game in order to duplicate the situation. But I can let you try to establish a protectorate yourself from my save position. It won't work. And that is duplicatable.

I originally encountered the Protectorate exploit because I was bound and determined to have Gaul submit to Protectorate status after laying siege to their last remaining territory in Celtiberia, so that I wouldn't have to worry about having to keep it garrisoned. They would under no conditions yield to my demands. So I went online to see if anyone had any advice about Protectorates. That's when I encountered the exploit; the person described it as working every single time, without failure, so I figured I'd just do it the quick and easy way. After several tries, I decided it just would not work.

One of the developers had also posted in that forum (I wish they'd do that more), and described a process that was somewhat longer and more arduous. I followed his advice, and a few turns later they finally agreed to a Protectorate for about 3-4,000 Florins.

I had the exact same results with Spain in Lusitania a few turns later.

I have a close friend who's also an avid RTW player, and I asked him to try it as well, in his game. He experienced the same results.

The exploit seems to work well near periods of extrema, in the absence of threats or alliances.

However, I HAVE observed an AI faction submitting to Protectorate status to another AI faction, when it did not seem reasonable. Specifically, in the same game Germany is a Protectorate of Brittania -- yet Germany is still strong, with a number of territories. Although this might seem illogical, it certainly doesn't work in my favor. It creates a situation in which they function almost as a single faction -- their alliance and military access and trade agreements give them the combined strength of a very large faction, which seems to be what people are saying they would like to confront later in the game.

As the first respondent, I will state that I agree with you -- but only partially. My agreement is restricted specifically to rebel territories, in which the AI will illogically abandon the territory for no gain. I think this is an oversight in the game design because in general the rebels seem to be treated as "just another faction".

Pode
04-13-2005, 22:11
Blasted work and school are keeping me from being able to do this myself, but here's a test I'd like to see. RB has advanced the hypothesis (if I understood him correctly) that most of the AI flakiness we have observed after loads settles out as you approach midgame, especially with the player being active. However, this is tough to test on other machines since being active produces a unique campaign situation and so we don't have a controlled test. I'd like to see someone post a savegame file where we can all download it easily, one from a ways into a campaign. (I'd like to volunteer RB for this since he somehow seems to not have the bu . . fea. . . issue, and I'd like to dig into that a bit. However, anyone's game will do, so long as everyone is working from the same game file). Run the standard player-passive tests from that mid-game point, 20 turns w/o loading, followed by 20 turns loading every turn, and compare AI province conquests. 20 turns loading at different frequencies would be interesting too, and if we coordinated beforehand who would run what frequency test it wouldn't be massively time consuming for any one of us to do. Thoughts?

Bhruic
04-13-2005, 22:27
I'm was curious about roguebolo's claim, so I fired up a game I'd played that was in roughly mid-game state. I was playing the Greeks, and was at war with the Romans (all of them), Macedonians and Pontus.

I had a diplomat in one of my cities, with a diplomat from the Julii near, and a stack of Macedonians. So after loading, I first tried to get the Macedonians to become my protectorate. They refused. I asked for a ceasefire, they demanded 1940 denarii in return.

So no luck with them. I then tried the Julii diplomat. Request they become Protectorate and they agreed.

The only major difference between the two I could see if the advancement of relationships. I've had no real contact with the Julii, they declared war because of the Scipii and Brutii attacking me. In fact, I don't think I've even fought one of their ships.

The Macedonians, on the other hand, I've been fighting since turn 1. I've declared war on them twice.

So it's possible that the "Protectorate bug" only works if you don't have any diplomatic history with a faction?

Bh

roguebolo
04-13-2005, 22:29
I think it's a very good idea, and I'm sure I'm going to get the response that people just don't have enough time, but I think multiple people should upload save games so that we also have tests that eliminate other factors. For instance, my tendency to create a huge number of alliances could affect the way that my games are behaving. In general, I'm finding that a large database of save games is allowing me to test different theories, and to challenge them in situations that are contrary.

At the very least, if I'm going to volunteer, I would like to volunteer the most enigmatic of the situations I've encountered. Specifically, this is the Turn 12 and Turn 14 scenario. Both are very close to the period of extrema, which means they should exhibit at least SOME of the AI behavior exhibited by the sanitized 20-turn test. However, turn 12 exhibits it in the purest fashion -- straight lines across the board under territorial rankings with nothing but save/loads and "End Turn". Turn 14 ends up the exact same way as when I was really playing, with a number of territorial acquisitions. The only difference is that I made three alliances in between the two turns. Those are the ones I would like to submit, because they are the ones that I understand the least. They are the reason for some of the theories that I've promoted here.

If you just want to see a save game where the AI alternately relieves and reinstates sieges, I could provide that too. It does give some information, but I don't think it's quite as useful, nor as enigmatic. You're basically going to come to the same conclusion I did -- you gotta kill 'em, whether you do it outside your castle walls or a few miles away.

One thing that would be very useful is the ability to turn OFF fog of war in mid-campaign. Do any modders out there offer this capability?

[*edit*] Actually, in retrospect, I might be able to hack it in the save game file. But I'd prefer to avoid this extra work if someone can just point me to a mod solution.

[*edit*] Actually, heh, now that I think about it even more, it might be possible to change the load game behavior by hacking the save game files. If "state" information is stored as a numerical value, then changing this "state" information could change the way in which the AI moves after a load game...

Pode
04-13-2005, 22:35
toggle_fow in the romeshell window works, although when I loaded your turn 19 game you emailed me I had to toggle it, load and toggle it again before it finally took and began truly toggling. Maybe it gets borked by loading too? ~;)

Bhruic
04-13-2005, 22:37
I think it's a very good idea, and I'm sure I'm going to get the response that people just don't have enough time, but I think multiple people should upload save games so that we also have tests that eliminate other factors. For instance, my tendency to create a huge number of alliances could affect the way that my games are behaving. In general, I'm finding that a large database of save games is allowing me to test different theories, and to challenge them in situations that are contrary.

It may have some utility, but I'm not sure how useful it would be overall. A fair amount of a game's understanding comes from playing the turns to get there. Starting from a set point in would mean that you may have missed a great deal of the give-and-take that goes on. For example, let's say on Siciliy, that Carthage takes the Greek city, but then loses it to the Scipii. If I saw a game after that point, I'd have no idea that Carthage took the city (and fought the Greeks). That could taint the results.


One thing that would be very useful is the ability to turn OFF fog of war in mid-campaign. Do any modders out there offer this capability?

Hit ~
type "toggle_fow"
(type "toggle_fow" again to turn it back on)

Bh

Kraxis
04-13-2005, 22:39
Rouge, while the harassment might be better against you, it is only better because your are a much better commander than the AI. You can outsmart it pretty much every time. But since other AI factions fight auto-calc that is not likely to be a good strategy against them.

Result is that the AI does not expand but gains something of a better chance at getting a draw with you. I would rather that it lost its assault on me and gained other cities so it wouldn't be worn down too fast. A war with Dacia as a two province state is no fun when we talk about 40 turns into the game. True that could happen in a no save/load game but at least the Dacians have had the possiblity of expanding correctly but have gotten beaten at it.

And I wouldn't say that harassment is effective. It only gives me more time to bring in reinforcements if my garrison is very small or weak, and if it is strong it means that I will most certainly not suffer much damage to my economy.
I have been half-beaten enough times in sallies for me to believe that a sustained siege is better than a run-around. And it isn't always possible to win a sally. If you sit with 2 Peasants, 3 Militia Hoplites and a unit of Peltasts there isn't much you can do against a large army consisting of archers and/or horse archers plus a bit of other troops.
In such a case a broken siege is very bad for the AI as it will result in it never gaining a relatively weakly defended city.

therother
04-13-2005, 23:15
The LM has webspace available to host files. PM me and I can arrange for the file to be uploaded.

On the issue of this thread, please look through your previous posts and remove anything that is not directly related to the investigation of this issue. That means discussion of patches, CA, Activision, bugs and so on. This thread was intended to be clean of such discussions, and it is our intention that it will be. One way or the other.

roguebolo
04-14-2005, 00:36
Actually, on my way to the store just a few moments ago, I realized that one of my statements about hacking the save files was incorrect. Although it might be possible to modify a save file so that the behavior of the game changes after a load, it would be almost impossible to do so without the benefit of the source code. The reason for this is that typically you attempt to save a game in two identical situations with only one factor changing...then you analyze what data changed in the save file.

Unfortunately, the one thing that I want to try to change is consistently the same after each load game. Hence, no changes in the save file.

I'm going to PM you in a few seconds. I'm going to send all three of these save games -- the ones called "Turn 12" and "Turn 14" are the enigmatic ones, and the one called "DefendThapsus" illustrates the behavior of the AI during midgame.

We can address the issue of Protectorates after you've taken a look at these.

Kraxis
04-14-2005, 04:13
Ahhh but rouge can also be meant in the context of you being 'a rouge', a sort of romanticised bandit. ~:) And since your name is in fact two names (first- and surname) then rouge is fair enough, especially since you have chosen to write it small.
But yeah it is also a colour. ~;) Anyway, I will refer to you as RB from now on, ok? ~:cheers:

I agree with therother that what we call this issue is of little point here. To some it acts too strangely and thus to them it must be a bug, to others it is merely a weak code of some sort, others yet an unfinished feature. But what we can agree on is that loading after a save has a grave impact on the game if done fairly often. We don't agree on how grave it is.

Bromley
04-14-2005, 13:18
FIRST: Apologies, but I have missed out Rhodes (Greeks) in all of my tests. It's immaterial to the conclusions though.

Summary

Thanks to RB for mailing me his files. I've looked at them and have concluded that they in no way contradict the statement that loading the game damages the AI expansion.

Any other conclusions/theories about the effect of alliances on the AI are for others to advance. My only objective in this test was to determine whether or not save/load produced results that I might expect from earlier tests.


Details

RB supplied 3 files which I refer to as "12", "14" and "19". Those numbers don't directly translate to turn numbers. Assuming that we call the first turn (270s AD) Turn 1, then they refer to turns 14 (264w BC),16 (263w BC) & 20 (261w BC) respectively.

The tests use "12" and "14" and run until 261w BC, which is when "19" was saved. The first thing to note is that these tests cover relatively short periods (6 & 4 turns), so I've also performed an couple of extended runs on "14" that go for 6 turns to 260w.

Thanks to Bhruic for telling us how to turn FOW off on someone else's save. That made the comparison a lot easier and allowed me to see a lot of interesting stuff that I would have otherwise missed. BTW, anybody trying it may find that they have to type it into the console twice to get it working properly.

As well as recording the territory data, I've also listed a bunch of locations that I found under siege in some of the runs. This is not necessarily comprehensive, but they do account for many of the sieges. x means that it wasn't besieged, s means that it was (followed by who is doing it) and lifted means that it was no longer sieged (note that this may have occurred in the previous turn). Likewise, taken means it was taken (duh!) but not necessarily in this turn. If there's no mark then I didn't check on the status.

"12" Test

A simple one to conclude. Look at the increase in total territories from 74 to 81 when no loads are made. As we've come to expect, zero growth with save/loads every turn. Also note that the no-loads column (interval=NIL) has a bunch of cities under siege, whereas the save/load every turn (interval=1) column has none. This means that the difference between the two runs could be expected to increase if we continued for a few more turns.

"14" Test

You'll see that the total territory only increases by 1 up to 261w BC whether you load or not. However, this is not too surprising as there have only been 4 turns. As we're already 14 turns into the game, it's reasonable to expect that the AI has already taken many of the easy Rebels. Indeed, we know that there have been 6 Rebels taken by the start because I recorded to total territory in 270s in my earlier tests as 71.

When I extend the test by 2 turns to 260w BC, you see a huge change. The save/load run shows no change at 78. However, not saving or loading for those two turns allows the AI to expand by 8 territories! That's huge when you think that in the preceding 20 turns it had only expanded 7 territories.

The reason can be seen in the Sieges box. There are a huge number of outstanding sieges at the end of the first 4 turns without saving. A large number of these succeed, along with a bunch of others that I didn't record like Noricum.

So again, this is evidence of the loadgame feature being pants.

"19"

Included for completion, this is RB's save at 261w from when he was playing the game. One possible conclusion is that he reloaded approximately every 3 turns when he was playing, as the total territory increase is similar to my interval=3 test that I ran previously and that covers a similar length period. In fact this conclusion probably applies to "12" and "14" because they similarily exhibit relatively little expansion.

Strangely enough, I did not replicate RB's results where he saw territorial expansion compared to "19" using "14" up to 261w BC. However, I did note that Pontus managed to expand by 1 territory despite save/load every turn. Also, there were a few sieges in place when I finished that run. Maybe sometimes with save/load an army will siege a Rebel and, as the Rebels have their turn at the end, the Rebels may sally before the turn ends? That way, the AI would be able to win a siege in one turn even with walls being present.

http://img205.exs.cx/img205/1680/rougebolotestresultstable1qs.jpg

Kraxis
04-14-2005, 14:35
http://dictionary.reference.com/search?q=rouge
http://dictionary.reference.com/search?q=rogue

The content of this post will be removed fairly soon. Sorry, I couldn't resist butting in.

-Simetrical
Hahaha.... I see I have made a fool of myself. I guess I use the term 'a rogue' too little. I wonder at how I missed the point. Maybe because rouge is pronounced in a french style (roosh).

Anyway, thanks Bromley.
Clearly the AI had built up its forces by the end of 14, thus enabling it to expand mightily.
But I think this is obvious proof of something not being right.

Bhruic
04-14-2005, 17:12
Well, for starters, use the first 20 moves in its sanitized format, if you prefer, and add up the relative strength that your own faction needs to conquer to win the game. Consider every single other faction as your eventual enemies -- which, of course, they will be -- add up their armor and arms bonuses, balancing pikement against cavalry, elephants against flaming arrows etc. And you tell ME how much of a differential you can find that is created by those first 20 moves, with or without a save/load. Mathematically. Numerically. Emperically. Prove this to me

So you would like to posit the theory that having all of the factions remain with their original provinces is functionally equivalent to having one single faction that controls all of their combined provinces? That an enemy with 80 provinces is no harder to fight than 20 enemies with 4 provinces?

Because, frankly, I find that idea to be extremely silly. One of the saving graces of mid-game MTW was that no matter where you were, there would almost always be another large empire forming. That gave a focus and credible threat to your position. Yes, there were many things you could do to work around this, but that's outside the main point. In RTW, with frequent loading/saving, you don't get that situation. And working through a smaller empire is demonstratably easier than a larger one (assuming all conditions are equal).

Bh

roguebolo
04-14-2005, 22:16
First, those two turns were not selected because they show an absence of the AI's anomolous behavior; they were selected because they were close enough to the period of extrema that they should still exhibit the behavior in spades, which the one labeled Turn 12 certainly does. That's why I keep referring to it as some sort of "breaking point".

I've had different results playing from the save game labeled Turn 14 until 261 BC, because sometimes in addition to Pontus gaining a territory, the Egyptians and Seleucids will exchange one as well. This might just be due to a different roll of the dice in an autocalc situation.

I decided to move a little further back toward the point of extrema, and started at Turn 10 instead, since it seems to be on the other side of the "breaking point". I played forward to turn 19 without any save loads or making any new alliances, anticipating that the AI would exhibit its standard behavior and that by turn 14 there would be an equal number of territorial acquisitions to those that were in my save game.

Unfortunately, the results were not exactly what I expected. The AI was actually less aggressive up to turn 14, as there was precisely one less territorial acquisition. Pontus neglected to take a rebel territory. I don't know if the lack of alliances had any effect on this or not. However, if I continue playing from this point without save/loads until turn 19, Pontus remains dormant and Brittania and Carthage become more active.

I think I've discovered why "toggle_fow" must be typed twice to turn off fog of war. The fog-of-war flag is set to whatever is in the preferences.txt file and is overridden, but does not change value, by the information in the load game. Hence, if the fog-of-war flag is set to FALSE in preferences.txt, the first time you type it it will be set to TRUE and the new value is applied immediately to the game, so that fog of war stays enabled as it was marked in the save file. On the second invocation, it gets reset to FALSE and fog of war gets disabled.

roguebolo
04-14-2005, 22:34
So you would like to posit the theory that having all of the factions remain with their original provinces is functionally equivalent to having one single faction that controls all of their combined provinces?

No, but in midgame when my faction is larger, the remaining nearby factions tend to ally against me, functioning in a manner similar to a very large faction. I have seen no evidence whatsover that pressing "End Turn" without load games will result in a few large and dominant factions within, say 100 turns, nor that the AI would be substantially more challenging in such a situation.

My gut feeling is that however this situation might turn out, neither scenario would provide as much of a challenge as if the AI factions did a better job of producing more elite troops and providing them with the latest weapons and armor upgrades.

Taking Sicily as an example, which seems to be upheld as the prime example of the ineffectiveness of the AI's behavior, I know of several other actions on the part of the human player that will prevent the Scipii takeover of Sicily, in addition to load games. 1) If the human player is one of the other Roman factions and decides to prevent it by forming alliances; and 2) if the human player is Greek or Carthaginian, and decides to resist the takeover through military action. (And why doesn't the AI do this if it hasn't been "crippled" by load games?)

So there are at least four factions whereby human interaction decides the course of the game regarding nearby factions. However, load game behavior seems to inhibit the AI's takeover of rebel territories (with a few notable exceptions), regardless of any amount of human interaction. This is why I consider the rebel territories to be the greatest flaw in the reassessment logic.


Originally Posted by Simetrical
http://dictionary.reference.com/search?q=rouge
http://dictionary.reference.com/search?q=rogue

The content of this post will be removed fairly soon. Sorry, I couldn't resist butting in.

-Simetrical

Note that in the case of my handle, as in the case of Laumer's books, "bolo" is a noun and "rogue" is being used as an adjective. To quote the adjective definitions from that link, and show how they apply to a wargaming handle:


2. Large, destructive, and anomalous or unpredictable: a rogue wave; a rogue tornado.

3. Operating outside normal or desirable controls: “How could a single rogue trader bring down an otherwise profitable and well-regarded institution?” (Saul Hansell).

Laumer's novel by the same name is, coincidentally, about an AI supertank (a "bolo") with a bug in the AI programming...and it requires the entire US military to bring it down when it goes bersernk. ~;)

Pode
04-15-2005, 01:45
OK, I'm a bit confused, been a bad day at the office and my brain is fried. Bromley loaded RB's earlier saves and found that loading had a detrimental effect on the AI when he worked from the earliest save using the standard passive player test technique. RB says that's what he expected, because the early saves are close enough to the start of the campaign that it should still be wonky after a load. If both of you load up the *latest* save and go forward from there with player passive tests like Bromley did, what happens? I guess I still haven't seen (or been bright enough to recognize) evidence for or against RB's theory that the AI gets better in the midgame, away from the starting extrema. I think it's a good theory, and it would explain both what we've tested so far and what CA said to us, so it's attractive emotionally (we can all be right!), but I want to know for sure one way or another.

Bhruic
04-15-2005, 02:49
No, but in midgame when my faction is larger, the remaining nearby factions tend to ally against me, functioning in a manner similar to a very large faction. I have seen no evidence whatsover that pressing "End Turn" without load games will result in a few large and dominant factions within, say 100 turns, nor that the AI would be substantially more challenging in such a situation.

Hmm, then maybe you should look for some. The Roman factions especially will become quite large and quite powerful if the player doesn't do something to stop them early on. Egypt is another powerhouse. Sadly, the other factions don't expand as much as might be hoped for. But suggesting that the AI isn't more effective with more territory seems foolish. They are demonstrably so.


My gut feeling is that however this situation might turn out, neither scenario would provide as much of a challenge as if the AI factions did a better job of producing more elite troops and providing them with the latest weapons and armor upgrades.

I'm sure they would, but I think that's going beyond the scope of the discussion.


Taking Sicily as an example, which seems to be upheld as the prime example of the ineffectiveness of the AI's behavior, I know of several other actions on the part of the human player that will prevent the Scipii takeover of Sicily, in addition to load games. 1) If the human player is one of the other Roman factions and decides to prevent it by forming alliances; and 2) if the human player is Greek or Carthaginian, and decides to resist the takeover through military action. (And why doesn't the AI do this if it hasn't been "crippled" by load games?)

This is flawed logic. The fact that the player can actively work to oppose the AI in no way excuses the fact that the AI will also be hampered by the save/reload issue. If there was a bug that automatically killed any army you encounter, would you excuse that because you're likely to win the encounter anyway?

I'm really not sure where you are trying to go with that paragraph. I don't understand how you think it reflects on the save/reload issue, or why you think it excuses if (if, in fact, that is what you are trying to suggest).

Bh

roguebolo
04-15-2005, 03:46
Originally Posted by roguebolo
No, but in midgame when my faction is larger, the remaining nearby factions tend to ally against me, functioning in a manner similar to a very large faction. I have seen no evidence whatsover that pressing "End Turn" without load games will result in a few large and dominant factions within, say 100 turns, nor that the AI would be substantially more challenging in such a situation.

Hmm, then maybe you should look for some.

Actually, I just did. I realized that in my current game in progress, I was in a strong enough situation to test exactly that. I control 21 territories and the vast majority of my empire is too far away from the other factions for them to worry about -- such as Spain and Northern Africa from Tingi to Thapsus. There were numerous rebel territories in the North and around the Ionia area, as well as a few scattered about elsewhere.

I have so far played 50 turns without save/loads and with no user activity except to repel Brittania's sieges at Lemonum and Condate Redonum, replenishing the forces afterward, and modifying taxes and games to keep my territories happy and green. The game is running in the background as I type this, waiting for the next 50 turns.

During the first twenty or so turns, all of the other factions quickly nabbed the nearest rebel factions. Pontus was the luckiest (why the heck is it always Pontus?) because its starting position allowed it to grab the most rebel territories. I think it managed to take three.

As soon as most of the rebel territories had been claimed, the game became very static, with no factions expanding or acquiring each other's territories except in one instance when the Brutii took a Germanic territory (I'm obviously watching with FOW disabled).

At a certain point the Brutii got very lucky because all of Germania's territories turned suddenly rebel, and the Brutii began to absorb them into its empire. However, due to bad management or something, it has been losing these territories as well, sometimes reacquiring them.

Other than the original free-for-all with rebel territories, and the Brutii's ridiculous attempt to maintain civil order with its new acquisitions, there has been no expansion worthy of note. No faction has established itself as a dominant one, although Pontus and the Brutii have a somewhat larger "presence" due to their rebel acquisitions.

I'm about to press "End Turn" another 50 times. I would think that after 100 moves, with no save/loads, that SOME faction should eventually establish itself as the dominant AI faction. Don't you? After all, that's about 1/6th the maximum moves allowed in an entire game!

Pode
04-15-2005, 04:05
Thanks to therother I was able to get a vanilla 1.2 install going, and ran an abbreviated test while I waited on my grad school team to edit a draft I sent out. Loaded RB's "19" game and ran forward passively for 6 turns. Without loads, five factions took ~ 10 provinces (not keeping close count, sorry). With loads every turn, not one faction gained a single province. Not conclusive, but convincing to me.

Now if I follow RB's last post, he's also advancing the theory that the AI aggression level (and thus siege maintenance) is a function of the player's activity. I can't think of a good way to test this, since activity will produce changes that invalidate the controlled test scenario.

Bhruic
04-15-2005, 04:17
As soon as most of the rebel territories had been claimed, the game became very static, with no factions expanding or acquiring each other's territories except in one instance when the Brutii took a Germanic territory (I'm obviously watching with FOW disabled).

In general, a lot of the factions seem to be almost too balanced. In my games, Germania and Britannia are almost always at war. When I turn FoW off (I don't play that way), I can see armies sieging cities. But I never see them take territory (or, if they do, they lose it again quickly).

But the Julii, Brutii and Scipii will almost always expand after a period of 30-50 turns. For some reason they are very slow starters (other than the initial moves). That is, of course, unless I block them.


At a certain point the Brutii got very lucky because all of Germania's territories turned suddenly rebel, and the Brutii began to absorb them into its empire. However, due to bad management or something, it has been losing these territories as well, sometimes reacquiring them.

Unfortunately the AI is remarkably bad at maintaining order in their cities. I'm not sure why. I've done a few things to try and work around it, but they still make bonehead moves from time to time.


I'm about to press "End Turn" another 50 times. I would think that after 100 moves, with no save/loads, that SOME faction should eventually establish itself as the dominant AI faction. Don't you? After all, that's about 1/6th the maximum moves allowed in an entire game!

It may happen, it may not. I suspect that some of the empires will be larger, while others will have gotten eaten up. The Gaul tend to fall pretty quickly once the Julii actually get around to attacking them. Carthage will tend to lose its territory to the Scipii. What happens in the Greek area is a little more of a toss up, as Macedonian can sometimes put up a decent fight.

Although, I'm not sure exactly what faction you are playing, so I'm not sure what influence you'll have on the game. From the sounds of it, you are playing out west, possibly Carthage? If so, that will certainly impact whoever is closest.

Regardless of how it turns out, however, I'm not sure whether the general passivity of the AI precludes the existence of an even more passive AI when save/load occurs.

Bh

HarunTaiwan
04-15-2005, 04:33
Thanks Bromley for the outstanding tests. I think that settles it. If we need a game save from later on, I'm sure we can find one.

roguebolo
04-15-2005, 05:57
My theories haven't changed, Bromley. I still contend that AI siege behavior in midgame has no real effect on my gameplay. I've noticed you've made no mention whatsover of the midgame savegame I sent you, called "DefendThapsus", in which the AI behavior seems consistently aggressive toward the human player.

Those early moves were not intended to disprove the AIs behavior in response to a load game; they were intended to illustrate different points where that behavior changes slightly, in an attempt to understand the reasoning behind the behavior. As I've stated before, no one has made any kind of effort to explain the behavior or reasons why, in some cases, it seems to change.

In answer to your question, Bhruic, I'm playing the Julii and Gaul has been reduced to its capital at Celtiberia and is my protectorate while Spain is reduced to its capital in Lusitania and is neutral toward me. So basically the bottom, left side of the map is a non-issue.

I've now pressed "End Year" 80 times, without a load game (or a save game), and the factions are still pretty static across the board. The Brutii are still bumbling their management in the north, gaining and losing rebel provinces almost each turn.

However, Pontus has capitalized on its good fortune in being able to acquire so many rebel territories at the beginning of those 80 moves that it has acquired an additional territory and also managed to convince Armenia to become a Protectorate. Likewise, the Brutii have managed to convince Dacia to become a Protectorate. That particular alliance could present something of a challenge, especially if the Brutii ever figures out how to keep its provinces from rebelling. A few other territories changed hands, with Thrace surprising me when it attacked Macedon.

But the truth is that no AI faction has established itself as a dominant one. Some have gained and then lost territories, but those that managed to grab the most rebel territories in the grab-fest at the beginning are still the ones with the greatest presence. At this point, I have sat patiently in my empire, doing nothing but watching for 1/8th of the maximum number of turns in a game, waiting for some faction -- ANY faction (except, of course, Gaul or Spain) -- to establish some kind of clear dominance, and none of them have done so. If I had actually been playing, the game would surely almost be over.

So has the absence of save loads created a more challenging game?

I think the best point is the one that bhruic made:


Regardless of how it turns out, however, I'm not sure whether the general passivity of the AI precludes the existence of an even more passive AI when save/load occurs.

I'm almost sure that it does not. Despite the fact that there is no dominant AI faction, there's still a problem regarding the rebel territories. In my test, Pontus in particular would have had a much smaller presence than it currently does because of the fact that it would most likely NOT have grabbed the rebel territories, at least so quickly, if there had been a large number of load games. Other AI factions would have been similarly affected, but not as much as Pontus.

I don't think this is really specific to any save game. I think I could try it from any save position where I'm sure I can keep happiness in my territories and fend off invasions, so that I can observe the AI factions playing against each other for an essentially unlimited number of turns, and it would yield similar results. I'm also relatively sure that if I had been doing a lot of load games the majority of the territories that were originally rebel-controlled still would be. However, without load games, there are only three rebel territories remaining if you don't count the ones the Brutii keep losing and gaining.

I'm not sure if I'm going to let this go on for another 80 moves or not; it's still running in the background. But I think it's pretty clear that I'm never going to see a game with an ending like MTW, where it pretty much came to a showdown between myself and one other faction -- whether or not load games are a contributing factor. And that's fine with me, since it adds a little variety to the game as well as a little historicity.

Bromley
04-15-2005, 12:28
My theories haven't changed, Bromley. I still contend that AI siege behavior in midgame has no real effect on my gameplay. I've noticed you've made no mention whatsover of the midgame savegame I sent you, called "DefendThapsus", in which the AI behavior seems consistently aggressive toward the human player.

As I stated in the Summary, "My only objective in this test was to determine whether or not save/load produced results that I might expect from earlier tests." My objective was to counter (or support, if it turned out that way), the claim made over on .com (http://p223.ezboard.com/fshoguntotalwarfrm4.showMessageRange?topicID=1301.topic&start=21&stop=40) by ML Crassus about your posts:

"While it doesn't nescessarily doesn't prove without a shadow of a doubt that the siege bug is nonexistant, it does call into question the effectiveness of these tests."

Although I haven't mentioned the DefendThapsus savegame here, I did in the email that I sent to you. "I haven't looked at the DefendThapsus one because I'm getting all tested out :) ."



Those early moves were not intended to disprove the AIs behavior in response to a load game; they were intended to illustrate different points where that behavior changes slightly, in an attempt to understand the reasoning behind the behavior. As I've stated before, no one has made any kind of effort to explain the behavior or reasons why, in some cases, it seems to change.

For me, the reasons why it's screwed are not really important. Even if we knew exactly what was wrong, that doesn't help us if CA refuse to consider it as a bug/screwed feature. Of course, they're now apparently claiming that they never called it a feature. As igaworker asked, "I am not trying to be a smart behind, but my question now is this: If the reassessment is not a feature (as Mike B says) and it is not a bug (as Shogun says) then what is it?"

Of course, as the thread was closed before they could answer, we may never know ~D .

Pode
04-15-2005, 15:36
Let me suggets one further test. If we use someone's save game from the civil war timeframe, there should be a long track record of player activity and aggressiveness. Hopefully this info is stored in the file and maintained through the save and load. A short test period of player passivity (5-10 turns) would hopefully not skew that average enough to cause the AI to shift into a passive strategy.
If the AI acts aggressively with and without loads, this test would support RB in saying the AI reacts to player activity. If it is aggressive without loads and passive with, I think we can conclude that the extrema theory is not valid and the original "it's just screwed up" theory best fits the data. If it's passive for both, I think that would show that the AI is reactive but only to the player's current level of activity, which may be WAD but is an astoundingly bad WAD. The last thing the AI should want to do is time its attacks to coincide with when I have armies in the field and am ready for it.
Has anyone taken a 1.2 campaign up to this point without giving up in frustration as I did? Are they willing to post such a game here that we can test with?

roguebolo
04-15-2005, 17:44
Pode,

When I tested from midgame, both with the savegame entitled "DefendThapsus" and with the sequence in which I did 80 moves without save loads (which is still running in the background), the AI never ceases its aggressiveness toward the human player. To be quite honest, the AI doesn't have much of a choice; in both situations, those AI factions had no one else to be aggressive toward; in "DefendThapsus" it was seeking to retake its territories from an aggressor - myself. (In general this seems to trigger aggressive behavior on the part of the AI.)

The difference was the way in which it manifests its aggression. The AI tends to attempt to maintain a siege without a save/load, or relieve one with save/loads, resulting in alternately establishing and relieving sieges when there is a load game each turn. In many cases, relieving the siege gives it a better chance of doing damage to my armies if I decide to attack it in open terrain, since it is clearly outmatched. "DefendThapsus" is particularly illuminating because if you play with save/loads for several turns, Brittania will start besieging two targets in the north (Lemonum and Condate Redonum), while Numidia is besieging two settlements in the south (Carthage and Thapsus). As a result, you can observe the behavior of four sieges simultaneuosly.

However, if enroute to a siege, a "save/load" does not cause the AI to forget its target. So the targets never really change, just the way it manifests its aggression.

In the 80-move test I did observe the AI choosing to relieve sieges despite the fact that there was never a load game. In "DefendThapsus" and similar savegames where sieges were in effect, I have not yet seen it elect to maintain a siege after a loadgame except on rare occasions wherein the target is a weak rebel territory. Bromley and others have reported that there are indeed such instances, but that they are limited to certain settlements which appear to be "immune" to save/load behavior. In the long run, though, I don't consider alternately relieving and reinstating sieges to dramatically effect gameplay. I still need to eventually oust the assailant from my territories.

After allowing the AI to play 80 turns without any load games, I also don't consider the general passivity of the AI to have any dramatic effect on the overall political landscape, with the exception of the fact that loadgames will tend to cause the AI to leave rebel territories unclaimed. Without them, the AI will snatch them up in what I've referred to as a "grabfest". After observing numerous tests in numerous starting scenarios, the behavior of the AI toward rebel territories is still my main complaint regarding loadgames.

80 turns is about 1/8th the maximum turns allowed in a game, and maybe 1/4th the moves I would actually expect in a game. A few minor exchanges of the AI factions' territories changed the way that I percieved certain factions, their "presence" relative to other factions, but did not provide me with any particularly strong factions. However, the takeover of rebel territories had an absolutely profound effect on two factions in particular, Pontus and also the Brutii after Germania went bottom-up. If one considers that Dacia is a Brutii protectorate, the combined alliance will be almost as strong as I am (at least in terms of number of territories) after the Brutii manage to establish civil order in their northern territories. (They've been trying to do that for over thirty turns, though.)

I don't think that pressing "End Turn" for 80 more turns without load games is going to provide much additional information. That will be nearly one half what I expect the entire length of the game to be, and i would expect to have won the game by that point, so it's a fruitless effort.


For me, the reasons why it's screwed are not really important. Even if we knew exactly what was wrong, that doesn't help us if CA refuse to consider it as a bug/screwed feature.

Well, an understanding of the AI's behavior is the only thing that's going to lead to a workaround. I can force the AI to behave in certain ways by the use of alliances, but I do not seem to be able to force it to change its behavior toward rebel provinces, where alliances have no effect. If a trigger can be identified for midturn-reassessment, then pulling that trigger might galvanize the AI into some action by forcing it to select the next "equally viable" option in the list.

Such information would undoubtedly have been useful to the developers at some point, but my guess is that they have already studied the situation and understand it more fully than any theorizing that we have done here; and that they have concluded (like myself) that this is not exactly a game-breaker and that any changes we see in the behavior of the AI is reserved for future releases.

Puzz3D
04-15-2005, 18:30
I have played 58 turns as Julii in an SPQR mod campaign with FOW off. SPQR mod has about twice as many cities as vanilla RTW v1.2. I use Pode's no walls idea except I've left the walls on the 6 large cities that start with stone walls. With no walls, the AI always assaults cities on the same turn it lays the siege since no siege equipment is needed. I've saved the game 8 times for an average interval of 7 turns per savegame, and there were never any sieges in progress when I made the saves. I use very little diplomatic strategy, and concentrate on a gradual military expansion. Armies can be trained very quickly in this mod because the training time is 0 except for ships. There tends to be lots of full army stacks on the map since the AI ramps up its military seemingly to whatever its income allows in most cases.

SPQR mod also eliminates Numidia, Spain and Thrace as factions. Carthage is given all of Numidia. Macedon gets most of Thrace with a bit going to Dacia, and Spain is all Iberian rebles. Carthage is the strongest faction, and has increased its population and military a lot and its territory slightly in the first 58 turns. It's focused on conquering Sicily and looks like it will succeed in doing so soon. It's has done very little expansion against the rebels on the Iberian peninsula. As Julii, I've tried to slow down this conquest of Sicily by helping to destroy the Carthaginian navy because I'm concerned about this faction's economic power which will allow it to field countless replacement armies. Of course, they keep building new ships, but that should reduce their ability to replenish their land forces if I can keep attacking their ships. This is costly for me, and I've had to stop my own land expansion for the time being.

Egypt is the next strongest faction, and it was very quiet for the first 15 years, but after building up its military, it has been expanding up into Asia Minor. The eastern most faction, which I think is Parthia, got caught between Armenia and Egypt and eliminated just a few years ago. Selucid appears to be next since they are caught in the same kind of relentless squeeze between those same two economically stronger factions. Egypt has been fighting a lot in recent years and its military has actually declined in power due to the casualties sustained in the last 10 years. Dacia is probably the next strongest followed by Macedon. They are both quite formidable.

As Julii, I went right after Gaul and steadily but slowly captured one city after another from them in the first 20 years. I'll have to check later just how many cities I've taken. Gaul has been fatally crippled because after about 10 years Britannia also started taking their cities. Britannia also has been fighting off an on with Germania, and taken one or two of their cities. I eventually took the city Narbo M. from Gaul, and that put me in contact with neutral Britannia. As soon as I had this province adjacent to Britannia, I could see them scanning my city on every turn and moving armies up to within striking distance. For the last few turns now, Britannia has been relentlessly attacking my city, and they have stopped attacking Gaul. This same thing happened on my eastern frontier when I took Segesta from the Greek Cities. That put me adjacent to Dacia, and they started scanning my city. Soon Dacia attacked my city a couple of times. The only reason I've survived the attacks by Britannia and Dacia is because even without walls it's fairly easy to defend the town square. If the AI would simply lay siege with the intent of starving out the defenders, I would be in dire staights because I'd would then have to sally and fight the AI in the open field which is no easy task in SPQR mod because the AI has huge armies and they seem to make sure they have a larger army than the enemy when they lay siege.

I only post all of this because I think it shows first that the AI is cautious when expanding, and second that it does become aggressive against the human player when it comes into contact with him. I could probably have diverted this aggression with diplomacy, but I don't try to do that. Britannia did ask for a cease fire which I accepted after they lost 4 large scale attacks on Narbo M.

Neither of these conclusions causes me to think the loadgame issue isn't a serious one. With walls, I could possibly mod out the siege equipment and force the AI to starve out all cities, but I'd then have to play much longer sessions which just isn't resonable for me. Even without walls, I won't play the game unless I have at least 4 hours available since the battles are larger and take longer than vanilla RTW v1.2 which I will not play.

roguebolo
04-15-2005, 21:30
I think it shows first that the AI is cautious when expanding, and second that it does become aggressive against the human player when it comes into contact with him.

I agree 100% with both of those conclusions.

After 80 turns (or maybe 1/4th of a game) of pressing "End Turn" without a load game, I can see that there are some minor changes in the relative strength of different factions, that some have gained or lost a little presence. My attitude to that is "So what?" It doesn't exhibit the projected conclusion that any given faction will establish any clear dominating presence to make the victory conditions any more or less difficult. However their own territorial disputes turned out, they're likely to ally against me anyway when they begin to percieve me as their greatest threat.

The AI's tendency to not take rebel territories is a different issue. That does deny the AI factions the economic and positional advantages offered by a potentially large number of rebel territories, hence weakening the overall, combined strength of the AI factions militarily. A work around for this would be to focus on building an infrastructure for several quick turns (something which I occasionally tend to do anyway) until those territories are occupied, without any load games; and I think I'm going to start checking by toggling off FOW occasionally and doing exactly that.

The mod that you mentioned does seem to have some pretty cool approaches toward eliminating the problem, however, and I'm interested in checking it out because I happen to prefer larger battles myself. I'm a little disappointed that Numidia and Spain were dropped because of the roles they played in history, but apparently this mod is primarily designed for game balance.

Bromley
04-15-2005, 21:52
and that they have concluded (like myself) that this is not exactly a game-breaker and that any changes we see in the behavior of the AI is reserved for future releases.

This is the crux of the matter for me. In both my original tests and in ones using your saves I can show significant differences in AI expansion between no-load and load-every-turn.

The original test quantifies the effect of the various intervals and supports DimeBagHo's results posted to .com.

Surely you accept that AI factions will not take cities off the rebels or each other as often with frequent loads? And that frequent loads are unavoidable for some people. So I assume that we can agree on that.

That just leaves your belief that many smaller AI factions are going to be just as hard for the human as few larger AI factions. As you know from our emails, I disagree with you on that, but fair enough.

If the AI is so inept that it cannot expand and hold onto new cities when one plays for 100 turns without loading, then that's a different issue. I was working under the assumption that the strategic AI, although weak, wasn't a slathering loon. If I was wrong in this assumption, then that just deepens my disappointment with CA. I never expected stellar (or even fairly good) strategic AI, but that's too much.


EDIT: It would seem that it is too much. With the exception of Egypt and Britannia, no one has really pulled out the stops in this no-save 100 turn extension of the 1st turn of my Brutii test (I was watching Troy ~:) ). They started well enough, but see those Rebels in the middle of Scipian Africa and the Scythian steppes? They were originally the property of the respective powers, but they lost them. How often has a player lost a city in 1.2 to unrest?

This was on medium campaign difficulty but, as I didn't make a move, you would be forgiven for thinking that that shouldn't matter. The only thing I can say is that the strategic element of RTW is some damn shoddy work.

http://img184.echo.cx/img184/4606/brutii220noloads7ez.jpg

roguebolo
04-16-2005, 00:38
I can show significant differences in AI expansion between no-load and load-every-turn

So can I, but I've been looking at the results of that behavior over a very long period of turns, and how much it affects the political landscape and therefore my gameplay. Perhaps, if extended beyond a eighty turns, the results would be more pronounced; but once I get beyond 1/4th the total number of turns in a typical game, it's starting to become irrelevant.

The most obvious and pronounced effects are the way that AI factions will grab rebel territories -- several of them in just a few turns, if they can -- thereby significantly increasing their production power.

I've also been trying to identify player activity (or even a glitch, if possible) that will force the reassessment to select a new plan of action midturn. I think the easiest way to identify such factors is early in a game. That's why I've been going back to early save games.

The one case in which you and I did not have the same results, if I was reading your posts correctly, was the one labeled Turn 19. In the first few moves, with a save/load each move, it exhibits behavior that is entirely contrary to what we've come to expect. I just tried it again to make sure. You don't even need to disable FOW to see it. After the Brutii arrive by boat and lay siege to Segestica, and you do a save/load and "End Turn", they relieve the siege. After another save/load and "End Year", they reinstate the siege. So far, this is what I'd come to expect. But after the next save/load and "End Year", they maintain the siege -- and continue doing so for 3 years until they have occupied the territory. This is so contrary to what I'd come to expect, especially this early in the game, that I assumed something must have happened at an earlier point in the game to modify the reassessment behavior, which is why I started looking at earlier turns for an answer.

I jumped back to the save game labeled "Turn 14" and saw that Pontus took a rebel territory, so I jumped back to "Turn 12". Playing with save/loads from "Turn 12", the Brutii never get on a boat with the target of Segestica. In fact, as we've both observed, nobody ever takes any territories. Somewhere after turn 12, the Brutii made some irrevocable decision to hop on a boat, sail it all the way down to Segestica, and take the place by siege, load games or no load games, and absolutely nothing was going to change their minds.


If the AI is so inept that it cannot expand and hold onto new cities when one plays for 100 turns without loading, then that's a different issue. I was working under the assumption that the strategic AI, although weak, wasn't a slathering loon.

LOL. I was hoping that someone would point this out. There are many other obvious strategic weaknesses in this and many other games I play. I obviously have my own list of things I would like to see changed, but I have come to the conclusion that it will be a long time before the AI in a game like this reaches the point where it is any kind of a true challenge. MTW was just as bad at maintaining civil order in AI provinces, if not even worse. At least the TW series doesn't attempt to cheat with respawns and triggers and whatnot, like so many other games.

After a certain amount of expertise, MTW was not even close to being a difficult game for me -- not even on VH/VH as the Polish or one of the other more difficult factions. The thing I learned when I was playing MTW was that when I reached that point of mastery over the game, the strategic campaign was merely a platform for setting up different scenarios that I considered interesting. (One of my favorite self-set goals in MTW was to wipe out the entire Mongol Horde the same turn they appeared on the map; with Viking Invasion, it's possible to do so with an army domininated by units that have about the same support costs as standard peasants.)

Bromley
04-16-2005, 01:05
I didn't perform any tests on "19". All I did was tabulate its state for comparison. However, my "14" extension with save/load every turn did show the Brutii maintaining their siege of Segestica to completion over 3 turns (with loading at every turn).

roguebolo
04-16-2005, 01:48
This was on medium campaign difficulty but, as I didn't make a move, you would be forgiven for thinking that that shouldn't matter. The only thing I can say is that the strategic element of RTW is some damn shoddy work.

Speaking of which (I forgot to mention this) all of my save games are on the hard/hard difficulty setting. I didn't know about the realtime battle behavior of the 1.2 patch when I first started using it...

The only thing I know of that could bring about that kind of unrest intentionally, and also what I witnessed in my own game, is a series of assassinations so that there was no Faction Leader. I actually wondered if the Brutii had done that. At any rate, this is going very far off topic...

Puzz3D
04-16-2005, 02:35
I have AI faction expansion in my Julii SPQR mod campaign with no walls, and it is at the expense of other AI factions. Over 58 turns:

Factions which expanded:

Carthage started with 15 cities and now has 19.
Egypt started with 12 cities and now has 24.
Armenia started with 5 cities and now has 17.
Julii started with 3 cities and now has 14. (human player)
Britannia started with 6 cities and now has 12.
Brutii started with 3 cites and now has 6.

Factions which held their own:

Dacia started with 8 cities and now has 9.
Macedonia started with 9 cities and now has 10.
Germania started with 12 cities and now has 14.
Pontus started with 2 cities and now has 3.
Scipii started with 4 cities and still has 4.
SPQR started with 1 city and still has 1.
Selucid started with 7 cities and now has 5.

Factions which lost out:

Parthia started with 8 cities and now has 1.
Scythia started with 4 cities and now has 1.
Greek Cities started with 11 cities and now has 5.
Gaul started with 15 cities and now has 6. (this is due mostly to Jullii)

If I played this campaign with walls, I think the factions that expanded wouldn't have expanded as much, and the factions that declined wouldn't have declined as much because of the broken off sieges. Yes eventually I will have to fight most of the factions anyway, but I don't have to fight them all at once, and I'm in no position to take on either Carthage or Egypt yet. If I have to confront either Carthage or Egypt down the road it's going to be a big deal because they already have a stronger ecomomy than me, and they'll be expanding it. Carthage is twice as strong as my Julii faction in production and military power, and has 4 times the population. Egypt is twice as strong as Julii in production, equal in military power and has 3 times the population. Dacia, Macedonia, Britannia and Germania are all equal to Julii in production, military power and population.

roguebolo
04-16-2005, 07:25
Thought I'd show you the result of 80 moves without loadgames before I start attacking my own ideas.

This is the starting position in the year 163 BC (winter):

http://home.comcast.net/~b.brassfield/images/Start.jpg

This is the ending position in the year 123 BC (summer):

http://home.comcast.net/~b.brassfield/images/80Moves.jpg

As you can see from the following territorial rankings, the Brutii did take one territory from Germania, as I reported, and not long afterward, Germania just "ceased to exist". All of its territories turned rebel; at that point, the Brutii began to eat up the formerly Germanic territories, and the rebel territories north of them. Although it was losing territories as it was gaining them, it managed to maintain a net gain until somewhere toward the last dozen moves or so:

http://home.comcast.net/~b.brassfield/images/germania.jpg

I misreported Pontus a little; while the other factions were focusing on rebel territories, it actually took one Seleucid territory and one Greek territory; only the third was rebel. I wasn't paying as much attention in that part of the world and the color coding is pretty close. After that, Egypt managed to take three Seleucid territories -- whether they became rebel first I can't remember. But the last two definitely became rebel before Pontus took one of them. The other one was never claimed.

http://home.comcast.net/~b.brassfield/images/seleucids.jpg

The situation with Thrace and Macedon occured right at the very end of the 80 moves:

http://home.comcast.net/~b.brassfield/images/thrace.jpg

Like the situation in the north, most of the other acquisitions were rebel territories and the situation remained otherwise very static for the entire 80 moves. Some countries got smaller, others got larger, the Seleucids were beat by a war on two fronts, and the Brutii got lucky through mismanagement or something on the part of Germania, but aren't doing a much better job of managing those territories themselves.

However, if you'll look closely, you'll notice that there is a long period prior to the beginning of these 80 turns, of about 50 years or so, when all of these countries had no growth and no losses (except Germania, which was an altercation with Brittania and ended with Germania ultimately becoming Brittania's protectorate.)

It was during these 50 years that I did most of my expansion, and almost certainly never skipped a single turn without a load game.

If I go back to the year 213BC, here is what the territorial map looks like:

http://home.comcast.net/~b.brassfield/images/213BC.jpg

Now, at least you know that I'm not lying about loading each turn. Hehe. As you can see, with the exception of my target factions and myself, there have been no changes except for the altercation between England and Germany.

I pressed "End Turn" with no load games only 16 times, and here was the political landscape in the year 205BC:

http://home.comcast.net/~b.brassfield/images/205BC.jpg

Pontus made all the exact same moves, but 50 years earlier. The Seleucids expanded a little, and it's obvious that Germania is not about to cave in on itself so easily. Almost all of the rebel territories were claimed immediately, as with the 80-turn test. It's harder to just press "End Turn" for a long number of moves at this point, but I think it's safe to say that with 164 turns remaining until 123BC, things would turn out slightly differently than with the 80 turn test. (Except, of course, for my own acquisitions from Gaul, Spain, and Numidia.)

My immediate targets (Gaul, Spain and Numidia) benefited only slightly from rebel (and other) acquisitions -- most importantly, Spain's acquisition of the last remaining Carthaginian stronghold of Corduba which took them 11 turns, and which they succeeded in occupying not long before the same year that I invaded Spain. Considering how badly I plowed right through Spanish territories when I was actually playing, I can't see how this small amount of extra unit production would have helped them very much. Numidia also acquired a rather inconsequential village at a small oasis in the Sahara.

I similarly question how much these changes would affect my long-term targets...at least in terms of the relative strengths of different AI territories. The Brutii are going to find it harder to take a unified Germania than their rapid grabfest of rebel territories, and the Seleucids might be a little stronger but they are still caught in a battle on two fronts with Pontus and Egypt -- not that the Julii care much about that corner of the map. Although those conflicts might take longer to resolve under these conditions, they will probably end up about the same. And I suppose Thrace will probably still wait 60 turns before attacking Macedonia. Who knows?

In any case, I think it also makes a strong argument for the powerful affect of the AI acquiring rebel territories. Because each faction can use its rapid rebel acquisitions to strengthen itself, individually. That will help when they're forced to ally against me.

The AI seems to do a fairly good job of maintaining a balance between the AI factions and the human player. One must realize that chess has been around for thousands of years, and that the algorithms and math studying the game had been in existence long before the first computer program.

In fact, if you ever study the field of combinatorial optimization, you will discover that the Hungarian method of two-dimensional bipartite matching was proposed and published by Kuhn all the way back in 1950. In a game as complex as RTW, the number of combinations of possibilities further complicated by rule-based hierarchy or even simple topological relationships, far exceeds the complexity of even three-dimensional bipartite matching. Since there is no game exactly like the TW games, and the developers cannot turn to a text book for canned algorithms, but must nevertheless write code which causes the AI to select its moves in a reasonable period of time, I think they've done a fairly admirable job of maintaining some sort of game balance and general satisfaction on the part of the average player. Like almost all computer games of its kind, it will fall to the player once they have achieved mastery over the AI; just as Chess Masters were able to consistently beat early chess programs. Despite its weaknesses, I consider the AI to be quite good compared to the plethora of other computer games which do not attempt to rely on AI to create a challenge for the human player whatsover. I also consider lambasting the AI to be in poor taste.

A.Saturnus
04-16-2005, 23:01
The thread has been cleaned up and I'm trying to formulate a tentative conclusion concerning the siege behaviour. Should you disagree with any of the following, please explain why.


It is certain that after loading a quicksave (has standard save been tested?), the AI will most of the time break up ongoing sieges in cases where it doesn't do that without save/load.
It seems that the objective to take the previously sieged city is not lost entirely, as the AI will usually try to reengage the siege the turn after the load.
As a consequence, saving and reloading will affect the development of AI factions, at least in the beginning of a campagne.
It is not yet clear to what extent the course of a campagne is influenced in an undesirable way by this. AI factions do conquer new territories at a slow pace, but it is not clear whether this is due to the save/load issue or general weakness of the AI. There are three possibilities:

Above the weakness of the strategic AI, this issue is irrelevant as its effect is only noticeable under extreme conditions.
Saving and reloading often does noticable affect gameplay, but doesn't make the game unplayable.
The effect is so pronounced that it can be called a "game-breaker".

A clearly noticable aspect is that, when saving and loading often, AI factions will not take the opportunity to capture rebel territory to the same extent as it does in continued playing.

roguebolo
04-17-2005, 00:52
Saturnus, I will respond this way. Some of them are not a yes or no.

1. It is certain that after loading a quicksave (has standard save been tested?), the AI will most of the time break up ongoing sieges in cases where it doesn't do that without save/load.

Yes, it is CERTAIN that MOST of the time they will break ongoing sieges. ~;) (Yes, I've tested the standard save.)

2. It seems that the objective to take the previously sieged city is not lost entirely, as the AI will usually try to reengage the siege the turn after the load. Not only that, armies enroute to siegies will not lose their objectives.

I agree. However, you need to qualify this so that other readers understand that even after multiple reloads the target cities are never abandoned, which results in a state wherein cities are being besieged and then having their sieges relieved.

3. As a consequence, saving and reloading will affect the development of AI factions, at least in the beginning of a campagne.

There, I do disagree. As a consequence, reloading a game will have an immediate affect on all rebel territories that can be easily acquired. This phenomenon exibits itself througout the game, not just at the beginning, and is the greatest effect of the phenomenon, rather than speculative projections on its effects throughout the course of gameplay. It can potentially also have an effect on the controversy between different AI factions, which will result in the occasional transfer of territories and an overall game balance for when the human player is ready to confront them. Such controversies are partially "locked in place" by the AI based on their alliances with each other, and can be further influenced by the human player.

I will respond to the last one after a while. I'm having some rather strange feelings about all this, since so many people debate against me and no one has responded in almost two days. I almost feel boycotted...

Bromley
04-17-2005, 02:02
The thread has been cleaned up and I'm trying to formulate a tentative conclusion concerning the siege behaviour. Should you disagree with any of the following, please explain why.

It is certain that after loading a quicksave (has standard save been tested?), the AI will most of the time break up ongoing sieges in cases where it doesn't do that without save/load.
Agreed. I'm also happy that quick and normal saves create the same problem, as my first every test (not referred to in this thread) used normal saves.
It seems that the objective to take the previously sieged city is not lost entirely, as the AI will usually try to reengage the siege the turn after the load.
Agreed. This may just be a consequence of the reevaluation coming to the same conclusion though (i.e. it is possible that the objective is lost and we just don't discern a difference).
As a consequence, saving and reloading will affect the development of AI factions, at least in the beginning of a campagne.
Agreed. A worrying development arising from some of the long campaign tests run is that the AI may be reaching a critical mass at which it just can't manage its empire in a halfway sensible manner (independent of the loadgame issue). That though is for a different thread (i.e., for the purposes of determining whether the AI is adversely affected by the loadgame bug we'll have to assume that the AI is functional).
RB's point is correct, in that if you defer the start of the campaign (as far as the AI is concerned) by loading every turn, then the initial Rebel land-grab is deferred. It's further correct in that, assuming the AI is competent, this issues affects faction on faction sieges in the late game as well.
It is not yet clear to what extent the course of a campagne is influenced in an undesirable way by this. AI factions do conquer new territories at a slow pace, but it is not clear whether this is due to the save/load issue or general weakness of the AI. There are three possibilities:

Above the weakness of the strategic AI, this issue is irrelevant as its effect is only noticeable under extreme conditions.
Saving and reloading often does noticable affect gameplay, but doesn't make the game unplayable.
The effect is so pronounced that it can be called a "game-breaker".

Assuming that the strategic AI is competent, this effect is extremely relevant if you play sessions of 4 turns or less. If you play for 7 or more, it probably doesn't have a huge effect. As some people really do play for less than 4 turns, it will be a game breaker for them (assuming that the AI is otherwise sound).
A clearly noticable aspect is that, when saving and loading often, AI factions will not take the opportunity to capture rebel territory to the same extent as it does in continued playing.
Disagree (semantic though). It will take the opportunity, in that it will march armies out to get the cities, but it will not succeed as it will be forced to break off. The same applies to trying to capture other AI factions, although diplomacy, walls, more coordinated defence, etc. mean that it needs even longer per city than with an average Rebel city.
So, from my testing, it seemed that the AI was able to reasonably expand if the load interval was 4 turns. However, the Scipii were not able to do well in Sicily with less than an interval of 5 turns. Hence the supposition that there is something that makes taking other AI faction cities harder for the AI than taking Rebel cities (which seems like common sense, but it's nice to have it confirmed).

A.Saturnus
04-17-2005, 16:41
There, I do disagree. As a consequence, reloading a game will have an immediate affect on all rebel territories that can be easily acquired. This phenomenon exibits itself througout the game, not just at the beginning, and is the greatest effect of the phenomenon, rather than speculative projections on its effects throughout the course of gameplay. It can potentially also have an effect on the controversy between different AI factions, which will result in the occasional transfer of territories and an overall game balance for when the human player is ready to confront them. Such controversies are partially "locked in place" by the AI based on their alliances with each other, and can be further influenced by the human player.

Actually, I don't quite understand how you can disagree with that, given that it is more or less a logical conclusion of the first proposition you agreed with. How can the development of a factions possibly be the same when the AI cannot bring most sieges to an end? Note that this point says nothing about the size of the effect. I only said that save/load makes a difference at all.
From my understanding, you argued above that the effects others found at the beginning of a campagne are an artefact of an extremum. You aknowledged the fact that the AI will, for example, not succeed in conquering Sicily early on as Scipii if loaded every turn, but you objected that this has no impact on the later development. If this is a correct description of your position, you cannot disagree with this point.

A.Saturnus
04-17-2005, 16:45
A clearly noticable aspect is that, when saving and loading often, AI factions will not take the opportunity to capture rebel territory to the same extent as it does in continued playing.
Disagree (semantic though). It will take the opportunity, in that it will march armies out to get the cities, but it will not succeed as it will be forced to break off. The same applies to trying to capture other AI factions, although diplomacy, walls, more coordinated defence, etc. mean that it needs even longer per city than with an average Rebel city.
So, from my testing, it seemed that the AI was able to reasonably expand if the load interval was 4 turns. However, the Scipii were not able to do well in Sicily with less than an interval of 5 turns. Hence the supposition that there is something that makes taking other AI faction cities harder for the AI than taking Rebel cities (which seems like common sense, but it's nice to have it confirmed).


I may have misunderstood something, but it seemed to me RB was saying that:

The most obvious and pronounced effects are the way that AI factions will grab rebel territories -- several of them in just a few turns, if they can -- thereby significantly increasing their production power.

Bhruic
04-17-2005, 17:14
If I'm reading roguebolo's position correctly, it basically comes down to the premise that the AI plays so ineffectively normally, that the additional penalties caused by the save/reload problem are rendered moot.

In general, I agree with that position. Even with no save/reloads, the AI doesn't expand as much as would be necessary to challenge a human player. Empires end up being relatively stagnant.

However, I disagree with the conclusion that the save/reload issue isn't a problem in and of itself. Any attempt to make the AI more aggressive would be rendered ineffective by this problem. Basically, I'd conclude that the only reason it's not a serious problem is because there's another serious problem. Fixing just one or the other won't work nearly as well as fixing both.

Bh

player1
04-17-2005, 17:55
Bhruic said it so well.


P.S.
Only reason why AI is good against rebels (without loads) is that rebels don't build new units in their cities.

roguebolo
04-17-2005, 20:11
3. As a consequence, saving and reloading will affect the development of AI factions, at least in the beginning of a campagne.

I'm only disagreeing with the wording because I think the description is incomplete, and because I think the development of the AI is most effected when numerous rebel territorories are available, which is true at the beginning of the game but might also be true in other situations. I suppose this degresses into semantics, so I will reverse my statement by saying that I agree with a number of qualifications.

Bhruic, the "other problem" extends itself to other computer games too. Most AIs in most games can eventually be mastered by a human player. Part of the problem has to do with the computing power of computers. "Combinatorial optimization" is a field of algorithmic study whereby you attempt to reduce the number of combinations that need to be analyzed to arrive at a conclusion.

It doesn't surprise me when I master the AI in a game that I once considered challenging; rather, it seems to be par for the course, even with simpler, more straightforward strategy games like "Massive Assault." I think there's a lot of room for improvement of AIs in general and in specific for any given game. However, upon mastering an AI I don't come to the conclusion that it is horribly scarred because I can beat it consistently. I might have some ideas on how it can be improved, but that's about it.

Bhruic
04-17-2005, 21:09
Bhruic, the "other problem" extends itself to other computer games too. Most AIs in most games can eventually be mastered by a human player. Part of the problem has to do with the computing power of computers. "Combinatorial optimization" is a field of algorithmic study whereby you attempt to reduce the number of combinations that need to be analyzed to arrive at a conclusion.

It doesn't surprise me when I master the AI in a game that I once considered challenging; rather, it seems to be par for the course, even with simpler, more straightforward strategy games like "Massive Assault." I think there's a lot of room for improvement of AIs in general and in specific for any given game. However, upon mastering an AI I don't come to the conclusion that it is horribly scarred because I can beat it consistently. I might have some ideas on how it can be improved, but that's about it.

That's going well beyond the scope of the discussion. It doesn't matter whether or not other games have issues. We're only talking about RTW, and the specific issues it has that are related to this bug.

One of the major points is that the AI is not sufficiently aggressive in general, so unlike MTW, there doesn't tend to be much empire growth. This fact, I believe, "masks" the problem that the save/reload issue causes.

If you choose to agree or disagree with that point, that's fine. I'd love to hear your explanation. But you do seem to have a tendancy to jump to off-topic issues that don't really apply to save/reload issue.

Bh

A.Saturnus
04-17-2005, 21:31
I'm only disagreeing with the wording because I think the description is incomplete, and because I think the development of the AI is most effected when numerous rebel territorories are available, which is true at the beginning of the game but might also be true in other situations. I suppose this degresses into semantics, so I will reverse my statement by saying that I agree with a number of qualifications.

Ok, I don't insist on the wording. What is more important is point four anyway. Do I assume right that you agree with point five?

Bromley
04-17-2005, 23:46
I may have misunderstood something, but it seemed to me RB was saying that:

I thought my post was quite good considering I was wasted ~:cheers: .

The point I was trying to make was that I basically agree with what you were saying in 5 (A clearly noticable aspect . . .). The disagreement was only with the wording, specifically, "will not take the opportunity." Not an important point by me - just amplified in my mind by alcohol.

Kraxis
04-18-2005, 01:02
It is interesting this... Now we are finally getting something of a specific direction.

I have just considered something.
Even if the game solely affected by the loadgame issue from its initial positions, then it is still a tough situation for many gamers. They will often suffer the effects anyway, as they don't just kick back and watch for 10-20 turns like we do here. They play and load from the get-go.
A game that more or less forces the player to wait up to 20 turns is not working as it is supposed to. That is how I view it.

Bhruic
04-18-2005, 01:08
I don't know that anyone is questioning whether it is working as it supposed to. The issue right now seems to be the severity.

In general, I find that early turns go by quite quickly. It's not hard to play 10-15 turns in the amount of time it would take to play 2-3 in later stages. So it's less likely people will be in a save/reload situation early on.

Given the three choices A.S. listed, I'd have to go with "Saving and reloading often does noticable affect gameplay, but doesn't make the game unplayable."

Bh

tai4ji2x
04-18-2005, 02:09
i wonder if our use of the term "reload" can be misleading? it can cause some people to think that we're exploiting the game by "reloading" simply because something doesn't go our way. i would say simply "load" or "loadgame" or such...

hrvojej
04-19-2005, 15:27
Nice to see that some conclusions are coming out of this. I was so busy lately that I quite frankly didn't have time to sit in front of a comp for fun at all. But now that I do have some time to spare, I cannot bring myself to fire up RTW any more, and I don't see myself doing so in near future either - I realise I'm too disappointed in the game to do so. Sorry.

therother
06-24-2005, 08:01
The latest update of the RTW FAQ (http://p223.ezboard.com/fshoguntotalwarfrm7.showMessage?topicID=19529.topic) addresses this issue.


Q. What's the latest regarding the load/save/siege issue.

A. Much I want to say this is now sorted and carved in stone, I can't. Please remember that expansion pack is in development and there is still much going on at the moment that I can't talk about for various reasons. I am prepared to say that it is certainly our intention to address the load/save issue in the expansion pack. "And what about a patch?" I hear you ask. Again I can't say this is set in stone but we hope to bring out a patch at roughly the same time as the expansion pack (in reality it will probably be few weeks later).
That's the state of play at the moment. When I know more, I'll make sure that you know more.

Pode
09-26-2005, 22:20
One of the fortunate Swedes (goes by Stalin on TWC and Pippi Longstocking on the .com, the combination of which kinda reminds me of the Bert and Osama photo, but I digress) was kind enough to post this on the .com "bugs after patch 1.3" thread

"from my rather short observation the siegebug is gone...
https://img189.imageshack.us/my.php?image=before8gp.jpg
https://img189.imageshack.us/my.php?image=after1es.jpg "

I will plead with him to read this thread and do a proper test, but if he's right, I can't blame him for getting on with playing the game and ignoring me.

Kraxis
09-26-2005, 22:26
Seems good. The screenshots don't do much for me, but for players to says so makes it much more so. The shot only shows one case, but I suppose they have tried several cases each.