HI everyone,
WARNING WARNING WARNING! Stop using MC 1.0.2!
I think I have the answer to Martin's problems and others who have had trouble with Mission Control when editing preexisting plugins. Mission Control 1.0.2 had some changes which I thought would make it better, but instead made it worse when used on pre-existing plugins with other id schemes and particularly those with shared desc resoruces.
Please discontinue using Mission Control 1.0.2 unless you are just creating new plugins from scratch. I have 1.0.3 which fixes things and I'll put it up ASAP.
The problem was that I screwed up in multiple ways with allocating resources to descs. v1.0.2 can open the wrong descs and even delete descs that belong to other misns! When several misns SHARE THE SAME DESCs they can be renumbered for the one youare working on and not for the rest! Sharing descs between misns didn't occur to me until I had a closer look at the misns in EVO!
Also, if a new id was allocated and it collided with an existing desc, then the checking was faulty and the desc was overwritten! More collateral damage.
So--- I have a completely new desc allocation method in v1.0.3:
- if the desc if is initially -1 (ie new misns and misns without that particular desc) then allocate a new id using :
Offer Text : id + 4000 no matter what
Brief Text : id + 5000, or if already used then increase by 1 until the first unused resoruce id is found after the staring point and use that.
Quick Brief : id + 6000 or next unused id after that
Load : id + 7000 or next unused after that
Drop : id + 8000 or next unused after that
Fail : id + 14000 or next unused
Refuse : id + 15000 or next unused
This should prevent rampant 'desc'truction!
- if the desc id is not -1 then don't change it!, ie if load is 6002 for misn id 24 then just leave it at 6002 as it is probably a shared resource.
Note 2) means that sometimes you will edit a desc and be changing is for many misns. For this reason I recommend not using shared desc ids, and MC will always allocate new missions with independent descs. Space is not really an issue, a typical desc is a hundred bytes or so, so even with 1000s of mission it won't add a lot to a MB sized plugin anyway.
So, my apologies, and if MC has wrecked anyones plugins then I'll help put it back together again
Embarrassed
Ralph
------------------
(url="http://"http://www.sutherland-studios.com.au/family/evo_software.html")R & R Software(/url)