IPB

Welcome Guest ( Log In | Register )

How to import build list into editor?
UltraLuminal
post 30 Dec 2018, 17:04
Post #1



Group Icon

Group: Members
Posts: 12
Joined: 20 June 2018
Member No.: 17888



Title says it all. I need to import build list for AI into editor, so I can edit the AI base layout.
I know about that import button. I doesn't do anything. Because we're talking about program from XP era. It simply doesn't work, and if it does, stars are aligned in specific position or something.
The exporting function is confusing as it is. If I click export, I expect dialogue asking me where to export. Nope. The build list tool is piece of art as well. You cannot edit neutral player, fair enough, but why it's default one selected? So every time I do something, I have to be careful about the context. So it wasn't a surprise for me, when I clicked import and…nothing. Again. Expecting dialogue window where I specify, what and from where to import.
I tried everything. Having a valid, previously exported build list file everywhere and nothing worked.
So… Is that button just a pointless button, or is there a way how to actually import build list into that editor, for which developers should receive a death sentence?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Mizo
post 2 Jan 2019, 13:40
Post #2


AI Coding Expert
Group Icon

Group: Dev. Team
Posts: 1846
Joined: 9 May 2014
From: Poland
Member No.: 10450



QUOTE
Creating new one implies creating
Yeah, I did that. Results are as usual. AI just…doesn't do it. Why bother… I've checked everything. I "cheat"-gave AI money for it.


Make sure that your base building scripts are on point,in proper order, and that you do not give the AI too much stuff to build at a specific time.

QUOTE
Why bother… I've checked everything. I "cheat"-gave AI money for it. Even when I'm against it. Regarding GLA, AI doesn't seem to have workers, or manage them very oddly. It has some as supply collectors, some in beginning build the base


GLA AI is a bit stupid in that regards yes,due to the fact they have workers as both construction units and supply collectors. What you need to do is create a worker team that has a max count of 20 (basically a team of workers with min and max set to 1, max team count to 20. Supply workers are counted as those built. Next if you are very keen on not giving them cheat cash, then just grant them cash equal to their important structures before building it. It can either be before or after the structure is built.

QUOTE
And once every blue moon, when GLA AI actually bothers to build SS, then it just builds 1 or 2. In scripts, there are 3. No space? AI doesn't care, as wee all know. Buildings inside of each other, when it's convenient, but even when I make sure there is space. It builds it usually next to supply source…but the wrong one. There is the one meant for that player, nice and secure. And then there are others. Where do you think, they build SS, the probably most important and game changing building? In such way, that you can just…walk right in, capture it and nobody cares.


Which is why you shouldn't rely on this script function. The "AI build near supply source should be used only for supply centers + 2-3 turrets + 1 extra small building (airfields wouldn't even work,maybe a barracks or a war factory). If you are so insistent on base building then there is no other way than the base layout. Keep in mind the layout itself is "generic" and does not accomidate player starting position so you have to place your buildings in a way that all core stuff are inside the defensive circle parameter that they usually can build. If this was as straight forward as it sounds then AI coding wouldn't be as hard. Also keep the AI buildings in the layout within the size indicated in the tempbasesize ( you can find this structure in the Civilian structure tab). This shows you the relative space all maps have and all your core buildings should fit there, otherwise it ll extend the distance between AI command center and its defensive circle due to increase in radius.

QUOTE
Which brings us to why I want to edit base layout. Not that I believe that AI actually builds, where is supposed to, it more like builds in general area, and when there is no space for other important buildings, then it just…doesn't build them or build them partially inside others.
As I think about it, the game engine and tool are broken beyond recognition and I should probably stop trying to fix that. Which is a problem, because today, you don't have games like (GZH with) RotR.


Regarding on whether the AI works properly on some maps or not, best idea is to play strictly on maps that have enough circular area around the starting position point (it acting as the circle's center). Never play on maps where the AI starting position is choked by any map border or terrain or water regardless whether there is enough space elsewhere in its base. Space needs to be circular indicated in the aforementioned building above. The best thing you can do is make sure all starting positions have the minimum amount of space required.

QUOTE
Back to the topic. Yeah, text is getting long, but who cares… I did something similar with USA. They now have 5 PCs, because…to be honest, AI is just unable to connect the most strategically important dots (yeah…I know, I know, but I still have to be sarcastic about it). 2 PCs near supply source, so far, it just worked. Then 3 around the base. Works decently. Even the delays for building them.
And pretty much any other side as well. Even Chinese, which has to wait 8 whole minutes to get the most powerful weapon ready, they start building it right after they finish breeder reactor. But, of course, they build it next to some other supply zone, where it can be easily destroyed, which it in half of the cases get.


Like I said,stop abusing this script function as its never meant to do this as efficiently as you want it to.

Good luck.


--------------------


Not a Rusty Spoon........The_Hunter uses a goddamn wooden spoon on his AI Scripters....
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 28 April 2024 - 14:11