Author Topic: [done] While morphing, units should reserve sufficient space  (Read 1706 times)

Pizza90

  • Draco Rider
  • *****
  • Posts: 282
    • View Profile
It happens very often (at the least to me), that i put a unit in a place to morph it and after some seconds another units (usually a worker) goes close to hit and then i get "not enough space to morph the unit" (or something like that). That's annoying! And in big games (like 4vs4) happens often. I think the units that are morphing should become untouchable by others units (i am talking about the units that you control) so that the other units you control (and maybe you allies' ones too) dont go to disturb the units that is morphing.
« Last Edit: 15 October 2012, 23:25:17 by titi »
I translated Megaglest in italian and i keep the translation updated.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
So in other words, you want the space that the morphed unit will occupy to be considered occupied while the morph command is in place? Sounds like a good idea. There's the problem that the morphing unit could block important areas, but I think it'd be a fair trade off, as having a morph cancelled at last minute would not be what the player intended. It would preferably affect allies too, as having an ally accidentally cancel your morph would suck. However, perhaps it could not apply to enemy units, to prevent trying to use morphing units as makeshift walls (wouldn't really work well, though, so perhaps unnecessary).
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
yes, I think this is a good idea, but it will only fix the situation if origianl unit and morphed unit have the same field ( air/ground )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
yes, I think this is a good idea, but it will only fix the situation if origianl unit and morphed unit have the same field ( air/ground )
Couldn't the space be "reserved" in the target field? For example, if a size 1 ground unit was morphing into a size 2 air unit, couldn't we make the 2x2 block of air tiles "unwalkable" (well, technically, unflyable)?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
I fully support this, I find this one of the major annoying points atm.

This improvement would be....Fantastic!
WiP Game developer.
I do danish translations.
"i break stuff"

TotalNoob

  • Guest

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
This is in svn now, including a morph marking animation .
The morph animation is only shown if morphing results in a unit of bigger size, or it chnages the field (ground->air or vice versa )

A problem I still have is when morphing changes the field of the unit, so land->air or air->land , but I am working on it.

Please test and comment
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
So far this works fine for me, but I have not tested all possible aspects and combinations thereof, which, I think, are:
  • unit keeps size
  • initially smaller units grows
  • initially larger units shrinks
  • land unit morphs to other land unit
  • air unit morphs to other air unit
  • land unit morphs to air unit
  • air unit morphs to land unit
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: [testing] While morphing, units should reserve sufficient space
« Reply #8 on: 29 September 2012, 23:15:12 »
I like the effect showing the size taken when unit completes morph
So far this works fine for me, but I have not tested all possible aspects and combinations thereof, which, I think, are:
  • unit keeps size
  • initially smaller units grows
  • initially larger units shrinks
  • land unit morphs to other land unit
  • air unit morphs to other air unit
  • land unit morphs to air unit
  • air unit morphs to land unit

Tested:

Unit keeps size: Works
Land to Air: Works
Air To Land: Works
Small to Large: Works (ground only)
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

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: [testing] While morphing, units should reserve sufficient space
« Reply #9 on: 15 October 2012, 23:24:56 »
thanks for testing!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything