FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   S.T.A.L.K.E.R. SoC Modding, Mapping and Editing (http://forums.filefront.com/s-t-l-k-e-r-soc-modding-mapping-editing-954/)
-   -   unique_items.ltx is kickig my a$$ (http://forums.filefront.com/s-t-l-k-e-r-soc-modding-mapping-editing/318055-unique_items-ltx-kickig-my.html)

psybunny June 14th, 2007 12:06 PM

unique_items.ltx is kickig my a$$
 
so i have tried another rifle an loaded the game up....it ran fine..but i forgot to add this to my unique_items file.......and when i did it now crashes .....oh goodly modding sheppards show me the ways of my errors!!!!:bows:


[wpn_valkerie_m1]:wpn-valkerie
$spawn = "weapons\wpn-val"
description = enc_weapons1_wpn-valkerie_m1
inv_name = wpn-valkerie_m1
inv_name_short = wpn-valkerie_m1
cost = 1
fire_modes = 1,2,3,-1
ammo_limit = 210
ammo_current = 40
ammo_mag_size = 40
ammo_class = ammo_11.43x23_fmj, ammo_11.43x23_hydro
sprint_allowed = true
misfire_probability = 0.0
condition_shot_dec = 0.0
hit_power = 1.10, 1.15, 1.20, 1.30
hit_impulse = 165
fire_distance = 800
bullet_speed = 380
rpm = 800
scope_zoom_factor = 9:bows:

psybunny June 14th, 2007 12:31 PM

additionally i receive this error message when i do
Expression : fatal error
Function : CInifile::r_section
File : D:\xray-svn\xrCore\Xr_ini.cpp
Line : 341
Description : <no expression>
Arguments : Can't open section 'wpn_valkerie'

waldo913 June 14th, 2007 01:00 PM

First, I don't think you can start it off with wpn_valkerie_m1 since unless I'm mistaken, there's no wpn_valkerie to begin with. If you're basing it off the Val, you'd have to start with [wpn_val_m(#)]:wpn-valkerie replacing (#) with the next number in line for unique val-type weapons.

Then you have to have wpn-valkerie defined inside your weapons.ltx(I think that's its name, I can't check since I'm at work).

Then, instead of

inv_name = wpn-valkerie_m1
inv_name_short = wpn-valkerie_m1

You'd need

inv_name = wpn-val_m(#)
inv_name_short = wpn-val_m(#)

You'll also need to put it in your text definitions file so it correctly references wpn_val_m(#) for its.. I totally forget the name of that one, but you probably know what I'm talking about.

Other than that, what you have there appears correct...

I hope this at least gets you moving in the right direction. Once I get home from work, I'll open up my gamedata folders and doublecheck the filenames and references for you.

FearDaBurner June 14th, 2007 01:02 PM

this might sound stupid but did you forget to add your wpn.dds file in to the folder? I kept getting an error because I forgot to do so

Brusher June 14th, 2007 02:06 PM

I think your first line is wrong, "[wpn_valkerie_m1]:wpn-valkerie", should look like this I believe, "[wpn_valkerie_m1]:wpn_val". I didn't see a prob with the rest. You inv. names are right. That's the way it should be.

TheBestCZE June 14th, 2007 02:41 PM

Quote:

Originally Posted by psybunny (Post 3736029)
so i have tried another rifle an loaded the game up....it ran fine..but i forgot to add this to my unique_items file.......and when i did it now crashes .....oh goodly modding sheppards show me the ways of my errors!!!!:bows:


[wpn_valkerie_m1]:wpn-valkerie
$spawn = "weapons\wpn-val"
description = enc_weapons1_wpn-valkerie_m1
inv_name = wpn-valkerie_m1
inv_name_short = wpn-valkerie_m1
cost = 1
fire_modes = 1,2,3,-1
ammo_limit = 210
ammo_current = 40
ammo_mag_size = 40
ammo_class = ammo_11.43x23_fmj, ammo_11.43x23_hydro
sprint_allowed = true
misfire_probability = 0.0
condition_shot_dec = 0.0
hit_power = 1.10, 1.15, 1.20, 1.30
hit_impulse = 165
fire_distance = 800
bullet_speed = 380
rpm = 800
scope_zoom_factor = 9:bows:

Just like the others said, you must base you should call the wepon "val", i think that could be the problem.

I fact call all ur uniques "wpn_(name)_m(number)"
it doesnt affect what the weapon description or name will be, so it's better.

Also as Brusher said, ur line is really wrong> it has to say wpn_val not wpn-wal

psybunny June 14th, 2007 10:13 PM

:bawl::bawl::bawl:my new file im starting
[wpn_valkerie_m1]:wpn_val
$spawn = "weapons\wpn_val"
description = enc_weapons1_wpn-valkerie_m1
inv_name = wpn-valkerie_m1
inv_name_short = wpn-valkerie_m1
ammo_mag_size = 40
ammo_class = ammo_11.43x23_fmj, ammo_11.43x23_hydro
condition_shot_dec = 0.0
cost = 50
fire_modes = 1, 2, 3, -1
sprint_allowed = true
misfire_probability = 0.0
control_inertion_factor = 1.0f
hit_power = 1.10, 1.15, 1.20, 1.30
hit_impulse = 10000
fire_distance = 900
fire_dispersion_base = 0.00
bullet_speed = 450
rpm = 800
scope_zoom_factor = 9

Brusher June 14th, 2007 11:20 PM

I tried it out and it works great. Good job!

psybunny June 15th, 2007 12:20 AM

yep im sorry fer having an episode trying to figure this out on my night with my 5 month old baby on my lap is ..well impossible(@ least difficult)....hehehehehe...yep the Valkerie is smooth,yet needs some tweakin but its mean.cant wait to release it when its done......now on to the texies.:smokin:......thanks everyone

psybunny June 15th, 2007 12:37 PM

i posted up on stalkerfiles the completed and tested on a fresh install of faiakes 2.2 and it runs great altho im not sure if a new game is needed....=p anyhoo i hope yall enjoy,and thanks for the support


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.