As reported here by Yodebee, trunk is exhibiting a potential glitch when mines are launched when cloaked.
It looks like the AI isn't triggering properly, as the fuel tank (for example) just appears as a mine and doesn't trigger (refuel the ship) when launched from a cloaked ship. He's on a mac (trunk rev 5267) and I confirm same under Win7 (trunk rev 5287). Works fine when done uncloaked, or when a cloaked ship decloaks with the mine still around.
I guess there have been some modifications to the code for weapons triggering since 1.76.1, but it looks like some tweaks may be needed.
Trunk & mine-triggered equipment
Moderators: winston, another_commander, Getafix
Trunk & mine-triggered equipment
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Trunk & mine-triggered equipment
This is no trunk bug. It is actually a bug that is fixed in trunk. When you look at the AI of fuel tank 2.2 (the newest version) than you find the line:Thargoid wrote:It looks like the AI isn't triggering properly, as the fuel tank (for example) just appears as a mine and doesn't trigger (refuel the ship)
Code: Select all
"scanForNearestShipWithRole: player"
That script is wrong in the first place because when a NPC would launch a fuel tank in scanner range of the player, the fuel would go to the player.
Problem is that this is an very old oxp that predates the use of JS code. It should have been rewritten in JS by now. With JS it should be able to award the owner of the mine fuel without the need of a search first.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Trunk & mine-triggered equipment
A small adjustment to fuelTank.oxp gave this unofficial version 2.3. Should work with Oolite 1.74 and higher, including trunk.
(I also pm-ed Ramirez about this issue)
(I also pm-ed Ramirez about this issue)
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: Trunk & mine-triggered equipment
Ah yes, so it is - that's what I get for trying to deal with stuff just before bedtime.
Anyway all sorted now
Anyway all sorted now
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link