New version of my Fer-de-Lance 3G

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2866
Joined: Sat Jun 11, 2011 6:07 am
Location: Nova Hollandia
Contact:

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

Post 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.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1275
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

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

Post 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.
Post Reply