ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
LUA: Iterate all lines of a ini-file section

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  13:25:55  28 March 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
Messages: 1519
LUA: Iterate all lines of a ini-file section

Hi, I'm working on a script where I need to read and iterate all lines of a specific section, regardless of their name. More precisely, I need to make a loop over all weather times under the section [sect_default_weather].

I only found line_count, line_exist, and r_line, which all require a specific line name, but since I don't know what lines a weather section contains I cannot use those functions.

Any ideas?
  16:11:32  28 March 2012
profilee-mailreply Message URLTo the Top
olaf1
Senior Resident
 

 
On forum: 01/17/2012
 

Message edited by:
olaf1
03/28/2012 18:00:20
Messages: 240
can you show me the ltx data?

then i hop i can help or an other.

thank you

edit:
or have you lock her,too?
[link]http://sdk.stalker-game.com/en/index.php?title=Ltx_reading_through_script[link]
  17:34:13  28 March 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
Messages: 1519

---QUOTATION---
edit:
ot have you lock her,too?
[link]http://sdk.stalker-game.com/en/index.php?title=Ltx_reading_through_script[link]
---END QUOTATION---



Thanks for that link! I will try that
  19:05:01  28 March 2012
profilee-mailreply Message URLTo the Top
olaf1
Senior Resident
 

 
On forum: 01/17/2012
Messages: 240

---QUOTATION---
edit:
ot have you lock her,too?
[link]http://sdk.stalker-game.com/en/index.php?title=Ltx_reading_through_script[link]

Thanks for that link! I will try that
---END QUOTATION---



and it was the right one?

are you coming now?
  10:24:14  29 March 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
Messages: 1519

---QUOTATION---
and it was the right one?

are you coming now?
---END QUOTATION---



Yes it was, thanks again!
 
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.