Author Topic: water units?  (Read 1914 times)

Mr War

  • Guest
water units?
« on: 15 February 2011, 19:06:16 »
hi, I've heard that GAE can support water units. Are there any bugs/issues, and are there any mods with them I can look at?

« Last Edit: 15 February 2011, 19:12:17 by Mr War »

ChupaReaper

  • Guest
Re: water units?
« Reply #1 on: 15 February 2011, 21:36:04 »
No problems with water units though I haven't used them yet, just set their field from either surface or air to water or amphibious if you want a water and surface unit.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: water units?
« Reply #2 on: 16 February 2011, 03:36:47 »
No bugs at all. Water units have already been in Military for a fair while. The AI plays true water units fine, but at the moment, there is a slight problem with docks. If the building unit is a land unit (as the worker would be), they cannot build the building in water, for some reason. Human controlled players can fine, but the AI can't seem to wrap its...er... artificial intelligence around building something on a different surface than the builder is on.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Mr War

  • Guest
Re: water units?
« Reply #3 on: 16 February 2011, 06:36:53 »
Thanks man will check put the military mod

Sounds like you could give each faction an amphibious builder unit at the start

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: water units?
« Reply #4 on: 16 February 2011, 23:07:08 »
Sounds like you could give each faction an amphibious builder unit at the start
Amphibious units are weird though. They are land units that can walk in any degree of water, including the deepest water, and no way to change the animation when walking on water, so they will literally walk on the surface of the water. :P

As well, I'm not sure of the exact reason the AI doesn't build. The cross-field thing was just my best guess (mind you, I've never seen anything get built on a different field by the AI before). It could be water in entirety or something. The AI also wouldn't know how to morph a land unit into a water unit. At any rate, the AI will nicely downgrade, by completely skipping over the water units. This can be fixed in scenarios by granting the AI a dock (or whatever you use to create water units) after a certain amount of time or after certain units are created (or both ;)).
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: water units?
« Reply #5 on: 17 February 2011, 07:31:02 »
a boat with a crane or derrick comes to mind

Mr War

  • Guest
Re: water units?
« Reply #6 on: 17 February 2011, 21:01:21 »
Thanks omega, I'm studying the XML so far it's working for me

One way around the AI build prob is to make the dock one if the stating units

ChupaReaper

  • Guest
Re: water units?
« Reply #7 on: 17 February 2011, 21:20:23 »
Thanks omega, I'm studying the XML so far it's working for me

One way around the AI build prob is to make the dock one if the stating units
Hmm I wonder what would happen if you loaded a map that has no water... :P

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: water units?
« Reply #8 on: 19 February 2011, 04:43:23 »
Thanks omega, I'm studying the XML so far it's working for me

One way around the AI build prob is to make the dock one if the stating units
Hmm I wonder what would happen if you loaded a map that has no water... :P
If there's no water within a certain distance of the starting locations, you'll get an error that units couldn't be placed and glest with conveniently crash. That's why I didn't try that one.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Tununias

  • Guest
Re: water units?
« Reply #9 on: 26 March 2011, 18:50:13 »
are water units capable of carrying other units like in Age Of Empires. If not, you could probably cause units to "sacrifice" themselves to make a special type of resource representing that type of unit that the water unit could use to create another unit of the same type as the special resource used, thus creating an illusion of transportation.  :scientist:

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: water units?
« Reply #10 on: 26 March 2011, 19:12:54 »
are water units capable of carrying other units like in Age Of Empires.
Yes.  The units that are carried inside can even shoot from inside the boat if the modder enables it in the XML.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: water units?
« Reply #11 on: 26 March 2011, 20:28:32 »
You simply need to give the unit a water field and a carry command. The Transport Ship in Military is a good example of this.
« Last Edit: 18 June 2016, 13:08:19 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

 

anything