 |
 |
 |
|
 |
 |
 |
|
 |
 |
Error handler is invoked? |
|
|
|
|
21:48:11 24 January 2015 |
|
LoNer1
Настоящий Cталкер, Русская Версия (Resident)
 On forum: 10/23/2009
Messages: 1890
|
Error handler is invoked?
Hey forum, it's been a while
I'm working on Vanilla+, a new 'complete', without all the annoying stuf that makes the game easier. I've been adding new models to the game 1 by 1. It's core runs on 3 mods;
- Photorealistic Zone 2,
- ZRP 1.05 R7 EE
- CodeBro's 1.0008 Community Patch
Each time I now try to spawn the following weapons from escape_dialog.script, this happens:
Expression : error handler is invoked!
Function : invalid_parameter_handler
File : xrDebugNew.cpp
Line : 804
Description :
It gives me no trail to locate where the error comes from. Here's the full escape_dialog.script for reference.
Link:
http://pastebin.com/UtrmeGqM
Hope someone can help me out here It's a pretty annoying problem that also occurs when I go towards the military in Cordon.
- Никто не любит долго подпись ...
Мои Yчeбники: http://tinyurl.com/ct66avh
*My tutorials
Дожить до забыть...
"Не заключенных, Никакого милосердия!"
Изменения:
- MISERY Co-dev
- http://www.moddb.com/mods/stalker-misery/
- My mods:
- http://www.moddb.com/mods/stalker-nameless
- http://www.moddb.com/mods/photo-realistic-zone-2
- http://www.moddb.com/mods/stalker-particle-paradise
- http://www.moddb.com/mods/stalker-particle-paradise-3
- Modding Group: True zone© {{PROJECTS}} - Head
- http://www.moddb.com/company/true-zone
"Im not a noob, im a retard, there's a difference!" - Jamie1992
"Modding...Not cheating, just surviving" - oblakoder
Oh the irony...
|
22:09:16 24 January 2015 |
|
TKGP
Senior Resident
 On forum: 01/25/2013
 Message edited by: TKGP 01/24/2015 22:11:48
Messages: 454
|
Add some logging to relocate_item_section function in dialogs.script:
function relocate_item_section(victim, section, type)
get_console():execute( "giving_"..section )
if db.actor and victim then
if type == "in" then
--' “рансферить нужно только квестовые предметы.
if quest_section[section] == true and
victim:object(section) ~= nil
then
victim:transfer_item(victim:object(section), db.actor)
else
alife():create(section,
db.actor:position(),
db.actor:level_vertex_id(),
db.actor:game_vertex_id(),
db.actor:id())
end
elseif type == "out" then
db.actor:transfer_item(db.actor:object(section), victim)
end
news_manager.relocate_item(db.actor, type, section)
end
end
Then you can just check the log and see where the issue is. If it's crashing when they actually come online, not when they're spawned, you could set up some queue in bind_stalker instead so they load in one by one.
Side note: I wouldn't recommend using 1.0008, the sprint bug and menu crash are pretty obnoxious.
My mods: http://bit.ly/TKModStatus
My stream: http://www.twitch.tv/tkgp
|
22:18:23 24 January 2015 |
|
LoNer1
Настоящий Cталкер, Русская Версия (Resident)
 On forum: 10/23/2009
 Message edited by: LoNer1 01/24/2015 22:19:22
Messages: 1890
|
---QUOTATION--- Add some logging to relocate_item_section function in dialogs.script:
function relocate_item_section(victim, section, type)
get_console():execute( "giving_"..section )
if db.actor and victim then
if type == "in" then
--' “рансферить нужно только квестовые предметы.
if quest_section[section] == true and
victim:object(section) ~= nil
then
victim:transfer_item(victim:object(section), db.actor)
else
alife():create(section,
db.actor:position(),
db.actor:level_vertex_id(),
db.actor:game_vertex_id(),
db.actor:id())
end
elseif type == "out" then
db.actor:transfer_item(db.actor:object(section), victim)
end
news_manager.relocate_item(db.actor, type, section)
end
end
Then you can just check the log and see where the issue is. If it's crashing when they actually come online, not when they're spawned, you could set up some queue in bind_stalker instead so they load in one by one.
Side note: I wouldn't recommend using 1.0008, the sprint bug and menu crash are pretty obnoxious. ---END QUOTATION---
Where do I add this?
And yes, I've noticed. I'm going to downgrade to 1.005 again yea.
- Никто не любит долго подпись ...
Мои Yчeбники: http://tinyurl.com/ct66avh
*My tutorials
Дожить до забыть...
"Не заключенных, Никакого милосердия!"
Изменения:
- MISERY Co-dev
- http://www.moddb.com/mods/stalker-misery/
- My mods:
- http://www.moddb.com/mods/stalker-nameless
- http://www.moddb.com/mods/photo-realistic-zone-2
- http://www.moddb.com/mods/stalker-particle-paradise
- http://www.moddb.com/mods/stalker-particle-paradise-3
- Modding Group: True zone© {{PROJECTS}} - Head
- http://www.moddb.com/company/true-zone
"Im not a noob, im a retard, there's a difference!" - Jamie1992
"Modding...Not cheating, just surviving" - oblakoder
Oh the irony...
|
16:11:44 25 January 2015 |
|
LoNer1
Настоящий Cталкер, Русская Версия (Resident)
 On forum: 10/23/2009
Messages: 1890
|
So far I have:
escape_dialog.script:
function give_weapon_to_actor (trader, actor)
dialogs.relocate_item_section(trader, "wpn_ak12", "in")
dialogs.relocate_item_section(trader, "wpn_ak74", "in")
dialogs.relocate_item_section(trader, "wpn_ak74u", "in")
dialogs.relocate_item_section(trader, "wpn_bm16", "in")
dialogs.relocate_item_section(trader, "wpn_bm16_full", "in")
dialogs.relocate_item_section(trader, "wpn_aek971", "in")
dialogs.relocate_item_section(trader, "wpn_svu", "in")
dialogs.relocate_item_section(trader, "wpn_usp_koma", "in")
dialogs.relocate_item_section(trader, "wpn_usp", "in")
dialogs.relocate_item_section(trader, "wpn_addon_scope", "in")
dialogs.relocate_item_section(trader, "wpn_addon_grenade_launcher", "in")
dialogs.relocate_item_section(trader, "wpn_addon_silencer", "in")
dialogs.relocate_item_section(trader, "wpn_addon_silencer", "in")
dialogs.relocate_item_section(trader, "wpn_mp443", "in")
dialogs.relocate_item_section(trader, "wpn_l96", "in")
dialogs.relocate_item_section(trader, "outfit_exo_m1", "in")
dialogs.relocate_item_section(trader, "wpn_vintorez_m1", "in")
dialogs.relocate_item_section(trader, "wpn_val", "in")
dialogs.relocate_item_section(trader, "wpn_colt1911", "in")
dialogs.relocate_item_section(trader, "wpn_sig220_m1", "in")
dialogs.relocate_item_section(trader, "wpn_python", "in")
dialogs.relocate_item_section(trader, "wpn_python_gold", "in")
dialogs.relocate_item_section(trader, "wpn_toz34", "in")
dialogs.relocate_item_section(trader, "wpn_spas12_m1", "in")
dialogs.relocate_item_section(trader, "wpn_knife", "in")
end
and bind_stalker.script
function actor_binder:update(delta)
local spawn = {
"wpn_ak12",
"wpn_ak74",
"wpn_ak74u",
"wpn_bm16",
"wpn_bm16_full",
"wpn_aek971",
"wpn_svu",
"wpn_usp_koma",
"wpn_usp",
"wpn_addon_scope",
"wpn_addon_grenade_launcher",
"wpn_addon_silencer",
"wpn_addon_silencer",
"wpn_mp443",
"wpn_l96",
"outfit_exo_m1",
"wpn_vintorez_m1",
"wpn_val",
"wpn_colt1911",
"wpn_sig220_m1",
"wpn_python",
"wpn_python_gold",
"wpn_toz34",
"wpn_spas12_m1",
"wpn_knife"
}
local index = 1
function actor_binder:update(delta)
object_binder.update(self, delta)
if index <= #spawn then
get_console():execute( "giving_"..spawn[ index ] )
alife():create( spawn[ index ], vector(), 1, 1, db.actor:id() )
index = index + 1
end
Lets see if this works
- Никто не любит долго подпись ...
Мои Yчeбники: http://tinyurl.com/ct66avh
*My tutorials
Дожить до забыть...
"Не заключенных, Никакого милосердия!"
Изменения:
- MISERY Co-dev
- http://www.moddb.com/mods/stalker-misery/
- My mods:
- http://www.moddb.com/mods/stalker-nameless
- http://www.moddb.com/mods/photo-realistic-zone-2
- http://www.moddb.com/mods/stalker-particle-paradise
- http://www.moddb.com/mods/stalker-particle-paradise-3
- Modding Group: True zone© {{PROJECTS}} - Head
- http://www.moddb.com/company/true-zone
"Im not a noob, im a retard, there's a difference!" - Jamie1992
"Modding...Not cheating, just surviving" - oblakoder
Oh the irony...
|
16:20:18 25 January 2015 |
|
LoNer1
Настоящий Cталкер, Русская Версия (Resident)
 On forum: 10/23/2009
 Message edited by: LoNer1 01/25/2015 16:26:44
Messages: 1890
|
So this is what I get ... not exactly what I expected:
http://pastebin.com/ay7gLiB5
The error being:
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: ...adow of chernobyl\gamedata\scripts\xr_wounded.script:460: attempt to index field '?' (a nil value)
stack trace:
I saw I put actor:update(delta) in twice, fixed that, loaded it up and bam:
! Unknown command: giving_wpn_ak12
! Invalid ogg-comment version, file: c:\program files (x86)\thq\s.t.a.l.k.e.r. - shadow of chernobyl\gamedata\sounds\weapons\ak12\ak12_reload.ogg
! Unknown command: giving_wpn_ak74
! Unknown command: giving_wpn_ak74u
FATAL ERROR
[error]Expression : error handler is invoked!
[error]Function : invalid_parameter_handler
[error]File : xrDebugNew.cpp
[error]Line : 804
[error]Description :
stack trace:
0023:6C0D1434 xrCore.dll, xrDebug::_initialize()
0023:6BFF06D1 MSVCR120.dll
0023:6C0CF8E4 xrCore.dll, CInifile::r_float()

- Никто не любит долго подпись ...
Мои Yчeбники: http://tinyurl.com/ct66avh
*My tutorials
Дожить до забыть...
"Не заключенных, Никакого милосердия!"
Изменения:
- MISERY Co-dev
- http://www.moddb.com/mods/stalker-misery/
- My mods:
- http://www.moddb.com/mods/stalker-nameless
- http://www.moddb.com/mods/photo-realistic-zone-2
- http://www.moddb.com/mods/stalker-particle-paradise
- http://www.moddb.com/mods/stalker-particle-paradise-3
- Modding Group: True zone© {{PROJECTS}} - Head
- http://www.moddb.com/company/true-zone
"Im not a noob, im a retard, there's a difference!" - Jamie1992
"Modding...Not cheating, just surviving" - oblakoder
Oh the irony...
|
|
1 | All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |