Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: xXGrifterXx on May 31, 2009, 08:23:42 am

Title: Altering weapon statistics
Post by: xXGrifterXx on May 31, 2009, 08:23:42 am
Hi!

I'd like to increase the speed of the projectile of the Subach HL-7 and Mekhu HL-7 to FS1 avenger standards which is 525 m/s. This would be my first time modding the game, so I need some help! Are there any modding tutorials out there, and what do I need to do?
Title: Re: Altering weapon statistics
Post by: Dilmah G on May 31, 2009, 08:40:39 am
http://hard-light.net/wiki/index.php/Weapons.tbl

That'll have most of your info, if you don't know anything look it up there and ask us, we'll be happy to help :D
Title: Re: Altering weapon statistics
Post by: xXGrifterXx on May 31, 2009, 08:49:43 am
Thanks, but where do I find the files or table, and how would I open it?
Title: Re: Altering weapon statistics
Post by: Galemp on May 31, 2009, 08:50:59 am
Dilmah could stand to be a little more helpful... for instance, starting with the fact that all data is packed in the .VP files, and that he needs to find and edit weapons.tbl... but that's the old-fashioned way.

Grifter, your best bet is to use a feature called Modular Tables (http://www.hard-light.net/wiki/index.php/Tbm) which lets you make edits without totally replacing the original data. Create a new plaintext file in Notepad that has this in it:

Code: [Select]
#Primary Weapons
  $Name:              @Subach HL-7
     +nocreate
  $Velocity:         525.0

  $Name:              @Mekhu HL-7
     +nocreate
  $Velocity:         525.0
  #End

and save it as fastsubach-wep.tbm in your Freespace2/data/tables directory. If it isn't there, make it. Voila! This will override the default values for those weapons with the ones you specify here.

If you want to do more extensive editing, reading up on the tables in the Wiki could be useful.
Title: Re: Altering weapon statistics
Post by: Jeff Vader on May 31, 2009, 08:53:17 am
save it as fastsubach-wep.tbm in your Freespace2/data/tables directory.
Psst. I try to advise people to keep the \freespace2\data\ directory clear of any non-retail contents for tech support's sake.
Title: Re: Altering weapon statistics
Post by: xXGrifterXx on May 31, 2009, 08:58:14 am
save it as fastsubach-wep.tbm in your Freespace2/data/tables directory.
Psst. I try to advise people to keep the \freespace2\data\ directory clear of any non-retail contents for tech support's sake.

Okay, so maybe I should just make it as a new weapon variant (like HL-8 instead of HL-7)and place it in a mod just to test it? What Galemp said would be the fastest way but maybe a new weapon is what I'm thinking now.

Thanks everyone for your help!
Title: Re: Altering weapon statistics
Post by: Jeff Vader on May 31, 2009, 09:01:42 am
save it as fastsubach-wep.tbm in your Freespace2/data/tables directory.
Psst. I try to advise people to keep the \freespace2\data\ directory clear of any non-retail contents for tech support's sake.

Okay, so maybe I should just make it as a new weapon variant (like HL-8 instead of HL-7)and place it in a mod just to test it?
Exactly. Place the .tbm files to \freespace2\weaponmod\data\tables for example and then use the \weaponmod\ folder as a mod. It'll get the same results but doesn't have the risk of ****ing things up with the \freespace2\data\ directory.
Title: Re: Altering weapon statistics
Post by: Dilmah G on May 31, 2009, 09:04:50 am
Dilmah could stand to be a little more helpful... for instance, starting with the fact that all data is packed in the .VP files, and that he needs to find and edit weapons.tbl... but that's the old-fashioned way.
Well I'm not at home/didn't have time to write out a full response/help reply, I thought I'd point him in the right direction though. Lobo was bound to find him. Or you. Come to think of it I should've given him the page on tables instead of specifically the weapons.tbl page.

save it as fastsubach-wep.tbm in your Freespace2/data/tables directory.
Psst. I try to advise people to keep the \freespace2\data\ directory clear of any non-retail contents for tech support's sake.

Okay, so maybe I should just make it as a new weapon variant (like HL-8 instead of HL-7)and place it in a mod just to test it? What Galemp said would be the fastest way but maybe a new weapon is what I'm thinking now.

Thanks everyone for your help!
Yeah, C:/Games/Freespace2/FastSubachMod/data/tables (create the directory), place your .tbm in there, and then it "should" work.

EDIT: Arghh, Lobo beat me.
Title: Re: Altering weapon statistics
Post by: Dragon on May 31, 2009, 09:49:44 am
http://homepage.ntlworld.com/karajorma/FAQ/intro.html
This is the place where I started ,I recommend taking a look at it.
It's an excellent Freespace FAQ ,you can begin your adventure with modding from here.
Title: Re: Altering weapon statistics
Post by: xXGrifterXx on May 31, 2009, 10:56:13 am
Thanks a lot everyone. You all have been a great help :) I have a lot to learn!
Title: Re: Altering weapon statistics
Post by: xXGrifterXx on May 31, 2009, 12:36:14 pm
Got it to work, but I had to find another tbm file, paste over it and rename it. Is there an easier way to make a.tbm file?
Title: Re: Altering weapon statistics
Post by: Hyper Ion on May 31, 2009, 01:12:55 pm
Got it to work, but I had to find another tbm file, paste over it and rename it. Is there an easier way to make a.tbm file?
Just right click somewhere (desktop, any blank area in a folder, etc.), choose New>Text Document and append ".tbm" to the end of the name. Congradulations, you now have a TBM from scratch.
Title: Re: Altering weapon statistics
Post by: xXGrifterXx on May 31, 2009, 02:44:38 pm
Got it to work, but I had to find another tbm file, paste over it and rename it. Is there an easier way to make a.tbm file?
Just right click somewhere (desktop, any blank area in a folder, etc.), choose New>Text Document and append ".tbm" to the end of the name. Congradulations, you now have a TBM from scratch.

Can't seem to do it that way, I'm running Windows Vista if that helps, can't seem to find a way to change the file extension.
Title: Re: Altering weapon statistics
Post by: Jeff Vader on May 31, 2009, 02:49:44 pm
Got it to work, but I had to find another tbm file, paste over it and rename it. Is there an easier way to make a.tbm file?
Just right click somewhere (desktop, any blank area in a folder, etc.), choose New>Text Document and append ".tbm" to the end of the name. Congradulations, you now have a TBM from scratch.

Can't seem to do it that way, I'm running Windows Vista if that helps, can't seem to find a way to change the file extension.
I'm not entirely sure of the English translation, but it is possible that you have the "Hide known file extensions" on. One way to verify it is to open your \freespace2\ folder and take a look. If the Launcher is named simply "Launcher", you are indeed hiding the known file extensions. If you aren't, it will show up as "Launcher.exe". Because .exe is a known file extension. It can be set from the Folder Settings.
Title: Re: Altering weapon statistics
Post by: xXGrifterXx on May 31, 2009, 03:37:33 pm
Thanks Lobo it worked!