Adding Strategic Resource

Im still at work so trying to remember the AssignStartingPlots from my head.. but i dont think there are any Event calls in there.

Its really sad that if you want custom resources, your mod will most likely need a complete new AssignStartingPlots.lua. But the changes will only affect the parts where Resources are placed.

Has anyone found a way to register Custom Events yet?
 
Yep, I've been following that thread for a couple of days hehe, must have got mixed up. (I even wrote to SamBC yesterday about is modular work... must have been tired) Question here though : how will it be modular if you modify an LUA other than the Event one? In any case, keep up the good work!
Because the current underlying structure (AssignStartingPlots) is not modular, it will have to be reworked (as in replaced) such that it is. Once mods actually support associations, we will then be able to ask every resource modder to depend on our modularisation mod, and supply the data needed to scatter their resource in the manner we prescribe.

It relies on cooperation between modders, of course, but it's like the opensource ecosystem, really. A defacto standard (hopefully only one) will emerge.
 
It relies on cooperation between modders, of course, but it's like the opensource ecosystem, really. A defacto standard (hopefully only one) will emerge.

I really like the work you're doing here, I look forward to being able to use it. I'd hope that if it's done in the right way, modders will WANT to use it since for one it'll make things a lot easier, and secondly if a mod DOESN'T support it then that mod might be less popular if people can't stack it with other mods.

I've been thinking of trying to set up a similar system for UnitPanel.lua, so action buttons can be added modularly. Currently it can be done for worker-style Builds, but there doesn't seem to be a general system for adding Primary / Secondary command buttons and callbacks to handle them. Of course the big problem with this would be that AI's would still be unable to use the new commands without C++ modification so it'd be fairly limited and cause balance issues except in multiplayer (as and when mods get proper support!) But, I'd be really interested to see your code for AssignStartingPlots and how/if you are handling callbacks.
 
Back
Top Bottom