Retreat Bug?
Moderator: MOD_GGWaW_2
Retreat Bug?
I'm on 1.02 playing my first ever PBEM. My opponent (Germany) beat me (SU) in a large battle in Kursk and I thought my remaining undamaged units (5 Inf, 6 Arty) would retreat to the obvious place - Moscow. Unfortunately, they retreated to Gorki and two remaining unused German armour advanced through Kursk to Moscow, took on the Inf, Arty, 2 Flak in Moscow, and won. I was losing the game anyway but the loss of 20 supply, 2 factories, 1 RC, rail, 8 units on the production cycle of which 7 were about to appear just finished me off.
Of course, I hear you say - I should have studied the rules more carefully. However, I've just read 8.5.2 and I'm completely bewildered. It says that units trace a path to the nearest friendly factory that can be reached along a valid rail strategic movement path. Well, as far as I can see, 3 regions fulfilled this criteria - Moscow, Gorki and Stalingrad. (I don't think this affects the calculations but Kursk rail is destroyed and the others were all ok). So, how do you know which one they will retreat too?
A later priority is the adjacent land region with the most combat units. I'm not sure if this is supposed to come into play or not with the above but, if it did, then Stalingrad with 8 units (3 Mil, 4 Arty, 1 Flak) should have received the retreating units. Moscow with it's 4 units would be second choice and Gorki with 2 (2 armour) third but of course they went to Gorki.
The rules also say that if several regions met the above requirements equally the region with the most supply would count. Well, I don't think this is relevant to this example but, in case, Moscow had 20 supply, Gorki 5 and Stalingrad 1.
So, if I was able to go back in time and redo my move, what should I have done to ensure my units retreated to Moscow? I haven't got a clue - can anyone help me? Is this a bug?
Playing my first ever PBEM was a great experience and I totally recommend it to anyone who has not experienced it yet, but I really don't think I can go back to WAW until I can get my head around this retreat rule.
What hurt even more was my undamaged units refused to retreat to Moscow but 2 damaged Arty, 1 damaged Inf and 1 damaged Para were happy to go there and be butchered by the Germans on the production cycle. Not very fair, I would suggest.
Tom
Of course, I hear you say - I should have studied the rules more carefully. However, I've just read 8.5.2 and I'm completely bewildered. It says that units trace a path to the nearest friendly factory that can be reached along a valid rail strategic movement path. Well, as far as I can see, 3 regions fulfilled this criteria - Moscow, Gorki and Stalingrad. (I don't think this affects the calculations but Kursk rail is destroyed and the others were all ok). So, how do you know which one they will retreat too?
A later priority is the adjacent land region with the most combat units. I'm not sure if this is supposed to come into play or not with the above but, if it did, then Stalingrad with 8 units (3 Mil, 4 Arty, 1 Flak) should have received the retreating units. Moscow with it's 4 units would be second choice and Gorki with 2 (2 armour) third but of course they went to Gorki.
The rules also say that if several regions met the above requirements equally the region with the most supply would count. Well, I don't think this is relevant to this example but, in case, Moscow had 20 supply, Gorki 5 and Stalingrad 1.
So, if I was able to go back in time and redo my move, what should I have done to ensure my units retreated to Moscow? I haven't got a clue - can anyone help me? Is this a bug?
Playing my first ever PBEM was a great experience and I totally recommend it to anyone who has not experienced it yet, but I really don't think I can go back to WAW until I can get my head around this retreat rule.
What hurt even more was my undamaged units refused to retreat to Moscow but 2 damaged Arty, 1 damaged Inf and 1 damaged Para were happy to go there and be butchered by the Germans on the production cycle. Not very fair, I would suggest.
Tom
RE: Retreat Bug?
Although I have no knowledge of code whatsoever, I wonder whether the retreat issues Tom describes are related to the bug (pertaining to tracing paths) I mention in the 1.03 beta area of the forum (which evidently also exists in 1.02). Just speculative, of course. While I can't volunteer WanderingHead to look at the issue, I do know that he generally requires savegames to be able to make sense of what occurred. So, if you still have your prior turn and that of your opponent (with passwords), hang on to these in case they are requested.
I have also noticed the odd funny stuff with where damaged units are queued (for example, why does my damaged fighter invariably queue in Sinkiang)? But, I take these with a grain of salt as affecting all players roughly similarly (like dealing with a referee that makes the odd bad call - in the end, it should even out....).
Anyhow, I have never personally had the issue occur like you described. By any chance was the rail damaged to Stalingrad or Moscow?
I have also noticed the odd funny stuff with where damaged units are queued (for example, why does my damaged fighter invariably queue in Sinkiang)? But, I take these with a grain of salt as affecting all players roughly similarly (like dealing with a referee that makes the odd bad call - in the end, it should even out....).
Anyhow, I have never personally had the issue occur like you described. By any chance was the rail damaged to Stalingrad or Moscow?
RE: Retreat Bug?
Thanks Lucky1 - you're Mr Dependable on this forum. No, rail was undamaged in Stalingrad, Moscow and Gorki. Fully damaged in Kursk. Didn't know about your posting on a retreat bug but I'll look it up.
-
- Posts: 2134
- Joined: Wed Sep 22, 2004 8:12 am
- Location: GMT-8
RE: Retreat Bug?
Damaged rail does affect the retreat outcome. Units will first attempt to retreat via an undamaged (all the way from start to finish) rail line if possible.
Which patch version of the game was this? Latest?
Retreats are tough. I've tweaked them a little, but they follow somewhat generic rules and it is hard to make them always make sense.
Which patch version of the game was this? Latest?
Retreats are tough. I've tweaked them a little, but they follow somewhat generic rules and it is hard to make them always make sense.
RE: Retreat Bug?
Kursk was completely damaged and Moscow, Gorki and Stalingrad completely undamaged so doesn't appear to be relevant.ORIGINAL: WanderingHead
Damaged rail does affect the retreat outcome. Units will first attempt to retreat via an undamaged (all the way from start to finish) rail line if possible.
1.02Which patch version of the game was this? Latest?
That's not good. Should I have dismantled my Gorki factory and moved it to another region just to encourage my retreating Kursk units find their way to Moscow! Surely you should be able to have some control over where your units retreat to?Retreats are tough. I've tweaked them a little, but they follow somewhat generic rules and it is hard to make them always make sense.
-
- Posts: 2134
- Joined: Wed Sep 22, 2004 8:12 am
- Location: GMT-8
RE: Retreat Bug?
ORIGINAL: Tom Grosv
That's not good. Should I have dismantled my Gorki factory and moved it to another region just to encourage my retreating Kursk units find their way to Moscow! Surely you should be able to have some control over where your units retreat to?
It's rather hard to give the player control over where they retreat. How would it be done?
My goal was to try to make retreats fairly intuitive. I tweaked things to make them retreat more towards regions with higher production and population. In your case, I would have expected them to retreat to Moscow (assuming that Moscow had more production than Gorki as it normally would).
I'd actually have to review the code to see exactly how it is done, I do not recall in detail.
RE: Retreat Bug?
ORIGINAL: WanderingHead
My goal was to try to make retreats fairly intuitive. I tweaked things to make them retreat more towards regions with higher production and population. In your case, I would have expected them to retreat to Moscow (assuming that Moscow had more production than Gorki as it normally would).
I believe (can't check at the moment) that I was getting towards the situation where I did not have enough resources in my pools to feed all the factories - perhaps the answer lies somewhere in this direction?
RE: Retreat Bug?
There have to be issues with the retreat algorithm...we already mentioned the fact that, many times. I always wondered how could some convoys damaged by german subs get back to base when there are german uboats everywhere in the atlantic, they just disregard this fact, and they don't take into account any MP limitation, meaning they could get to any port in the world provided it had a factory. I also happened to notice that during opfire against a sub, and during enemy turn, if a destroyer attacks your sub and you damage it, your ammo doesn't drop.
Another thing, is pertaining the ships docked in ports. If you capture the region with an amphibious assault they just disappear but there's no notification of capture/destruction/dmg+relocation, just nothing.
Considering the Japanese struggle for resources, and especially in global glory scenario...I'm used to capture an unending source of supplies, the AI keeps building on remote islands (java, borneo, etc...) but which can't be delivered due to naval blockades. It would be so damn useful to really capture these supplies...such items also vanish and they definitely don't add to my totals.
One thing is sure: as Lucky1 said, it's like a refree giving a bad call. Anyone can happen to have it, and with every faction. I hope 2by3 will get the needed time to improve this game sooner or later. Very very minor issues. The game is still very balanced and entertaining and it's definitely worth improving (for instance...i forgot to save game before alt-tabbing and when i tried to switch back, the screen remained black, the music was playing but i couldn't go on anymore).
Very minor things, really.
Another thing, is pertaining the ships docked in ports. If you capture the region with an amphibious assault they just disappear but there's no notification of capture/destruction/dmg+relocation, just nothing.
Considering the Japanese struggle for resources, and especially in global glory scenario...I'm used to capture an unending source of supplies, the AI keeps building on remote islands (java, borneo, etc...) but which can't be delivered due to naval blockades. It would be so damn useful to really capture these supplies...such items also vanish and they definitely don't add to my totals.
One thing is sure: as Lucky1 said, it's like a refree giving a bad call. Anyone can happen to have it, and with every faction. I hope 2by3 will get the needed time to improve this game sooner or later. Very very minor issues. The game is still very balanced and entertaining and it's definitely worth improving (for instance...i forgot to save game before alt-tabbing and when i tried to switch back, the screen remained black, the music was playing but i couldn't go on anymore).
Very minor things, really.
How long will you pretend you can't do anything about it? Support www.animalsasia.org
RE: Retreat Bug?
I've gone back and done some test attacks. In the example I gave earlier about Germany attacking Kursk, SU will, as long as there is an undamaged factory in Gorki, always ALWAYS retreat to Gorki. Mix around as many troops as you want in Moscow, Gorki and Stalingrad; play around with what you are producing in the factories, it make no odds - Gorki they go.
I previously humourously suggeted dismatling the Gorki factory to encourage retreating Kursk units to go to Moscow. Actually, I realise this is a possible valid tactic - if it is vital to you that units retreating from Kursk go to Moscow then you MUST dismantle your Gorki factory.
Tell me that's not gamey.
I previously humourously suggeted dismatling the Gorki factory to encourage retreating Kursk units to go to Moscow. Actually, I realise this is a possible valid tactic - if it is vital to you that units retreating from Kursk go to Moscow then you MUST dismantle your Gorki factory.
Tell me that's not gamey.
RE: Retreat Bug?
Interesting! Are there any conditions in your experiment that might be relevant? Is your rail damagaed, for example? Were any of the factories 'moved' to Gorki or to other territories?
RE: Retreat Bug?
Hmm. I have been able to replicate what Tom has noted. Troops ALWAYS appear to retreat to Gorki from Kursk... I have to admit, I have never paid much attention to retreat paths before, so I don't know whether there are similar weird retreats in other critical areas (e.g. czechoslovakia, Austria).
-
- Posts: 2134
- Joined: Wed Sep 22, 2004 8:12 am
- Location: GMT-8
RE: Retreat Bug?
ORIGINAL: Lucky1
Hmm. I have been able to replicate what Tom has noted. Troops ALWAYS appear to retreat to Gorki from Kursk... I have to admit, I have never paid much attention to retreat paths before, so I don't know whether there are similar weird retreats in other critical areas (e.g. czechoslovakia, Austria).
I pretty much tuned the retreat algorithm using Germans retreating in the Central European theater, so I don't think they would be all that wierd. As I recall, I actually started tuning because Germans used to frequently retreat from E Poland to Rumania, really throwing a fighting retreat off balance.
So anyway, the algorithm is something like this:
Code: Select all
foreach candidate_region (neighboring lost region)
{
metric(candidate_region) = supplies + 5* (1 + factories*production_multiplier + population + rail_units)
foreach neigb_region (same player region neigboring candidate_region)
{
metric(candidate_region) += (supplies + 5* (1 + factories*production_multiplier + population + rail_units))/2
}
}
retreat to region with largest metric(candidate_region)
I think that the issue with Gorki may be in part that it simply has more neighboring Russian regions. Especially if Smolensk is German controlled. The start of game (Global Glory) values are Moscow: 41, Gorki: 46 (a bit misleading, since it doesn't reflect the second factory in Moscow or the lost Kursk region).
Considering that it is a generic rule and units retreating to Moscow could reasonably be surrounded (an armor push to Gorki and Yaroslavl), I don't think the rule is performing all that far off base. I think it should, at least sometimes, pick Gorki over Moscow.
There are a few things that could happen here:
1) the weighting of neighbors to the candidate region could be reduced to 1/3 (from the current 1/2)
2) retreat directions could be randomized somewhat, spreading units out somewhat and in a less predictable way.
For example:
Code: Select all
foreach candidate_region (neighboring the lost region)
{
metric(candidate_region) = supplies + 5* (1 + factories*production_multiplier + population + rail_units)
foreach neigb_region (same player region neigboring candidate_region)
{
metric(candidate_region) += (supplies + 5* (1 + factories*production_multiplier + population + rail_units))/3
}
metric(candidate_region) += die(10)
}
retreat to region with largest metric(candidate_region)
RE: Retreat Bug?
Offering my $.02, I would prefer option one. Although I have no firm objection to randomization occuring, I think that given the three month time periods, this would be less likely to occur.
Does the algorithm factor in strategic points values anywhere (I didn't notice this....)?
Does the algorithm factor in strategic points values anywhere (I didn't notice this....)?
-
- Posts: 2134
- Joined: Wed Sep 22, 2004 8:12 am
- Location: GMT-8
RE: Retreat Bug?
ORIGINAL: Lucky1
Does the algorithm factor in strategic points values anywhere (I didn't notice this....)?
No, not currently. I thought about it, but it would only really matter for Russia. If the rule is to work well everywhere (like Germany) it seems like it should be ignored.
RE: Retreat Bug?
Keeping in mind that this post was initially about units not retreating back to Moscow (and the big 5 points it represents), SPs are arguably relevant to the equation (I think most games are won and lost over Russia). Would it not be possible to simply have the SP value added to the mix, with no value being added where no SPs exist?
RE: Retreat Bug?
ORIGINAL: WanderingHead
Just changing the weighting to 1/3 from 1/2 changes the start of game values to Moscow: 34, Gorki: 35
ORIGINAL: Lucky1
Keeping in mind that this post was initially about units not retreating back to Moscow (and the big 5 points it represents), SPs are arguably relevant to the equation (I think most games are won and lost over Russia). Would it not be possible to simply have the SP value added to the mix, with no value being added where no SPs exist?
I like both these ideas which together would, I suppose, favour Moscow over Gorki. I understand what WH is saying about units prefering the security of Gorki rather than risk being surrounded in Moscow but surely Moscow was such a hugely important area to the Soviets, both industrially and emotionally? The Politburo tried to persuade Stalin to leave Moscow but he refused. Boy, will he be pi%%ed when his units retreat to Gorki not Moscow. I wouldn't want to be the army commander when an irate Stalin despatches Beria to "have words".
I can't make up my mind about randomization. Perhaps it would be good for units to spread out somewhat.
-
- Posts: 2134
- Joined: Wed Sep 22, 2004 8:12 am
- Location: GMT-8
RE: Retreat Bug?
ORIGINAL: Tom Grosv
I can't make up my mind about randomization. Perhaps it would be good for units to spread out somewhat.
What I liked about randomization is that if the algorithm isn't quite right, it wouldn't be so glaring since it wouldn't be all or nothing. If 5 units retreated to Gorki and 3 to Moscow it mightn't be so bad.
The priorities would still come in to it, so they shouldn't retreat in bad directions. But if multiple regions have close retreat values then units might spread out.
RE: Retreat Bug?
ORIGINAL: WanderingHead
What I liked about randomization is that if the algorithm isn't quite right, it wouldn't be so glaring since it wouldn't be all or nothing. If 5 units retreated to Gorki and 3 to Moscow it mightn't be so bad.
The priorities would still come in to it, so they shouldn't retreat in bad directions. But if multiple regions have close retreat values then units might spread out.
You've persauded me. It even feels kind of right that the game might sometimes model the confusion and chaos that could occur in military retreats. Gives another enjoyable variable to the game as well, perhaps. When I refer back to my original post, I would have been quite happy if only a part of my 5 retreating infantry and 6 retreating artillery went to Moscow.
RE: Retreat Bug?
Ah ha! Now I know that supplies are important I did another experimental attack and this time packed Moscow with supplies - it worked! My retreating Kursk units went to Moscow! Well, it's better than dismantling the Gorki factory.
Could I humbly ask you for a bit more detail - I've tried following your algorithm but I can't get my sums to add up. Should have studied maths harder at school.
ORIGINAL: WanderingHead
The start of game (Global Glory) values are Moscow: 41, Gorki: 46
Could I humbly ask you for a bit more detail - I've tried following your algorithm but I can't get my sums to add up. Should have studied maths harder at school.
RE: Retreat Bug?
In my experiment, fyi, Moscow always had more supply (I can check the amount). But, I still think it is a bit gamey to have to produce and stockpile supply to ensure units retreat to an area that (as indicated in SPs) was of tremendous importance in the war....