MegaGlest Forum

MegaGlest => Feature requests => Topic started by: MirceaKitsune on 27 March 2014, 12:51:34

Title: Enable land units to deposit to air units
Post by: MirceaKitsune on 27 March 2014, 12:51:34
I'm working on creating a faction, and noticed a very problematic bug yesterday: If an air unit stores a resource, harvesting units won't be able to deliver it to them, and will just sit there and do nothing. This happens both if the harvesting unit is land or air itself. The opposite doesn't happen however, and air miners can deliver to land units.

Say you make a flying saucer which can store 100 metal. You move it next to a metal deposit, then assign a worker to mine from that deposit. Once the worker is loaded, it will look for the nearest unit to take the metal to... in this case it finds the saucer. It will walk next to it, but instead of depositing the metal then returning to the mine to continue, it will just sit there and follow the unit around... as if it's trying to unload but can't.

When both the unit which deposits and the unit which harvests are air units, the miner should definitely be able to unload. If the unit who stores is air and the unit who mines is land (or the other way around), whatever the developers believe makes most sense: Either the miner can still deposit, or the miner should ignore the air unit and look for the other nearest deposit... considering they are at different heights logically.
Title: Re: Miners cannot unload to air units
Post by: softcoder on 31 March 2014, 00:30:20
This is not a bug, its a feature request. Your problem exist because the air unit has no land ability.

Thanks
Title: Re: Miners cannot unload to air units
Post by: MirceaKitsune on 31 March 2014, 01:14:20
Oh... sorry about that. So it can be solved by also making the air unit have a land property, if that's possible?

Still, shouldn't the miner just ignore the unit it tries to unload to? It does seem rather buggy for it to keep following an unit as if it's trying to unload but never managing to.
Title: Re: Miners cannot unload to air units
Post by: Ishmaru on 31 March 2014, 12:26:33
While its not possible for land units to deposit to air units, it does work the other way around. Flying units can harvest from the ground and deposit to a ground structure. Ive seen it in the aqua pack.
Title: Re: Miners cannot unload to air units
Post by: MirceaKitsune on 31 March 2014, 14:35:42
While its not possible for land units to deposit to air units, it does work the other way around. Flying units can harvest from the ground and deposit to a ground structure. Ive seen it in the aqua pack.

That does work, I can also confirm. My only confusion now is if the air unit storage behavior should still be changed. Softcoder said this is intended... but then shouldn't units that can't unload there just ignore the air unit rather than following it around and doing nothing once they're near it? Since that part of the problem seems like a bug, and doesn't feel like intended behavior... sorry if I'm wrong though.