Page 1 of 1

Mobile Factories

Posted: 21 Aug 2007, 23:04
by Argh
Ok, folks... I have solved most of the problem of delivering mobile factories. There are a few issues remaining, however, and I'd like some input.

Basically, all I need, for a mobile factory that is static when it can build stuff, is that button that says, "Fly/Land", and then to use a modified version of the Upgrade Script to change it into a flying or hovering Unit, then it can move. Ok, basic problem solved there- it can now move.

However, landing and becoming a Factory again is a bit more of a pain. Basically, it needs to land, facing a cardinal direction (i.e., exactly NSEW), and it needs to land in on a position where it satisfies Spring's requirements for Factories using Yardmaps, which means it must strictly adhere to map-squares, instead of being able to move in Elmos, or Spring Units, of linear measure.

So, basically when Land is hit, it needs to search for an appropriately-sized area on the ground, turn to one of the four cardinal directions, then land.

How can this be accomplished? I have a Factory that can take off and fly about done, so naturally, I'd love it if I could have this done before I release an Alpha.

Posted: 22 Aug 2007, 09:17
by KDR_11k
Alternatively you could just reimplement the factory stuff in Lua so it's not actually a factory but it can create units, build on them for a while and then release them?

Posted: 22 Aug 2007, 09:42
by Argh
That's a good idea. Maybe a lot more workable, honestly.

Although I'd kind've like a Yardmap- that's the only prickly bit. I'm using a U-shaped Land Factory (clever name, eh?) in PURE, and it uses rocket motors to move... it'd be kind've lame, if Units could just walk through the walls. If anybody has any ideas about that issue, I'm all ears.

Posted: 22 Aug 2007, 12:36
by KDR_11k
SupCom's mobile factory pushes the unit out once it's completed.

Posted: 22 Aug 2007, 17:27
by AF
For mobile factories that aren't aircraft perhaps lua can intercept the build order, cancel it, and issue a build order next to the mobile factory and then snatch the half built unit up using transport cob code, releasing it once it has finished building.

Posted: 22 Aug 2007, 17:40
by Zpock
KDR_11k wrote:Alternatively you could just reimplement the factory stuff in Lua so it's not actually a factory but it can create units, build on them for a while and then release them?
I have thought of this as well, combine it with making a LUA driven custom economy, and then one can finally get rid of the TA building system and implement whatever one wants. Starcraft/warcraft like ui with the limited buildqueues, CnC style with the sidebar, or even something new.

Landing pads, better control of building animations, barracks that don't nanolathe infantry... lots of nice things.

Posted: 22 Aug 2007, 20:20
by AF
Not untill AI support for lua is added otherwise your nuking all chances of AI support for your mod untill someone actually does an AI interface for lua.

Posted: 23 Aug 2007, 02:54
by zwzsg
Bah, all AI (save yours, AF), already completly fail on any mod that doesn't completly adhere to the TA buildtree. I'm not even talking about very special mods such as Spring Racer, even something pretty standard like E&E can get an AI hopelessly lost.

Posted: 23 Aug 2007, 02:55
by Peet
RAI and KAI would actually do fine with simbæs, with some slight econ tweaks.

Posted: 23 Aug 2007, 03:41
by AF
Thats because simbase has nothing OTA doesnt except that nanotower, and thats not a requirement either.

Posted: 23 Aug 2007, 07:36
by KDR_11k
Besides, all Spring TA variants have nanotowers so there's been plenty of time for AI devs to realize the concept needs to be supported.

Posted: 23 Aug 2007, 15:45
by 1v0ry_k1ng
AI and EE? did you not see the KAI of old? even the current version of KAI 0.12? that AI plays EE better than it ever played TA