APRIL OXP (Automated Pylon Re-arm In-flight Loader)
Moderators: winston, another_commander
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
Unfortunately I'm too much of a computer noob to know what log files and mission variables are. That being said, I have the most recent version of the april oxp and version 1.77.1 of oolite.
Edit1: I also have not reentered that save file since posting on this thread so that whatever log files and mission variables are they would not be changed.
Edit1: I also have not reentered that save file since posting on this thread so that whatever log files and mission variables are they would not be changed.
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
I was suspicious about something, the possible cause for why the april system was disappearing, and I figured it out. If I fill my ship full of goods, any goods, so that my cargo space is full, and then save the game and close it, when I reopen that save file the april system is gone. There's something about saving the game and closing it with a full cargo hold that is causing the april system to disappear. I hope that information helps...
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
It may well do, as the April does take up cargo space (per past requests from users that it do so to make things more realistic). I'll have a look through the code and see if it's something at the OXP end, but it may be something in the trunk code too which deals with that kind of thing perhaps too (as equipment using/requiring cargo space is a relatively new feature).
It could be some clash somewhere that is throwing the equipment out as you haven't got space for it when you reload the save game. It's something I can test and try to reproduce anyway (one of those odd little scenarios that arise from time to time).
By the way, thanks for the persistence with this and the error reporting. I hope we can track it down, wherever the root cause is...
It could be some clash somewhere that is throwing the equipment out as you haven't got space for it when you reload the save game. It's something I can test and try to reproduce anyway (one of those odd little scenarios that arise from time to time).
By the way, thanks for the persistence with this and the error reporting. I hope we can track it down, wherever the root cause is...
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
No problem. I had noticed the problem was happening every time my Supercobra was full at 45 tc (large cargo bay plus military level april system) and I loaded the game, so I went ahead and tested to see if that was the scenario. If there is something else affecting it apart from just the full cargo hold, I wouldn't know what it is. Hopefully it isn't an interaction with another oxp, though I would doubt it as I don't have any other pieces of equipment that take up cargo space.
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
OK I've done some testing, and I'm now convinced you've found a trunk bug.
My test sequence is as follows:
So it looks for me like there's a bug in the 1.77.1 (and maybe 1.79 too) trunk code here dealing with the equipment cargo space requirement feature, coming into play during the reload.
That's one for the dev's to check and confirm. I gave Cim a quick heads-up that this may be upcoming earlier, looks like that might be confirmed.[/color]
My test sequence is as follows:
- I tried your scenario (have APRIL, fully load hold then save and reload) - the APRIL vanishes (confirming your observation and theory).
- Removed the cargo space requirement from the APRIL and retest - APRIL remains after reload.
- Set another piece of equipment (retro rockets) to need 5t cargo space and retest with those only - modified RR vanish on reload.
- Purchase both APRIL and modified RR, save and reload - APRIL remains but RR vanish.
So it looks for me like there's a bug in the 1.77.1 (and maybe 1.79 too) trunk code here dealing with the equipment cargo space requirement feature, coming into play during the reload.
That's one for the dev's to check and confirm. I gave Cim a quick heads-up that this may be upcoming earlier, looks like that might be confirmed.[/color]
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
Thargoid wrote:it may be something in the trunk code too which deals with that kind of thing perhaps
And by "trunk" I presume you mean core, as 1.77 (which Falcon777 is using) doesn't contain any "trunk" code..Thargoid wrote:OK I've done some testing, and I'm now convinced you've found a trunk bug.
...
So it looks for me like there's a bug in the 1.77.1 (and maybe 1.79 too) trunk code here
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
I'm glad that you managed to narrow down the possibilities, Thargoid.
To be more specific, Diziet, I use 1.77.1. There's probably some differences between the two.
To be more specific, Diziet, I use 1.77.1. There's probably some differences between the two.
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
Sorry.. I meant 1.77.1... and there's nothing much really in the way of differences.. 1.77.1 is simply the bugfix version of 1.77. "Trunk" refers to the development branch.. currently 1.79.xxxx.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
From discussions with Cim, I mean both. That area of code wasn't changed much since the equipment/cargo space feature was added, so the issue probably applies to both 1.77.1 and 1.79.x (although I admit I didn't test it in a build of 1.79.x, as I followed Falcon777's original reported set-up).
Basically I mean the glitch is in the game code rather than the OXP one.
Basically I mean the glitch is in the game code rather than the OXP one.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
The -equipmentValidToAdd method in ShipEntity.m has a series of validation checks for equipment that require various conditions like empty pylon, mounted pylon, clean legal record, full fuel tank etc for the specific case we are not in the process of loading a commander file. Looks like the required cargo space condition is the only one that is not checked against loading and I think giving that check there as well should be enough to solve the problem. At least the APRIL appears now on my list when I load up a commander with a full cargo bay.
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
Thanks. In your modified build, can you also confirm if having multiple equipment items which all need cargo space correctly deducts the right full total from the hold space? I had that set up yesterday in one of my tests and I think the available cargo space was more than it should have been for the so in question and the equipment installed.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
Looks like there were a couple of bugs lurking when equipment with cargo space requirement was present in a(n almost) fully loaded ship. Please check tomorrow's nightly for hopefully working fixes. Refer to commit 22da020473.
Re: APRIL OXP (Automated Pylon Re-arm In-flight Loader)
Just done a git update and trunk build and it looks good to me. Both the equipment staying on save/load with a full cargo hold, and also multiple items giving correct impact on the available hold space.another_commander wrote:Looks like there were a couple of bugs lurking when equipment with cargo space requirement was present in a(n almost) fully loaded ship. Please check tomorrow's nightly for hopefully working fixes. Refer to commit 22da020473.
Looks like a job done to me, one for 1.77.2 or 1.78 (and of course 1.79) as appropriate?
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link