Author Topic: Antipodes Patch: Ship/Weapons TBM Rename  (Read 2627 times)

0 Members and 1 Guest are viewing this topic.

Antipodes Patch: Ship/Weapons TBM Rename
Hi.

Presenting my most selfish patch ever!

The problem:

Using ships/weapons that exist in retail or an included mod - except with a different name.

Example:

Shivans! mod, with renamed Shivan ships, having to keep a separate set of TBMs to mirror those of included mediavps. Messy and breaks every time there's a mediavps update, so new set of TBMs must be created when that happens.

The Solution:

Addition of support for $Rename: in ship/weapon TBL/TBMs. Works just like $Name:, but will be used in-game instead if it exists.

Example:

You want to modify the Subach HL-7 in your mod. You update the stats and give it a new name (e.g. $Rename: Peashooter) in a TBM. No further changes required, as retail ships already use Subach HL-7, and all mediavps TBMs will still apply effects changes (and any other mod in the secondary mod list).

Code: [Select]
$Name: @Subach HL-7
+nocreate
$Rename: Peashooter
<whatever else>

Patch here. Based on Antipodes revision 5595.

Much of the patch is whitespace changes. :nervous:

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Antipodes Patch: Ship/Weapons TBM Rename
Builds for Windows, based on this:

http://www.mediafire.com/?mxz2ng5wjmq
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Antipodes Patch: Ship/Weapons TBM Rename
Example TBMs for retail/mediavps:

Code: [Select]
#Ship Classes

$Name: GTF Myrmidon
+nocreate
$Rename: Big Target

#End

Code: [Select]
#Primary Weapons

$Name: @Subach HL-7
+nocreate
$Rename: Peashooter

#End

#Secondary Weapons

$Name:                                  @Rockeye
+nocreate
$Rename: Rocky

#End

 
Re: Antipodes Patch: Ship/Weapons TBM Rename
So...what would it take to get this accepted? I recall someone mentioning wanting to make the line $Alt_name: instead of $Rename:


 

Offline Solatar

  • 211
Re: Antipodes Patch: Ship/Weapons TBM Rename
So ships that have "Subach HL-7" in their allowed primaries will be able to arm "Peashooter" if it is available? (without adding peashooter to the ship tables)

 
Re: Antipodes Patch: Ship/Weapons TBM Rename
Yes.

What has happened is that "Subach HL-7" has been renamed to "Peashooter" as far as the player is concerned.

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Antipodes Patch: Ship/Weapons TBM Rename
Would another TBM be able to override "Peashooter" and have it affect both?

 
Re: Antipodes Patch: Ship/Weapons TBM Rename
In the end, you're still modifying @Subach HL-7. All you've done is have a separate name that gets displayed in the game. There is only the one entry.

An overriding TBM will still need to have @Subach HL-7 as the name of the entry.

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Antipodes Patch: Ship/Weapons TBM Rename
Then I think it really ought to be called an alternate name, and not a rename.

 
Re: Antipodes Patch: Ship/Weapons TBM Rename
That's 2 for $Alt_name:

  

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: Antipodes Patch: Ship/Weapons TBM Rename
Since it is providing an alternative name for an already existing entry, make it 3 for "$Alt Name" or $Alt_Name
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys