So I read and applied Niphty's excellent tutorial and have made some great weapons. They work fine if they're the _m1 versions already present in unique_items.
But - if I make one from scratch, even if I add Niphty's Gauss rifle, it shows up, can be used etc. until I get killed. Then the game crashes to desktop.
Here's one I'm really trying to get up and running - a sawn-off that works in weapon slot 1 :
_____________ unique items entry _____________
[wpn_bm16-chove_m1]:wpn_bm16 $spawn = "weapons\uniq\wpn_bm16_m1" description = enc_weapons1_wpn_bm16-chove_m1 inv_name = wpn_bm16-chove_m1 inv_name_short = wpn_bm16-chove_m1 cost = 5 slot = 1
_____________ trader_trader entry _____________
wpn_bm16-chove_m1 = 1, 3
______________ stringtable entry ______________
A one-handed shotty.
string id="wpn_bm16-chove_m1"> Hand-Cannon
It happened in V1.003 of STALKER and also in 1.006.
Thanks for your time
Chris (AKA Chove)
Mainstream music sucks!
15th April 2006
Perhaps you should post something from the Xray crash logfile, it should be in Documents and Settings\All Users\Documents\STALKER-SHOC\logs
The Internet ends at GF
27th January 2008
you need to rank your new wpn in the the file gamedata\config\mp\mp_ranks.ltx
This is the where the engine looks when an NPC is evaluating a wpn to decide if they will pick it up or not
Mr. Chris and Shadow_State - you were both absolutely right. I read the crash log file and at the end it said that it couldn't spawn the weapon for mp. When I added it as shadow_state said, it worked just fine.
Now I'm gonna roam the Zone with my hand-cannon and modified sniper rifle. :-)
Slightly cooler than a n00b
7th July 2008
exactly where are you supposed to add the new weapons? bcuz i have the same problem, and tried adding them in the mp_ranks.ltx but i have noo idea where the new weapons should go... could anyone helt me please?