ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Info portions

1 2 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  04:49:45  22 June 2012
profilee-mailreply Message URLTo the Top
Steelyglint
Senior Resident
 

 
On forum: 06/06/2009
Messages: 5171
Info portions

Can someone please tell me how to give myself an info portion?

.
  13:20:25  22 June 2012
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
I think db.actor:give_info_portion("my_info" ) but its been a while
  15:36:27  22 June 2012
profilee-mailreply Message URLTo the Top
Steelyglint
Senior Resident
 

 
On forum: 06/06/2009
Messages: 5171
Hmmm. But what do I do with that information?

And how do I target a specific info portion and trigger it?

I don't mind being led through it like a serious dimwit - in fact I think that's exactly what I need.

.
  16:17:09  22 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/22/2012 16:18:13
Messages: 1070

---QUOTATION---
Hmmm. But what do I do with that information?

And how do I target a specific info portion and trigger it?

I don't mind being led through it like a serious dimwit - in fact I think that's exactly what I need.

.
---END QUOTATION---




xr_conditions.script:


---QUOTATION---


function this_is_the_name_of_my_new_info()
db.actor:give_info_portion("this_is_the_name_of_my_new_info"
end


---END QUOTATION---



info_portions.xml:


---QUOTATION---


<info_portion id="this_is_the_name_of_my_new_info">
</info_portion>


---END QUOTATION---



Make a new space restrictor (use this coordenates, it's ok):


---QUOTATION---


[99999]
; cse_abstract properties
section_name = space_restrictor
name = this_is_my_new_restrictor
position = -249.904190063477,-24.7999992370605,-134.479705810547
direction = -0.0772645771503448,1.9053154609594e-009,2.46841782569618e-008

; cse_alife_object properties
game_vertex_id = 7
distance = 0
level_vertex_id = 10136
object_flags = 0xffffff3e
custom_data = <<END

[logic]
cfg = scripts\mod\this_is_my_new_restrictor.ltx
END

; cse_shape properties
shapes = shape0
shape0:type = sphere
shape0 ffset = 0,0,0
shape0:radius = 1.51119327545166

; cse_alife_space_restrictor properties
restrictor_type = 3




---END QUOTATION---




Now create a folder with the name 'mod' inside of config folder:

Inside of the 'mod' folder create a new .ltx file with the name... 'this_is_my_new_restrictor.ltx'

In that new file put this:


---QUOTATION---


[logic]
active = sr_idle@wait

[sr_idle@wait]
on_actor_inside = nil %+this_is_the_name_of_my_new_info%


---END QUOTATION---



Done, you're welcome... Aha.
  02:05:02  23 June 2012
profilee-mailreply Message URLTo the Top
Steelyglint
Senior Resident
 

 
On forum: 06/06/2009
Messages: 5171
I've been staring at the last post, on and off, for the last several hours. I'm starting to get the idea of how to go about it.

But now I stumble because I have no idea of the 'name' of the info portion I need to give myself. And it is somewhere in the biggest and most complicated 'mod' I've tried so far.

I'd ask one of the mod authors, but I don't think any of them speak English and I can only just count to 2 in Russian.

.
  04:46:31  23 June 2012
profilee-mailreply Message URLTo the Top
Nuor
Senior Resident
 

 
On forum: 03/10/2009
Messages: 735
I'll admit to being slightly confused. What purpose is the info_portion supposed to serve. Do you want to create a new info_portion or just want to control a preexisting info_portion? As has been mentioned a simple line of script can give or disable the info_portion. You need to state what event you need to register.

Insanelazerez pretty much covered one basic method.
1.Define the info_portion (or use preexisting one).
2.Create a function to assign/disable the info_portion.
3.Create a method to trigger the function. In that case a space restrictor.
other methods might be an finding or using an object.
  05:17:12  23 June 2012
profilee-mailreply Message URLTo the Top
Steelyglint
Senior Resident
 

 
On forum: 06/06/2009
Messages: 5171
It is a task in Narodnaya Solyanka that has fouled up and I want to complete it.

It involves taking out the occupants of a bandit base which, as you arrive, is attacked by Monolith. You have to kill the bandit leader in order to complete the task, but a Monolithian got him first.

If I can give myself the info portion that says I killed him he's still just as dead and my task list is cleared of that job, allowing me to move on to other tasks from the same employer.

I am only assuming that it is an info portion that I need, but with NS being Russian the names are not entirely clear to a non-Russian, so finding the right one is a bit tricky.

.
  06:19:41  23 June 2012
profilee-mailreply Message URLTo the Top
Nuor
Senior Resident
 

 
On forum: 03/10/2009
 

Message edited by:
Nuor
06/23/2012 6:21:09
Messages: 735
Identify the info_portion, That might take some work. Then just add a version of Vintar example code using the correct info_portion.


if actor and not has_alife_info("my_info_portion") then
	db.actor:give_info_portion("my_info_portion")
end 



Just have it execute on map load.
In db.script inside add_actor(obj) function is one place.
  09:14:08  23 June 2012
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
Look in the file config\gameplay\tasks_"whatever_level_it_is_on".xml
find the task "kill the bandits" maybe google translate will be your friend here.
Look at the last objective and check the <infoportion_complete> tag or <function_complete>.
This is assuming it is done via xml. If it is an automatic side task then it may be very difficult indeed. You may need to kill all the members of the gulag or even check their gulag logic to see if they have "on_death" info
  09:34:05  23 June 2012
profilee-mailreply Message URLTo the Top
Daemonion
All About Audio
(Resident)

 

 
On forum: 09/27/2011
Messages: 567
Have you checked the logic section in the official SDK wiki?

There might be some good examples for you in there.
 
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.