ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
How to make more zombies spawn after a blowout or repalce blind dogs with zombies

« Previous 10 events | 1 2 | All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  17:18:40  8 December 2009
profilee-mailreply Message URLTo the Top
matsuda_sempai
(Senior)
 
On forum: 08/07/2009
Messages: 53
okay I changed the script to look like this :

for i = 1, 65534 do
local obj = alife() bject(i)
if obj and string.find(obj:section(), "dog" then
alife():create("zombie_normal", obj osition(), db.actor:level_vertex_id(), db.actor:game_vertex_id())
alife():release(obj:id(), true)
end
end


and then I put it in this section of script:

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

I put the script here and I looked it the console and it said I have a fatal error.

-- DEBUG slowdown
-- slowdown.update()

local time = time_global()

game_stats.update (delta, self.object)

-- $DreamMod àïäåéò ñõåìû ñíà
if sleep_manager.is_sleep_active() and xr_conditions.actor_dead() then
xr_logic.issue_event(db.actor, db.storage[db.actor:id()]["ar_sleep"], "update"
end

-- àïäåéò ïîãîäû
  17:27:27  8 December 2009
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
What is the fatal error?
  16:06:44  12 December 2009
profilee-mailreply Message URLTo the Top
matsuda_sempai
(Senior)
 
On forum: 08/07/2009
Messages: 53
here it is:

FATAL ERROR

[error] Expression : fatal error
[error] function : CSriptEngine::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:268: action' (a nil vaule)

--then I did this
for i = 1, 65534 do
local obj = alife() bject(i)
if obj and string.find(obj:section(), "dog" then
alife():create("zombie_normal", obj osition(), db.actor:level_vertex_id(), db.actor:game_vertex_id())
alife():release(obj:id(), true)
end
end

and I had an error that when I talked to someone I ctd
  07:51:33  13 December 2009
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
Did the dogs change? You need to put the code further down the function underneath where it says self.object.radiation.
  17:34:30  14 December 2009
profilee-mailreply Message URLTo the Top
matsuda_sempai
(Senior)
 
On forum: 08/07/2009
Messages: 53
okay I don't have any error messages but the dogs don't change.
Does this script change only spawned dogs or is it supposed to change all the dogs?
  18:47:44  14 December 2009
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
Try change alife(): object(i) to level.object_by_id(i)
  22:23:06  14 December 2009
profilee-mailreply Message URLTo the Top
ket
Senior Resident
 

 
On forum: 01/13/2006
Messages: 1432
mmmmmm.... zombeh zombie...... BRAAAAAAAAAAAAAAINS
  19:21:35  25 June 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
 

Message edited by:
insanelazarez
06/25/2012 19:24:23
Messages: 1070

---QUOTATION---
mmmmmm.... zombeh zombie...... BRAAAAAAAAAAAAAAINS
---END QUOTATION---





Some section error, i'm using a 'boar_strong' section... but it doesn't work:


[link]

http://s693.photobucket.com/albums/vv297/insanelazarez/?action=view¤t=bind_stalker.jpg

[/link]

Error:

[link]

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


stack trace:


[/link]


Any idea how to fix it?

Thanks in advance.
 
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.