Page 1 of 2

Engine trails OXP [proof of concept] now for NPCs too

Posted: Mon Dec 23, 2013 1:53 pm
by Zireael
Link to the working version:
https://www.dropbox.com/s/mgsvj90b5fyb8 ... ls_0.4.zip

***
Reserved for posterity


Here's what I managed to get tweaking cim's code:

Image

I flew in circles around the Coriolis seen in the background.

The amount of time passing between each of those trails seems random, so for now:
step 1) I need to figure out how to make it consistent
step 2) is applying it to every powered ship within the distance of 11000 (let's say, I seem to recall the scanner distance is 22500 and I want a smaller one) -> actually, I tried to do it and kept getting errors that ship is undefined or something

Re: Engine trails [proof-of-concept]

Posted: Mon Dec 23, 2013 5:02 pm
by Zireael
Ok, applied a timer which should spawn a pair of trails behind the player every 5 seconds. This time, the trail around the Lave Coriolis looks much better, as seen from Black Widow's cockpit:

Image

Here's a linky to the first beta version.

https://www.dropbox.com/s/aqfxeqyachrk8 ... ils0.1.zip

To do:
1) cleanup timer removing the oldest pair
2) apply it successfully to all powered ships in range

Re: Engine trails [proof-of-concept]

Posted: Mon Dec 23, 2013 6:39 pm
by Commander McLane
Zireael wrote:
This time, the trail around the Lave Coriolis looks much better
Which trail? I only see some randomly distributed blue dots.

Re: Engine trails [proof-of-concept]

Posted: Mon Dec 23, 2013 6:45 pm
by Zireael
Commander McLane wrote:
Zireael wrote:
This time, the trail around the Lave Coriolis looks much better
Which trail? I only see some randomly distributed blue dots.
They are supposed to be the trail. Some of them ended up behind the station :D

As I said, a beta.

Re: Engine trails [proof-of-concept]

Posted: Tue Dec 24, 2013 5:12 am
by Diziet Sma
You really need to turn off the HUD for screenshots.. :wink:

(Pause.. press 'o'.. unpause.. take screenshot.. pause.. press 'o'.. unpause..)

Re: Engine trails [proof-of-concept]

Posted: Wed Dec 25, 2013 7:08 pm
by Zireael
Another version is out!

This time, the trails *do* spawn every 5 secs and there is an added timer to remove some trails every 60 secs (but I don't think it's working).

https://www.dropbox.com/s/ufjs7cxca08r4 ... ls_0.2.zip

However, this is still player-only. I wish I could get it to work with other ships. Help?

Anyway, amazing piccy taken at Isinor from Black Widow's aft camera:

Image

(look closely at the station-buoy route :D)

Re: Engine trails [proof-of-concept]

Posted: Thu Dec 26, 2013 12:37 am
by Diziet Sma
It's coming along, by the looks.

I think the 5-second interval needs decreasing, though..

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Thu Dec 26, 2013 5:02 pm
by Zireael
It's now out of WIP (huge thanks to Norby for pointing me in the correct direction in the "I s&^&ck at coding" thread).

Link: https://www.dropbox.com/s/6bokodxkvfb4y ... ls_0.3.zip

Proof that it works:
Image

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Fri Dec 27, 2013 9:34 pm
by dertien
Hey Zirael, looking good so far, are you working towards something like this ?

http://media.moddb.com/images/mods/1/6/5393/27843.jpg

would be awesome, but dunno if that is possible in oolite though. :roll:

Good luck !

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Sat Dec 28, 2013 11:57 am
by Zireael
Yup, I'm aiming towards something similar, but less solid - just a pair of markers every few seconds.

Currently working on not losing NPC trails after a hyperspace jump and on different colors (so that you don't end up having three ships in range with crisscrossing blue trails - after all, this is meant as a tracking help and not only random visuals)

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Mon Dec 30, 2013 10:58 am
by Zireael
Another version.

The trails range has been reduced to 11 km. Several colors are now included and the player got back his standard exhaust plumes.
I'm not sure the color picking code works 100%.

https://www.dropbox.com/s/mgsvj90b5fyb8 ... ls_0.4.zip

EDIT: Color changing code doesn't work, but the trails are brilliant. This is a lull in a firefight with three pirates involved.

Image

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Sun Jun 29, 2014 1:00 pm
by Zireael
Anyone uses it?

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Sun Jun 29, 2014 8:58 pm
by Redspear
Not yet but that last screenshot makes me think I should give it a try :shock:

Thanks for making it :-)

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Sun Jun 29, 2014 9:03 pm
by Redspear
Not yet but that last screenshot makes me think I should :shock:

Have you thought of making it an 'injectors only' effect?
It might be more consistently entertaining if if were a rarer occurrance...
I don't know - please bear in mind that I haven't tried it yet :-P

In any case, thanks for making it :-)

Re: Engine trails OXP [proof of concept] now for NPCs too

Posted: Mon Jun 30, 2014 7:24 am
by Zireael
I tried to make it change colors, so that pirate 1 might have blue trails, pirate 2 yellow, pirate 3 violet... but it didn't work.

If it worked, making it limited to injectors only or changing colors for injecting would be easy.