Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Warp Shadow on June 18, 2008, 08:45:15 pm

Title: .tbm's being an ass
Post by: Warp Shadow on June 18, 2008, 08:45:15 pm
Can someone explain why when I put a weapons-wep.tbm into my data/tables folder, with the properties section of it being identical to the .tbl files in every way except instead of filetype: TBL (.tbl) it says filetype: TBM (.tbm), it STILL has absolutely no effect in the game? :hopping:
Title: Re: .tbm's being an ass
Post by: colecampbell666 on June 18, 2008, 08:46:33 pm
You need to add something to the start and end, IIRC.
Title: Re: .tbm's being an ass
Post by: blowfish on June 18, 2008, 09:04:38 pm
Make sure the format is as follows:

Code: [Select]
#Primary Weapons

$Name: My Awesome Laz0r
... [rest of entry]

$Name: My Other Awesome Laz0r
...

#End

#Secondary Weapons

$Name: My Awesome Missile
...

#End

And, of course, you can remove the primary or secondary weapons section if there are no weapons of that type ;)
Title: Re: .tbm's being an ass
Post by: Warp Shadow on June 18, 2008, 09:12:58 pm
Well it seems I forgot #end but now all the enemies have them and my teammantes can no longer equip them. They also cease to appear in the weapon loadout section and in FRED...
Title: Re: .tbm's being an ass
Post by: Wanderer on June 19, 2008, 01:06:19 am
You added a weapon.. Did you add that weapon to the allowed weapons for the ship you were flying? Did you add the weapon the mission's list of allowed weapons?
Title: Re: .tbm's being an ass
Post by: Warp Shadow on June 19, 2008, 09:00:28 am
It was already there, I just moved it to a .tbm.
Title: Re: .tbm's being an ass
Post by: Wanderer on June 19, 2008, 02:24:54 pm
Do you have the required fields in the tbm file?

In wep.tbm #Primary Weapons and #End (and/or same with secondary weapons)...

What is the exact name of the tbm file?
Title: Re: .tbm's being an ass
Post by: Warp Shadow on June 19, 2008, 04:33:24 pm
Yes I did. For some reason however, I've managed to fix it by moving the .tbm below the weapons.tbl.....not sure why it works but it works! :rolleyes: