Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: InsaneBaron on January 16, 2014, 11:11:53 am

Title: Need help getting modular tables to work properly
Post by: InsaneBaron on January 16, 2014, 11:11:53 am
I'm working on a mod that would involve adding a pretty large pack of ships to FS2. However, I also want to have the retail FS2 ships included.

My mod folder includes a ships.tbl containing all the user-made ships I'm using (mainly ships borrowed from Inferno). So far it works fine, and all the non-retail ships are present, but the retail ships are absent.

After reading up on Modular Tables I ran into a problem. I renamed the ships.tbl to "ShadRiz-shp.tbm" in hopes of turning it into a modular table. The actual content of the table remained unchanged. I did the same with the mod's "weapons.tbl" to "ShadRiz-wep.tbm"

The result was that all the retail ships became available, but all the mod ships disappeared. Reverting the file names restored the Status Quo Ante.

How do I get my tables to function as modular "expansions", adding new ships without removing old ones?
Title: Re: Need help getting modular tables to work properly
Post by: T-Man on January 16, 2014, 11:26:12 am
I don't know a great deal, but it may depend on where you have the ships.tbl (as having files in certain areas will override other files; IIRC it goes Mods data folder>mod's main folder>FS' data folder>FS's normal folder, in that descending order). I assume it's just in the normal place (main FS2 file or the retail data file)?

Also, are you pressing apply through the launcher for each change (IIRC it sometimes it takes an 'apply' click for stuff to properly work)?

Shall think on it; imagine someone with a little more knowledge will be able to help more though. Hope you get it working.
Title: Re: Need help getting modular tables to work properly
Post by: InsaneBaron on January 16, 2014, 11:30:27 am
I don't know a great deal, but it may depend on where you have the ships.tbl (as having files in certain areas will override other files; IIRC it goes Mods data folder>mod's main folder>FS' data folder>FS's normal folder, in that descending order). I assume it's just in the normal place (main FS2 file or the retail data file)?

Also, are you pressing apply through the launcher for each change (IIRC it sometimes it takes an 'apply' click for stuff to properly work)?

Shall think on it; imagine someone with a little more knowledge will be able to help more though. Hope you get it working.

The retail ships.tbl is in the default location, the one with Inferno ships is in "Freespace 2/Shadow Rising/data/tables.

I made sure to hit apply. No effect.

Thanks anyway!
Title: Re: Need help getting modular tables to work properly
Post by: InsaneBaron on January 16, 2014, 01:15:21 pm
Another thought just hit me. The tables are currently stored as "Volition Table Files", the type with the red crosshair. Maybe if I replaced them with Notepad docs...
Title: Re: Need help getting modular tables to work properly
Post by: Yarn on January 16, 2014, 02:13:44 pm
Are "known" file extensions hidden? It sounds like they are and you renamed the files to "ShadRiz-shp.tbm.tbl" and "ShadRiz-wep.tbm.tbl," which definitely won't work. You really should show file extensions to help prevent problems like this.

An easy way to check whether file extensions are hidden is to highlight an FSO build in Windows Explorer to reveal the full name (I'm assuming you're running Windows) and look for ".exe" at the end of the name. If you don't see it, then file extensions are hidden. A quick Google search should help you enable them.
Title: Re: Need help getting modular tables to work properly
Post by: InsaneBaron on January 16, 2014, 02:26:59 pm
Are "known" file extensions hidden? It sounds like they are and you renamed the files to "ShadRiz-shp.tbm.tbl" and "ShadRiz-wep.tbm.tbl," which definitely won't work. You really should show file extensions to help prevent problems like this.

An easy way to check whether file extensions are hidden is to highlight an FSO build in Windows Explorer to reveal the full name (I'm assuming you're running Windows) and look for ".exe" at the end of the name. If you don't see it, then file extensions are hidden. A quick Google search should help you enable them.

That makes sense. I'll check it out.
Title: Re: Need help getting modular tables to work properly
Post by: InsaneBaron on January 16, 2014, 02:37:59 pm
Based on Yarn's explanation, I found a roundabout way to fix the problem that will probably amuse the experienced modder to no end.

I downloaded the Ancient-Shivan Way Act III model dump, with includes .tbm files that are not stored in VPs. I then copypastad my ships and weapons tables into ASW3's .tbm files and stuck the files in my mod folder. And it worked.

Yes, sombody's gonna point out how absurd that is. But it worked!
Title: Re: Need help getting modular tables to work properly
Post by: General Battuta on January 16, 2014, 02:40:41 pm
They had the correct .tbm file extensions, so they worked. You should turn on file extensions in windows, it'll solve a lot of problems!
Title: Re: Need help getting modular tables to work properly
Post by: InsaneBaron on January 16, 2014, 02:46:22 pm
They had the correct .tbm file extensions, so they worked. You should turn on file extensions in windows, it'll solve a lot of problems!

Will do as soon as I figure out how. Thanks everyone!
Title: Re: Need help getting modular tables to work properly
Post by: AdmiralRalwood on January 16, 2014, 03:15:05 pm
They had the correct .tbm file extensions, so they worked. You should turn on file extensions in windows, it'll solve a lot of problems!

Will do as soon as I figure out how. Thanks everyone!
Tools -> Folder Options -> View -> Hide extensions for known file types (UNCHECK)