Game Version:
- Build (35584)
- Platform (Steam)
Issue:
- (up-find-player find-random some-goal) --------------- “find-random” is broken… Return error value
2.(up-clean-search search-local object-data-full-distance search-order-asc) -------- “object-data-full-distance” is broken… Return error value - I think this rule cause custom_AI deletes all of its building
Reproduction Steps:
About delete-buildings, i had got:
First, AI already built 15 stables in the map:
(defrule
(true)
=>
(up-full-reset-search)
(up-find-local c: stable c: 15)
)
(defrule
(up-object-type-count c: stable c:> 10)
=>
(up-remove-objects search-local object-data-index c:> 0)
(up-target-point 0 action-delete -1 -1)
(up-get-fact building-type-count stable test)
(up-chat-data-to-self "Stables are %d" g: test) ;text 15,15,15,15,15,15,15,15,15,15,14,13,12
)
I think it will delete 5 stables at most, but actually it deletes all of stables instantly…
Sure, 15 stables were deleted at the moment…
(ATTACH A SCREENSHOT IF YOU ARE ABLE!)