[RELEASE] Camera Drones OXP (1.77 only)

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

Moderators: winston, another_commander

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

[RELEASE] Camera Drones OXP (1.77 only)

Post by cim »

One of the new features in 1.77 is being able to alter the external view camera position and orientation by script. Here's an OXP that gives the player some quick access to some new external views like a missile chase camera through primable equipment available at any TL:8 or higher station.

Download Camera Drones 1.4 - further documentation on the wiki: [wiki]Camera Drones[/wiki]

Thanks to Thargoid for solving a camera orientation problem with the docking camera, and Cody for noticing bugs with the script.
Image
Last edited by cim on Sun Jun 22, 2014 4:41 pm, edited 4 times in total.
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by JazHaz »

Is this different to the Tracker Cam OXP?
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Thargoid »

Yes, they are separate OXPs, although based on similar code (and the same new functionality in trunk). I'm taking my OXPs out of beta as we speak and uploading them to box/wiki.
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by JazHaz »

Thargoid wrote:
I'm taking my OXPs out of beta as we speak and uploading them to box/wiki.
Downloaded from box and replaced all the betas I had already! :)
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
GGShinobi
---- E L I T E ----
---- E L I T E ----
Posts: 291
Joined: Tue Dec 25, 2012 7:20 pm

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by GGShinobi »

cim wrote:
One of the new features in 1.77 is being able to alter the external view camera position and orientation by script. Here's an OXP that gives the player some quick access to some new external views like a missile chase camera through primable equipment available at any TL:8 or higher station.
Yippieh, downloading it now!

This new feature will also come in handy for the "telescope"-component I'm planning for a new Long Range Scanner (see http://bb.aegidian.org/viewtopic.php?f=6&t=13274)

Hmm, but I wonder if this will clash with the awesome SniperCameraSystem.oxp? (http://wiki.alioth.net/index.php/Sniper ... System_HUD) I fear it, but I hope not! :shock:
忍 knowing that enough is enough, you'll always have enough.

Running Oolite 1.77 on Ubuntu Linux 12.04 LTS
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Cody »

Been having some fun with this, but still fumbling about - can the drone's speed be reduced?
Oh, this popped-up - maybe due to me hitting the wrong keys:

Code: Select all

17:54:24.592 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (Camera Drones equipment script 1.1): Error: PlayerShip.setCustomView only works when custom view is active.
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!
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by cim »

El Viejo wrote:
Been having some fun with this, but still fumbling about - can the drone's speed be reduced?
For the flyby view, you mean? On line 143 of camera_drones.js, the 500 is the drone's speed relative to your ship in metres per second, so that should be fairly easy to tune.
El Viejo wrote:

Code: Select all

17:54:24.592 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (Camera Drones equipment script 1.1): Error: PlayerShip.setCustomView only works when custom view is active.
Ah, I think I know why that's happening. I'll put a fixed version up soon.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Cody »

cim wrote:
El Viejo wrote:
Been having some fun with this, but still fumbling about - can the drone's speed be reduced?
For the flyby view, you mean? On line 143 of camera_drones.js, the 500 is the drone's speed relative to your ship in metres per second, so that should be fairly easy to tune.
Muy bueno!
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!
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by cim »

cim wrote:
El Viejo wrote:

Code: Select all

17:54:24.592 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (Camera Drones equipment script 1.1): Error: PlayerShip.setCustomView only works when custom view is active.
Ah, I think I know why that's happening. I'll put a fixed version up soon.
Should be fixed in 1.2. Thanks
User avatar
Selezen
---- E L I T E ----
---- E L I T E ----
Posts: 2530
Joined: Tue Mar 29, 2005 9:14 am
Location: Tionisla
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Selezen »

Cim - I've been trying to change the speed of the flyby by changing the value you specified but it's making no difference. Do you have any idea if anything else needs to be done or if there is some sort of range I need to be in. I assume that to make the thing slower I need to reduce the number?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Cody »

I changed line 147 thus:

Code: Select all

this.$startVector.z -= delta * 200;
That worked fine for me (I think - nothing is certain). You did the shift/start thingy, yes?
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!
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Thargoid »

Or maybe use a tracker cam?
User avatar
Selezen
---- E L I T E ----
---- E L I T E ----
Posts: 2530
Joined: Tue Mar 29, 2005 9:14 am
Location: Tionisla
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Selezen »

El Viejo wrote:
You did the shift/start thingy, yes?
Um. No.

<tries not to look embarrassed>

What's the shift start thing?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Commander McLane »

Selezen wrote:
What's the shift start thing?
Starting Oolite with SHIFT held down until you see the spinning Cobra. That's to clear the cache. Otherwise changes made in plists or JS-scripts don't get effective, because the cached (unchanged) version continues to be used by the game.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [RELEASE] Camera Drones OXP (1.77 only)

Post by Cody »

Selezen wrote:
What's the shift start thing?
My apologies, Master Historian - I should have explained that (as McLane has done).
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!
Post Reply