Armor.txt

Armor.txt

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Armor.txt

Post by FLOZi »

Can you use a unitname as an armour type?

e.g.

Code: Select all

[ARMTHUND]
  {
  ARMTHUND=99;
  }
So you can refer to a unit individually in a weapon?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Well, I got off my lazy bottom and checked, yes, it works, thought it should do. :-)
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

It kind of defeats the whole idea with the file though :)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Yes, but, some of us crazy modder folk actually want individual unit-specific damages, as well as the great functionality of groups. :wink:
Archangel of Death
Posts: 854
Joined: 28 Jan 2005, 18:15

Post by Archangel of Death »

I tried to add a special damage in their once, it was total system freezes whenever I attempted to load. What were the possible reasons? Is there a limit to how many characters in the name of a armorclass? Or does it require the whitespace to be set up in the exact way it already is?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

I shouldn't imagine you would reach a length limit should there be one, and the whitespace is of little importance.

EDIT: and just to make sure, the engine doesn't actually use OTA style 'unitname=100;' special damages does it? My testing seemed to indicate it didn't, but maybe I've just wasted my efforts. :(
Archangel of Death
Posts: 854
Joined: 28 Jan 2005, 18:15

Post by Archangel of Death »

It says they don't matter, its just the parser likes them. I was just wondering if it did something other then parse and ignore with them.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

That's not what I meant. :P
Post Reply

Return to “Engine”