Could it be modded to work with OXPConfig? So that a player could keep nudging the variable up so that they got an acceptable amount of fab debris for an acceptable level of performance drop?
The current way of splitting the exploding wreckage handling from the main OXP is faster and easier though - I think it is a sensible solution. Good job, Griff .-)
And yes, it is absolutely possible to make it configurable.
A suggestion for the exploding wreckage. It could be a nice thing to spawn the wreckage only if the player is nearby.
OK, I meant - once Griff splits the wreckage out of the all-in-one OXP would it be good/useful/nice to have the wreckage configurable, so super-dooper machines can have tons and lesser machines can have "a bit"?
Checking for range to the player would be sensible too!
The distance check sounds like a great idea, where does it need to go in the scripts? I presume somewhere near the start, that's the full extent of my scripting capability Thargoid wrote these for me
"griff_spawn_wreckage.js" - spawns the bigger chunks of stuff
Seem to be getting log errors (Oolite 1.75.2 - windows 7):
0:34:06.251 [files.notFound]: ----- WARNING: Could not find texture file "griff_wreckage_diffuse.png".
10:34:06.253 [files.notFound]: ----- WARNING: Could not find texture file "griff_wreckage_normal.png".
10:34:06.257 [ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0xbbc0438>{"Wreckage"} to "griff_wreckageAI.plist" - could not load file.
10:37:04.866 [files.notFound]: ----- WARNING: Could not find texture file "griff_wreckage_diffuse.png".
10:37:04.869 [files.notFound]: ----- WARNING: Could not find texture file "griff_wreckage_normal.png".
10:37:40.894 [files.notFound]: ----- WARNING: Could not find texture file "griff_wreckage_diffuse.png".
10:37:40.897 [files.notFound]: ----- WARNING: Could not find texture file "griff_wreckage_normal.png".
10:37:54.076 [gameController.exitApp]: .GNUstepDefaults synchronized.
Hmm, i'm not sure what's causing that, if you've got the newer bundle oxp (v1.2 which i uploaded the other day) is everything OK with your install of the griff_alloys_and_wreckage.oxp, all those missing files are now inside that and not the shippack bundle.
I've just noticed a bug in the all-in-1 bundle v1.2 upload, it's in the shipdata-overrrides.plist file in the config folder, it's removing the standard oolite alloys but doesn't replace them with anything anymore (since these items are now in their own oxp) i'll try and get a fixed version uploaded soon, but in the meantime you'll need to edit the shipdata-overrides.plist file in a text editor (on Microsoft Windows don't use notepad to edit the file but wordpad is OK to use) and take out the lines
just delete them out and resave the file, then start Oolite with the shift key down to refresh the oxp cache, this will allow the default oolite alloys to be created again
edit: Ok, i've started uploading a fixed bundle oxp to Cmd. Cheyd deephorizons site, it's going to take a while for my slow internet connection to shift the file over, i've also got to fix the griff_alloys & wreckage oxp on my box.net site too
upload on hold for the moment while i sort out just how much of a blunder i've done!
Last edited by Griff on Sun Jun 19, 2011 10:55 am, edited 3 times in total.
oops, yes! sorry i'll get everything sorted and fixed!
edit:
I'm busy re-uploading fixed versions of the oxp's but it's going to take about an hour, in the meantime the fixes are as follows if you want to sort them out yourself if you already have the files downloaded.
In griff_shipset_all_in_1.oxp (v1.2 - version number is in the .zip file name) remove the following lines from shipdata-overrides.plist...
..and paste them into the shipdata-overrides.plist of the griff_alloys_and_wreckage.oxp, next move two texture files griff_wreckage_diffuse.png & griff_wreckage_normal.png from the Textures folder in griff_shipset_all_in_1.oxp and put them in the Textures folder of griff_alloys_and_wreckage.oxp
I'm not sure about splitting up the oxp, a lot of the textures are shared between NPC and player ships, plus all the ships are available as individual downloads on my box.net site, each one of those is about 2-4Mb to download so you could collect the set a bit at a time if the 90Mb bundle oxp hammers your internet connection a bit too much (like it does mine )
It might be worth me putting together a lower resolution texture version, scaling all the textures down 50% should make some real savings in memory use and download size