 |
 |
 |
|
 |
 |
 |
|
 |
 |
How to get AMK Loot 1.0/1.1 work with ZRP_1.07_R5 ??? |
|
|
|
|
23:29:55 9 September 2015 |
|
hexef
(Novice) On forum: 05/12/2014
 Message edited by: hexef 09/09/2015 23:50:04
Messages: 26
|
How to get AMK Loot 1.0/1.1 work with ZRP_1.07_R5 ???
Hi,
I currently play with the latest version of ZRP(v1.07_R5) and I am trying to make AMK npc loot to work but my game crashes after doing a merge.It's like the loot module which is watcher_act.script is not loaded with the ZRP version of the game.Vanilla game works ok and it loads watcher_act.script properly.It only crashes if ZRP is installed.
This is the error and it's crashing when it tries to call a function from watcher_act(set_scheme) from xr_logic:
FATAL ERROR
[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\stalker\sources\trunk\xr_3da\xrGame\script_engine.cpp
[error]Line : 73
[error]Description : <no expression>
[error]Arguments : LUA error: ...shadow of chernobyl\gamedata\scripts\xr_logic.script:311: attempt to call field 'set_scheme' (a nil value)
stack trace:
Maybe watcher_act.script's functions are either changed by ZRP or removed ??? I am trying to get this to work for hours and it's pissing me off
I even tried to downgrade from 1.0006 to 1.0005,same results...
the amk loot mod i am using:
http://www.mediafire.com/download/7hztr9b57b2ek4a/AMKLoot1.1.rar
I also tried with 1.0,same results:
http://www.mediafire.com/download/12kdonznj5joeuk/AMKLoot.rar
I am very certain that I merge the files properly.
Any help is appreciated.Thanks. |
14:00:55 10 September 2015 |
|
hexef
(Novice) On forum: 05/12/2014
 Message edited by: hexef 09/10/2015 14:10:13
Messages: 26
|
Ok,I have found the culprit...in watcher_act.script there is a table variable type which is named "local valuable_clsid" and it contains 55 entries (all of them are clsids).
If I comment out the table's contents the game doesn't crash anymore and the NPC loot works properly(as far as I tested),huuray
But now I wonder if commenting out the whole content of valuable_clsid table will break my game somehow...
This is the only thing I have changed from watcher_act.script:
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
}
Just valuable_ids table's content commented out.
NOTE:I also have ZRP 1.07 installed.In vanilla,you don't need to change anything.Only with ZRP it crashes if you don't comment out like how I did above.I don't know why |
04:42:50 13 September 2015 |
|
NatVac
Senior Resident
On forum: 06/15/2007
Messages: 4286
|
Yes, this is a ZRP issue, xQd. The ZRP preloads the schemes to avoid some of the initial lag when NPCs are switched online. It also reveals any scheme parsing problem at the start instead of crashing in the middle of a gaming session.
Yes, commenting out the assignments defeats the purpose of the looting function.
To fix it, make the table local to the function that needs it and uncomment out the assignments. That is, make it like the original, but inside the function.
I found my post on this exact problem in the ZRP thread by searching for watcher_act.script with the search range set to "All the time". More details here:
---QUOTATION--- https://www.gsc-game.com/main.php?t=community&s=forums&s_game_type=xr&thm_id=11786&page=286&sec_id=16 ---END QUOTATION---
|
11:47:16 13 September 2015 |
|
hexef
(Novice) On forum: 05/12/2014
Messages: 26
|
Thank you NatVac for your answer.Fortunately,I figured this out 3 days ago but I was too busy merging your ZRP with KamikaZze's companions 1.9C from OGSE and forgot to reply that I already fixed it .
Anyway now I play ZRP with companions,dexx&dezowave blowout,npc loot, and other graphic enhancement mods and works with no problems.Now I am thinking of adding new weapons from Arsenal mod.
Thank you again for your modding efforts and for the most stable mod.ZRP rocks |
|
1 | All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |