ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
rx_shoot_enable.script

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  21:02:14  23 May 2012
profilee-mailreply Message URLTo the Top
r_populik
Senior Resident
 

 
On forum: 11/06/2011
Messages: 213
rx_shoot_enable.script

This script is from DMX mod. It works on 1.0004 patch but doesn't on 1.0005. I got this:


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: ...ow of chernobyl\gamedata\scripts\bind_stalker.script:233: attempt to call field 'shoot_effect' (a nil value)
 

stack trace: 



This is the script:
http://www.sendspace.com/file/wntmly

And this is what it adds to bind_stalker.script:


function actor_binder:update(delta)
	rx_shoot_enable.shoot_effect()
	object_binder.update(self, delta)



How to make it working with 1.0005 ?
  02:53:44  24 May 2012
profilee-mailreply Message URLTo the Top
bamah
Senior Resident
 

 
On forum: 02/10/2008
 

Message edited by:
bamah
05/24/2012 4:38:16
Messages: 911
shoot effect!!!!!

You need to post the misc\\rx_shoot_enable.ltx
and rx_utils.script so I can look/use them to complete the rx addon to see!
But, my guess is the shoot effect is in the rx_shoot_enable.ltx that you possibly did not merge.
Differences from 1.0004 and 1.0005 with the r stuff is only in xr_motivator.script
B

edit: too much Sam Adams

In the rx_shoot_enable.script
change this to
local shoot_enable = rx_utils.read_from_ini(dh_ini,"main","shoot_enable",true,0)
this
local shoot_enable = true -- rx_utils.read_from_ini(dh_ini,"main","shoot_enable",true,0)

bind_stalker.script you have correct.

Add the shoot folder to the anims folder for the effects.

Add the rx_shoot_enable.ltx to the misc folder for the settings for the weapons.

Works fine in patch 1.0005
I used ZRP r3 as the test game in 1.0006
  17:37:16  24 May 2012
profilee-mailreply Message URLTo the Top
r_populik
Senior Resident
 

 
On forum: 11/06/2011
 

Message edited by:
r_populik
05/24/2012 20:18:49
Messages: 213

---QUOTATION---
shoot effect!!!!!

You need to post the misc\\rx_shoot_enable.ltx
and rx_utils.script so I can look/use them to complete the rx addon to see!
But, my guess is the shoot effect is in the rx_shoot_enable.ltx that you possibly did not merge.
Differences from 1.0004 and 1.0005 with the r stuff is only in xr_motivator.script
B

edit: too much Sam Adams

In the rx_shoot_enable.script
change this to
local shoot_enable = rx_utils.read_from_ini(dh_ini,"main","shoot_enable",true,0)
this
local shoot_enable = true -- rx_utils.read_from_ini(dh_ini,"main","shoot_enable",true,0)

bind_stalker.script you have correct.

Add the shoot folder to the anims folder for the effects.

Add the rx_shoot_enable.ltx to the misc folder for the settings for the weapons.

Works fine in patch 1.0005
I used ZRP r3 as the test game in 1.0006
---END QUOTATION---



I've edited rx_shoot_enable.script and got another bug:


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: ...of chernobyl\gamedata\scripts\rx_shoot_enable.script:73: attempt to index global 'rx_utils' (a nil value)



EDIT
I added rx_utils.script and it works now.
EDIT 2
It seems there was no need to change rx_shoot_enable.script at all. Just have to add rx_utils.script.
 
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-2022 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.