Hi!
@another_commander:
You will be pleased to know that "IT" has been already fixed in the trunk. It was not related to shipyard code, though.
Indeed, I am (pleased, that is)
@Kaks:
Well, there's many factors affecting ships availability. The tech level is just one of them. After I wrote my bugfix I had to try about 40 times to see a tech 6 ship(<key>techlevel</key>
<integer>5</integer>) showing up for sale in a tech level 6 system.
Which does, for all intents and purposes, mean it doesn`t work as intended in my book. This problem is, by the way, solved for my OXP - I just lowered ALL minimum tech levels by one and let the new upper span limit stay and now it works as intended on my system.
So, this does not have to be changed soon as far as it concerns me - but if you do change this in 1.71 or above, please tell me so that I can change my workaround back then ...
It takes some special type of determination to make absolutely sure that things work exactly as you expect.
[sarcasm] You mean like, for example, as in writing a shipyards OXP that tries to place ships into tech levels according to their technical prowess and wildly determined to have that work in-game - including TL15? [/sarcasm]
For the vast majority of people, seeing their ships for sale at some point or other would be proof enough that their oxp worked. In this case, no-one else had tried to put a tech 15 ship for sale before.
Yeah, well, see above ... as my OXP places ALL the ships differently, more than that is needed
It`s not even completely true. The "morrigan" oxp on the wiki page, for example, has a ship that was clearly intended for sale in TL 15 shipyards. But the author made a mistake, it would have appeared only in TL 16 shipyards, with the buggy distribution thingy added in de facto in TL 17 shipyards.
Actually, the morrigan.oxp does only work as probably intended with the upcoming Realistic Shipyards 1.07 in.
From what I can tell from the code the equipment itself was always present in the right tech level systems, it's just ships availiability that's affected by this bug.
As I found a Naval Energy Unit for sale in a ship in a TL 4 system once (for the small additional sum of, I think, 540.000 Cr) that should be correct.
As far as ships' equipment inside the ships for sale, I'll keep looking into it!
Yes please! That, if I understood you & another_commander right, is the last serious bug that affects my OXP left. And this one will affect a lot of oxps.
I will attempt to pinpoint which items of equipment skip the standard item distribution in-game when I find the time (next days look not so good), but I will try to get a repeatable erratic behaviour.
Thanks anyways for looking into it & both your work on this obsession-creating game!
L