Today I have a discussion with SupSuper on this topic for a design solution that allow of this feature to be possible. Here is a break down. I want to thank Supsuper for his time, generosity and kindness for this consultation. Please note this is an edited version.
Precentor AppollyonToday at 10:39 AM
Hi Supsuper, I would like to run through with you on a few questions only a developer like yourself can answer.
I understand you and warboy coded the hanger feature a long time ago for the vanilla UFO enemy unknown.
This has nothing to do with OXCE, I just want to understand OXC and by extension to OXCE, if you are to code a hanger having 1x1 and 2x2 with permission given to which specific craft can dock or use it. If the craft sprite can be edited to fit the hanger, would permission flag alone be enough to make it work?
SupSuperToday at 10:45 AM
i'm not sure what you're asking. hangars can't restrict crafts in OXC. or are you asking if such a feature would be possible?
Precentor AppollyonToday at 10:45 AM
Yes, would be possible
I mean currently, in the vanilla build, hanger can fit only 2x2 craft
If I am to have 1x1 hanger.
Currently, the problem is that craft can't fit properly in a 1x1 hanger. However, fitting a craft in a hanger is a sprite issue isn't it?
You can use a graphic editor to make the sprite to fit in a 1x1 hanger.
SupSuperToday at 10:47 AM
yes, it's just a visual bug. hangars and crafts can theoretically be any size
Precentor AppollyonToday at 10:47 AM
So could permission flag alone would make this possible.
Say a craft is given permission to dock at Hanger X and can't dock with Hanger Y
Such a feature can be coded without worrying about space allocation problem, yes?
SupSuperToday at 10:49 AM
yes, it should be possible
Precentor AppollyonToday at 10:50 AM
I though so. How complicated and hour intensive will be by your estimate? Your input will be very much appreciated.
SupSuperToday at 11:05 AM
hard for me to estimate since i already know the codebase, but i'd say a few hours, depends if it's just a visual flag or if it actually affects purchase/manufacture
Precentor AppollyonToday at 11:05 AM
Probably won't affect Purchase or manufacture, there's already such a feature in place in OXCE. Again, thanks for the info, very much appreciated.
SupSuperToday at 11:06 AM
if it's just "don't draw this craft on this hangar" then it should be simple
Precentor AppollyonToday at 11:07 AM
Sorry, please elaborate more by what you mean "don't draw this craft on this hangar
SupSuperToday at 11:09 AM
i mean you restrict what craft sprites can be drawn on top of (dock) the hangar
Precentor AppollyonToday at 11:09 AM
Okay, thanks!
But how would that be a problem though? A graphic editor can edit the craft sprite and make it fit. It is just craft sprite to make it fit, yes?
SupSuperToday at 11:12 AM
yes, it's not a problem
Precentor AppollyonToday at 11:13 AM
Thanks
I want to sincerely tell you how much I do appreciate, of you helping me with my question.