Mooky Guy 0 Posted September 25, 2005 Share Posted September 25, 2005 In the kit boxes, it shows the picture of the weapon, but what does it mean when it says "find key!" for the text? Also, what does <NameToken>WPN_M16</NameToken> mean in a GUN file? Is the name token the reason why it won't work? Thank you. Quote Link to post Share on other sites
Janie42 0 Posted September 25, 2005 Share Posted September 25, 2005 "find key!" typically means problem in \Shell <strings.txt> file. Your <NameToken>WPN_M16</NameToken> in .gun file must match entry in strings.txt file. Game uses strings.txt file of mod you are playing (or Ubi's if no user-made mod activated). If your mod's strings.txt file is wrong/missing, and the weapon calls for unique files, the !find key error happens. Strings.txt has a number with a weapon i.d., e.g., 4 - "WPN_M16" (some spaces - actually usually 3 Tabs) "M16". This then is found as .gun file in \Equip folder of mod. Check that .gun files with !find key error have weapon token\name matching one in string.txt file. Part in e.g., "M16" is name you see in-game. I think it can be whatever you like, but first part, WPN_ M16 must be same as what is in the .gun file. Quote Link to post Share on other sites
DWG 0 Posted September 25, 2005 Share Posted September 25, 2005 The strings.txt file is quite simple, each entry consists of a pair of strings enclosed in quotes. The first string is the text found in the <NameToken> tag in the gun file. The entries in .gun and strings.txt must match exactly, including in case. The second string is what should appear on screen. So for example an M203 .gun file might contain: <NameToken>COLT_M203</NameToken> and in strings.txt we would have "COLT_M203" "M203" If you have a problem with a weapon name not appearing, then open up the .gun file and open up the strings.txt and check the entries match, almost certainly they won't. Dealing with Janie42's comments, the system works with all strings.txt files in all active mods, searching them in order of precedence and using the first match found. The number of spaces or tabs between the two strings is not significant. It's unclear what he means by numbers in the strings.txt file. Quote Link to post Share on other sites
Janie42 0 Posted September 25, 2005 Share Posted September 25, 2005 @DWG, excellent explanation! Much clearer/better than how I put it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.