Posted: Mon Sep 19, 2016 7:44 am Post subject:
Ares Custom Foundation bug?
Subject description: AI keeps building the same building type
Hello! I'm new to this forum!
Today I've just applied ares' custom foundation for the Psychic Amplifier to remove the blank four corners of it. Human player is perfectly normal but AI's are so stupid that they keep building more and more of it instead of 1, ignore BuildLimit=1.
AI's weird behavior is only back to normal after I've removed the custom foundation's code.
I'm using Ares version 0.9
I've double checked the rules code and it's ok, and here is the art code:
The first cell in a building needs to be occupied (Foundation.0 = 0,0) otherwise the AI doesn't recognize that it has been built. You also didn't generate an outline, it's not required but it's recommended to do so. _________________
Thank you very much Mig! Btw, I've cloned the building without custom foundation for AI and the problem is solved now. But I still hope future Ares version could fix this problem. QUICK_EDIT
The first cell in a building needs to be occupied (Foundation.0 = 0,0) otherwise the AI doesn't recognize that it has been built. You also didn't generate an outline, it's not required but it's recommended to do so.
So this is a known bug? I have been having the same issue with a "cross" foundation building. Is there anyway to solve this without losing the shape? QUICK_EDIT
It's not a bug, and it won't be fixed. Note that you can use negative coordinates to shift the foundation so the 0,0 field is never empty.
"Fixing" this would mean adding code that incurs a performance cost for everyone, even if not required, because others set up the foundations correctly. Also it would second-guess the modder's decision and thus would appear to behave randomly.
The reason for the issue is that the AI places a building and then looks at the very cell it placed the building at whether it was placed and still exists. If the cell is empty because there's a hole in the foundation, then apparently the building has not been placed there or it is assumed to have been destroyed. This confuses the AI and its base building efforts. _________________ QUICK_EDIT
Only pair I can understand are the X, Y values for the cells that Ares can use. It
is mentioned in Ares docs, that not to use Chrome browser. With other browsers,
Renegade's tool generates correct values.
Using negative values for X and Y, clips the foundation in the game. QUICK_EDIT
So there is no way to make a cross-shaped foundation building for AI? I don't understand the "negative coordinates" part, could you make it clear?
Sorry, English is not my 1st language. QUICK_EDIT
In your case, you can remove 1 cell from 3 sides but leave the 0,0 cell as it is. AI
doesn't have problem with that. (Left part of the image).
Negative coordinates is not useful as the game clips them and the foundation is
reduced. Shown as in the in-game image when cell coordinates are reduced by 1.
I'll probably do some testing into these negative coordinates, but in the meantime, I take it, an AI-only clone of the building is the way to go, huh? QUICK_EDIT
I had this bug since 2014. _________________ If you are a MetalHead (Heavy Metal Fan) and don't want to be a metalhead, Just remove your metal ball from your head. �:p .
QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum