ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
All.spawn compiling problem

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  15:38:41  4 June 2013
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
Messages: 169
All.spawn compiling problem

Hi,

Messed around with the all.spawn; managed to get my custom npc to spawn although he spawns in the wrong place no matter what position I give him.

Secondly; attempting to give him a smart terrain makes my compiler refuse to create the new all.spawn due to an array error of some sort.


---QUOTATION---
[870]
; cse_abstract properties
section_name = stalker
name = esc_geopelia666
position = -210.632614135742,-20.050708770752,-142.461120605469
direction = 0.0445535257458687,-0.000645029998850077,0.0144814234226942

; cse_alife_trader_abstract properties
money = 5000
character_profile = esc_geopelia666

; cse_alife_object properties
game_vertex_id = 61
distance = 9.80000019073486
level_vertex_id = 42599
object_flags = 0xffffffbf
custom_data = <<END
[smart_terrains]
esc_lager = true
END

; cse_visual properties
visual_name = actors\dolg\stalker_do_exoskeleton

; cse_alife_creature_abstract properties
g_team = 0
g_squad = 1
g_group = 5
health = 1
dynamic_out_restrictions =
dynamic_in_restrictions =

upd:health = 1
upd:timestamp = 0x617a6b75
upd:creature_flags = 0x6b
upd osition = 1.10000002384186,0.899999976158142,0.5
upd _model = 0
upd _torso = 0,0,0
upd:g_team = 0
upd:g_squad = 1
upd:g_group = 5

; cse_alife_monster_abstract properties

upd:next_game_vertex_id = 65535
upd rev_game_vertex_id = 65535
upd:distance_from_point = 0
upd:distance_to_point = 0

; cse_alife_human_abstract properties
predicate5 = 2,2,0,1,1
predicate4 = 0,2,0,2

; cse_ph_skeleton properties

upd:start_dialog =

; se_stalker properties

---END QUOTATION---



Also could somebody explain why the position has more numbers than it does in rs_Stat's camera position?

Thanks
  21:10:05  4 June 2013
profilee-mailreply Message URLTo the Top
xRatx
Senior Resident
 

 
On forum: 06/18/2008
 

Message edited by:
xRatx
06/04/2013 21:11:50
Messages: 1592
If I remember, this line "upd osition=(x,y,z)" is the key to your problems. You have to put the position coordenates on that line too!
  23:55:00  4 June 2013
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
 

Message edited by:
DutyStalker666
06/05/2013 14:21:40
Messages: 169

---QUOTATION---
If I remember, this line "upd osition=(x,y,z)" is the key to your problems. You have to put the position coordinates on that line too!
---END QUOTATION---



Thanks for that advice! I changed the upd position and voila! My character spawns next to Wolf

Now does anyone know why my compiler refuses to work when I attempt to add a smart terrain to my newly added npc? I increased esc_lager's capacity by one so he should be able to fit in... I believe esc_lager is the rookie camp in Cordon...

Thanks again

UPDATE:

I set this in my character in all.spawn:


---QUOTATION---
esc_lager = {-agroprom_military_case_have -esc_fanat_spawn}
---END QUOTATION---



And the npc walks into one of the houses and stares at a wall... Wall staring contest
Anyways my only concern is what will happen when I get the military case from the military outpost... I hope I haven't broken the game/storyline haha..
  23:55:49  5 June 2013
profilee-mailreply Message URLTo the Top
xRatx
Senior Resident
 

 
On forum: 06/18/2008
Messages: 1592
As soon you get the Military Case from Agroprom, your NPC will leave the esc_lager and when Fanatic spawns he will leave the esc_lager too.

Your condition doesn't make sence to me since he will leave before you meet esc_fanatic_spawn infoportion.
  00:07:35  6 June 2013
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
Messages: 169

---QUOTATION---
As soon you get the Military Case from Agroprom, your NPC will leave the esc_lager and when Fanatic spawns he will leave the esc_lager too.

Your condition doesn't make sence to me since he will leave before you meet esc_fanatic_spawn infoportion.
---END QUOTATION---



I made a new smart terrain. He stays there with the help of a logic.ltx
[link]http://www.moddb.com/mods/fort-builder/videos/messing-around-with-logicallspawn#imagebox[/link]

Best thing is... He won't disappear from the game or from his new smart terrain. I also managed to get another Npc patrol a custom smar terrain. Quite interesting Thanks for the help xratx

p.s.
---QUOTATION---
Your condition doesn't make sence to me since he will leave before you meet esc_fanatic_spawn infoportion.
---END QUOTATION---



He stayed in the esc_lager when I used that ^
Maybe because I used a logic which put him into esc_lager too?

Thanks for the help ^_^
 
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-2020 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.