For the confused, go here:* Loaded all FeatureDefs at the beginning of the game
* Added LuaParser for the following:
UnitDefs < gamestate/unitdefs.lua >
FeatureDefs < gamestate/featuredefs.lua >
WeaponD├óÔé¼┬ª
http://spring.clan-sy.com/fisheye/chang ... g/?cs=4271
So, er... Trepan, are we gonna be able to, at least in theory, be able to finally declare properties of a Feature that are essentially == a Unit, such as a COB script? I can see that as a logical extension of converting the entire UnitDef stuff to LUA (internally or otherwise) and needless to say, I'm pretty excited by this, it's going to (finally) remove one of the final, legacy areas of Spring. However, I'd like to know if any changes to object-destruction precedence and other things will / can be changed when this is working. IOW, will we be able to (finally) escape from the OTA tyranny of "only one real Corpse per Unit", or is this basically just an intermediate step, which will require LUA to fully exploit?
And, er, from reading the preface on the changes, let alone the actual code, it appears that you're going to expose the Weapon code entirely to LUA?
Is it maybe time to maybe have a meaningful discussion of the Universal Weapon Type proposal (long ago, MTR'd and pretty much forgotten by most), so that we can have a common feature-set to play with here, that makes sense and allows for more possible combos, whilst preserving backwards compatibility? Or are you just gong to convert this to LUA (so that, for example, we could code weapons that do variable damage, etc.- trust me, "just" is a very understated word here)... but otherwise leave this unchanged? I don't want to assume what you're doing here, but this has implications, some of which I think all of us game people would like to weigh in on.
In short, if you're going to tear up part of that mess, it might be a good time to clean it all up, and I'm perfectly willing to help, where I can (this more-or-less supercedes my shorter-term goal of replacing all hardcoded ExplosionGenerators an explosion events with CEGs, obviously, not that I've gotten much of anywhere), given that you seem to be replacing that as well... it kind've all fits in one larger whole here, and it might be time to review why we're doing things, not just what. I don't want to push you towards any particular solution, mind you, but I feel like we (game people) and you should probably at least understand where you're going with this. The Unit stuff makes perfect sense, the Weapon stuff takes us into all sorts of interesting territory that I don't feel has been explored well yet.
At any rate, I apologize for the length of my musings, however... this set of commits raises a number of philosophical issues, and I'd at least like to hear a bit about where you're going with this, if nothing else, because it looks like we're heading into some very new territory here.