ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Of smart terrains, space restrictors and gulags

« Previous 10 events | 1 ... 5 6 7 8 9 10 11 12 13 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Oldest Up Sort by Ascending
  12:28:21  3 February 2011
profilee-mailreply Message URLTo the Top
gannebamm
has abondened XRay and uses Unity3D now
(Resident)

 

 
On forum: 05/02/2007
Messages: 1077
You try to get the respawner work at generators level? I´ve heard from kany that there are some issues with new levels regarding respawners/smartterrains and AI sometimes. So maybe you should try to get a very simple garbage respawner working and using basic vanilla sections so you could be shure that there arent any issues with these part of the code.
Best would be to duplicate a respawner in garbage and altering its respawn sections to some other vanilla section and look if it works.


@stalkerstein:
smartterrains are places npcs/mutants do jobs.
eg:
bridge post of military is a smartterrain
loner rookie village is a smartterrain
and many many many more (every camp where stalker sit and talk are smartterrains)
  22:55:57  2 February 2011
profilee-mailreply Message URLTo the Top
crucifist
(Senior)
 
On forum: 12/14/2009
Messages: 105
You mean that I haven't understood something Stalkerstein?

gannebamm: I have change the value in the se_respawn.script, to 99. But in the mod that I use, this value was set to 20 ...

Still not working. Even after 10 or 11 days.
  22:42:18  2 February 2011
profilee-mailreply Message URLTo the Top
Stalkerstein
Senior Resident
 

 
On forum: 04/24/2010
Messages: 1975
What does 'smart terrain' mean?
  20:30:16  2 February 2011
profilee-mailreply Message URLTo the Top
gannebamm
has abondened XRay and uses Unity3D now
(Resident)

 

 
On forum: 05/02/2007
Messages: 1077
se_respawn.script ?
look into this table:

local simMaxCount = {
	stalker_novice = 53, --...-- , stalker_master = 10, ...


and higher the master number to 99.

and most likely its better to use a vanilla respawn section like "esc_stalker_1" (not tested!) first.
: esc_
: : means its a escape level respawn section

: _stalker_
: : means its community is stalker

: _1
: : means its the first respawn section of this type
  18:29:30  2 February 2011
profilee-mailreply Message URLTo the Top
crucifist
(Senior)
 
On forum: 12/14/2009
 

Message edited by:
crucifist
02/02/2011 18:34:36
Messages: 105
Here, I have worked a little:

alife_***.ltx:


[9094]
; cse_abstract properties
section_name = respawn
name = gen_stalker_respawn_1
position = -110.88652038574,37.427352905273,-480.15625
direction = -0.0328151993453503,-0.00691708410158753,-0.207787200808525

; cse_alife_object properties
game_vertex_id = 2966
distance = 16.7999992370605
level_vertex_id = 191156
object_flags = 0xffffff3e
custom_data = <<END
[respawn]
respawn_section = gen_stalker_respawn_1,gen_stalker_respawn_2
;max_count = 10
;min_count = 3
max_spawn = 2
idle_spawn = often
END

; cse_shape properties
shapes = shape0
shape0:type = sphere
shape0:offset = 0,0,0
shape0:radius = 1

; cse_alife_space_restrictor properties
restrictor_type = 0

; se_respawn properties



spawn_section.ltx:


[gen_stalker_respawn_1]:stalker
$spawn 				= "respawn\gen_stalker_respawn_1"
character_profile	= sim_stalker_master
spec_rank = master
community = stalker

[gen_stalker_respawn_2]:stalker
$spawn 				= "respawn\gen_stalker_respawn_2"
character_profile	= sim_stalker_master
spec_rank = master
community = stalker



smart_terrain_presets.ltx:


[l13_generators]
monolith		= novice, experienced, veteran, master
pseudo_gigant	= normal, strong
cat 			= normal, strong
giant			= normal, strong
stalker              = novice, experienced, veteran, master




There is a smart terrains near my respawn point filled with stalker. I kill them, use a function to accelerate the speed time, change map and wait during 9 days. No respawn ...

I don't know why ...
  20:11:11  31 January 2011
profilee-mailreply Message URLTo the Top
crucifist
(Senior)
 
On forum: 12/14/2009
Messages: 105
Thanks for those informations! No time to test it tonight I have to work on metasploit! Erf!
  18:07:13  31 January 2011
profilee-mailreply Message URLTo the Top
gannebamm
has abondened XRay and uses Unity3D now
(Resident)

 

 
On forum: 05/02/2007
 

Message edited by:
gannebamm
01/31/2011 18:08:10
Messages: 1077
ok had no time for any infos until yet:
- You dont need to use any kind of space restrictor for a respawner. You could to define his on/offline state and so on, but you dont need them!

- files you need to edit:
all.spawn
maybe spawn_section.ltx
maybe some Npc_profile.xml
maybe smart_terrain_presets.ltx
maybe general_lager.ltx
maybe general_lair.ltx
maybe se_respawn.script

all.spawn stuff:

respawn_section = NAME_respawn_X, 12, NAME_respawn_Y, 9


this defines the sections the respawner will respawn. The numbers after the spawn-IDs describe in which quantitive relation the spawns will be used. So you will get a 12 to 9 relation in numbers between these two sections. Usually its used like: for 3 low rank bandits get me one higher rank bandit ( -> respawn_section = gar_bandit_respawn_1, 3, gar_bandit_respawn_2, 1)


The above will look into:
spawn_section.ltx
To get the info what the section actually is, eg:

[NAME_respawn_X]: stalker
$ spawn = "respawn\NAME_respawn_X"
character_profile =  NAME_character.xml ; without .xml !
spec_rank =  RANKNAME
community =  FACTIONNAME



AFAIK the spec_rank and community info could also be placed into the xml, just like loadout and other stuff.


-- some sidenotes:
A respawner only kicks in if there are any suitable jobs anywhere in the gameworld. So if there arent any smartterrain which offers free jobs, there will be no respawn. End
On the other hand you cant just place a smartie somewhere and think it gets involved into the whole alife system unless you check:
smart_terrain_presets.ltx

In here you will find which smarts are involved in alife system in which levels by which kinds of faction and which state of experience/rank. eg:

;;; aliVe 1.6 !
[l01_escape]

stalker		= novice, experienced
military		= novice, experienced
bandit		= novice, experienced,veteran

boar		=	weak, normal
flesh		=	weak, normal
dog		=	weak, normal, strong
pseudodog	=	weak, normal
rat		=	weak, normal
tushkano		=	weak, normal, strong
cat		=	weak, normal
chimera		=	weak, normal
bloodsucker =	weak


thus will ashure your set smartterrain will get involved into the whole mechanic.

BEWARE if your smart is a general_lager/_lager you should look into:
general_lager.ltx
general_lair.ltx

Furthermore you should get your respawns into se_respawn.script. In there you will find the max amount of respawned mutants/stalkers in the whole gameworld. Beware its called respawned! So if you set the stalker numbers down to 5 per section you will find the zone like usuall. But after some stalkers get killed there wont be more then 5 in the whole world which will get repsawned. - this is the theory and not fully tested!
So in short:
If you get a new respawner, and a new terrain for your npc/mutants maybe its a good idea to higher the sections max amounts, or much more interessting ashure that this section is called in the script at all!

Some specialities for mutant respawning:
You will get your respawn ID not from a ltx and xml but from the sections set into the se_respawn.script. The called sections belong to the mutant.ltx files (eg. m_boar.ltx)

everything clear?


----
what i think you have done wrong:
no settings in
1. se_respawn.script
2. general_lager.ltx
3. general_lair.ltx
4. smart_terrain_presets.ltx
  21:37:01  30 January 2011
profilee-mailreply Message URLTo the Top
crucifist
(Senior)
 
On forum: 12/14/2009
 

Message edited by:
crucifist
01/30/2011 23:30:42
Messages: 105
to Exostalker: I found this:


---QUOTATION---
I just remembered if you have made smart terrains you don't need to add new stalkers... The stalkers will respawn and add themselves via the respawn system. Adding stalkers via all.spawn is only necissary if you want a group of stalkers who are guarenteed to only stay in that place and to be there at the start of the game, like special characters etc.
So if you have smart terrains thye will become populated over time.
---END QUOTATION---



EDIT: I found this (I let you "google translate it" :

http://stalkerin.gameru.net/wiki/index.php/RESPAWN

I have tried to create a spacerestrictor as mentionned in the article, but it doesn't work. In fact I'm not sure to understand the last part of the article ...
  21:10:04  30 January 2011
profilee-mailreply Message URLTo the Top
Kaidonni
First the Zone, then the world!
(Resident)

 

 
On forum: 08/30/2008
Messages: 1072
Sorry, must have confused you with someone else...soopytwist! Ahhh! Darn...
  20:34:03  30 January 2011
profilee-mailreply Message URLTo the Top
crucifist
(Senior)
 
On forum: 12/14/2009
 

Message edited by:
crucifist
01/30/2011 20:35:24
Messages: 105

---QUOTATION---
I saw one of your old threads, Crucifist, about space restrictors, and think I have them down to a T now. It's the shapes that matter most, as if there is more than one, it's likely I'll need to offset the position (0,0,0 means the position of the restrictor is also the middle of the shape).
---END QUOTATION---



Hum, don't you confuse me with someone else? In fact I know nothing about space restrictors for the moment (except what I have just read in this topic).

EDIT: you mean that something is wrong in my alife_****.ltx?
 
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.