----------------------------------------------------
-----S.T.A.L.K.E.R. *.spawn compiler/decompiler-----
----------------------------------------------------

: 1.32
  : 22  2012

:  acdc      all.spawn/level.spawn  
 ,   1265. 

 :
	-   , ,    ,   xrCore build 1265.
	-    (    )
	-     .
	-  -   .
	- all.spawn  level.spawn'  level.game'

   :
	-,   (all.spawn, level.spawn)
	-game.graph (   all.spawn). 
 all.spawn   3120,    - game.graph   (   ).
	- configs (    acdc   unknown section)

      stkutils   .

:
 all.spawn ( level.spawn)  game.graph    ,   ( ),
 ,  .

   :    (<>)   .    ,
    ..,   ,    .    ([])
  .    - .

----------------------------------------------------
----------------[ ]-----------------
----------------------------------------------------

:  universal_acdc.pl -d <spawn_file> [common_options]

-d <spawn_file> -   .
common_options -  .    .

----------------------------------------------------
----------------[ ]------------------
----------------------------------------------------

:  universal_acdc.pl -compile <dir> [-idx <index_file>] [-f <flag1,flag2,...>] [common_options]

-compile  <dir> - ,     .     , <dir>  .
common_options -  .    .
-idx <index_file> -      ltx    :

[13_box_wood_01_0021]		; - "_"_"_"
id = 2907			;id 
story_id = -1			;story_id 

       .
   -idx    ,      acdc (spawn_ids).
  ?              .
     id         ,
   ,   id    .

----------------------------------------------------
------------[ ]----------------
----------------------------------------------------

:  universal_acdc.pl -convert <file> -version <new_version> [-ini <file>] [common_options]

-convert <file> - ,   .     (*.spawn) , 
   (alife_***.ltx). !     -       ,
              acdc 
 levels  .    ,        
 level.gct.

-version <new_version> -   .    ,   spawn_versions.txt

-ini -     (convert.ini).   ,  convert.ini,  
  .
common_options -  .    .

       convert.ini. 
    : [exclude]  [change].   exclude    ,
      . :

[exclude]
sections = m_trader, m_car, flesh_weak

  .     (stalker_zombied, stalker_sakharov  ..)
  ,   *. : stalker*.       
,      stalker.

  change    ,    -   . 
:

[change]
sections = inventory_box

      ,     change. :

[inventory_box]			//section_name  
add:custom_data = PREVED	// add    ,    
add:game_vertex_id = 10000	//  (  - ,   -   )
rep:level_vertex_id = 0		// rep   ,     -

 .     ,      500  -  
      :

[exclude]

[change]
sections = stalker

[stalker]	
add:game_vertex_id = 500
rep:visual_name = actors/soldier/soldier_antigas.ogf

----------------------------------------------------
----------[  ]---------------
----------------------------------------------------

:  acdc -parse <file> -old <old_gvid0> -new <new_gvid0> [-way] [common_options]

-parse <file> -  ltx,    .
-old <old_gvid0> -   game_vertex_id .
-new <new_gvid0> -   game_vertex_id .
-way -    way_***.ltx    .

: acdc -parse alife_l01_escape.ltx -old 0 -new 934

----------------------------------------------------
-------[ all.spawn  level.spawn]----------
----------------------------------------------------

:  acdc -split <file> [-use_graph] [-way] [common_options]

-split <file> -  .   -  level.spawn   ,
  .      levels       -  ,
 .  levels      acdc (       -  ).
-use_graph -  game.graph   -.  -   level.spawn,  - 
   - (  - ).
-way -     level.game

----------------------------------------------------
------------------[ ]---------------------
----------------------------------------------------

-out <file> -   /  .      :
	 decompile, parse -   
	 compile, convert -  .
	 split -  levels,   level.spawn.

-scan <scan_dir> -     .      .
-g <graph_dir> -     game.graph.   compile  parse,  
    , , build 3120.
-level -    level.spawn. 
-af -  \      (section2.bin).
-nofatal -     ,   .
-sort <type> -   alife-.   : simple -   name  ,
complex -    section_name,   name  .

======================================

 acdc   'unknown clsid ... for section...',  ,
       /   class_registrator.script.
     acdc,     .
      (http://www.amk-team.ru/forum/index.php?showuser=11696),
,   ,    class_registrator.script,  
   clsids.ini .     :

clsid = __

:
ZS_ELECT  = se_zone_anom

======================================

    .  ,    -use_graph,     -use,  -u.
           . -compile    -c, 
    ,   : -compile  -convert.        compile
 : -com

======================================

!      25xx       
sections.ini    .

======================================
 :
1.32:
	[!] guids.ltx      -idx
	[+]   way-  
	[+]    way-  gvid  
	[+]   alife-
1.31:
	[!]    
	[!]     clsids.ini,       
	[!]       
	[i]        
	[+]      
	[+]       -
1.30:
	[i]      -    
	[i]    level.spawn  
1.29:
	[i]    level.spawn 
	[i]     
	[i]   
1.28:
	[i]     -way   split.
	[i]      .
	[i]      se-.
	[i]    , -      .
	[+]      .

1.27:
	[i]   ,       .
	[i]      .
	[+]         .   
,   .
	[+]     .
	[+]   -ini   

1.26:
	[i]    .
	[+]         (    ).
	[+] -   ,  .

1.25:
	[i]     spawned_obj  .
	[+]     version  script_version       
  .     .

1.24:
	[i]  /   2571.
	[i]   guids.ltx
	[i]  

1.23b:
	[+]   "state data left"    , 
   acdccop.
	[i]   split, -     level.spawn
	[i]   /  se_stalker/se_monster
	[i]  

1.22b:
	[+]   -nofatal

1.21b:
	[i]     .
	[i]       .

1.2b:
	[+]    .	
	[+]     clsid ->    
   (clsids.ini).
	[+]     clsid     
   clsid,     ,  .

1.1b:
	[+]   -,    
  25.
	[+]     version    .
	[i]     spawn_id    .

1.0b:
	[+]   ,      .
	[i]    .
	[+]    ,    .
================================================================
:
ACDC   - bardak,   - bardak, Kolmogor.   - K.D.
/    ,   .