ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
I need a good scripter please...

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  23:38:51  29 March 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
 

Message edited by:
insanelazarez
03/29/2012 23:40:21
Messages: 1070
I need a good scripter please...


---QUOTATION---


FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\stalker\patch_1_0004\xr_3da\xrGame\script_engine.cpp
[error]Line : 73
[error]Description : <no expression>
[error]Arguments : LUA error: ... chernobyl v1.0004\gamedata\scripts\xr_danger.script:109: attempt to index field 'ignore_types' (a nil value)


stack trace:


FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\stalker\patch_1_0004\xr_3da\xrGame\script_engine.cpp
[error]Line : 73
[error]Description : <no expression>
[error]Arguments : LUA error: ... chernobyl v1.0004\gamedata\scripts\xr_danger.script:116: attempt to index field 'ignore_types' (a nil value)


stack trace:



---END QUOTATION---



Hi guys, i working a mini-mod where several npcs are assuming key points in pripyat. Everything seems to work ok but i have this multiple fatal error (no crash). There's a group of 4 or 5 errors like the ones i pasted above. It's related with 'ignore_types' , sound, grenade, etc.

I like to think i'm creating good things with stalker logic, but the fact is the errors are there. Months ago i found a code in a russian site, where we could add a trick in 'xr_danger.script', to save the npc name in the game's log. The problem: i don't have the modded script anymore.

So, it's almost impossible to expect one of you guys to have that specific code. But for a good scripter this is easy:

Objective - Print the npc name in log, if any of the following sections are called by some npc:

xr_danger:


---QUOTATION---


if self.a.ignore_types["grenade"] == true then

if self.a.ignore_types["corpse"] == true then

if self.a.ignore_types["hit"] == true then

if self.a.ignore_types["sound"] == true then


---END QUOTATION---



So, any idea? Maybe Lijestina, Natvac, Barin, Vintar? I 'm really bad with scripts.

That's it. Thanks in advance.
  01:11:12  30 March 2012
profilee-mailreply Message URLTo the Top
castl
(Novice)
 
On forum: 03/27/2009
Messages: 41
insanelazarez

I think that bug the developers try to replace the line
if self.a.

In the following lines...


local st = db.storage [self.object:id ()]
if st and st.danger.
  23:01:11  30 March 2012
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
Get_console():execute( "ignore type grenade called by - " .. Npc:name() )
  01:01:50  31 March 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070

---QUOTATION---
Get_console():execute( "ignore type grenade called by - " .. Npc:name() )
---END QUOTATION---




Vintar you mean object name, right?

Get_console():execute( "ignore type grenade called by - " ..object:name() )
  01:18:42  31 March 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070
Vintar, the game doesn't crash but gives a console error:


---QUOTATION---


Expression : fatal error
Function : CScriptEngine::lua_error
File : E:\stalker\patch_1_0004\xr_3da\xrGame\script_engine.cpp
Line : 73
Description : <no expression>
Arguments : LUA error: ... chernobyl v1.0004\gamedata\scripts\xr_danger.script:121: attempt to index global 'npc' (a nil value)




---END QUOTATION---




The code:


---QUOTATION---


if self.a.ignore_types["sound"] == true then
printf("DANGER [%s] [FALSE] ignore sound", self.object:name())
get_console():execute( "IGNORE TYPE 'sound' called by - " .. npc:name() )
return false
end


---END QUOTATION---



We are very close, but for now doesn't work.
  07:16:12  31 March 2012
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
yeah sorry , use this :
Get_console():execute("ignore type grenade called by - " .. self.object:name())

  14:32:55  31 March 2012
profilee-mailreply Message URLTo the Top
dezodor
level designer
(Resident)

 

 
On forum: 04/08/2007
Messages: 3803
vintaricq
 
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-2021 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.