![]() |
Re: Question re AI Modding
Originally posted by Q:
Quote:
My preference for the New Systems first Colony would be a Resupply Depot as the first for an AI. - - Quote:
In addition, with the Vehicles Construction file there is also a protocol of rules to be followed by the AI Players. Please refer to reference. Even an early introduction of just one Base Ship Yard after the initial Colonizer enty from the AI explore state, will increase the AI’s efficiency in all areas for the AI build sequences http://forum.shrapnelgames.com/images/icons/icon12.gif In many cases, units from the Vehicles file will be built at the Home World. http://forum.shrapnelgames.com/images/icons/icon12.gif = = = Then followed by the AI Player to consider its 'RACE'_AI_Construction_Units File On each turn, this file will be processed (if it exists), as a Default in the AI folder but better IMO is in the actual Race Folders and taylored for that race; as well http://forum.shrapnelgames.com/images/icons/icon12.gif Units will be added to all planetary construction queues which: 1. Are not currently busy. 2. Those planets which have reached maximum facilities. 3. The amount consumed per turn won't reduce the empire's resources to zero. Note: If there are units listed in the AI_Construction_Vehicles.txt file, they will be constructed normally. As per Vehicales File build Rules. - - - - Quote:
I also agree that Colonies do not get rush units at defalt files, se4 v1.84 usually directs the Colonies to build a Facility first, then at some point it gets around to building units. http://forum.shrapnelgames.com/images/icons/icon9.gif However, if we manipulate that AI's Facility file to exclude Facilities to be built in AI STATE Defend (Short Term); this may prioritize the Unit File for that AI when he is in that state to RUSH build Units for a Colonies Protection, however this may set the AI back if he requires Resources and is for ever reverting back to that excluded state. Also to consider at the current default and with a slower unit production; domed Colonies may be insured quality unit later in the game. Just some fuel for thought http://forum.shrapnelgames.com/images/icons/icon12.gif = = = = = = Reference _AI_Construction_Vehicles File Rules: 1. The game picks a selection based on the AI State. There cannot be duplicate AI states. 2. Item will be placed at whichever spaceyard is available and can get it done the fastest. 3. First item in the queue is selected, and evaluated. 4. If the Build at Least value is greater than 0, we check if the Planet Per Item condition is still true. If it is, then we purchase another one, if not, we move to the next queue item. If we do purchase another one, we continue in this loop until the condition is false, or we have purchased the number in Build At Least. 5. When the Last item is reached, it restarts at the beginning. ~ _AI_Construction_Facilities File AI State := Exploration, Infrastructure, Prepare for Attack, Attack, Secure Holdings After Attack, Incursion, Prepare for Defense, Defend (Short Term), Defend (Long Term), Not Connected Construction Queue Type := Mining Colony Num Queue Entries := 14 Facility 1 Ability := Supply Generation Facility 1 Amount := 1 ~ se4 Default_AI_Construction_Vehicles AI State := Exploration Num Queue Entries := 15 Entry 1 Type := Attack Ship Entry 1 Planet Per Item := 50 Entry 1 Must Have At Least := 2 Entry 2 Type := Weapon Platform (I would recommend as Entry 1) Entry 2 Planet Per Item := 0 Entry 2 Must Have At Least := 2 ~ se4's SAMPLE Default_AI_Construction_Units Percentage of Resources To Reserve For Unit Construction := 10 (This may be raised a little for some extra early game units) Colony Type := Homeworld Num Queue Entries := 5 Entry 1 Type := Troop Entry 1 Maximum in kT := 200 Entry 2 Type := Weapon Platform Entry 2 Maximum in kT := 600 Entry 3 Type := Fighter Entry 3 Maximum in kT := 200 Entry 4 Type := Weapon Platform Entry 4 Maximum in kT := 1200 Entry 5 Type := Fighter Entry 5 Maximum in kT := 65000 [ October 03, 2003, 22:26: Message edited by: JLS ] |
Re: Question re AI Modding
Quote:
Then reload the the saved game from there http://forum.shrapnelgames.com/images/icons/icon12.gif [ October 03, 2003, 12:55: Message edited by: JLS ] |
Re: Question re AI Modding
Quote:
|
Re: Question re AI Modding
Quote:
|
Re: Question re AI Modding
Exactly.
Now you need to follow this up with a Unit File that includes the Colony type the AI may Subscribe too. For Example see reference You also may include a cell for that exampled Mining Colony Type: Just for that AI STATE Defend (Short Term) Why AI STATE SHORT TERM DEFEND? This is so; when the AI is triggered to go into this (strategy state) it will consider what is really to be needed to be built; by the designers wishs. The AI will be triggered into a SHORT TERM STATE by: With an Enemy in Territory ONLY from any existing AI (strategy) State other then (Defend Long Term and possibly with in the Defend Short Term in its self… But will continue thru the entire defaulted: AI State :=(Defense, Defend (Short Term), Defend (Long Term) States; as long as an Enemy is in your AI's Territory http://forum.shrapnelgames.com/images/icons/icon12.gif The Short Term State will Last for (about 5 turns) and will Prompt the AI to start fresh builds from the AI Facilities, Vehicle Files (if that Colony has a Ship Yard) and the Units File. This AI prompt will NEVER delete any existing builds in the Queue and May add to the existing build tasks for some Queues. With a Default Vehicle File; The AI subscription will start at Entry 1 Type. example se4 default AI Vehicle File: AI State := Prepare for Defense, Defend (Short Term), Defend (Long Term) Num Queue Entries := 21 Entry 1 Type := Weapon Platform Entry 1 Planet Per Item := 0 Entry 1 Must Have At Least := 2 Entry 2 Type := Satellite Entry 2 Planet Per Item := 0 Entry 2 Must Have At Least := 2 "~" Any and all build prompts also will be subject to the Facility, Vehicles and Unit build protocol of Rules. The AI will remain in the strategy state of: Defend Short Term if an attack is underway by enemy forces. This is the early stages of the defense for about the (first 5 turns). If the enemy is now; only near by and not in your AI’s System and there, is (no) unexplored systems close by; then the AI will switch to: Infrastructure State If the AI can still explore some new systems with no Enemy nearby; then the AI will default to the EXPLORE STATE. If the Enemy attack is continuous in your AI’s territory THEN your AI may perceive this to be a prolonged conflict and need to TOTALLY defend its systems http://forum.shrapnelgames.com/images/icons/icon9.gif your AI Player will lock into and to continue with the Defend Long Term (strategy set) until that enemy is gone from its territory then that AI will resume at the Infrastructure State; until another trigger. http://forum.shrapnelgames.com/images/icons/icon12.gif Reference Example Only "RACE"_AI_Construction_Facilities AI State := Defend (Short Term) Construction Queue Type := Mining Colony Num Queue Entries := # Facility 1 Ability := Supply Generation Facility 1 Amount := 1 Facility 2 Ability := Shield Modifier - System Facility 2 Amount := 1 Facility 3 Ability := Combat Modifier - System Facility 3 Amount := 1 Facility 4 Ability := Damage Modifier – System Facility 4 Amount := 1 Facility 5 Ability := Change Population Happiness – System Facility 5 Amount := 1 Facility 6 Ability := Stop Planet Destroyer Facility 6 Amount := 1 Facility 7 Ability := Stop Black Hole Creator Facility 7 Amount := 1 Facility 8 Ability := ETC Example only “RACE”_AI_Construction_Units Colony Type := Mining Colony Num Queue Entries := 23 Entry 1 Type := Fighter Entry 1 Maximum in kT := 140 Entry 2 Type := Troop Entry 2 Maximum in kT := 60 Entry 3 Type := Weapon Platform Entry 3 Maximum in kT := 200 Entry 4 Type := Troop Entry 4 Maximum in kT := 140 Entry 5 Type := Weapon Platform Entry 5 Maximum in kT := 400 Entry 6 Type := Fighter Entry 6 Maximum in kT := 350 Entry 7 Type := Troop Entry 7 Maximum in kT := 340 Entry 8 Type := Weapon Platform Entry 8 Maximum in kT := 600 Entry 9 Type := Troop Entry 9 Maximum in kT := 540 Entry 10 Type := Weapon Platform Entry 10 Maximum in kT := 1000 Entry 11 Type := Troop Entry 11 Maximum in kT := 940 Entry 12 Type := Fighter Entry 12 Maximum in kT := 600 Entry 13 Type := Weapon Platform Entry 13 Maximum in kT := 2000 Entry 14 Type := Troop Entry 14 Maximum in kT := 1140 Entry 15 Type := Fighter Entry 15 Maximum in kT := 1200 Entry 16 Type := Weapon Platform Entry 16 Maximum in kT := 3000 Entry 17 Type := Troop Entry 17 Maximum in kT := 1340 Entry 18 Type := Weapon Platform Entry 18 Maximum in kT := 4000 Entry 19 Type := Troop Entry 19 Maximum in kT := 1540 Entry 20 Type := Weapon Platform Entry 20 Maximum in kT := 5000 Entry 21 Type := Satellite Entry 21 Maximum in kT := 2400 Entry 22 Type := Weapon Platform Entry 22 Maximum in kT := 6000 Entry 23 Type := Troop Entry 23 Maximum in kT := 3000 [ October 07, 2003, 20:30: Message edited by: JLS ] |
Re: Question re AI Modding
hmm, I dunno. From my observations the AI uses the Defend (Short Term) as the most common state. And also can stay there for long periods of time.
That is why I treat Defend (Short Term) as the default state (usually use the same queues as Infrastructure). Removing the facility builds could hurt the development of the AI IMHO. |
Re: Question re AI Modding
Originally posted by Rollo:
Quote:
And agreed, that if the Enemy stays in the AI players Territory that with the se4 default layout of AI States "as you say" and as we both have seen http://forum.shrapnelgames.com/images/icons/icon12.gif the AI will remain in the Defend (Short Term) and Continue thru and to the Defend (Long Term) as per the se4 default SET with respect of the Vehicle File: AI State := Prepare for Defense, Defend (Short Term), Defend (Long Term) Un till that enemy is cleared. Quote:
Un till that enemy is cleared. http://forum.shrapnelgames.com/images/icons/icon12.gif Then exit to the Explore State if there are still unexplored Systems near http://forum.shrapnelgames.com/images/icons/icon12.gif And (may not reset) to Entry 1 of the non-defaulted and combined Infrastructure State; after the AI has cleared the Enemy and is directed to resume the Infrastructure State. Because in that layout, it is already producing in that State. In addition, this non-default lay-out (((may))) result in the probable non-subscribing of the Defend (Long Term), depending on where this may be located or paired with; in a non-defaulted se4 Vehicles file. http://forum.shrapnelgames.com/images/icons/icon7.gif Quote:
as I posted, but this is an option and fuel for thought to produce Units in a possable time of need, thats all... And does come with a circumstance http://forum.shrapnelgames.com/images/icons/icon12.gif [ October 07, 2003, 22:15: Message edited by: JLS ] |
Re: Question re AI Modding
Quote:
In regards to Defend (Long Term), I cannot recall seeing an AI in this state once. It is rare to say the least. Quote:
[ October 07, 2003, 23:42: Message edited by: Rollo ] |
Re: Question re AI Modding
Rollo, you are introducing an AI doctrine that you feel is best for the environments that you perceive, and your doctrines are solid; please do not misunderstand me. Your doctrine offers a great deal towards AI growth and probable economic options.
However, the AI is hard coded to change States when another non-treaty Empires Ship enters your AI's territory and that AI State is AI State := Defend (Short Term). If Defend (Short Term) is paired with another AI State so-be-it and is irrelevant, the AI will not change States again until there is no longer an enemy ship in its territory. In addition, the AI may decide to continue to the Defend (Long Term) State, which in actuality is nothing more then a continuation of the (Short Term state) build process with the default Vehicle Construction File. So basically to say, with a Lay out of AI State := Defend (Short Term), Infrastructure; and the Enemy is not cleared from that AI’s Territory that as far as the Vehicle Construction file is concerned, the whole Category of the non-default {Defend (Short Term), Infrastructure} is in actuality the continuation of the now non-existent Defend (Long Term) State; that was once combined as above. ~ Also to say that the Hard Code will allow the AI to change from the Defend (Short Term) States, ONLY after the enemy is cleared, and excluding (Long Term); that this will yield only TWO strategy state options for that AI: 1: Explore State and only if there is NOT an Enemy controlled System nearby and there is in fact an unexplored System near. 2: Infrastructure State and only if the Enemy is still near but not actually in its Territory and there are no Un-explored Systems nearby. = = = = Quote:
Other then to say, as I posted above; in regards to some obvious strengths. http://forum.shrapnelgames.com/images/icons/icon7.gif - - - - Quote:
What I proposes is happening to your Defend (Long Term) and only as this applies to your Vehicle Construction file is that; what is probably happening, is that the Continuation from Short Term defend to Long Term Defend can not happen, and that this continuation for Long Term Defend is in your: Defend (Short Term)--> that will Continue to your combined---> Infrastructure State… http://forum.shrapnelgames.com/images/icons/icon12.gif - - - - Quote:
“Also to say that the Hard Code will allow the AI to change states; ONLY after the enemy is cleared, and that this will yield only TWO strategy state options for that AI:" 2: Infrastructure State and only if the Enemy is still near but not actually in its Territory and there are no Un-explored Systems nearby.” If your AI is already in the Infrastructure State as it is also paired with the Defend (Short Term). Now when it comes out of the Defend (Short Term) State it is already in the Infrastructure State Hence as it is already producing in that Category it may not reset to Entry 1 of your: AI State := Defend (Short Term), Infrastructure; with in your Vehicle Construction file Category. http://forum.shrapnelgames.com/images/icons/icon7.gif [ October 08, 2003, 19:35: Message edited by: JLS ] |
Re: Question re AI Modding
Is there some place where the various triggers that change the AI state are described? I have no idea how to determine what state an AI is in, so I can't figure out how you know what the triggers are for changing them. If someone could give me a pointer on that, it would be very appreciated.
|
All times are GMT -4. The time now is 03:11 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.