Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computer player refuses to mine when low on gold #612

Closed
mefistotelis opened this issue Aug 18, 2015 · 11 comments
Closed

Computer player refuses to mine when low on gold #612

mefistotelis opened this issue Aug 18, 2015 · 11 comments

Comments

@mefistotelis
Copy link
Member

Originally reported on Google Code with ID 612

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.

Reported by Loobinex on 2015-05-10 18:36:27

@mefistotelis
Copy link
Member Author

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.

Reported by Loobinex on 2015-05-10 19:04:30

@mefistotelis
Copy link
Member Author

Can you remind me how to enter observe mode through cheats? Would be very useful to
me

Reported by eatpajdittsvin on 2015-05-11 21:10:37

@mefistotelis
Copy link
Member Author

start game with -alex. Possess creature, Press F12.

Reported by Loobinex on 2015-05-11 21:48:09

@mefistotelis
Copy link
Member Author

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.

Reported by Loobinex on 2015-05-18 17:10:01

  • Labels added: Component-CompPlayer

- _Attachment: [MAP612_2.7z](https://storage.googleapis.com/google-code-attachments/keeperfx/issue-612/comment-4/MAP612_2.7z)_ - _Attachment: [612_2.jpg](https://storage.googleapis.com/google-code-attachments/keeperfx/issue-612/comment-4/612_2.jpg)_

@mefistotelis
Copy link
Member Author

Any chance of knowing what revision this started happening?

Reported by eatpajdittsvin on 2015-05-18 17:33:53

@mefistotelis
Copy link
Member Author

I am tired, ignore mail :p I swear I had read through whole thread before posting...

Reported by eatpajdittsvin on 2015-05-18 17:34:38

@mefistotelis
Copy link
Member Author

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)

Reported by Loobinex on 2015-07-27 21:41:05

@Loobinex
Copy link
Member

The third level of the jdkmaps8 campaign (205, Key of victory) has two keepers. Because of this bug, neither of them do anything.

@Loobinex
Copy link
Member

This bug is also present in the stable branch(r1745 patch, git ab7381b). I ran into it on this map.

@mefistotelis
Copy link
Member Author

There was a sign issue. Should be fixed in c9cbbd5.

@Loobinex
Copy link
Member

Confirmed fixed in KeeperFX v0.4.6 r1749 patch, git c9cbbd5, dated 2015-11-11 20:44:02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants