UnitName useless tag? (unit FBI file)

UnitName useless tag? (unit FBI file)

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

UnitName useless tag? (unit FBI file)

Post by TradeMark »

Where is UnitName used for?
Edit: .give uses unit filename.

So is it bad if i replace all unitname values with objectname value?

I need this information for my online mod editor program, please reply if you know something!
Last edited by TradeMark on 18 Dec 2006, 14:47, edited 5 times in total.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

So far as I know, UnitName is useless. However... lemme check the source...

So far as my grep searches can find, this is not a variable used by Spring at all.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Strange, I think a unit didn't work when the unitname tag didn't match the filename for me.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

I found this from source:

\rts\Sim\Units\UnitDefHandler.cpp

Code: Select all

ud.name = tdfparser.SGetValueMSG("UNITINFO\\UnitName");
...
ud.armorType=damageArrayHandler->GetTypeFromName(ud.name);
?? :S

Does armors use unitname then?
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Post by Nemo »

armor.txt uses the unitname. I thought it was useless a few months back, and didn't bother changing it from the template fbi I was using for a few of my infantry. They were bulletproof because they recieved the default damage that applied to armor. So yes, unitname is used.


I could be wrong, but I think that the .cob files also have to use the unitname..? They might just match the name of the fbi file though.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Ah. So much for my grep skills :roll: I think I'd better go to sleep now :-)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I'd make sure the unit fbi filename is the same as this tag as AIs rely on them being the same a lot of the time.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

I tested now, and .give command uses unit FILENAMES !!

Jesus, this is a MESS...

So... armors uses unitname, .give and scripts uses filename, models uses objectname... :lol:
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Welcome to Spring, the land of inconsistent code and combinations of same being used for very specific purposes ;)
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

So when the new RTS engine is ready? :|
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

TradeMark wrote:So when the new RTS engine is ready? :|
When it's done.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

I dunno. Bug JC about it- he hasn't done anything here for awhile, so one assumes he is probably working on OSRTS now. Hopefully.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

You mean CE? (Command Engine)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Oh good, they picked a non-sucky name ;)
hawkki
Posts: 222
Joined: 01 Jan 2006, 19:47

Post by hawkki »

OSRTS would have been better imho.

Commander engine would also have been cooler then command engine. Command engine reminds me of command prompt.

edit:man, after writing this post i had to re-read the thread topic a few times... we are a bit OT here :oops:
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

Liik here, it is quite usefull for a start:
http://taspring.clan-sy.com/wiki/Units:FBI
UnitName

This is the internal name of your unit. ...
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

so useless tag is not useless?
Post Reply

Return to “Game Development”