yvsarkisyan / keeperfx

Automatically exported from code.google.com/p/keeperfx
0 stars 0 forks source link

Computer player refuses to mine when low on gold #612

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When a computer player has a prison, it stops giving the imps jobs. To clearly 
see the behavior load level 5 from the new game+ campaign in r1823: 
https://keeperklan.com/downloads.php?do=file&id=107

This level is the same as the original level 5, except for the fact that blue 
has a prison from the start.

Load the level, use cheat mode to observe blue and notice that it partially 
builds the first room and than stops everything.

For comparison see level 5 of original campaign (with regular script or the 
level script from New game+) to see blue mines gold, digs rooms, places slabs.

The level used to work just fine in 0.4.5.

Original issue reported on code.google.com by Loobinex on 10 May 2015 at 6:36

GoogleCodeExporter commented 9 years ago
r1680 - works fine
r1757 - bugged
r1701 - bugged
r1686 - works fine
r1694 - bugged
r1691 - bugged

-> Problem introduced between r1686 and r1691.
Quite strange if I look at the change list.

Original comment by Loobinex on 10 May 2015 at 7:04

GoogleCodeExporter commented 9 years ago
Can you remind me how to enter observe mode through cheats? Would be very 
useful to me

Original comment by eatpajdi...@gmail.com on 11 May 2015 at 9:10

GoogleCodeExporter commented 9 years ago
start game with -alex. Possess creature, Press F12.

Original comment by Loobinex on 11 May 2015 at 9:48

GoogleCodeExporter commented 9 years ago
I tried to replace the prison with other rooms, and this causes the AI to bug 
out in other ways. If I made the room empty it would function properly, but if 
I replaced the prison with a graveyard the CP would stop using walls instead.

Updated map and screenshot from r1850 attached.

Original comment by Loobinex on 18 May 2015 at 5:10

Attachments:

GoogleCodeExporter commented 9 years ago
Any chance of knowing what revision this started happening?

Original comment by eatpajdi...@gmail.com on 18 May 2015 at 5:33

GoogleCodeExporter commented 9 years ago
I am tired, ignore mail :p I swear I had read through whole thread before 
posting...

Original comment by eatpajdi...@gmail.com on 18 May 2015 at 5:34

GoogleCodeExporter commented 9 years ago
A message on the keeperklan chatbox gave me the solution: The bug is related to 
how much gold the CP has. When low on gold the CP will not direct creatures to 
mine gold, and as such will freeze up completely.

To reproduce load map 5 from the New Game+ campaign of map 7 from Ancient 
Keeper campaign.
When you edit the level.txt to give the blue player gold will he will behave 
normally:
START_MONEY(PLAYER1,10000)

Original comment by Loobinex on 27 Jul 2015 at 9:41