Tinkerer's Workshop - OXP tweaking for fun and profit!

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

Moderators: another_commander, winston

DGill
---- E L I T E ----
---- E L I T E ----
Posts: 271
Joined: Thu Jan 01, 2009 9:45 am

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by DGill »

mossfoot wrote:
I'm curious to tweak this as well, but can the frequency be upped a bit? I'd like to assume 1 in 10 outer planets has a ring, for example
Cim has optimised the code for the main planet. The above mod is not ideal, but its ok for my requirements. Would be good if someone could produce a proper oxp for adding rings to additional planets.
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by spara »

I tested the rings on Additional Planets and the problem that rose was that they were not visible from ~2500 km and over (or maybe it was more, can't quite remember as it's been awhile). Optimization I think. So there was no point of putting them to the farther planets. That was in 1.77, maybe 1.80 is different.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2286
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Wildeblood »

I would like to tweak Market Observer so it is compatible with AI Trading Assistant. Does anyone have any suggestions? Also, the same question about Sell All.
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by spara »

Wildeblood wrote:
I would like to tweak Market Observer so it is compatible with AI Trading Assistant. Does anyone have any suggestions? Also, the same question about Sell All.
How does Market Observer clash? I'll be happy to add any compatibility code necessary to it.
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 271
Joined: Thu Jan 01, 2009 9:45 am

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by DGill »

spara wrote:
I tested the rings on Additional Planets and the problem that rose was that they were not visible from ~2500 km and over (or maybe it was more, can't quite remember as it's been awhile). Optimization I think. So there was no point of putting them to the farther planets. That was in 1.77, maybe 1.80 is different.
Agreed, at the moment it is just eye candy:

Image
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2639
Joined: Thu Jun 20, 2013 10:22 pm

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Redspear »

The index on the first page of this thread should now be up to date.
If anyone spots any issues with it then please let me know. Thanks.

I'll look to update it in future of course but meanwhile the more recent a post is here, the more likely it is to be visible.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Diziet Sma »

Thanks mate.. much appreciated..

Edit: I've just been and checked it out.. you've done a fantastic job! 8)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2639
Joined: Thu Jun 20, 2013 10:22 pm

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Redspear »

You're welcome :)

...

Here's a request I made re Random Shipnames a while back

Could anyone show me how to tie that oxp's functioning to the bounty scanner please?
i.e. random shipnames only show when bounty scanner is installed and fuctional.

It would make the bounty scanner much more interesting to me and I think I'd take the names less for granted if I lost them every so often.
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Zireael »

Can I take your idea and run away with it? :D

I suggest making a separate piece of equipment. Just like Bounty Scanner only reveals bounty and Elite Rank Scanner (from my Elite Ranks OXP) only reveals the rating, I'd make the equipment, say Transponder Reader, only read names.
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2639
Joined: Thu Jun 20, 2013 10:22 pm

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Redspear »

Zireael wrote:
Can I take your idea and run away with it? :D

I suggest making a separate piece of equipment. Just like Bounty Scanner only reveals bounty and Elite Rank Scanner (from my Elite Ranks OXP) only reveals the rating, I'd make the equipment, say Transponder Reader, only read names.
Yeah, go for it! :)

Be cool if that was an oxp/z 8)
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by spara »

I created a nice(?) little tweak to the RandomShipnames so that some of the hunter names are pulled from RandomHits. This might be of interest to you, if you don't want to use the Random Hits Shipset addon, but would like to occasionally see a Deputy on patrol.

First find the comment

Code: Select all

// hunters, defense ships, escorts, and some special ships
from the randomshipnames.js file. In an unmodified script, that would be line 828

A couple of lines under that is a line saying

Code: Select all

ship.displayName += ": " + this.$randomHunterName(ship);
That would be line 831, if the file has not been modified.

Change that line to this

Code: Select all

		if (Math.random() < 0.1 &&  ship.primaryRole.indexOf("hunter") !== -1 && worldScripts.Random_Hits) {
			if (ship.primaryRole === "hunter-heavy")
				ship.displayName += ": " + expandDescription("[random_hits_hunterhigh_name]");
			else if (ship.primaryRole === "hunter-medium")
				ship.displayName += ": " + expandDescription("[random_hits_huntermedium_name]");
			else ship.displayName += ": " + expandDescription("[random_hits_hunterlow_name]");
		}
		else ship.displayName += ": " + this.$randomHunterName(ship);
RandomHits is naturally required for this to do anything. If you feel the probability (0.1) to be too high or low, feel free to alter it. Now approximately every tenth hunter gets its name from RandomHits.
Neelix
---- E L I T E ----
---- E L I T E ----
Posts: 288
Joined: Sat May 31, 2014 9:02 pm
Location: Melbourne, Australia

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Neelix »

I've extended the script.js file created for spara's cargo scooping tweak to also enable the non-linear scanner and ultra-zoom functions when I launch.

That lets me change HUDs and keep the functionality without having to tweak the new HUD each time.
Note that by setting it this way, if the HUD is changed while in flight the settings will revert to the HUD defaults until the next time you dock.

Code: Select all

this.shipWillLaunchFromStation = function() {
	player.ship.scannerNonLinear = true;
	player.ship.scannerUltraZoom = true;
}
- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Diziet Sma »

Whilst I've never tried the Mining game myself, it was recently mentioned that one of the problems with the Miner Start option was that the ship was often incapable of catching up with fast-moving splinters. Recalling that in the past, I've seen a couple of mentions of members who'd tweaked their copy of Thargoid's [EliteWiki] Cargo Shepherd so that it attracted splinters as well, making it much simpler to scoop them, I thought it might make a good addition to the Tinkerer's Workshop.

As the tweak for this has never been posted, I decided to take a shot at it, for those who may want to make use of it. Note that this is completely untested, but in principal should work, as it's a pretty straightforward code addition. I'm sure if I've messed it up, someone will let me know, anyway.. :lol:

In cargoShepherd_magnet.js, simply edit line 9 from this:

Code: Select all

	function allPods(entity) {return entity.isShip && (entity.hasRole("cargopod") || (entity.isCargo && !entity.isPiloted))};
to this:

Code: Select all

	function allPods(entity) {return entity.isShip && (entity.hasRole("cargopod") || entity.hasRole("splinter") || (entity.isCargo && !entity.isPiloted))};
and save.

Remember to shift-start Oolite to make sure your change takes effect.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Neelix
---- E L I T E ----
---- E L I T E ----
Posts: 288
Joined: Sat May 31, 2014 9:02 pm
Location: Melbourne, Australia

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Neelix »

Erm... no tweaks needed for that - It already attracts splinters (but not boulders) as is.

- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Thargoid »

The default version shouldn't, as per Dizzy's post above. You may have already tweaked your copy in the past perhaps, as this isn't the first time it's been suggested?
Post Reply