Page 1 of 1
Modding weapons
Posted: Sat Sep 20, 2008 11:46 am
by PanzerHue
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...
RE: Modding weapons
Posted: Sat Sep 20, 2008 1:35 pm
by Gil R.
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.
RE: Modding weapons
Posted: Sun Sep 21, 2008 9:12 am
by PanzerHue
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...
RE: Modding weapons
Posted: Mon Sep 22, 2008 10:45 am
by cesteman
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!
RE: Modding weapons
Posted: Mon Sep 22, 2008 1:55 pm
by Gil R.
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.
RE: Modding weapons
Posted: Tue Sep 23, 2008 7:12 am
by PanzerHue
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...
RE: Modding weapons
Posted: Thu Sep 25, 2008 6:35 am
by PanzerHue
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...
RE: Modding weapons
Posted: Thu Sep 25, 2008 2:16 pm
by Gil R.
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.
RE: Modding weapons
Posted: Thu Sep 25, 2008 4:37 pm
by Mutation2241
How then did member RyanCrierie manage to add the AK-47 in his Guns of the South mod?
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
RE: Modding weapons
Posted: Thu Sep 25, 2008 11:12 pm
by Gil R.
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.
RE: Modding weapons
Posted: Fri Sep 26, 2008 6:02 pm
by ericbabe
Can't add new guns; have to replace an existing one.
RE: Modding weapons
Posted: Sat Sep 27, 2008 8:15 am
by PanzerHue
Thank you all for the help - it is working now (replacing an existing one).
Kind regards...
RE: Modding weapons
Posted: Thu Apr 03, 2014 10:45 am
by KASHANKA
So, there's still no way to add more guns?