API Question Attachment lists and dll modules

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
11,318
Reaction score
2,786
Points
203
Location
between the planets
I noticed that the docklist from a vessels config file gets parsed and incorporated by default even for a dll vessel.

The same does not seem to be the case for attachment lists. Now, I'm having a lot of foreign code in this add-on (say, about 99%...), so it is possible that something is actively preventing it. I just wouldn't know what to look for, nor do I know wheather there is anything to look for. So here's the main question:

Should a dll module usually parse the attachment list from its cfg by itself, and if yes, what could prevent it from doing so?
 
Last edited:
Should a dll module usually parse the attachment list from its cfg by itself, and if yes, what could prevent it from doing so?

Yes it should. I can't test it at the moment, but looking at the code, there is nothing obvious that would make parsing attachment definitions different from docking port definitions. They are read by the same function, in the same manner, during setting up the class caps. The only reason I can think of is that the module calls ClearAttachments inside clbkSetClassCaps or at some other point.
 
Yeah well, the problem was of course between seat and keyboard once more. My attachment point was looking for a parent instead of a child in its vicinity, and not finding one I first thought that I'm missing the attachment point after all the restructuring I've done (as the old code defined the attachment point on runtime, while my new code was relying on the config to provide it) :facepalm:
 
Back
Top