Crash "invalid id in npc_info table" in new smart.

destroyer25t
Scavenger
Posts: 1
Joined: 20 Jul 2016, 11:36

Crash "invalid id in npc_info table" in new smart.

Postby destroyer25t » 20 Jul 2016, 11:51

Hey. I'm developing quest addon for CoC and i need create new smart terrains and NPC.

I create new smart in limansk (leave only important rows):
[15154]
section_name = smart_terrain
name = limansk_defended_pda_smart
...
version = 0x7c
script_version = 8
spawn_id = 6227

...
object_flags = 0xffffff3e
...
custom_data = <<END
[smart_terrain]
cfg = scripts\limansk\smart\limansk_defended_pda_smart.ltx
END

...


scripts\limansk\smart\limansk_defended_pda_smart.ltx
[smart_terrain];limansk_defended_pda_smart
squad_id=11
max_population = 3
respawn_idle = 60000
respawn_radius = 200
respawn_params = respawn@lim_defender_pda_smart

[respawn@lim_defender_pda_smart]
spawn_monolith

[spawn_monolith]
spawn_squads = monolith_sim_squad_advanced, monolith_sim_squad_advanced, monolith_sim_squad_veteran
spawn_num = 1

[exclusive]
monolith_unnamed_stalker= limansk\unnamed_monolith.ltx


Create 1 exclusive and 3 normal jobs for the smart (jobs i.e. - limansk_defended_pda_smart_sniper_1_walk, limansk_defended_pda_smart_sniper_1_look in way_l10limansk).

Also i've created new NPC - with new notes in character_desc, spawn_sections and put him in a new squad and this squad put in simulation.ltx and simulation_props...

Aand, after all, when i'm coming on location, i get CRASH with next log:

%s:STATE_Read: invalid id in npc_info table. Check for save corruption or error in smart_terrain job system.
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] e:\games\stalker_coc\gamedata\scripts\smart_terrain.script:1109: attempt to index a nil value
! [SCRIPT ERROR]: e:\games\stalker_coc\gamedata\scripts\smart_terrain.script:1109: attempt to index a nil value

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 193
[error]Description : <no expression>
[error]Arguments : LUA error: e:\games\stalker_coc\gamedata\scripts\smart_terrain.script:1109: attempt to index a nil value


Whyy?? What i'm doing not right? This crash obviously is due with DEBUG mode, because before, when i didn't have [respawn] section, i get similar crash, but with this row:
! [SCRIPT ERROR]: e:\games\stalker_coc\gamedata\scripts\smart_terrain.script:1109: attempt to index field 'already_spawned' (a nil value)

How to fix this problem?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests