Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: StargateSpankyHam on May 29, 2013, 04:16:32 am

Title: (Retail) Weapons Laying Around Unused
Post by: StargateSpankyHam on May 29, 2013, 04:16:32 am
After much :banghead:, in an effort to resolve an issue where my mod's weapon tables were not always properly overwriting the retail ones, I combined my mod's weapon .tbl with the modular wep.tbm, into a single super-wep.tbm. Sadly, this did not solve the problem. Now, the weapons I made from scratch work absolutely flawlessly, since there is nothing they need to overwrite, and thus, nothing to get in their way. Undaunted, I pasted "#X" after each modified retail weapon name in my wep.tbm. This way, my modified retail weapons will act like freshly-created weapons.

Finally, it worked. All was well in the universe...

...Until I went into FRED. Now I have a Maxim, a Maxim-D, and a Maxim#X - and it is like this for almost every weapon. I have extra weapons left over from retail that I will never, ever, EVER use. In hindsight, I probably should have seen it coming.

So, how do I make a retail weapon not show up at all? It seems like such an ultrabasic thing, but there isn't a +Remove function that works for an entire weapon (is there?)
Title: Re: (Retail) Weapons Laying Around Unused
Post by: The E on May 29, 2013, 04:31:02 am
No such function exists. If you want a weapons list with just your stuff, you will have to copy the relevant entries from the retail tables and combine them with your variants in a dedicated weapons.tbl.
Title: Re: (Retail) Weapons Laying Around Unused
Post by: Black Wolf on May 29, 2013, 05:15:27 am
Will that play nice with the MediaVPs though, if he deletes weapons they expect to be there?
Title: Re: (Retail) Weapons Laying Around Unused
Post by: The E on May 29, 2013, 05:46:04 am
Not really. The mediavps are all tbm-based, and the parser is intelligent enough to discard tbm entries that modify a base entry that does not exist.
Title: Re: (Retail) Weapons Laying Around Unused
Post by: NeonShivan on May 29, 2013, 08:53:40 am
The retail weapons are in a standard .tbl format, the media vps edit the weapons' effects and functions through .tbms. Unless your mod (which I'm 100% sure it is) is using .tbm files instead of .tbls for the ships and weapons, then you shouldn't see retail weapons.

So here is what I suggest

Your core piece of the mod, such as the standard weapons and ships should fall under a standard table, while the rest of the weapons that are necessary but at the same time not needed can be added on as a modular .tbm. This will remove the retail weapons that are appearing in your mod.

Another suggestion: Ignore them :)

P.S Where have you been? I haven't seen you on Xfire in ages :'(