Page 5 of 5

Re: New version of my Fer-de-Lance 3G

Posted: Thu Aug 14, 2025 8:05 pm
by Wildeblood
Lone_Wolf wrote: Thu Aug 14, 2025 6:43 pm
ferdelance3G_antiSweeper.js, ferdelance3G_conditions.js and ferdelance3G_hunter.js have var assignments in body/top-level of the script.
As you suspected, they are the culprits.

Re: New version of my Fer-de-Lance 3G

Posted: Fri Aug 15, 2025 10:02 pm
by UK_Eliter
Hi all

There was some work for me to do here - specifically, two things.

1) The awardEquipment stuff. My `this.allowAwardEquipment` was intended to make it likely that some systems consistently have, or lack, the missiles. But I got the logic wrong: my code made it likely that some systems consistently have, but not consistently likely that they lack, the missiles. (Er: I think.) I've changed the code to the following.

Code: Select all

if (Math.random() < 0.9) {
	if (system.scrambledPseudoRandomNumber(6921) < chance) {
		return true;
	} else if (Math.random() < chance) {
		return true;
	}
}
return false;
2) Seemingly my OXP's use of 'consoleDebugMessages' caused minor problems. I do not know exactly why. So I've just removed all those uses. Cursory testing, including inspection of the log, suggests that all is well.

I've asked the maintainers to rebuild the OXP repository thingy. When that has happened the new version of the OXP - version 6.652 - will be available for download-via-the-in-game-manager.

Thank you, Lonewolf and Wildeblood.