Page 1 of 1

Siberian cavalry in the Caucasus

Posted: Mon Nov 29, 2010 6:44 pm
by GlobalExplorer
.. really should not constantly destroy my railways! (Southern White) They have become a real nuisance, more than the occasional red stack that wanders through the region.

Posted: Mon Nov 29, 2010 7:33 pm
by Janohito
I completely agree. That unit is really annoying. How does it even gets there?

Posted: Mon Nov 29, 2010 10:28 pm
by PhilThib
Guys, as a rule when you have such an issue, you must post a save here so that the dev can have a look into it, otherwise it's impossible to solve :(

Posted: Mon Nov 29, 2010 10:31 pm
by GlobalExplorer
lone_cavalry.AI
if ( region.military_control(RED) > 50% )
destroy_railroad( random )
else
let_it( ffs! )

Posted: Mon Nov 29, 2010 10:45 pm
by Rafiki
Your pseudocode is straight-forward, but if we get the chance, we like to dig a little deeper when we have the chance to look at the conditions underlying specific situations. Hence, a savegame is always of good value, even if the immediate solution can be simple :)

Posted: Mon Nov 29, 2010 11:37 pm
by Janohito
Ok, there is the save

Posted: Tue Nov 30, 2010 1:29 am
by OneArmedMexican
I believe this is part of a more general problem caused by the introduction of a third AI.

Here is further proof from my Campaign as Siberian White: I got some Don Cossack visitors. Lovely guests: they eat up my food and blow my railways up! :p leure:

[ATTACH]13778[/ATTACH]

Whenever troops are in territory belonging to another Faction they start to tear up railways. Is there any line in the code that tells them not to destroy railways if a region is 100% controlled by an allied faction?

Edit: I played this campaign for a further two turns: my guests became polite again and repaired that very same railway themselves (I guess the AI found a new way to waste ressources). :blink:

Posted: Tue Nov 30, 2010 9:12 am
by Cat Lord
Hi,

we found the bug of the badass ally "No I will get to Moscow before you, neener". :neener:

This will be fixed in the next patch. :)

Cat