Author Topic: Help with Custom Ships and Weapons  (Read 1822 times)

0 Members and 1 Guest are viewing this topic.

Offline gershom

  • 24
Help with Custom Ships and Weapons
I made a custom ship called "Raptor" by copy/pasting the Ulysses and improving the stats. I also made custom weapons for it by copy/pasting the Subach and Harpoon.

When I try to put them in their own .tbl the game can't detect them, but
as long as their in the weapons.tbl and ships.tbl they work, however, I can only add two primary weapons and one secondary weapon. Additional weapons show up in the tech room, but not for selection.

What am I doing wrong? Should they go in a .tbm instead?
« Last Edit: May 19, 2016, 03:06:29 pm by gershom »

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Help with Custom Ships and Weapons
Should they go in a .tbm instead?
Yes
(´・ω・`)
=============================================================

 

Offline gershom

  • 24
Re: Help with Custom Ships and Weapons
Thanks.

Update :

I put the ship and the weapons in .tbm files. Now my modified harpoon shows up in the primary weapons and can even be equipped to the primary slots. My other secondary, another modified harpoon, doesn't appear for selection at all. The ship and my to primaries are good though.

I forgot the #Secondary Weapons in my .tbm. I fixed that, but my other secondary still doesn't appear. It's another copy/pasted harpoon with different stats.
« Last Edit: May 19, 2016, 04:29:46 pm by gershom »

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Help with Custom Ships and Weapons
Does the mission have a supply of the weapon available?
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.

 

Offline gershom

  • 24
Re: Help with Custom Ships and Weapons
Does the mission have a supply of the weapon available?

I don't know. I didn't do anything to the other weapons to make them available. Although I did make the test mission after I made those weapons and before I made this one. Is that the issue?

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Help with Custom Ships and Weapons
Does the mission have a supply of the weapon available?

I don't know. I didn't do anything to the other weapons to make them available. Although I did make the test mission after I made those weapons and before I made this one. Is that the issue?
Yes; when you make the mission, it will automatically add every player-allowed weapon to the loadout, with an availability of 16 for lasers and 500 for missiles.
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.

 

Offline gershom

  • 24
Re: Help with Custom Ships and Weapons
Ok. Thanks.