Page 8 of 9
Posted: Wed May 05, 2010 8:01 pm
by JazHaz
maik wrote:
I cannot find the OXP on the Wiki, is this merely an oversight or is it outdated?
Actually it IS on the wiki! It's on Griff's page, at the bottom of the page:
http://wiki.alioth.net/index.php/Griff_Industries
Posted: Wed May 05, 2010 11:40 pm
by maik
Great, thanks! I was only searching for it on the OXP overview page...
Posted: Thu May 06, 2010 12:27 am
by JazHaz
maik wrote:Great, thanks! I was only searching for it on the OXP overview page...
EDIT: have just added it to the table.
..
Posted: Thu May 06, 2010 8:40 am
by Lestradae
What I wanted to ask the java script gurus: Is there any way to make a worldscript from the ship script with the flaming wreckage, so that all ships and stations destroyed ingame get their flaming wreckage?
I would like to try that, but don't know how (or if it's possible at all).
Re: ..
Posted: Thu May 06, 2010 9:17 am
by Commander McLane
Lestradae wrote:What I wanted to ask the java script gurus: Is there any way to make a worldscript from the ship script with the flaming wreckage, so that all ships and stations destroyed ingame get their flaming wreckage?
You don't need to do that through a script.
Just give the generic role of the flaming wreckage a high role probability, so it gets regularly chosen when Oolite looks for wreckage. Something like 1000 or 10000 should make sure that hardly every any other wreckage is produced.
EDIT: Oops! Never answer a question if you haven't seen the OXP.
Just downloaded it, and it is obviously more complicated than I thought. So—until I've dug deeper—please discard my advice.
EDIT2: Okay, now I
have dug deeper. What you need to do is to attach "griff_explosionScript.js" as a ship script to each ship that you want to explode this way. Which is no trouble as long as the ship in question doesn't have its own script (which you probably don't want to override). However, a while ago somewhere on the board (I've forgotten in which thread) Ahruman lined out a way to add the contents of one script to another script, while leaving the rest of the "hijacked" script intact.
One problem I see with hijacking virtually all ship scripts (and producing a lot of beautiful yet resource-hungry explosions) is that it may slow down the game.
What you could do is to put the content of griff_explosionScript into the shipDied-part of the Oolite default ship script. Then at least all ships that don't have a script of their own would have this explosion.
Posted: Thu May 06, 2010 9:45 am
by Thargoid
This was discussed at the time, and one point is that it's not actually appropriate for all ships. For example if you did it automagically you'd probably end up with asteroids, cargo pods, ship sub-entities and to the extreme even ship sub-entities or ships which are removed by script for various reasons all going up in clouds of wreckage.
As McLane says the hooking up is simply a matter of having the ship call the script when it dies, but I deliberately didn't make it universal for the above reason.
Posted: Thu May 06, 2010 12:43 pm
by Metal Hippy
Thanks for that. I already love Griff's work - I'm looking forward to seeing yours too.
Re: Flaming Wreckage! - Possible with scripting?
Posted: Thu May 31, 2012 7:32 pm
by wthomas33065
I downloaded this oxp and installed it, but I must be a real noob because I can't tell any difference between explosions when the oxp is installed and when it is on.
I tried following the readme in the package and put the config file in the addons folder and I must be doing something wrong.
Thanks for your assist in getting this work.
Re: Flaming Wreckage! - Possible with scripting?
Posted: Thu May 31, 2012 9:17 pm
by Thargoid
You need to edit shipdata.plist files to have the ships use the new explosions rather than their standard ones. To do so make a back-up of the relevant shipdata.plist file(s), then open them in your text editor of choice and add the line:
Code: Select all
script = "griff_explosionScript.js";
for openStep format files, or
Code: Select all
<key>script</key>
<string>griff_explosionScript.js</string>
for XML ones. Note that this will only work for ships that don't already have a script associated with them, and won't work well if applied to ship sub-entities.
Once that's done, restart the game with the shift key held down and then shoot some ships to see the effects. There are more details earlier in this thread, so maybe have a review of it for some more tips.[/color]
Re: Flaming Wreckage! - Possible with scripting?
Posted: Thu May 31, 2012 10:30 pm
by JazHaz
I'm now working my way through Griff's Shipset shipdata.plist adding in the script reference. It seems to me that Griff ought to include this OXP in the Shipset, as when the Shipset gets updated I'll have to do it all again!
Re: Flaming Wreckage! - Possible with scripting?
Posted: Fri Jun 01, 2012 7:43 am
by Griff
yeah, it is a fiddly oxp to get working, not that it helps you that much JazHaz but it might be useful to know - if you use the 'addition' version of my shipset and the griff_alloys_and_wreckage oxp (found here
http://www.box.com/shared/rpkms25cc9 ) you don't need to edit the shipdata.plist to add in the script line, there's a shipdata-overrides.plist file in the oxp that adds it in automatically for you
Re: Flaming Wreckage! - Possible with scripting?
Posted: Fri Jun 01, 2012 8:14 am
by Smivs
Non-shader equivalent
Just a reminder to non-shader players that dramatic explosions with fiery debris are built into
Smivs'Shipset, so just because you do not have shaders available doesn't mean you have to miss out on this and other sexy features
Apologies to Griff for (briefly) borrowing your thread
Re: Flaming Wreckage! - Possible with scripting?
Posted: Fri Jun 01, 2012 1:27 pm
by JazHaz
Griff wrote:yeah, it is a fiddly oxp to get working, not that it helps you that much JazHaz but it might be useful to know - if you use the 'addition' version of my shipset and the griff_alloys_and_wreckage oxp (found here
http://www.box.com/shared/rpkms25cc9 ) you don't need to edit the shipdata.plist to add in the script line, there's a shipdata-overrides.plist file in the oxp that adds it in automatically for you
Ah, but I use the "replace" shipset!
Still, I had to add it to Staer9's shipset too.
Re: Flaming Wreckage! - Possible with scripting?
Posted: Fri Jun 01, 2012 8:12 pm
by Cody
I'd forgotten about this OXP, but I still had the .zip archived so I reinstalled it and added the script tweaks as per above, as I use the replace version of the shipset. I now remember why I uninstalled it - it can cause some stuttering, as it briefly throws the entity-count way up. Several ships blowing at the same time, or an extra large explosion, can freeze the display. Even blowing a Viper can cause some stutter on my machine.
Re: Flaming Wreckage! - Possible with scripting?
Posted: Sat Jun 02, 2012 6:53 am
by Griff
yeah, this oxp definately has some problems, a lot of the junk pieces are not very well designed, there's too many of them and the effect map to control the dissolving effect was a real pain to paint out, in the end i took the best bits out of it and added some clever scripts written by the forum javascript wizards to make the "alloy and wreckage oxp". It's probably best to treat this oxp as an interesting curiosity