Page 2 of 2

Re: Funny goings on in 1.75

Posted: Tue Apr 05, 2011 11:42 am
by Okti
Eric Walch wrote:
Commander McLane wrote:
Yodeebe wrote:
for starters, every time I land at a station, I get: "For capturing mission_pirateDisplayName you are awarded 500 Cr"
This is clearly from an OXP, although I don't know which.

Looks like a mission variable was incorrectly set, or didn't get cleared.
I assume it is from the test oxp: "OresratiChalange v0.0.oxp". That one uses the mission variable mission_pirateDisplayName. The newest version of that oxp is v0.1.1. It could be that it is already fixed there.

EDIT:
I don't think it is fixed. THe lines responsible are:

Code: Select all

this.shipWillDockWithStation = function (station)
{
    if (missionVariables.oresratichalange_pirateEscPod == "RESCUED")
	{
		player.addMessageToArrivalReport(expandDescription("For capturing [mission_pirateDisplayName] you are awarded 500 Cr."))
		player.credits += 500
	}
}
But, missionVariables.oresratichalange_pirateEscPod is never reset after message generation, so once you get the message, it will be there every docking. :twisted:

Okti, you could make it a 1.75+ oxp. Than can you use character.plist for your pirates and add a JS script to the pilot/character. Look for an example in the "galNavyOfficer.js" script in GalNavy.oxp. That way you don't even need mission variables to keep track of the special pilot. And additionally does this method allow to carry more than one of these special pilots.
Yes this bug has been fixed in current version. But this mission is only playable if you plan to visit Oresrati. I think it may be an idea not to install the OXP if you are in another galaxy than 8.

I think there is a small problem with one of the mission screens. I will test and update it during the week.

Thanks