Author Topic: Need help getting modular tables to work properly  (Read 3000 times)

0 Members and 1 Guest are viewing this topic.

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Need help getting modular tables to work properly
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?
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline T-Man

  • 210
  • I came... I saw... I had a cuppa!
Re: Need help getting modular tables to work properly
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.
Also goes by 'Murasaki-Tatsu' outside of Hard-Light

UEF fanboy. Rabid Imagination.

 

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Re: Need help getting modular tables to work properly
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!
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

  

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Re: Need help getting modular tables to work properly
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...
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline Yarn

  • 210
Re: Need help getting modular tables to work properly
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.
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Re: Need help getting modular tables to work properly
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.
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Re: Need help getting modular tables to work properly
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!
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Need help getting modular tables to work properly
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!

 

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Re: Need help getting modular tables to work properly
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!
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Need help getting modular tables to work properly
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)
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.