Just wanted to give a shout-out for this:
New UnitDef tag: cobfilename
Thanks for putting that in, jK, that will save me soooooo much repetitious crap with World Builder, and make things a lot easier to maintain.
CobFileName
Moderator: Moderators
Re: scriptName
Heh, read the svn log again before you post. jK had basically overwritten the scriptname tag I added a couple weeks ago, and has removed it. You're welcome though 

Re: CobFileName
Oh
Whew! The one above means it just changed names, basically.
So:
std::string scriptName; // the name of the unit's script, e.g. "armjeth.cob"
std::string scriptPath; // the path of the unit's script, e.g. "scripts/armjeth.cob"
Yay, this is very cool, can't wait to be able to drop about 50 duplicate scripts from World Builder...

Whew! The one above means it just changed names, basically.
So:
std::string scriptName; // the name of the unit's script, e.g. "armjeth.cob"
std::string scriptPath; // the path of the unit's script, e.g. "scripts/armjeth.cob"
Yay, this is very cool, can't wait to be able to drop about 50 duplicate scripts from World Builder...
Re: CobFileName
To be clear, it doesn't actually read scriptPath; that one is there so you don't have several places appending "scripts/", and for future flexibility or something, I don't remember.
Re: CobFileName
Great success!
Thanks a ton for this, means I can maintain 1/4th as many infantry scripts.
Thanks a ton for this, means I can maintain 1/4th as many infantry scripts.
Re: CobFileName
Yay for units created in unitdefs_post!