Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: pSimon on February 28, 2016, 07:09:12 am

Title: fs1 assets in fs2 mod
Post by: pSimon on February 28, 2016, 07:09:12 am
I'd like to include a few fs1 ships in a fs2 mod; it's set in a backwater, so I'd like to include the Apollo and a few other relics.

What's the simplest way to do this?

Title: Re: fs1 assets in fs2 mod
Post by: FrikgFeek on February 28, 2016, 07:42:36 am
You can either copy over the assets from the Port and put them in your mod or you can make multimod with both MediaVPs and FSPort, but that would require users to have both.
Title: Re: fs1 assets in fs2 mod
Post by: pSimon on February 28, 2016, 07:47:13 am
Ta.

If I do the latter, do I need to make a table entry in my mod too?

maybe I misread, but the docs imply only one .tbl gets read...
Title: Re: fs1 assets in fs2 mod
Post by: Dragon on February 28, 2016, 10:11:08 am
or you can make multimod with both MediaVPs and FSPort, but that would require users to have both.
Actually, this doesn't work. PSimon is right, only one .tbl gets read, and FSPort doesn't add FS1 ships with modular tables, but overrides them. Thus it would be necessary to extract the needed assets from FSPort and make a separate mod. I once had an "FS1toFS2" mod that didn't override FS2 ships, but that was long ago and it probably doesn't work anymore.

BTW, are we talking about FSO or retail FS2? If it's the latter, this gets significantly more convoluted.
Title: Re: fs1 assets in fs2 mod
Post by: pSimon on February 28, 2016, 11:09:31 am
FSO.

OK. So I have to do an extraction.

I was *hoping* I could somehow just inherit/import at least the models and textures  using secondarymods somehow...

I did try just copying a table entry, but the model seems to be loaded relative to the module the table's in, and not searched independently. (Or so it looked)

Thanks, all
Title: Re: fs1 assets in fs2 mod
Post by: FrikgFeek on February 28, 2016, 12:58:41 pm
Oh, right, FSPort doesn't do .tbm because of retail compatibility, my bad
Still,using the .pofs and copy-pasting the table entries from FSport shouldn't be that much work. You'll have to edit the default loadouts though, unless you also include table entries for FS1 weapons in your mod too.
Title: Re: fs1 assets in fs2 mod
Post by: AdmiralRalwood on March 04, 2016, 02:22:49 pm
FSO.

OK. So I have to do an extraction.

I was *hoping* I could somehow just inherit/import at least the models and textures  using secondarymods somehow...
You can; if you provide your own ship table, it will override the FSPort's. Perhaps more importantly, you can set your dependency to the FSPort MediaVPs instead of the FSPort itself and then FS2's ship.tbl will still be the one loaded (you'll just need to make sure the FS1 ships you need are in a modular table that will be loaded before the FSPort's MediaVPs' modular tables; TBM files are parsed in reverse alphabetical order, so something that starts with a letter before "f" should work).

I did try just copying a table entry, but the model seems to be loaded relative to the module the table's in, and not searched independently. (Or so it looked)

Thanks, all
This is untrue; FSO doesn't track which folder a table came from and search only that folder for assets (otherwise the MediaVPs wouldn't work at all). Internally, it's kind of* more like all the currently-active mod folders are combined into one super-folder that has all of their contents.

*It's actually not really like that at all, but conceptually, the comparison serves a purpose.
Title: Re: fs1 assets in fs2 mod
Post by: pSimon on March 08, 2016, 06:51:42 am
FSO.

OK. So I have to do an extraction.

I was *hoping* I could somehow just inherit/import at least the models and textures  using secondarymods somehow...
You can; if you provide your own ship table, it will override the FSPort's. Perhaps more importantly, you can set your dependency to the FSPort MediaVPs instead of the FSPort itself and then FS2's ship.tbl will still be the one loaded (you'll just need to make sure the FS1 ships you need are in a modular table that will be loaded before the FSPort's MediaVPs' modular tables; TBM files are parsed in reverse alphabetical order, so something that starts with a letter before "f" should work).

I did try just copying a table entry, but the model seems to be loaded relative to the module the table's in, and not searched independently. (Or so it looked)

Thanks, all
This is untrue; FSO doesn't track which folder a table came from and search only that folder for assets (otherwise the MediaVPs wouldn't work at all). Internally, it's kind of* more like all the currently-active mod folders are combined into one super-folder that has all of their contents.

*It's actually not really like that at all, but conceptually, the comparison serves a purpose.

I see.. I must have had stuff loading in the wrong order then. Will have another try when time permits.

Thanks.