ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
NPC Looting Script fix

« Previous 10 events | 1 2 3 4 5 6 7 ... 11 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  04:04:18  2 September 2009
profilee-mailreply Message URLTo the Top
x_Spartan_x
Whos got the Kokoretsi?
(Resident)

 

 
On forum: 07/07/2009
Messages: 1971
here is most of the problem and solutions to all the above.

its in the watcher ltx file
its this line

local valuable_clsid={ [clsid.art_bast_artefact]=true, [clsid.art_black_drops]=true, [clsid.art_dummy]=true, [clsid.art_electric_ball]=true, [clsid.art_faded_ball]=true, [clsid.art_galantine]=true, [clsid.art_gravi]=true, [clsid.art_gravi_black]=true, [clsid.art_mercury_ball]=true, [clsid.art_needles]=true, [clsid.art_rusty_hair]=true, [clsid.art_thorn]=true, [clsid.art_zuda]=true, [clsid.artefact_s]=true, [clsid.device_detector_simple]=true, [clsid.device_pda]=true, [clsid.device_torch_s]=true, [clsid.equ_exo]=true, [clsid.equ_military]=true, [clsid.equ_scientific]=true, [clsid.equ_stalker_s]=true, [clsid.obj_antirad]=true, [clsid.obj_attachable]=true, [clsid.obj_bandage]=true, [clsid.obj_bolt]=true, [clsid.obj_bottle]=true, [clsid.obj_food]=true, [clsid.obj_medkit]=true, [clsid.wpn_ak74_s]=true, [clsid.wpn_ammo]=true, [clsid.wpn_ammo_m209]=true, [clsid.wpn_ammo_og7b]=true, [clsid.wpn_ammo_vog25]=true, [clsid.wpn_binocular_s]=true, [clsid.wpn_bm16_s]=true, [clsid.wpn_fn2000]=true, [clsid.wpn_fort]=true, [clsid.wpn_groza_s]=true, [clsid.wpn_hpsa_s]=true, [clsid.wpn_knife_s]=true, [clsid.wpn_lr300_s]=true, [clsid.wpn_pm_s]=true, [clsid.wpn_rg6_s]=true, [clsid.wpn_rpg7_s]=true, [clsid.wpn_scope_s]=true, [clsid.wpn_shotgun_s]=true, [clsid.wpn_silencer]=true, [clsid.wpn_svd_s]=true, [clsid.wpn_svu_s]=true, [clsid.wpn_usp45_s]=true, [clsid.wpn_val_s]=true, [clsid.wpn_vintorez_s]=true, [clsid.wpn_walther_s]=true, [clsid.wpn_wmagaz]=true, [clsid.wpn_wmaggl]=true }


notice the Soc stuff, you must redo them into CS, then add false or nil not sure, to quest stuff or pda's.
i only noticed this 2 days ago, but havnt got time my self to redo. i got to releas emergency patch for my mod, and im already 24hours late

but chek it out, hope it helps, il be cheking it out my self, later on.
  04:18:35  2 September 2009
profilee-mailreply Message URLTo the Top
RoboMook
Senior Resident
 

 
On forum: 11/12/2008
Messages: 4387
Ah, well spotted Spartan

So I guess that's a list of all items that the script will consider, and presumably the true/false determines if they will take them or not.

If this works then the first problem should be solved completely

I'll have a bash at it tomorrow, ty for taking a look at it
  17:16:55  2 September 2009
profilee-mailreply Message URLTo the Top
RoboMook
Senior Resident
 

 
On forum: 11/12/2008
Messages: 4387
Actually, looking more closely at that it seems they are 'classes' defined for use in one of the scripts, so it's not going to be a simple true/false switch, I'm still looking into it though...
  02:47:10  3 September 2009
profilee-mailreply Message URLTo the Top
x_Spartan_x
Whos got the Kokoretsi?
(Resident)

 

 
On forum: 07/07/2009
Messages: 1971

---QUOTATION---
Actually, looking more closely at that it seems they are 'classes' defined for use in one of the scripts, so it's not going to be a simple true/false switch, I'm still looking into it though...
---END QUOTATION---



maybe true or nil ?

im actaully going to run some test my self, i just cant renember where the list of clsid was, i came across them before. but forgot.
example the list where it has a _s on end of certain items or weopons or monsters. like in the line above.

in fact ive sort of solved the other probs mentioned, but only from non watcher file stuff,m example distance ,vision other. works fine, you got to find balance, if i could solve this part, (line shown above) im pretty much 100 percent.

please keep us posted, and il post here what i find.

  04:04:22  3 September 2009
profilee-mailreply Message URLTo the Top
zoust
(Senior)
 
On forum: 10/19/2008
Messages: 57

---QUOTATION---
Actually, looking more closely at that it seems they are 'classes' defined for use in one of the scripts, so it's not going to be a simple true/false switch, I'm still looking into it though...
---END QUOTATION---



Yeah, I noticed this too. Classes of items are specified in the respectives .ltx files. I noticed there was a "shotgun" class for example, but the bm16 have his own class, so it's not very clear for me. I hope you guys can fix this mod, specialy during the factory mission and the bridge one.
  04:21:29  3 September 2009
profilee-mailreply Message URLTo the Top
RoboMook
Senior Resident
 

 
On forum: 11/12/2008
Messages: 4387
Well I found all the classes in lua_help.script, but setting any to 'false' or 'nil' has no effect on looting

Still experimenting though...
  13:57:59  4 September 2009
profilee-mailreply Message URLTo the Top
x_Spartan_x
Whos got the Kokoretsi?
(Resident)

 

 
On forum: 07/07/2009
Messages: 1971
ok i think i found it, notice they dont pick up the "bolt"
and its in this line
local cnt=0 obj:iterate_inventory(function (dummy, item) if item:section()~="bolt" then cnt=cnt+1 end end, nil) corpse_checked[obj:id()]=cnt>0 return corpse_checked[obj:id()] end return false end

what if you add say "bolt", "add here", "add here"

the "addhere" is what ever you want, it shouldnt pick it up, like the bolt.
and yup, the bolt is still a item, onlt the slot ranks change the system of how you see the bolt.
so in the watcher file, it needs to by bass the bolt, or you will have a useless bolt"with wrong icon" in your invetory.

my guess is the script writer thought the bolt to be the problem, forgeting about quest items.

im on my way to test this my self, il add foods to see if it works, if it does, im adding whole bunch of stuff

hope it help.
  14:03:22  4 September 2009
profilee-mailreply Message URLTo the Top
x_Spartan_x
Whos got the Kokoretsi?
(Resident)

 

 
On forum: 07/07/2009
Messages: 1971
as for this problem to work, the line i showed you above

this one
local valuable_clsid={ [clsid.art_bast_artefact]=true, [clsid.art_black_drops]=true, [clsid.art_dummy]=true, [clsid.art_electric_ball]=true, [clsid.art_faded_ball]=true, [clsid.art_galantine]=true, [clsid.art_gravi]=true, [clsid.art_gravi_black]=true, [clsid.art_mercury_ball]=true, [clsid.art_needles]=true, [clsid.art_rusty_hair]=true, [clsid.art_thorn]=true, [clsid.art_zuda]=true, [clsid.artefact_s]=true, [clsid.device_detector_simple]=true, [clsid.device_pda]=true, [clsid.device_torch_s]=true, [clsid.equ_exo]=true, [clsid.equ_military]=true, [clsid.equ_scientific]=true, [clsid.equ_stalker_s]=true, [clsid.obj_antirad]=true, [clsid.obj_attachable]=true, [clsid.obj_bandage]=true, [clsid.obj_bolt]=true, [clsid.obj_bottle]=true, [clsid.obj_food]=true, [clsid.obj_medkit]=true, [clsid.wpn_ak74_s]=true, [clsid.wpn_ammo]=true, [clsid.wpn_ammo_m209]=true, [clsid.wpn_ammo_og7b]=true, [clsid.wpn_ammo_vog25]=true, [clsid.wpn_binocular_s]=true, [clsid.wpn_bm16_s]=true, [clsid.wpn_fn2000]=true, [clsid.wpn_fort]=true, [clsid.wpn_groza_s]=true, [clsid.wpn_hpsa_s]=true, [clsid.wpn_knife_s]=true, [clsid.wpn_lr300_s]=true, [clsid.wpn_pm_s]=true, [clsid.wpn_rg6_s]=true, [clsid.wpn_rpg7_s]=true, [clsid.wpn_scope_s]=true, [clsid.wpn_shotgun_s]=true, [clsid.wpn_silencer]=true, [clsid.wpn_svd_s]=true, [clsid.wpn_svu_s]=true, [clsid.wpn_usp45_s]=true, [clsid.wpn_val_s]=true, [clsid.wpn_vintorez_s]=true, [clsid.wpn_walther_s]=true, [clsid.wpn_wmagaz]=true, [clsid.wpn_wmaggl]=true }


notice bolt is in the list. lol now im confused, and its on true, tho he still created a line to not grab the bolt. so iether we add to the "bolt" line.

and i think you dont add false or nil, i think you just delete that part from comer to comer(of course)

il be right back with tests
  07:07:59  5 September 2009
profilee-mailreply Message URLTo the Top
x_Spartan_x
Whos got the Kokoretsi?
(Resident)

 

 
On forum: 07/07/2009
Messages: 1971
ok i figuered out how not to make them pick up certain objects, still in test , but seems fine.

try this

item:section()~="bolt" or item:section()~="XXXX" or item:section()~="XXXX"

where i showed you above, XXXX been a item object, npc wont pick it up.
also further down the watcher ltx file, its also there again, do the same there, and all shall be good.
  07:17:14  5 September 2009
profilee-mailreply Message URLTo the Top
RoboMook
Senior Resident
 

 
On forum: 11/12/2008
Messages: 4387

---QUOTATION---
ok i figuered out how not to make them pick up certain objects, still in test , but seems fine.

try this

item:section()~="bolt" or item:section()~="XXXX" or item:section()~="XXXX"

where i showed you above, XXXX been a item object, npc wont pick it up.
also further down the watcher ltx file, its also there again, do the same there, and all shall be good.
---END QUOTATION---



Awesome, I'll give it a try now, good work

Have you managed to solve the problem with the script breaking the Limansk bridge mission?
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2019 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.