ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Error handler is invoked?

Posted by/on
Question/AnswerMake Oldest Up Sort by Ascending
  18:33:40  25 January 2015
profilee-mailreply Message URLTo the Top
LoNer1
Настоящий Cталкер, Русская Версия
(Resident)

 

 
On forum: 10/23/2009
Messages: 1890

---QUOTATION---
Well, there you go then; something wrong with the AKS-74U, which would make sense with the military guys causing problems. Look over the config carefully to make sure nothing's missing or malformed.
---END QUOTATION---



Holy hell

rpm = ;680


Goddamnit. The smallest error. Thank you TKGP! You're a godsent.
  17:28:59  25 January 2015
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
Messages: 454
Well, there you go then; something wrong with the AKS-74U, which would make sense with the military guys causing problems. Look over the config carefully to make sure nothing's missing or malformed.
  16:20:18  25 January 2015
profilee-mailreply Message URLTo the Top
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()

  16:11:44  25 January 2015
profilee-mailreply Message URLTo the Top
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
  22:33:24  24 January 2015
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
 

Message edited by:
TKGP
01/24/2015 22:34:18
Messages: 454
Just search for 'function relocate_item_section' in dialogs.script. In retrospect, since it's crashing when the military comes online you'll probably want to go ahead and do them one by one to nail down the problem. Something like this in bind_stalker should do it. Search for actor_binder:update and edit accordingly.

local spawn = {
	"wpn_ak12",
	"wpn_ak74",
	"wpn_ak74u",
	--etc
	}
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

  22:18:23  24 January 2015
profilee-mailreply Message URLTo the Top
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.
  22:09:16  24 January 2015
profilee-mailreply Message URLTo the Top
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.
  21:48:11  24 January 2015
profilee-mailreply Message URLTo the Top
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.
 
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.: Shadow of Chernobyl Forum » Mod discussion
 

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


 

Copyright © 1995-2020 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.