Author Topic: Easier way to add a fighter to campaigns rather than edit each mission?  (Read 4038 times)

0 Members and 1 Guest are viewing this topic.

Offline MachManX

  • 26
  • The Fight Never Ends...This Is A Fact Of Life!
Easier way to add a fighter to campaigns rather than edit each mission?
Let's say that I have a favorite fighter (user created) that I'd like to use in every mission that I play.  The only way I know how to add this fighter is to use Fred2 and modify each mission file to include the fighter + add a custom version ships.tbl to the tables directory.  Now, this gets more complicated when I play user-created missions that introduce their own ships that are not included with the original FS2, which means they introduce their own ships.tbl file.  I have to edit their ships.tbl file to include my fav fighter.  It's a pain to extract the .vp and put all the files in the appropriate directories, edit the ships.tbl, and edit all the missions.  So my question:-

-Is there an easier way to include my fav fighter in all missions rather than edit each mission one at a time, preferably without resorting to extracting the .vp to the appropriate directories?

-Is it possible to load 2 ships.tbl, or like load the user-created ships.tbl first, and then load another .tbl which only contains the info of my fav fighter?

-Which has more priority: Files loaded via .vp or files directly in the appropriate directory, ex: ships.tbl in bang.vp located in the main FS2 directory VS ships.tbl located in the tables directory?


I guess I'm trying to make it so that no matter what user-created campaign I load, I want to be able to choose my fav fighter without having to edit anything, or a simple edit without the tedious task.
AMD Ryzen 5 3600
B450I GAMING PLUS AC
Geforce GTX 1060 6GB
16GB DDR4-3600
WD SN750 1TB NVME
Samsung 850 EVO 250GB SSD
Corsair HX520W PSU
Cougar QBX Case
NEC V422 42" @ 1080p
Ubuntu 20.04 + Whatever I VM

  
Re: Easier way to add a fighter to campaigns rather than edit each mission?
You will have to edit each mission individually, but you should use a TBM for the fighter instead of a modified ships.tbl. Call it xxx-shp.tbm (the xxx may vary), start it with #Ship Classes, cut-paste your fighter's entry and end the tbm with #End . Place into data\tables, and you'll see that the fighter is now available for use in FRED.

 
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Create a .tbm called something like: myship-shp.tbm

Just put the entire entry for your ship there. Put the file into whichever mod you're playing's data/tables/ (create it if you need to). The .tbm will load on top of whatever is in the .vp.
You could also put your .tbm in a seperate mod folder, and add it as a secondary mod to whatever you're playing.
As to whether it's usable in a mission, that depends if ships are marked as available until otherwise noted, or are marked unavailable until otherwise noted. If it's the latter, you'll need to manually add your ship to every single mission you play.

I'm sure somebody else can give you much better (accurate) information than I can though.

EDIT: yup, FSF beat me.
Another EDIT: Preliminary testing indicates that you will need to manually add your fighter into every mission in order to use it. Unless there's a modular mission file I don't know about...
Oh yeah, about your last question: .vp files are loaded first, then .tbl files, then .tbm files, each one overriding the one before if necessary. I strongly suggest using .tbm files for this purpose.
« Last Edit: May 11, 2010, 02:12:11 am by Scourge of Ages »

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Note that you'll also need to tell fred to use your mod, that's done making a shortcut to fred and adding the name of the folder of your mod in the target box (tab shortcut) like this:

C:\Games\FreeSpace2\fred2_openR.exe -mod mediavps

That will load the mediavps folder and when you open fred with that shortcut the files loaded will be the ones on that mod.
el hombre vicio...

 
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Note that you'll also need to tell fred to use your mod, that's done making a shortcut to fred and adding the name of the folder of your mod in the target box (tab shortcut) like this:

C:\Games\FreeSpace2\fred2_openR.exe -mod mediavps

That will load the mediavps folder and when you open fred with that shortcut the files loaded will be the ones on that mod.
The recent FRED builds read the active mod from the launcher though :P

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Well, what you're doing is likely to cause massive compatability issues in certain campaigns due to modified weapons (speak nothing of breaking mission balance, you might just stop the mod from loading at all).

The reason it is tedious is for a reason - it shouldn't be messed with unless you really know what you're doing.

Well, not really, but you won't be able to get the same fighter working in, say, TBP and Derelict without changing the tables (a lot) in between.
(´・ω・`)
=============================================================

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Note that you'll also need to tell fred to use your mod, that's done making a shortcut to fred and adding the name of the folder of your mod in the target box (tab shortcut) like this:

C:\Games\FreeSpace2\fred2_openR.exe -mod mediavps

That will load the mediavps folder and when you open fred with that shortcut the files loaded will be the ones on that mod.
The recent FRED builds read the active mod from the launcher though :P

The recent unreleased builds, you mean. Unless you make your own ones from svn trunk, you won't get that feature.
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

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Note that you'll also need to tell fred to use your mod, that's done making a shortcut to fred and adding the name of the folder of your mod in the target box (tab shortcut) like this:

C:\Games\FreeSpace2\fred2_openR.exe -mod mediavps

That will load the mediavps folder and when you open fred with that shortcut the files loaded will be the ones on that mod.
The recent FRED builds read the active mod from the launcher though :P

The recent unreleased builds, you mean. Unless you make your own ones from svn trunk, you won't get that feature.

I swear RC1 did it.
(´・ω・`)
=============================================================

 
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Note that you'll also need to tell fred to use your mod, that's done making a shortcut to fred and adding the name of the folder of your mod in the target box (tab shortcut) like this:

C:\Games\FreeSpace2\fred2_openR.exe -mod mediavps

That will load the mediavps folder and when you open fred with that shortcut the files loaded will be the ones on that mod.
The recent FRED builds read the active mod from the launcher though :P

The recent unreleased builds, you mean. Unless you make your own ones from svn trunk, you won't get that feature.

I swear RC1 did it.
And my RC2 does it as well.

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Easier way to add a fighter to campaigns rather than edit each mission?
wtf? I have RC2 and I ... wait I'll try to see what happens.

EDIT:


nope, selecting the mod in the launcher does nothing in my FRED, and I'm running RC2.
el hombre vicio...

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Launcher version? Or does it not matter?
(´・ω・`)
=============================================================

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Easier way to add a fighter to campaigns rather than edit each mission?
mine is 5.5 E... the latest AFAIK.
el hombre vicio...

 
Re: Easier way to add a fighter to campaigns rather than edit each mission?
I have 5.5d, apparently... I also have -mod mediavps in the shortcut, but ASW as active mod in the launcher, so it starts up in ASW mode.

 

Offline MachManX

  • 26
  • The Fight Never Ends...This Is A Fact Of Life!
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Thanks for the answers, FreeSpaceFreak and Scourge Of Ages :)  So create a .tbm for that fighter alone.  Heh, but I still have to edit each mission to include the ship.  Guess there's no master code I can put in the ships.tbm to force the fighter as a selection in all missions.

Yeah, Droid803, I know it's gonna break the balance, but I only use the fav fighter after I've played through the campaign at least once ;)  So I play the campaign completely unaltered the first time, then follow through with the fav fighter the second time through (if I liked the campaign a lot).  Just wanna see and feel the differences...I guess I'm wierd like that  :lol:
AMD Ryzen 5 3600
B450I GAMING PLUS AC
Geforce GTX 1060 6GB
16GB DDR4-3600
WD SN750 1TB NVME
Samsung 850 EVO 250GB SSD
Corsair HX520W PSU
Cougar QBX Case
NEC V422 42" @ 1080p
Ubuntu 20.04 + Whatever I VM

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Thanks for the answers, FreeSpaceFreak and Scourge Of Ages :)  So create a .tbm for that fighter alone.  Heh, but I still have to edit each mission to include the ship.  Guess there's no master code I can put in the ships.tbm to force the fighter as a selection in all missions.

Actually, there may be one. Edit this line.

Code: [Select]
#Default Player Ship
$Name: GTF Ulysses

to the name of your new ship. Then go into the Freespace2 campaign file in the Campaign Editor in FRED and uncheck all the ships from the initial ships list.

I've not actually tested it but that should work for the first 3 missions at least and might last a while longer than that too. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Easier way to add a fighter to campaigns rather than edit each mission?
Or maybe you can try to open the mission files with notepad and use the "replace" option... I've done that a couple of times but only with background image files, so I'm not sure if it will work with ships.
I recon you'll need to know the exact string in order to replace correctly, but it might break your mission files so make a back up before even trying that.
el hombre vicio...