anybody get this flame effect around the player to work? not working for me
I've gotten confirmation from a few people that it's working. There was a problem with 0.42 which is fixed 0.43. Make sure you actually have the latest version.
Thats actually really nice about the times of day thing, as i've been adding in different default district.xtbl manually back & forth to use the settings is a previously posted alt times of day mod.... (they used settings similar to the times of day that u get in certain missions, like belgian problem's pink morning & return to steelport's purple night time, if they can all be put consolidated into 1 default district & then changed via keystroke, that would be great, how would i go about adding those times? there was a second version of the mod which had times of day similar to nighttime from clones, & morning from stag Film etc....
It's a bit involved. The first thing you need to do is look at the tod_override for that mission and see which of the 4 default time slices it is based on. Let's use m24 Gangstas in Space as an example:
..\sr3_city_0.vpp_pc\m24.str2_pc\m24_tod_override.xtbl
The <time> tag in the file is 14.5. (which would be 2:30pm)
Now also open default_global.xtbl from the mod and scroll to the bottom where you'll see the existing times:
Code:
<tod_segments>
<segment>230</segment> --<- added this new time slice for deckers.die
<segment>500</segment>
<segment>930</segment>
<segment>1430</segment>
<segment>1600</segment> --<- added this new time slice for mars for Gangstas in Space
<segment>2100</segment>
</tod_segments>
Basically you want to add in the new time slice in the same section:
*230 = vr
500 = night
930 = morning
1430 = afternoon
* 1600 = mars
2100 = evening
1600 (4pm) I made up that number and added it since it still falls in the afternoon and all the lighting will be correct. The reason is that the tod_override file uses the base settings from 14.5 (the start of afternoon) and then only changes certain values. Since 1600 is still afternoon it will correctly use all the base values from the default 14.5.
NOTE: You'll notice that deckers.die virtual reality is set to 230 (2.5) just like it is in the override itself since that time in the normal cycle wasn't actually used. I could actually have have used any value from the range of 2130 to 430 since it would have fallen in the "evening".
Now open up default_districts.xtbl and add new entries for your new time slice that are defined in the override file. Let's do the first one in m24_tod_override.xtbl:
<fog_atmosphere_scale>0.002</fog_atmosphere_scale>
Find the <fog_atmosphere_scale> section in default_districts and add a new key for:
Code:
<key>
<time>32</time>
<value>0.002</value>
</key>
Always double your <time> value and divide by 100 from whatever you set in default_global.xtbl. For example, our new one was 1600 so we use a key of 32.
The rest is just carefully creating new 32 keys in default_districsts.xtbl for each of the override settings you come across in the mission override file. There are a couple near the end that will need new 32 keys in default_global.xtbl as well.
The last step is creating a new command under one of the shortcut keys in sr3_city.lua to actually set the time of day to your new one. The current mars one I setup looks like this:
Code:
elseif player_action_is_pressed(B_PGDWN) and not RELOAD_PUSHED then
set_time_of_day(16, 00)
delay(1.0)
set_time_of_day(16, 00)
sandboxplus_message("Set Mars time of day - Remember to activate Clear Skies cheat")
RELOAD_PUSHED = true
You'll notice that it sets the tod twice with a 1 second delay in between. The reason I did that is because sometimes the setting doesn't take correctly on the first try and it needs to be set again. No idea why, but this method works.