New weapon works but game crash on death -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 10 years ago

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)




mrchris

Mainstream music sucks!

50 XP

15th April 2006

0 Uploads

117 Posts

0 Threads

#2 10 years ago

Perhaps you should post something from the Xray crash logfile, it should be in Documents and Settings\All Users\Documents\STALKER-SHOC\logs




shadow_state

The Internet ends at GF

50 XP

27th January 2008

0 Uploads

107 Posts

0 Threads

#3 10 years ago

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




Guest

I didn't make it!

0 XP

 
#4 10 years ago

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. :-)




bobani

Slightly cooler than a n00b

50 XP

7th July 2008

0 Uploads

40 Posts

0 Threads

#5 10 years ago

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?