 |
 |
 |
|
 |
 |
 |
|
 |
 |
|
« Previous 10 events | 1 2 3 4 5 6 7 8 ... 11 | Next 10 events »| All Messages |
|
|
04:29:39 13 September 2009 |
|
zoust
(Senior) On forum: 10/19/2008
Messages: 57
|
i think the scripts are causing troubles in patrol path of npcs : i begin a new game two times and got this every time a few minutes after taking the renegade hq. npcs must be looting somewhere, so they are not on the good path ??
! ERROR: SV: can't find children [14971] of parent [312516608]
! [LUA][ERROR] ERROR: NPC with name sim_default_csky_027394 can't present in PatrolManager[mar_smart_terrain_10_7_to_mar_smart_terrain_10_5_patrol_1_walk]
FATAL ERROR
[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ....t.a.l.k.e.r. - clear sky\gamedata\scripts\_g.script:975: bad argument #2 to 'format' (string expected, got nil) |
11:52:39 12 September 2009 |
|
Decane
Senior Resident
On forum: 04/04/2007
 Message edited by: Decane 09/12/2009 11:55:34
Messages: 1705
|
function isValuable(obj)
local sec = obj:section()
if sec == "amk_metka"
or sec == "mar_quest_wpn_pm_1"
or sec == "mar_quest_wpn_ak74u_1"
or sec == "mar_quest_novice_outfit_1"
or sec == "esc_quest_akm47"
or sec == "esc_quest_luky_detector"
or sec == "gar_quest_wpn_wincheaster1300"
or sec == "gar_quest_wpn_desert_eagle"
or sec == "gar_quest_novice_outfit"
or sec == "gar_quest_wpn_pm"
or sec == "val_quest_scope_x8"
or sec == "val_quest_guitar_serg"
or sec == "agr_quest_wpn_spas12"
or sec == "agr_quest_duty_abakan"
or sec == "yan_quest_ammo_sleep"
or sec == "red_quest_tank_minigun"
or bgwith(sec,"esc_trader_")
or bgwith(sec,"device_")
or bgwith(sec,"dev_")
or bgwith(sec,"af_")
or bgwith(sec,"red_quest_")
or bgwith(sec,"red_forest_")
or bgwith(sec,"yan_quest_")
or bgwith(sec,"agr_mechanic_")
or bgwith(sec,"agr_map_")
or bgwith(sec,"agr_pda_")
or bgwith(sec,"agr_quest_")
or bgwith(sec,"val_quest_")
or bgwith(sec,"sect_gar_quest_")
or bgwith(sec,"gar_quest_")
or bgwith(sec,"esc_mechanic_")
or bgwith(sec,"esc_quest_")
or bgwith(sec,"mil_device_")
or bgwith(sec,"mar_quest_")
or bgwith(sec,"mil_quest_") then
return false,false
end
if valuable_clsid[obj:clsid()] then
return true, false
end
return bgwith(sec,"ammo_") or bgwith(sec,"wpn_") or bgwith(sec,"energy_") or checkCorpse(obj), IsStalker(obj) or IsMonster(obj)
end Looks a bit nicer! 
• Sky Reclamation Project v1.1.2: http://www.moddb.com/mods/srp/downloads/srp-v112
• Sky Reclamation Project v1.1.3 WIP: https://github.com/Decane/SRP
|
11:43:34 12 September 2009 |
|
x_Spartan_x
Whos got the Kokoretsi? (Resident)
 On forum: 07/07/2009
Messages: 1971
|
ok heres is my 1st line fixes, this will make AI not pick up from out of the corpse items\obj\things in sourounding.
in the below, they wont touch all the quest items, devises such as pdas and flash cards , and other minor quest items wich are not on corpses.
im going now to fill in the corpses lines,brb
heres the chages
function isValuable(obj)
local sec = obj:section()
if sec == "amk_metka" or sec == "mar_quest_wpn_pm_1" or sec == "mar_quest_wpn_ak74u_1" or sec == "mar_quest_novice_outfit_1" or sec == "esc_quest_akm47" or sec == "esc_quest_luky_detector" or sec == "gar_quest_wpn_wincheaster1300" or sec == "gar_quest_wpn_desert_eagle" or sec == "gar_quest_novice_outfit" or sec == "gar_quest_wpn_pm" or sec == "val_quest_scope_x8" or sec == "val_quest_guitar_serg" or sec == "agr_quest_wpn_spas12" or sec == "agr_quest_duty_abakan" or sec == "yan_quest_ammo_sleep" or sec == "red_quest_tank_minigun" or bgwith(sec,"esc_trader_" or bgwith(sec,"device_" or bgwith(sec,"dev_" or bgwith(sec,"af_" or bgwith(sec,"red_quest_" or bgwith(sec,"red_forest_" or bgwith(sec,"yan_quest_" or bgwith(sec,"agr_mechanic_" or bgwith(sec,"agr_map_" or bgwith(sec,"agr_pda_" or bgwith(sec,"agr_quest_" or bgwith(sec,"val_quest_" or bgwith(sec,"sect_gar_quest_" or bgwith(sec,"gar_quest_" or bgwith(sec,"esc_mechanic_" or bgwith(sec,"esc_quest_" or bgwith(sec,"mil_device_" or bgwith(sec,"mar_quest_" or bgwith(sec,"mil_quest_" then
return false,false
end
if valuable_clsid[obj:clsid()] then
return true, false
end
return bgwith(sec,"ammo_" or bgwith(sec,"wpn_" or bgwith(sec,"energy_" or checkCorpse(obj), IsStalker(obj) or IsMonster(obj)
end
feel free to add it, and test it, it works 100 percent, also notice some are indervidual(sec= other is in group(bg "xxx" both work and tested.
and off corse do your own thing.. 
"DC Beta v0.65.5" & "Patch Build 4".
https://www.gsc-game.com/index.php?t=community&s=forums&s_game_type=xr2&thm_page=1&thm_id=22535&sec_id=21
Steam Group.
http://steamcommunity.com/groups/spartan_11_11
Currently working on
"The Lions Roar v1.0" (TLR v1.0 Estimated 2012).
http://i239.photobucket.com/albums/ff251/Spartan2073/GlobalMap-1.jpg
http://www.youtube.com/watch?v=bsWwmw2-urE&feature=related
|
05:34:28 12 September 2009 |
|
x_Spartan_x
Whos got the Kokoretsi? (Resident)
 On forum: 07/07/2009
Messages: 1971
|
these are my note, for new patch(my mod, not looting mod, you guys own that, and il credit you guys in notes, WD)
------------
O;Looting fixes include, important quest AI dont get searched. Various quest and
other now dont get looted(taken) wich are not found on dead AI, good example the
Compas artifact quest item, this will not be touched by looting. (Squads loot only
after reaching way points, AI dont loot on way paths.) plus various small fixes.
------------------
ok, the bit in brackets, will solve a few small probs but might cause probs for small end cpus(i still goto do final test on that also) plus it aint inportant now, that i can disable certain corpses and the AI wont touch quest items out of AI dead bodies, i belive this is enoufgh, and the whole thing will work fine.
now i can finish the rest of my ltx.
TY guys, and il credit your looting script.

"DC Beta v0.65.5" & "Patch Build 4".
https://www.gsc-game.com/index.php?t=community&s=forums&s_game_type=xr2&thm_page=1&thm_id=22535&sec_id=21
Steam Group.
http://steamcommunity.com/groups/spartan_11_11
Currently working on
"The Lions Roar v1.0" (TLR v1.0 Estimated 2012).
http://i239.photobucket.com/albums/ff251/Spartan2073/GlobalMap-1.jpg
http://www.youtube.com/watch?v=bsWwmw2-urE&feature=related
|
13:49:45 11 September 2009 |
|
x_Spartan_x
Whos got the Kokoretsi? (Resident)
 On forum: 07/07/2009
 Message edited by: x_Spartan_x 09/11/2009 14:04:58
Messages: 1971
|
---QUOTATION--- ive tryed tthis at start, when i 1st looked at the script, it dint work...but.
il go re try it, because i think i wrote the line a bit difrent, il be back in 30min, also want to recheck the lag issue for RoboMook
brb
opps forgot, dindt notice the last line you wrote,
il see if it works on items on ground.
so then, if the corpse line work, then i dont really need the specific item check, but the ground looting is usefull.
PS;
would the body searching looting, specific be in this line, note, bolt is not ground item...
function checkCorpse(obj)
if (IsStalker(obj) or IsMonster(obj)) and obj:alive() == false then
if corpse_checked[obj:id()] ~= nil then
return corpse_checked[obj:id()]
end
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
???
brb
then try adding it there like this item:section() ~= "bolt" and item:section() ~= "bread" and ... ---END QUOTATION---
yup it worked with the other you mentioned, they dont pick that up from floor or out of the body, good example the artifact, we dont want the ai grabing a quest items out of dead bodies, i think there is a few..
so, that part is closed and ready for adding in blanks.
ok the thing you mentioned above, in this post reply, i think ive tryed that also, but, yet again, il re try.
if it doesnt work, it doesnt matter, im happy with check corpse fix.
in fact i might remove the other fix, with squads, if it needs better than dual core, but like it is, it is weird the lag, the only glitch i cop, is at start, some ai dont spawn properly, explain that, its got nothing to do with it,lol a reload fixes it, but.
brb, im drunk as a skunk, lmao.
PS
will this work?
if sec == "amk_metka" or sec == "quest_items" then
or would the quest_item line be other?
"DC Beta v0.65.5" & "Patch Build 4".
https://www.gsc-game.com/index.php?t=community&s=forums&s_game_type=xr2&thm_page=1&thm_id=22535&sec_id=21
Steam Group.
http://steamcommunity.com/groups/spartan_11_11
Currently working on
"The Lions Roar v1.0" (TLR v1.0 Estimated 2012).
http://i239.photobucket.com/albums/ff251/Spartan2073/GlobalMap-1.jpg
http://www.youtube.com/watch?v=bsWwmw2-urE&feature=related
|
13:39:32 11 September 2009 |
|
RoboMook
Senior Resident
 On forum: 11/12/2008
Messages: 4387
|
---QUOTATION--- BTW: Have you tried disabling a core, and then re-enabling it? I don't think this will solve the problem, but it could be worth a shot. Also, have you tried monitoring your RAM usage? I'm not sure how this script would affect it, but if your RAM is being filled up more quickly then you might be experiencing trashing, i.e. lag caused by swapping between virtual memory and physical memory. Then again, static lighting should dramatically reduce the amount of memory used, so I don't think this is it either. ---END QUOTATION---
I did try that actually, also tried running on only one core, didn't help. Ram is fine, was still getting the lag with about 700mb free.
I do suspect the CPU is the problem here, there may be some kind of sync issue between cores, I heard somewhere that Stalker uses one core for main gameplay stuff and the other for managing graphics stuff (hence it tends to use one core more than the other), so that's the only thing I can think of to blame at the moment. I did try removing the unecessary AMD dual-core optimizer I had installed, didn't help.
Still, seems weird that such a small part of a script could cause this behaviour, I'm rather perplexed 
Powered By Booze™
|
|
« Previous 10 events | 1 2 3 4 5 6 7 8 ... 11 | Next 10 events »| All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |