Development > Artwork
New weapons - SOLVED
geever:
--- Quote from: Latino210 on November 23, 2012, 11:26:53 pm ---Sorry, I am having some problems. I've created a new dir called "scraprifle" in the models/weapons dir, with the md2 and jpg for the new rifle. I 've added this code to the weapons_human.ufo file:
But when I start a new campaign the scraprifle is nowhere to be seen. What am I doing wrong?
--- End quote ---
Do you see any warnings about it in ufoconsole.log?
-geever
H-Hour:
Item "scraprifle_ammo" doesn't exist because you forgot to rename the item definition. It's still listed as pistol_ammo.
Always check the ufoconsole.log. It's very good at flagging errors with the UFO scripts. In this case it probably would have thrown an error saying that pistol_ammo was already defined (ie - there were two item definitions with the same id).
Latino210:
ok, thanks, I've already solved the "scraprifle_ammo" problem and added the UFOPAEDIA entries for both the weapon and the ammo, they both work. I've already tried to add the following lines to the "campaign_initial_market" and the "campaign_player" entries in the Equipment.ufo file:
--- Code: --- item (scraprifle 1)
item (scraprifle_ammo 12)
--- End code ---
but the scraprifle is not appearing in the buy/sell nor in the production menus... I've checked the console, no error messages!
Latino210:
Thanks for the help, I managed to find the problem!
The error was the "Is secondary false" line. It should have been a "Is primary true" line. Now it works perfectly. Thanks again. Now, if someone could help me with the UV skinning I would appreciate it.
Navigation
[0] Message Index
[*] Previous page
Go to full version