Light Style© by Fisana

Jump to content


Photo

Where Are The Unit Stats?


  • Please log in to reply
8 replies to this topic

#1 chaosislife

chaosislife

    Sesquiplicarius

  • Community Members
  • PipPip
  • 164 posts

Posted 06 June 2011 - 10:39 PM

Haven't seen anything about it so I figured I'd ask where to find the files relating to the units stats similar to how AOM used the proto(x)?
  • 0

#2 Mythos_Ruler

Mythos_Ruler

    Senator

  • WFG Retired
  • 14,967 posts

Posted 07 June 2011 - 03:30 AM

binaries\data\mods\public\simulation\templates
  • 0

#3 chaosislife

chaosislife

    Sesquiplicarius

  • Community Members
  • PipPip
  • 164 posts

Posted 07 June 2011 - 08:42 PM

Thanks, now how much trouble would I get into if i simply ignored the inheritance hierarchy and put all of a units data in one file? The inheritance is neat, efficient and bloody annoying.
  • 0

#4 Mythos_Ruler

Mythos_Ruler

    Senator

  • WFG Retired
  • 14,967 posts

Posted 07 June 2011 - 09:11 PM

Well, with inheritance, you only have to add the items in the unit entity that are different from the parent entities, which overwrites those things only. It means you don't have to have all 100 different tags in each entity.
  • 0

#5 chaosislife

chaosislife

    Sesquiplicarius

  • Community Members
  • PipPip
  • 164 posts

Posted 07 June 2011 - 11:20 PM

Eh, I like simplicity, if i want to change a value I don't want to have to open five files trying to hunt down which file has the value I need. I think this works best for entire classes of units rather than unique units.Of course the great thing I'm seeing here is that if I want all my tags in one file, that should work just as well. Flexibility is good.

Edited by chaosislife, 07 June 2011 - 11:22 PM.

  • 0

#6 Mythos_Ruler

Mythos_Ruler

    Senator

  • WFG Retired
  • 14,967 posts

Posted 08 June 2011 - 12:08 AM

if i want to change a value I don't want to have to open five files trying to hunt down which file has the value I need.


You don't have to. Just put that tag (and new value) in your unit entity and it will overwrite the inherited value.
  • 0

#7 chaosislife

chaosislife

    Sesquiplicarius

  • Community Members
  • PipPip
  • 164 posts

Posted 08 June 2011 - 12:18 AM

Heh, I usually don't know how to type out the exact tag so I'd have to copy paste it anyhow.
  • 0

#8 fcxSanya

fcxSanya

    Centurio

  • WFG Retired
  • 685 posts

Posted 08 June 2011 - 05:18 AM

Some day we will have an entity editor, which should be handy for people, who don't like to edit xml files manually.
  • 0

Alexander Olkhovskiy [ aka fcxSanya ]
Wildfire Games Programmer
E-mail: fcxsanya at wildfiregames dot com


#9 Mythos_Ruler

Mythos_Ruler

    Senator

  • WFG Retired
  • 14,967 posts

Posted 08 June 2011 - 05:50 AM

I actually have a pretty cool mockup for just such an editor. It's outdated--the tags have all been reorganized since I made the mockup--it would still be a good basis for the layout. All the editor would have to do is spit out XML files based on the values we put in the fields.

It should probably ask you a few questions before you get started, like "Is this a Unit or a Building?" and give you options based on these answers.

Posted Image
  • 0