Author Topic: Enable land units to deposit to air units  (Read 1118 times)

MirceaKitsune

  • Technician
  • ****
  • Posts: 147
    • View Profile
Enable land units to deposit to air units
« 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.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Miners cannot unload to air units
« Reply #1 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

MirceaKitsune

  • Technician
  • ****
  • Posts: 147
    • View Profile
Re: Miners cannot unload to air units
« Reply #2 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.

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Miners cannot unload to air units
« Reply #3 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.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

MirceaKitsune

  • Technician
  • ****
  • Posts: 147
    • View Profile
Re: Miners cannot unload to air units
« Reply #4 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.