-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
AI Points: Print spending/gains to chat, award idle biters bonus points #48
Conversation
…ters bonus points Configurable settings for: 1) Printing AI point spending to chat 2) Printing AI point gains to chat 3) Granting "Idle Biters" bonus points
Are 1 and 2 for debugging? |
adds /rampantSetAIState command sets the player's current surface to the state index passed to the command
Hi Veden, 1 and 2 were originally for debugging, yes. The spending points option adds some GPS tags to the chat message as the squads spawn (and it automatically pings the map) which is pretty cool even if somewhat cheaty. They may be worthwhile keeping exposed as map options for players who are trying to diagnose issues with their map. 3 was originally designed for a version of Rampant that I don't believe was correctly generating passive points at lower evolution %s. However, I think this feature does still have a place as it raises the "difficulty floor" of a play through without raising the ceiling. For example, in the early game when not much is happening it allows you to give Rampant the ability to attack and expand. In the opposite direction, when Rampant is smashing you in Onslaught mode, it does nothing. |
for 3, have you tried it to see if it is functioning as you expect still? |
Yes. It's been rewritten and tested for 1.0.9. |
Is 3 for overrunning the points cap? |
how often is the cap reached and the passive increase triggers? |
It's not specifically meant to overrun the points cap. It does overrun it to the overflow limit. It doesn't need to though, it could be reworked to limit itself to the points cap rather than the overflow limit.
The passive increase introduced by 3) occurs when Rampant did not spend or gain any points (passive point gain is not considered) in the last rolling 60 seconds. So for example, if 60 seconds pass and Rampant does not create any unit groups (i.e. point spending) or gain any points from an action (i.e. ion cannon, rocket launch, worm/nest death, player building destruction) then the configured point bonus is granted. Any time there's a non-passive point decrease or increase then the timer resets itself. Let me know if I missed something else you were asking for this one.
It will activate in any state. |
I'm trying to understand why it is needed and when it is typically firing because it most likely means there is another bug. |
It increases the difficulty by giving the biters points when nothing is happening. One example: at the start of the game a good strategy is to clear the biters out of your pollution asap and not fight them until you absolutely need to (i.e. expansion). This starves them of AI points (i.e. you aren't killing their structures and they aren't killing yours). The implementation of 3) nerfs this approach by giving them points even though you're starving them out. I do believe there's some sort of bug with biter expansions / the AI_MIGRATION state. I was trying to figure out how everything works yesterday and what may be broken but couldn't find anything conclusive. I can start up a game and with the settings introduced in this pull see that the biters are doing nothing. For example here: https://i.imgur.com/XEv1SYE.jpg But sometimes it seems to work fine. There might also be problems with the AI_AGGRESSIVE state generating attacks at the start of the game too but I haven't spent the time to read over the code and try to understand how it's supposed to function yet. |
The AI will always accrue points up to the cap. |
Yes, I have seen that occurring properly. I think there is room for 3) to co-exist (i.e. providing a setting to increase difficulty floor without raising ceiling). Or you may be able to think of a better implementation which has a similar effect. Please let me know where you want to take the PR, if anywhere. Or if you want to discuss any details further. We could re-tag the chat messages with Debug: and/or separate 3) out of it. |
if you would, please separate 3. |
Sure, seeing what's going to be updated would be cool. |
the latest has been pushed |
The location in chat with the icon on the map is neat. |
thanks for the pull request |
Yeah it's pretty fun to see exactly what the AI is getting up to. We got smashed in Onslaught and I turned it on real quick before we reloaded and our entire base was surrounded by squad spawn pings, lol. btw based on some very brief testing it looks like you got the expansion bug. It's a big difference now. Pretty much as soon as the biters have enough points to migrate they immediately do it. |
Configurable settings for: