Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Mar 29, 2024 2:33 pm
All times are UTC + 0
Same techlevel buildings and AIbaseplanningside problem
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Frank123
Medic


Joined: 19 Sep 2016
Location: Somewhere in Asia

PostPosted: Fri Dec 30, 2016 6:28 pm    Post subject:  Same techlevel buildings and AIbaseplanningside problem
Subject description: Hope senior modders could help me out!
Reply with quote  Mark this post and the followings unread

I have two questions:
1. If two or three buildings have the same techlevel, how do I know which one AI will pick to build first? I have two buildings with the same tech level and prerequisite, but AI only build one and build the second after they have finished building other structures.
2. I want sandbag walls available for all sides, so I set AIbaseplanningside=-1 (as I read in Modenc) and set TechLevel=1, but it always shows at the bottom of the sidebar. Is there any way i can do to get it showed on the top of the sidebar other than cloning the walls for three sides?

Last edited by Frank123 on Fri Dec 30, 2016 6:48 pm; edited 2 times in total

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Dec 30, 2016 6:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

1. AI goes constantly through the BuildingTypes list from top to bottom.
If it finds a building that it can and has to build, it builds it and starts from top again.

2. afaik order of the BuildingTypes list defines the order in the sidemenu (at least it's this way in TS)
To have a building higher in the menu, you have to move it up in the BuildingTypes. But beware that this way you change the index of the following buildings and thus break all ai.ini scripts that refer to these buildings by their index number. So you have to edit ai.ini as well if you change the BuildingTypes list.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Fri Dec 30, 2016 7:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

The build icon sorting is actually tad bit more complex in RA2/YR than just looking at the BuildingTypes array order.

The bit about BuildingTypes array order influencing AI's build order stands, however.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1341s ][ Queries: 11 (0.0082s) ][ Debug on ]