Author Topic: Documentation Checklist: "Hidden" features  (Read 1230 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Documentation Checklist: "Hidden" features
« on: 25 June 2011, 20:46:07 »
Ok, here's another thing I'd like to document, but am not familiar with and haven't seen any release info, as well, my searches turn up blank. Seems to be a modified morph for buildings... Or is it more than that?

Code: (Shibboleth Worker) [Select]
<command>
<type value="transform"/>
<name value="become_building" tip="transform_info" sub-header="transform_subheader" />
<image path="../../../../../magitech/factions/tech/units/farm/images/farm.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<morph-skill value="morph_skill"/>
<move-skill value="move_skill"/>
<position x="0" y="0"/> <!-- position 'offset' from 'target' pos to go to -->
<rotation value="0" /> <!-- rotation to assume (in degrees, 0 == 'north') when in place -->
<morph-units>
<morph-unit name="farm" tip="farm_info"/>
<morph-unit name="defense_tower" tip="defense_tower_info"/>
</morph-units>
<hp-policy value="maintain" />
</command>
In particular, what are the values for hp-policy, and can I get a more detailed explanation of position and rotation?

EDIT:

In fact, looking at shibboleth closer, there's quite a few undocumented features. Let's try and make a list...

  • Upgrade requirements (possibly more?) on cloaks
  • Tags (eg: Warrior); Just used for upgrades to boost, or do they serve some higher purpose?
  • Submenus for upgrades (<produced-upgrades>)
  • Rotated climb?? (I recall it being broken in vanilla Glest, does it work now?)
  • Multiple attack skills on attack stopped, patrol, and guard
  • Multiple animations on skills? (Swordman's attack, at least)
  • Cost modifier (assuming transform *and* morph, guessing it's like discount but before the morphing?)
  • Property wall: what's it do so far? Does the AI ignore them, or what?
  • <field value="land"> (without the parent "<fields>" tags)
  • Faction specific background loading screen (looks like it allows multiples, am I correct?)
  • Note to self: Make XML/Scenario page on the wiki (loading screen image code below)
  • Faction specific mouse texture: didn't see any XML reference, does it just have to exist in the faction folder?
  • Enhancements in upgrades: Completely new to me, looks like a way to modify the stats on an individual unit basis?
  • Enhancements also has a store modifiers parameter, does this only work in enhancements or in the static/multipliers tags everywhere? Same thing for cost-modifiers?
  • Cloak detect string's in techtree language file, such as Cloak=%s cloak, any other "available" things to translate that aren't actually initiated by the modder, but can be translated?
  • ally-shader and enemy-shader tags in cloaking? Syntax and more information?
  • Unrelated: description tag in techtree XML, is it used for ANYTHING at all? Safe to remove completely?


And a question: Does GAE support static particles in unit particle systems, like MegaGlest does? I marked it as MegaGlest only for now, since I can't be sure and don't recall them ever being mentioned. They were added long after GAE started supporting Unit Particle Systems though. As well, is emission-rate in GAE a float now too? https://forum.megaglest.org/index.php?topic=5961.0

EDIT:// According to Titi, GAE does not use a float for emission-rate. Will this be changed, as it is literally a few characters of changes?

I think that's everything that seems undocumented (undocumented = not on the wiki). Unless I missed anything. So, devs, modders, and anyone else who might happen to know about any of the above listed, feel free to explain further, and I'll cross them off the list as I go. Goal: 100% documentation.

Better documentation = Better Modders = Better Mods
Win.  Win.  Win.
« Last Edit: 16 July 2011, 23:45:31 by Omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Documentation Checklist: "Hidden" features
« Reply #1 on: 28 June 2011, 00:54:08 »
Quote
Faction specific background loading screen (looks like it allows multiples, am I correct?)
That is the intention but it's only setup to use the first one for now. The priority of which loading-screen tag is used: sceneraio->faction->tech->default.

Quote
Faction specific mouse texture: didn't see any XML reference, does it just have to exist in the faction folder?
That's right. All supported image types are ok to use. The priority of which mouse image is used: faction->tech->default. The image is split into tiles corresponding to different actions (not really used at the moment).

Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Documentation Checklist: "Hidden" features
« Reply #2 on: 28 June 2011, 01:34:26 »
Quote
Faction specific background loading screen (looks like it allows multiples, am I correct?)
That is the intention but it's only setup to use the first one for now. The priority of which loading-screen tag is used: sceneraio->faction->tech->default.
Thank you for your reply. Just two questions: Will it be using a random image for 0.4? What is the XML syntax for having an image in a scenario or techtree?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Documentation Checklist: "Hidden" features
« Reply #3 on: 28 June 2011, 13:51:39 »
I'm not planning on making anymore changes to it for 0.4. The syntax is the same as for faction.

Code: [Select]
<loading-screen>
<background-image path="loading_screen.png" />
</loading-screen>
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/