New version of my Fer-de-Lance 3G

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

Moderators: another_commander, winston

UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
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 »

Version 6.04 is out. It makes the 3G ships much rarer in systems than they were before. Previously they were still much too common. My thanks to Spara.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

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

Post by Lone_Wolf »

Ferdelance 3G + with turrets ( ferdelance3G_playerPlusModelWithTurrets )

Forward military laser didn't show a beam, i changed forward view position to this :

Code: Select all

view_position_forward = "0.0 -2.85 26.0"; // not same as 3G
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
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 »

Thanks Lone_Wolf.

There's been some discussion on the forum about whether the lasers on player ships should - with a perfectly accurate laser - be visible to the player. You have prompted me to the conclusion that I want that to be the case for my ship, at least because of the relative positions of the front laser and the front view-port. So I've made a modification along the lines you suggest. I have taken the opportunity to improve the positions of the front lasers on my 3G ships.

However, I can't seem, right now, to upload the new OXZ to the hosting site (http://wiki.alioth.net/index.php/OXP_List). Perhaps the site is down, as it sometimes is. Or has the address changed? (I haven't uploaded anything for a while.) We'll see. Stand by!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

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

Post by Cody »

The Wiki is currently down - back-up time, most probably.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
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 »

Thanks Cody.

The new version of my OXZ has now been uploaded to the wiki and is available from the in-game expansion pack manager.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

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

Post by Lone_Wolf »

21:14:09.994 [oxp-standards.deprecated]: The conditions key is deprecated for equipment Sweeper-resistant navy missile

in Config/equipment.plist you are using the deprecated conditions= .
Please change to a condition script .
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
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 »

Lone_Wolf: thanks; I'll do this as soon as I can. I have very little time at the moment. So it will be a while I am afraid.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
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 »

I'm afraid I'm not finding the documentation (http://wiki.alioth.net/index.php/Oolite ... on_scripts) pellucid. Could someone point me towards a sample conditions script (e.g. name an expansion pack that has one) or at least tell me what name a condition script is to have and even (though I suppose the answer is: 'in the Scripts folder') where it goes? (I had a look inside a few OXZ files, but I couldn't see anything relevant.)

Thanks.
Last edited by UK_Eliter on Fri Jun 12, 2015 1:42 pm, edited 1 time in total.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

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

Post by Norby »

Put a "condition_script" = "myoxp_conditions.js"; line into your equipment.plist and do your condition check in allowAwardEquipment.
Yes, the Scripts folder is the place of the .js.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2289
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

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

Post by Wildeblood »

UK_Eliter wrote:
Could someone point me towards a sample conditions script (e.g. name an expansion pack that has one).
Try Undocumented Launch. That's a very simple OXZ with a condition script. While you're there you could fix it for 1.82. (One only needs to change one word!)
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

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

Post by Smivs »

A couple of mine
Cup of Tea
ExtraFuelTanks
Both are pretty straight forward - hope they help.
Commander Smivs, the friendliest Gourd this side of Riedquat.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
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 »

Smivs, Wildeblood, Norby: thank you very much. I should be able to work out what I am doing now.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
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 »

One more question, people, I am afraid. It is: how do I set the price of equipment?

In my existing equipment.plist file, I have a key for each possible equipment offering, and, within that, I specify a price. How do I specify the price within my condition script and, more specifically, within this.allowAwardEquipment and, more specfically yet, within something like the folowing?

Code: Select all

switch (eqKey)
	{
		case "EQ_F3G_ANTISWEEP_MISSILE":
			if (player.ship.dockedStation === "Navy SecCom Station")
			{
				allowed = true; // this will cause the funtion to return 'true', later.
			}
		[Code continues . .]
	}

Do I use this.updateEquipmentPrice? If so, how please?

Apologies if I overlook something obvious.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

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

Post by Norby »

UK_Eliter wrote:
How do I specify the price within my condition script and, more specifically, within this.allowAwardEquipment
Not within allowAwardEquipment but you can copy your code into updateEquipmentPrice also and return the new price in the same case.

Code: Select all

this.updateEquipmentPrice = function(eqKey, currentPrice) {
    switch (eqKey) {
		case "EQ_F3G_ANTISWEEP_MISSILE":
			if (player.ship.dockedStation === "Navy SecCom Station") {
				    return(yourNewPrice);
			}
	 }
    return(currentPrice);
}
User avatar
jh145
Dangerous
Dangerous
Posts: 94
Joined: Thu Dec 25, 2014 8:39 pm

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

Post by jh145 »

While we're talking about the FdL 3G, would it be worth changing the external views? Maybe pull the camera back from the ship a little?
Post Reply