Zatsupachi
8 years ago
So... In my tiring quest to make a decent AI for my mod, I stumbled on yet another big hurdle.

I have done the Angel Wings AI for my mod and it is completely functional-- I'm happy with it, moving on to the next faction, the Red Skulls.

They have a good amount of structures that are mobile. I set-up the scripts accordingly, and they seem to just stop building after the Calling Pods(Barracks).

It's also weird that they build a second Monolith(Power Plant) even though the script say it needs a VTOL Pad(Airfield) to be built by this player.

They don't build the Gatherer(Supply Center). The Gatherer is mobile mecha that uses drones to collect supplies for it, it armed with a machinegun to defend itself.

I've reviewed the script multiple times, I cannot get them to build it.
After a while, I thought, maybe I can make a special AI version of it-- like what I did with the Angel Wings' War Factory.

So I made a non-mobile AI-only version of the Gatherer, And have it BuildVariation itself unto the main Gatherer object, so that it can still possibly engage if threatened(the AI doesn't seem to know how to use it).

It worked. SOMEHOW. Now they build the Gatherer. But sometimes, they don't, it weird- I put the AI in the same positions in my AI test map, there's a 20% chance they don't build anything after barracks even in the hard setting.

I tried the same method on the other Mobile Structures(VTOLPad, Assembly Line(War Factory), BellikOS(Drone Factory)). It DIDN'T WORK.
I tried editing the faction's AIData SkirmishBuildList, it didn't work.
I tried editing the prerequisites, it didn't work.
I tried looknig at scripts properly, I don't see what's wrong in it.

So does the AI just plainly hates Mobile Structures?
"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
Sponsor
mr_hymn_
8 years ago
How to build mobile structure? this would be nice for aircraft carrier. I tried many times and crashes my game.
Zatsupachi
8 years ago
A Mobile Structure is essentially just a vehicle that can do base building functions like produce units, give upgrades, etc.

And no, a mobile aircraft carrier wont work... at least, not reliably. If you add the VEHICLE KindOf and removed the vanilla Aircraft Carrier's IMMOBILE KindOf AND added a Locomotor, you can make the Aircraft Carrier Move. However, the Flight Deck bones will not follow along with Aircraft Carrier, you'll see jets floating in nothing while the aircraft carrier moving and clipping through the planes.

The game doesn't update WHERE the flight bones should be at-- even if you attach the bones unto the CHASSIS of the model.

The only solution I can come up with that's relatively easy to do is to make a troopcrawler. The units inside attack what troopcrawler is pointing at my exiting the troopcrawler and attacking until the target is destroyed or ordered to stop. After which, they return to the Parent vehicle.

My number 1 issue with troopcrawlers is that when ordering it to attack, then issuing a move order. The original riders of the troopcrawler forget the parent vehicle so they will just stand there after killing the target. And you can't issue a command from the parent troopcrawler to make them stop after issuing the move order. You'll manually tell them to stop, and MANUALLY tell them to retreat back into troopcrawlers.


"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
Gameanater
8 years ago
I'm not sure how to help unfortunately but I do have a question. Are those AI-only buildings capturable at all? Because I'm thinking a player who doesn't know there's a seperate version of the building might capture the AI's building and wonder why it can't move. Unless none of the mobile structures are capturable to begin with.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
mr_hymn_
8 years ago
I'm not sure too but as I see AI will sell all the buildings that they captured so this might be a standard script for it even they captured a same faction building they doesn't seems to do any good out of it rather than I will sell everything until I removed the sell button and it just sits there without doing stuff.

All I see is AI rarely built my units that I gave them and they use it in a wrong purposes too.

I gave them another version of dozer and having a same commandset as regular one but they never build something using it but rather use it to repair stuff.