Modding weapons (Full Version)

All Forums >> [Current Games From Matrix.] >> [American Civil War] >> Forge of Freedom: The American Civil War 1861-1865 >> Mods and Scenarios



Message


PanzerHue -> Modding weapons (9/20/2008 2:46:48 PM)

Hi,

I wanted to add the Tyler Texas Rifle to the Guns.txt but the game wouldnt load. Is it possible to add new weapons?

When I was searching the Data-folder I found 2 Guns.txt files (Guns.txt and Guns_V1.9.17). Wich one is the one used by the game?

Thanx for a great game!

Kind regards...





Gil R. -> RE: Modding weapons (9/20/2008 4:35:39 PM)

Guns.txt is the file that's used. The other looks like a back-up of the older version of the file, based on its name.

What exactly did you do when modding? One thing that might have caused a crash is if you used actual spaces between words rather than underscores: "Tyler_Texas_Rifle" rather than "Tyler Texas Rifle." If you didn't use underscores that might cause a crash.




PanzerHue -> RE: Modding weapons (9/21/2008 12:12:16 PM)

Hi Gil,

Thanx for your reply. The game still crash (not responding) when I use the modified Guns-file.
I have written "Tyler_Texas_Rifle", I gave the rifle the ID number "59" (after "58" breechloader), "0" in the pre-requested-upgrade and "7777" in check.
I have run through the other categories and I cant see any errors.

It work well with the original and I must do something wrong.

Kind regards...




cesteman -> RE: Modding weapons (9/22/2008 1:45:44 PM)

Strange... Being I'm not a programmer I'm always reluctant to mess with any of these files. I always leave that to someone who has way too much time on their hands!




Gil R. -> RE: Modding weapons (9/22/2008 4:55:00 PM)

I'm looking at the file, and have another theory. When you added the gun, did you erase the seemingly pointless line at the end of the file that begins with a '-1' and is filled with zeroes? If so, the smart money is on that having caused the crash. That line lets the computer know it's reached the end of the file.




PanzerHue -> RE: Modding weapons (9/23/2008 10:12:44 AM)

Hi Gil,

I have the "-1" line at the end of the file and everything seems ok. I will do a new try with a fresh copy of the Guns.txt. There must be something I mess up.

Kind regards...




PanzerHue -> RE: Modding weapons (9/25/2008 9:35:13 AM)

Hmm... It seems I can change the stats of any existing weapon, but not add any. When I add the Tyler Rifle it crash again.

Kind regards...




Gil R. -> RE: Modding weapons (9/25/2008 5:16:02 PM)

Sounds to me like Eric's code might have a fixed number of guns that it knows to read, and if one goes over the limit the gun is ignored. I'll ask him, but that's probably it.

If it's a gun that we should have he might be interested in adding it.




Mutation2241 -> RE: Modding weapons (9/25/2008 7:37:39 PM)

How then did member RyanCrierie manage to add the AK-47 in his Guns of the South mod?


quote:

If it's a gun that we should have he might be interested in adding it


Please add the Colt Revolving Rifle first. The first repeating rifle employed in the Civil War. Saw extensive use during the conflict and performed superbly in combat.

Leonard Target Rifle would be nice as well




Gil R. -> RE: Modding weapons (9/26/2008 2:12:59 AM)

quote:

How then did member RyanCrierie manage to add the AK-47 in his Guns of the South mod?


If I remember correctly, he replaced one of the other guns... which would support my thesis.




ericbabe -> RE: Modding weapons (9/26/2008 9:02:32 PM)

Can't add new guns; have to replace an existing one.




PanzerHue -> RE: Modding weapons (9/27/2008 11:15:31 AM)

Thank you all for the help - it is working now (replacing an existing one).

Kind regards...




KASHANKA -> RE: Modding weapons (4/3/2014 1:45:28 PM)

So, there's still no way to add more guns?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.734375