Author Topic: [not a bug] Units with size = 0 can' t be build (MG SVN Head / all versions)  (Read 1805 times)

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
A Build command does not work when the sie of a the building is 0 or the whole cellmap is 0. Only the first creation hit is done (about 5% of life) and then there is no prgress anymore.

example xmls:
(click to show/hide)

(click to show/hide)
« Last Edit: 20 July 2012, 16:29:48 by softcoder »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Units with size = 0 can' t be build (MG SVN Head / all versions)
« Reply #1 on: 3 February 2012, 18:37:51 »
It's because size 0 units cannot be a target of a command. They cannot be hit by attacks, they cannot be selected, cannot be repaired, etc.

As a workaround, if you really need a size 0 unit, bearing in mind yours, which will not kill itself off, can completely derail the AI, give the unit's time attribute and the build skill's speed attribute sufficiently high values so that it's built in the first tick.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Units with size = 0 can' t be build (MG SVN Head / all versions)
« Reply #2 on: 5 February 2012, 01:42:57 »
give the unit's time attribute and the build skill's speed attribute sufficiently high values so that it's built in the first tick.

that is the problem it makes no difference only about 5% are the first tick even with 4000 build-speed and a build-time of 1 my unit gets only 5% changing to size 1 it was build instant.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
For units with size 0 and a cellmap with all 0's, you may set allowEmpty=true

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Where is this attribute located? On the size element or the cellmap element?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
For units with size 0 and a cellmap with all 0's, you may set allowEmpty=true

So what does this tag do?
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

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Its an optional attribute on the cellmap node. It allows you to produce a unit with a cellmap containing of all 0's. Such a unit cannot be attacked, near does the enemy see it because it has no 'space' in the world. If you check out some of the Vbro's packs you'll see how its used (enemies and allies [oil] for example)

Thanks