Page 79 of 160

Re: Griff's normalmapped ship remakes

Posted: Thu Mar 10, 2011 9:20 pm
by Commander McLane
Ahruman wrote:
Commander McLane wrote:
I guess this is the result of an oversight when like_shipping or c&p'ing the NPC Cobras from the player Cobra.
like_ship would be a bit of an anachronism there.
I thought I had seen a "like_ship" = "cobra3-player" in the alternate Cobra shipdata, but I obviously misread from "cobra3-trader". My bad.

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 6:29 am
by Capt. Murphy
Capt. Murphy wrote:
Griff wrote:
sorry about all the hasstle El Viejo, thanks for taking all that time to work through what i was suggesting!
if you think about it it makes sense that this was the fault, when you start a new game you're put inside the cobra3-player ship, this was like_shipped to the griff one for some stuff, but since cobra3-player still has all it's own settings listed in it (including viewport settings) these then overwrite the ones inherited from the griff version and we end up with gun viewport weirdness, odd that the model stayed as the griff one and didn't get overwritten back to the default cobraIII. i suppose the fix would be to hack up the cobra3-player entry in the original shipdata so that it only contains the like_ship, role and model lines
To get the start-up ship to be Griff's Cobra with the views correct I edited the original Oolite shipdata.plist changing line 983 to like_ship = "griff_normalmapped_cobra_mkIII_player"; On it's own this creates the dodgy visible laser.

I then pasted the various view position lines from the griff shipdata.plist over the corresponding lines in the original. All seems fine and dandy so far - I also renamed the original demoships.plist to demoships.old so the original models that don't appear in game don't appear at start-up.

Original Oolite Files all backed up first of course....!
Ok -a 'safer' way of making Jameson start in a Griff Cobra (and makes the Griff Cobra appear on Oolite launch) that doesn't involve editing the oolite base config files is to make yourself a very small add-on OXP that's installed alongside Griffs all in one shipset.

Call it something like zz_default_jameson_ship.oxp (zz so it loads after other OXP's). It only needs a CONFIG folder with a shipdata.plist with the following code.

Code: Select all

{
"cobra3-player" =
	{
		like_ship = "griff_normalmapped_cobra_mkIII_player";
		forward_weapon_type = "WEAPON_PULSE_LASER";
		}
		}

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 7:48 am
by Zireael
I thought the OXPs no longer load in alphabetical order?

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 8:32 am
by Capt. Murphy
They do seem to load alphabetically on Windows machines.....

Having said that that it doesn't actually seem to matter what order they load in for that little OXP to work.

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 6:45 pm
by Griff
Added a standard missile re-make oxp, Griff_Missile_normalmapped.zip
Image
and... an oxp to add an NPC CobraIII with external missiles! :D :D listed as CobraIII_with_subent_missiles.zip (download is in the same box.net folder as the normal mapped ships), it needs the griff_missile.oxp and the all-in-1 ship bundle to work (although you can edit the oxp to use the standalone griff_cobraIII oxp insted, instructions in the readme in the oxp).

A massive thanks to Thargoid for writing the script that makes the missiles work in this oxp, it's really clever, they fire off in the correct position and everything! - i was expecting them to set off from the missile_launch_position setting in the shipdata.plist

One thing i did find odd was that i had to set the bindToSubentity setting for the missile's speedFactor to YES ...

Code: Select all

engine_power = { binding = "speedFactor"; bindToSubentity = YES; };	
... to stop the missile engine glowing when the missile was being carried by its parent, that's sort of the opposite to what i was expecting! anyway it seems to be working OK

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 8:22 pm
by Thargoid
Technically they do set of from the missile launch position. It's just that the script is triggered by that launch, and does a slight-of-tentacle and moves them to the sub-ent position immediately. Hence it appears like they launch as they should.

Anyway glad you like it - will have to grab a copy myself when I get chance and see it in its full glory (the Griff'd version, rather than my test one). The missile looks lovely!

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 9:43 pm
by Gimi
Griff wrote:
(although you can edit the oxp to use the standalone griff_cobraIII oxp insted, instructions in the readme in the oxp).
Griff, will this work with the multi decal cobra as well?

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 9:47 pm
by TGHC
Brilliant work guys. Award youselves a jellybaby each.

Re: Griff's normalmapped ship remakes

Posted: Sun Mar 13, 2011 10:05 pm
by Kaks
Nice! :) Will download asap! ;)

Re: Griff's normalmapped ship remakes

Posted: Mon Mar 14, 2011 8:57 am
by Griff
Gimi wrote:
Griff, will this work with the multi decal cobra as well?
No it won't i'm afraid, it's not for any player flyable ships :( Thargoid mentioned in the guide he gave me for understanding his script that Oolite would treat the missile subentities as damaged equipment when the player fired them and that would trigger requests for ship maintenance or something whenever the player docked, in the end it would drive you barmy

Re: Griff's normalmapped ship remakes

Posted: Mon Mar 14, 2011 10:07 am
by Killer Wolf
nice looking weapon! probably be a bit less nice when one's speeding towards your ship tho :-)
sad thing is, it's one of those things you're probably never going to see to appreciate - missiles are so small and quick you rarely if ever get a good look at them - also because you generally ECM the buggers as soon as they're launched at you!

Re: Griff's normalmapped ship remakes

Posted: Mon Mar 14, 2011 10:52 am
by DGill
But makes a good opening screen :D


Image

Re: Griff's normalmapped ship remakes

Posted: Mon Mar 14, 2011 10:53 am
by Disembodied
Killer Wolf wrote:
nice looking weapon! probably be a bit less nice when one's speeding towards your ship tho :-)
sad thing is, it's one of those things you're probably never going to see to appreciate - missiles are so small and quick you rarely if ever get a good look at them - also because you generally ECM the buggers as soon as they're launched at you!
Very true ... although you'll get a decent view when you launch one. Maybe though if it had something like alternating red and white panels on its nosecone it might catch the eye a bit more? And hardheads could be blue and yellow? Obviously it makes sense for missiles to be hard to see, but for game purposes there's nothing wrong with a bit a bling!

Re: Griff's normalmapped ship remakes

Posted: Mon Mar 14, 2011 11:19 am
by Eric Walch
Griff wrote:
an oxp to add an NPC CobraIII with external missiles! :D :D
Nice one. Next step for external missiles would probably be than when you hit one with your laser, they explode on the spot :twisted:

Re: Griff's normalmapped ship remakes

Posted: Mon Mar 14, 2011 11:43 am
by TGHC
Eric Walch wrote:
Griff wrote:
an oxp to add an NPC CobraIII with external missiles! :D :D
Nice one. Next step for external missiles would probably be than when you hit one with your laser, they explode on the spot :twisted:
Now that I would like to see, I guess that they could be shot off anyway, but some fireworks would be nice too.