Author Topic: Single ship .tbl?  (Read 3670 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
I don't think TBM files will overwrite existing entries.  I think they only add extra entries. (Correct me if I'm wrong, WMC.)

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
I think I didnt make myself clear.  Let me rephrase that.  I modified the HL-7 using a template of the existing HL-7 code, and created a long range version of it, called the "Subach HL-7 Long".  I hope that makes things more understandable than my previous stupid wording ;).
Bunny stole my signature :(.

Sorry boobies.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Actually they will overwrite, the reason it isn't working is because tbm filenames must have a suffix to identify what type of table they are; they also need the appropriate section header (Like "#Ship Classes")

For weapons it's -wep, -shp for ships, weapons_expl.tbl is -wxp.

Edit: So the proper filename would be "LRSubach-wep.tbm", should've included that. ;)
-C

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
Thanks for the help WMCoolmon.  Now, would you be so kind as to tell me why the weapon is identified by FRED and FS2 as a secondary, even though I specificly stated #Primary Weapons?  :wtf:
Bunny stole my signature :(.

Sorry boobies.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Yeah, I think when Freespace 2 starts loading secondary weapons it saves the point at which secondary weapons begin. All weapons after that are considered 'secondaries'. I don't think I knew this when I built the original modular-weapons tbl code.

I can have a look-see but it'll probably require a number of changes...possibly break multiplayer with older builds (Then again, what doesn't?)

I'm disappointed it's taken this long for someone to notice this. :sigh:
-C

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
The modular ships tables aren't that well known (The fact that this thread even exists is proof of that) but more importantly weapon development is quite quick so most campaigns have already done it. Unlike making new ships which happens all the time most of the major campaigns have already made their new weapons or haven't done them at all.

So since the tables were already done no one has been chopping them up into small slices to test this.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Zarax

  • 210
Does it work only for single items or can you add multiple things in a tbm file?
The Best is Yet to Come

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Quote
Originally posted by WMCoolmon
Actually they will overwrite, the reason it isn't working is because tbm filenames must have a suffix to identify what type of table they are
Hm, this seems a bit restrictive.  Can you look into dropping the suffix requirement?  It would be nice if the TBM manager could take action based solely on the #Ship Classes (or whatever) header.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Goober5000
Hm, this seems a bit restrictive.  Can you look into dropping the suffix requirement?  It would be nice if the TBM manager could take action based solely on the #Ship Classes (or whatever) header.


Wouldn't that mean you had to open a TBM file to find out what it was though?

That could be even more annoying :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
i still havent got them to work at all so im still using my original tables. probibly because i didnt name them right. this is just one of those confusiong features that give most modders painfull headaches.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN