ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Changing weather settings by script

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  13:03:17  16 January 2015
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
 

Message edited by:
Meltac
01/16/2015 13:03:39
Messages: 1519
Changing weather settings by script

Hey people

Does anybody know if there is a way to control (change) certain specific weather settings such as the sun color or hemi color by a script?

I don't mean changing the current weather entirely using the level.set_weather command but need a way to change only one or two specific values of the current weather in real-time. Is this possible?
  16:49:09  16 January 2015
profilee-mailreply Message URLTo the Top
SacriPan
Senior Resident
 

 
On forum: 09/20/2009
Messages: 319
Hi Meltac.

I think it's possible to use console commands by script. I tried LURK for testing purposes and it modified my lighting settings using console commands (IIRC).
I think it's done via script, though I don't know if it's done on the fly or at game start, as I never needed to look at that.

Also, I remember that it modified my "user.ltx", so if you're thinking about messing with the player's settings, you might want to save their config first so you can put it back afterwards, because some people might not like losing their precious "user.ltx"

I'll check the mod tonight if you haven't and tell you my findings about this.

++
  17:09:16  16 January 2015
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
Messages: 1519
Thanks for your reply. As far as I know LURK does about the same that I do in Dynamic Shaders to control the dynamic wet surfaces effect, changing certain settings in the user config in order to "activate" a certain shader behavior. Unfortunately it is not possible to change "internal" weather settings using the user.ltx / console commands, that's why I'm asking for an other script way to do such.
  19:21:08  16 January 2015
profilee-mailreply Message URLTo the Top
SacriPan
Senior Resident
 

 
On forum: 09/20/2009
Messages: 319
Correct.

I tried the mod and it alters "basic" variables as "r2_gloss_factor" or "r2_sun_lumscale_hemi", but not the ones you're looking for.

I have no clue then, sorry
  23:32:18  16 January 2015
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
 

Message edited by:
Meltac
01/16/2015 23:32:25
Messages: 1519
Sad, thanks anyway.

Anybody else?
  12:35:13  17 January 2015
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
Messages: 454
You can achieve a more temporary change using weather effects from set_weather_fx instead of set_weather, but that's not much better. All of the engine interface functions are listed in lua_help.script; I've never heard of anyone doing what you want, and a quick search for some relevant keywords in there doesn't turn anything up, so I'd hazard a guess that it's not possible.
If you really want to do it you'll just have to get your hands dirty with the engine source.
  22:03:34  18 January 2015
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
Messages: 1519
I feared that - thanks anyway.
 
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.