Joined: 10 Sep 2008, 02:11 Location: In search for TheTruth (TM)
It needs to be done, and there's no sense putting it off any longer.
So. You guys decide on the pattern you want unit names to follow, and tell me exactly everything that needs to be changed (filenames, instances within files, etc.), and I'll write you a script that'll perform those operations on the files en masse.
If I can make one suggestion: for unit names? Units are going to get renamed in-game... better to make their unit-name descriptive in terms of function rather than use their in-game name. BOT_SAM for the anti-air robot, for example.
We discussed that option several years ago, I wanted to go that route with a set nomenclature, some people wanted the same route with other nomenclatures, and still others just wanted the unit name. I'd be interested to see if positions have shifted.
FactoryRole works if you want scripts to be brittle in an intelligent way, because if the mission says "spawn 8 BotRiots" and the role of BotRiots changes (and the internal-name is correspondingly changed) then the mission will break... appropriately.
It's hard to imagine there is no way to automate the task. Even I (as nubbish as can be when it comes to code) was able to get unit names and descriptions for the website automatically using the unit definition files. (and MK made a more versatile script that I haven't actually checked yet, sorry ) Changing their internal names to external names would be trivial. Lab+role wouldn't be as easy but doable I think.
As for the dependencies... I dunno. Aren't missions based on versions of CA/ZK so renaming really shouldn't affect them. And I don't think guides use internal names - just the player seen ones.
I assure you there is no simple way to do it. Its scattered in many diverse systems and you cannot replace stuff buried deep in code..
Don't do it unless you want to face my wrath and prompt revert when something breaks (which is 100% assured).
IF IT ISNT BROKEN, DONT FIX IT!
I'm still having trouble figuring out what would break if you just did s/\bcorcan\b/jumpjack/ and s/\bcorcan_/jumpjack_/ against the entire caspring source tree, but I obviously don't grok the whole thing.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum