Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Dima on September 17, 2010, 01:20:57 pm

Title: Help with enabling cockpit view via "show ship" needed
Post by: Dima on September 17, 2010, 01:20:57 pm
Hello! :)

I am new to the Freespace and SCP community so hello everyone and let me say that this is probably -the- best space combat simulation of them all. With the enhanced SCP features this game really shines and I couldn't find any better sim yet as even the graphics are top notch and right there to enjoy ;)

My question is about the ( "show ship" ) command wich shows the ship model - and with it any modelled interiors and textures on it - while in standard internal view. I tried this with the Blue Planet 2 modification and wanted to do this for the standard Freespace 2 ships as well. I looked at the tbm files to understand the procedure and applied what I knew to the two files I found in the core vp of the Freespace 2 MediaVP. So, I added the "show ship" flag but the cockpit won't show up in (for example) the basic "Myrmidon" which you fly in the first missions. Any idea on how to do this correctly? I hope you didn't just drop this "feature". ;)

This is how I did it (FS2Open 3.6.12) - with no luck so far:

$Name: GTF Myrmidon
+nocreate
$Flags: ( "show ship" )
Title: Re: Help with enabling cockpit view via "show ship" needed
Post by: Kobrar44 on September 17, 2010, 01:57:48 pm
I can't remember Myrmidon having a cockpit... try with Herc. And remember about #Ship classes at the beginning of a *-shp.tbm file and #End at the ending. Or what. http://www.hard-light.net/wiki/index.php/Modular_Tables (http://www.hard-light.net/wiki/index.php/Modular_Tables)
Title: Re: Help with enabling cockpit view via "show ship" needed
Post by: The E on September 17, 2010, 02:02:02 pm
Yes, well, the Myrmidon is one of the ships his won't work on, because the "show ship" flag only shows cockpits if the ship in question actually HAS a modelled cockpit, which the Myrm notably lacks.

Also, check this thread: http://www.hard-light.net/forums/index.php?topic=71151.0
Title: Re: Help with enabling cockpit view via "show ship" needed
Post by: Dima on September 17, 2010, 02:17:12 pm
Thanks for the help both of you! That piece of code was just an example, the whole file had the #End etc. ;)

So not every ship shows that "fake" cockpit? Mh, is there any mod or addon that would add that to the media vps? :)
Title: Re: Help with enabling cockpit view via "show ship" needed
Post by: Dragon on September 17, 2010, 02:38:38 pm
There's a cockpit mod I made, it should enable cockpits on all MVP ships, including ones that don't have them (they use a generic cockpit).
http://www.mediafire.com/?rlnlkphxdjuiuwj
Title: Re: Help with enabling cockpit view via "show ship" needed
Post by: Dima on September 17, 2010, 02:53:40 pm
Amazing, exactly what I was looking for :D It has no folder structure, so where to put those files exactly? :)

Oh and is this compatible to Freespace 2? Or were these files for Freespace 1 or the Blue Planet Mod? I read something about AoA in one of the files. Thanks!

Edit: Ah I assume this goes just into the data/tables along with the tbm files.
Title: Re: Help with enabling cockpit view via "show ship" needed
Post by: Dragon on September 17, 2010, 03:19:40 pm
Drat, I forgot that I included the readme in original release post.
All .pof files go in data/models
All .dds files go in data/maps
Cockpits-shp-tbm goes into data/tables, AoACockpits is for use with BP: AoA.
Of course, don't put it into main data folder, but rahter create a separate mod.
I have the mod in Mediavps folder to automatically enable it with all campaigns, but I can't guarantee that this will not break anything.
Title: Re: Help with enabling cockpit view via "show ship" needed
Post by: Dima on September 17, 2010, 03:48:55 pm
Thank you! Very cool stuff :D This will be tried in a matter of minutes...