Coding questions - AI building ships + random missions -1 reply

Please wait...

Darth_Windu

RotC Creator

50 XP

3rd September 2007

0 Uploads

1,194 Posts

0 Threads

#1 10 years ago

Hi folks,

Two questions for the knowledgable of you out there.

1. Whenever I'm playing my mod, the Empire tech levels up fine, but even at tech level 5 they build massive fleets of Interdictors and Victory's, but no Imperial Star Destroyers. Why is this, and how do I change it?

2. How do I re-enable the random missions from EaW, such as the Rebels receiving intelligence from the Pirates that turns out to be an ambush etc?

Cheers.




Guest

I didn't make it!

0 XP

 
#2 10 years ago

to 1.: Have you tried to set of the SDs higher?




Sidious Invader

Dark Lord Of The Sith

50 XP

9th January 2007

0 Uploads

853 Posts

0 Threads

#3 10 years ago

2. In campaigns_Underworld_Gc.xml find the campaign for the Rebels, make the SandboxHuman, then look for the Story plots for the rebels, and put the Interventions as Suspended plots(see EAW story plot xmls.)




Nebulogan_B

Knowledgeable, but weird

50 XP

7th September 2007

0 Uploads

351 Posts

0 Threads

#4 10 years ago

I think the ai builds stuff at random (i've seen some stuff somewhere in the files that says "Blind space Production" and Blind Groudn Production" or soemthing like that, but in my mod the ai builds droidekas a lot and I haven't really done very much with their code, which is based on the rebel trooper. Perhaps they do build ISDs, but ISDs just take so long to build that as a result there are more of the other ships.




Darth_Windu

RotC Creator

50 XP

3rd September 2007

0 Uploads

1,194 Posts

0 Threads

#5 10 years ago

Nebulo - no, they'd don't build them at all. I've edited the Ai combat power thingy, I'll see if that makes a difference.




Nebulogan_B

Knowledgeable, but weird

50 XP

7th September 2007

0 Uploads

351 Posts

0 Threads

#6 10 years ago

Well in order to build them the Ai has to be at tech 4 with a level four base on either Kuat, Sullust, Fondor, or Mon Calamari, it may be that not all of these conditions are met and as a result the Ai can't build any. I have noticed that the Ai does build most if not all of the units I added in my mod, I have seen rebel droidekas quite often and AATs and Snail tanks even more often than t2-bs, as far as Ai_Combat_Power, I saw a comment near the Ai_Combat_Power line for the pirate frigate leader that says "the Ai should be discouraged from attacking this" (pirate frigate leader ai combat powers is either really high or really low, but I can't remember which), ai combat power isn't what you would name a line for building something (more likely it is how much other units will stay away from the unit, to give the appearance that they are afraid), it is possible that the ai builds stuff based mostly or completely on ship class, the star destroyer is the only capital empire class in vanilla EaW, you should try changing the ship classes of other ships to capital and see if the ai still builds them.




Guest

I didn't make it!

0 XP

 
#7 10 years ago

Yes, it is a problem on game, you can change AI Combat Power but I think that you must look other things as the class of ship, the planets where you can build it, the structures that you can need and the money that AI need if it wants build it.

There are some lua files that can help you, BuildSpaceForcesPlan.lua and ConquerOpponentPlan.lua , on BuildSpaceForcesPlan you can design the class of the ships on AI fleet and on second the number and the minimun AI combat power that AI needs on one attack fleet.