View Single Post
Old 08-25-2005, 01:27 PM   #5 (permalink)
DCoder
Senior Member
 
Join Date: Jul 2003
Location: Lithuania, Central Europe
Posts: 1,056
Send a message via MSN to DCoder
Default

Wow, I seem to have forgotten quite a lot of standard RA2 differences, sorry about that.

Well, I just tried that and, well, played for >30 minutes with speed build and didn't see the AI getting confused, nor the NCO occuring... Here's what I changed:

[GAPILL]
TechLevel=-1 ; AI can use it, we can't

[NALASR]
TechLevel=-1 ; AI can use it, we can't

[GAPILL2]
Image=GAPILL
;code identical to GAPILL goes here
Prerequisite=BARRACKS
AIBuildThis=no
IsBaseDefense=no
Owner=British,French,Germans,Americans,Alliance,Ru ssians,Confederation,Africans,Arabs
RequiredHouses=British,French,Germans,Americans,Al liance

[NALASR2]
Image=NALASR
;code identical to NALASR goes here
Prerequisite=BARRACKS
AIBuildThis=no
IsBaseDefense=no
Owner=British,French,Germans,Americans,Alliance,Ru ssians,Confederation,Africans,Arabs
RequiredHouses=Russians,Confederation,Africans,Ara bs

[BuildingTypes]
++=GAPILL2
++=NALASR2

With this setup, the only problem is the sidebar ordering, which seems to be dependent on the [BuildingTypes] ordering, like in TS. Well, I believe I have a fix for that too:
Rename the existing entries on that array from GAPILL to GAPILL2, from NALASR to NALASR2. Then add GAPILL and NALASR to the end of the array. That way, the array ordering remains intact, the sidebar is correctly ordered, and as far as I know, nothing gets damaged.
DCoder is offline   Reply With Quote