Builder and Transport cannot co-exist in Spring.

Builder and Transport cannot co-exist in Spring.

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Builder and Transport cannot co-exist in Spring.

Post by Noruas »

I wanted to have a tech 1 construction aircraft that could also pick up units and build. However it seems transport capable is dominate and removes all building features such as reclaim. Than When you remove transport abilities its able to build, can these two not exist inside the same unit?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Builder and Transport cannot co-exist in Spring.

Post by imbaczek »

unfortunately transport and builder behaviours are currently exclusive with each other.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Builder and Transport cannot co-exist in Spring.

Post by Neddie »

What would it take to make both together possible?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Builder and Transport cannot co-exist in Spring.

Post by imbaczek »

there'd be a lot of design decisions involved, I can't even make a guesstimate.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Builder and Transport cannot co-exist in Spring.

Post by Tobi »

IMO you'd want to refactor the entire unit type thing to consist of composable components instead of a fixed inheritance hierarchy. (composition instead of inheritance)

I.e. instead of having a CTransport and CBuilder that derive from CUnit, thereby making it impossible for a unit to have both transport and builder behaviour, CUnit could have some kind of container in which you can drop stuff that adds some new features. One of the hard things is how to deal with conflicting behaviours etc.

Either way, lots of work, and I don't dare give a guestimate either ;-)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Builder and Transport cannot co-exist in Spring.

Post by FLOZi »

There's a few things that spring to mind (pardon the pun) on how to make a workaround if you really need it for your game design.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Builder and Transport cannot co-exist in Spring.

Post by Neddie »

Tobi wrote:IMO you'd want to refactor the entire unit type thing to consist of composable components instead of a fixed inheritance hierarchy. (composition instead of inheritance)

I.e. instead of having a CTransport and CBuilder that derive from CUnit, thereby making it impossible for a unit to have both transport and builder behaviour, CUnit could have some kind of container in which you can drop stuff that adds some new features. One of the hard things is how to deal with conflicting behaviours etc.

Either way, lots of work, and I don't dare give a guestimate either ;-)
It's kinda sad that I understood exactly what you meant when you finished the first sentence, and then I went on to read basically the same thing for the rest of the post. :P

Thank you for the explanation.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Builder and Transport cannot co-exist in Spring.

Post by Argh »

Lua. Transport behavior if they aren't being attached (i.e., hidden) is pretty easy to duplicate.

On the converse, doing building via Lua that didn't seem clunky and used an identical interface would be quite a challenge, but is also doable- command buttons that resulted in building operations is possible, the hard part's the gradual resource drain, keeping the builder within X distance while completing it, etc.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Builder and Transport cannot co-exist in Spring.

Post by REVENGE »

Tobi wrote:I.e. instead of having a CTransport and CBuilder that derive from CUnit, thereby making it impossible for a unit to have both transport and builder behaviour, CUnit could have some kind of container in which you can drop stuff that adds some new features. One of the hard things is how to deal with conflicting behaviours etc.
This. I mean, it's really kind of sad the way things are currently setup...
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Re: Builder and Transport cannot co-exist in Spring.

Post by Noruas »

So anyone brave enough to make like a lua script that locks a unit inside another units piece? Could be as simple as radius to pick up and teleport a unit, and fly that unit and teleport it back to the ground?
Post Reply

Return to “Help & Bugs”