AI and Buildings
Moderators: Balthagor, Legend, Moderators
-
- Lieutenant
- Posts: 91
- Joined: Oct 29 2002
AI and Buildings
As far as I get it the Ai doesn't build new buildings.. is that correct? If that's the case do the AI atleast upgrades the existing buildings?
The reason I want to know is because it feels like I'm cheating when I build new facilities so I don't anymore. However I am still upgrading buildings but if the AI don't do that I won't upgrade myself anymore.
The reason I want to know is because it feels like I'm cheating when I build new facilities so I don't anymore. However I am still upgrading buildings but if the AI don't do that I won't upgrade myself anymore.
-
- General
- Posts: 1182
- Joined: Sep 23 2003
- Location: UK
- Balthagor
- Supreme Ruler
- Posts: 22106
- Joined: Jun 04 2002
- Human: Yes
- Location: BattleGoat Studios
-
- Lieutenant
- Posts: 91
- Joined: Oct 29 2002
- Lightbringer
- General
- Posts: 2973
- Joined: May 23 2006
- Location: Texas
I've been wondering about this all day. Take a Military goods factory at 50%... the AI starts repairing it after a F/B damages it slightly... Would it repair to 100% or simply back to 50%?
I can understand it being programmed to only achieve the level previously reached by the industial complex, but for 2020, it might be an easy fix to have the AI attempt to "repair", to complete functionality, anything not at 100% (or whatever the top possible % is for that hex/industry, say "repair" a 25% oil field to it's maximum 38%), even if no enemy had actively damaged it.
This would allow the AI some level of efficiency and optimisation without having to rewrite the entire code for how the AI does things (I think???). I'd still prefer it to be able to identify needs and build accordingly, but this would help.
I can understand it being programmed to only achieve the level previously reached by the industial complex, but for 2020, it might be an easy fix to have the AI attempt to "repair", to complete functionality, anything not at 100% (or whatever the top possible % is for that hex/industry, say "repair" a 25% oil field to it's maximum 38%), even if no enemy had actively damaged it.
This would allow the AI some level of efficiency and optimisation without having to rewrite the entire code for how the AI does things (I think???). I'd still prefer it to be able to identify needs and build accordingly, but this would help.
"Socialism is a philosophy of failure, the creed of ignorance, and the gospel of envy, its inherent virtue is the equal sharing of misery.” -Winston Churchill
- tkobo
- Supreme Ruler
- Posts: 12397
- Joined: Jun 04 2002
- Location: In a vast zionist plot ...RIGHT BEHIND YOU ! Oh Noes !
Interesting question.
Ill add some:
1) If the AI only reppairs to the state the facility was before it was damaged, how does it what that state was ?IE how does it know at what % to stop the reppairs, to make the faciltity what is was ?
2) If such an idea was worked out, how would the AI know how to not go into bankruptcy with all the building/construction costs that would accrue when it decided to "reppair" everything ?
Ill add some:
1) If the AI only reppairs to the state the facility was before it was damaged, how does it what that state was ?IE how does it know at what % to stop the reppairs, to make the faciltity what is was ?
2) If such an idea was worked out, how would the AI know how to not go into bankruptcy with all the building/construction costs that would accrue when it decided to "reppair" everything ?
This post approved by Tkobo:Official Rabble Rouser of the United Yahoos
Chuckle TM
Chuckle TM
- Balthagor
- Supreme Ruler
- Posts: 22106
- Joined: Jun 04 2002
- Human: Yes
- Location: BattleGoat Studios
Tkobo's second point is accurate, that there would need to be a limit on this. We didn't have the AI upgrade existing industries because we didn't work out making the AI understand when it needed more of an industry and could afford to invest in it. This is all stuff we have high on the priority list for Supreme Ruler 2020 so I doubt we'll see the same problems.
There are lots of things the AI can do, the trick is not teaching it when it should do these things...
There are lots of things the AI can do, the trick is not teaching it when it should do these things...
- Lightbringer
- General
- Posts: 2973
- Joined: May 23 2006
- Location: Texas
I know this isn't the exactly proper place for furthering this discussion, so I'll keep it brief and continue in 2020 chat if more comes to me.
The only idea for limits that pops into my head would be basing repair-upgrading etc. on shortages. That is, have a domestic shortage be a trigger for such behavior and only for that type of industry.
I'm glad to hear the topic is being worked upon, and if anything more detailed or useful comes to me I'll post it under 2020.
((oh....and if anyone discovers that the AI does repair past initial % to 100%? Please let me know. I'll start "tagging" industries in struggling AI opponent's regions. ))
The only idea for limits that pops into my head would be basing repair-upgrading etc. on shortages. That is, have a domestic shortage be a trigger for such behavior and only for that type of industry.
I'm glad to hear the topic is being worked upon, and if anything more detailed or useful comes to me I'll post it under 2020.
((oh....and if anyone discovers that the AI does repair past initial % to 100%? Please let me know. I'll start "tagging" industries in struggling AI opponent's regions. ))
"Socialism is a philosophy of failure, the creed of ignorance, and the gospel of envy, its inherent virtue is the equal sharing of misery.” -Winston Churchill
-
- General
- Posts: 1390
- Joined: Dec 22 2004
- Location: Holland
- Lightbringer
- General
- Posts: 2973
- Joined: May 23 2006
- Location: Texas
I played Greece in WWIII....not exactly an economic powerhouse. Actually, what country do you mean? I guess there is some worthwhile challenge to trying to defeat some rich country's tanks and jets with garrison units and stingers, and billions of dollars of red ink. There is nobility in standing in front of a main battle tank with a briefcase and being smashed into paste too, ask that kid in Tienamen.
I tend to play weaker regions within any scenario I play, but I like to be able to do something besides watch my debt grow and wait to be attacked.
I tend to play weaker regions within any scenario I play, but I like to be able to do something besides watch my debt grow and wait to be attacked.
"Socialism is a philosophy of failure, the creed of ignorance, and the gospel of envy, its inherent virtue is the equal sharing of misery.” -Winston Churchill
-
- General
- Posts: 1390
- Joined: Dec 22 2004
- Location: Holland
- Lightbringer
- General
- Posts: 2973
- Joined: May 23 2006
- Location: Texas
I'll keep them in mind.
Trust me when I say, that the upgrades and new buildings I implement when I'm starting a game are very often a horrendous burden on whatever economy I'm playing. Often I end up all but shutting down the rest of the country to get the first few finished. I don't think it would be much fun to hit start, build everything I could want or need and not break a sweat. I like having to pick one project and finish it before I can afford the next (and if I pick the wrong one I can't afford the next).
So back to topic....hmmm I said I'd take this to 2020...I'll post later.
Trust me when I say, that the upgrades and new buildings I implement when I'm starting a game are very often a horrendous burden on whatever economy I'm playing. Often I end up all but shutting down the rest of the country to get the first few finished. I don't think it would be much fun to hit start, build everything I could want or need and not break a sweat. I like having to pick one project and finish it before I can afford the next (and if I pick the wrong one I can't afford the next).
So back to topic....hmmm I said I'd take this to 2020...I'll post later.
"Socialism is a philosophy of failure, the creed of ignorance, and the gospel of envy, its inherent virtue is the equal sharing of misery.” -Winston Churchill
-
- Corporal
- Posts: 4
- Joined: Jul 06 2007
I think it'd be relatively "safe" for the AI to upgrade things slowly... for example, can it tell when its supply is much less than its demand? If it has the ability to determine what it's not making enough of, then it could just start an upgrade of one facility per, say, week. For this to work the AI needs to be able to take as inputs 3 things: current supply, current demand, and whether or not a building is at its current maximum potential. Then, it just needs to work out what industry it's most deficient in, and then select from the list of industries of that type one which is not fully upgraded. It should then start upgrading construction on that one industry. If it did this every week, it would have a slowly growing capacity in most things, and while it still doesn't solve the issue of AI not *building* more facilities, at least it'd help the AI grow a bit in scenarios where most industries start out under strength... I should think that this wouldn't be a dreadfully hard script to write, and while it's not perfect (if the AI is broke it'd still try to upgrade, with poor results), I think it would work well enough in most situations, and would make the AI a fair amount more challenging.
-AGT
-AGT