Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Modding weapons

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [American Civil War] >> Forge of Freedom: The American Civil War 1861-1865 >> Mods and Scenarios >> Modding weapons Page: [1]
Login
Message << Older Topic   Newer Topic >>
Modding weapons - 9/20/2008 2:46:48 PM   
PanzerHue

 

Posts: 22
Joined: 11/21/2007
From: Chile
Status: offline
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...

Post #: 1
RE: Modding weapons - 9/20/2008 4:35:39 PM   
Gil R.


Posts: 10821
Joined: 4/1/2005
Status: offline
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.

(in reply to PanzerHue)
Post #: 2
RE: Modding weapons - 9/21/2008 12:12:16 PM   
PanzerHue

 

Posts: 22
Joined: 11/21/2007
From: Chile
Status: offline
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...

(in reply to Gil R.)
Post #: 3
RE: Modding weapons - 9/22/2008 1:45:44 PM   
cesteman


Posts: 845
Joined: 2/15/2004
From: San Luis Obispo, CA
Status: offline
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!

(in reply to PanzerHue)
Post #: 4
RE: Modding weapons - 9/22/2008 4:55:00 PM   
Gil R.


Posts: 10821
Joined: 4/1/2005
Status: offline
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.

(in reply to cesteman)
Post #: 5
RE: Modding weapons - 9/23/2008 10:12:44 AM   
PanzerHue

 

Posts: 22
Joined: 11/21/2007
From: Chile
Status: offline
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...

(in reply to Gil R.)
Post #: 6
RE: Modding weapons - 9/25/2008 9:35:13 AM   
PanzerHue

 

Posts: 22
Joined: 11/21/2007
From: Chile
Status: offline
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...

(in reply to PanzerHue)
Post #: 7
RE: Modding weapons - 9/25/2008 5:16:02 PM   
Gil R.


Posts: 10821
Joined: 4/1/2005
Status: offline
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.

(in reply to PanzerHue)
Post #: 8
RE: Modding weapons - 9/25/2008 7:37:39 PM   
Mutation2241

 

Posts: 35
Joined: 9/25/2008
Status: offline
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

< Message edited by Mutation2241 -- 9/25/2008 7:43:17 PM >

(in reply to Gil R.)
Post #: 9
RE: Modding weapons - 9/26/2008 2:12:59 AM   
Gil R.


Posts: 10821
Joined: 4/1/2005
Status: offline
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.

(in reply to Mutation2241)
Post #: 10
RE: Modding weapons - 9/26/2008 9:02:32 PM   
ericbabe


Posts: 11927
Joined: 3/23/2005
Status: offline
Can't add new guns; have to replace an existing one.

_____________________________



(in reply to Gil R.)
Post #: 11
RE: Modding weapons - 9/27/2008 11:15:31 AM   
PanzerHue

 

Posts: 22
Joined: 11/21/2007
From: Chile
Status: offline
Thank you all for the help - it is working now (replacing an existing one).

Kind regards...

(in reply to ericbabe)
Post #: 12
RE: Modding weapons - 4/3/2014 1:45:28 PM   
KASHANKA

 

Posts: 17
Joined: 2/13/2009
From: Middle of nowhere
Status: offline
So, there's still no way to add more guns?

(in reply to PanzerHue)
Post #: 13
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [American Civil War] >> Forge of Freedom: The American Civil War 1861-1865 >> Mods and Scenarios >> Modding weapons Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.016