Sandbox+ for SRTT

Sandbox+ alpha .43 released! See OP for download.

IMPORTANT! There are two additional files that need to be copied to your srtt install folder that add the new time of day settings! (default_district.xtbl and default_global.xtbl)

Added 2 new time of day commands:
R + DELETE = Set to Mars time of day (make sure to activate Clear Skies cheat)
R + END = Set to Virtual Reality time of day (make sure to activate Clear Skies cheat)

* NOTE: You will need to activate the Clear Skies cheat since both of these new time of day entries will only work correctly with that particular weather condition and no other. Also, by deactivating the time of day cycle (E + END) it will remain on this time of day indefinitely (until you start a mission or load a game.)
 
I have a question, would it be possible to toggle mission-only soundtracks, for instance Genki's SERC, "Learning Computer" mission, "Gangstas in Space" mission etc.?
 
I have a question, would it be possible to toggle mission-only soundtracks, for instance Genki's SERC, "Learning Computer" mission, "Gangstas in Space" mission etc.?

Unfortunately not. I've been trying for months now to access mission music outside the mission with no luck.
 
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....
 
I was helping BadMadScientist with the concept of threads and using them to create a toggle that created a looping flame effect at the player's feet.
http://www.saintsrowmods.com/forum/...ing-effect-on-character.1120/page-2#post-9349

There is an udpated Sandbox+ sr3_city.lua attached that has this effect tied to R+PGUP as an example if anyone wants to play with it. This will definitely be tweaked and coming to a future update of Sandbox+ with a cycle of multiple effects to attach, but I wanted to give a head's up if anyone was curious about it.
anybody get this flame effect around the player to work? not working for me
 
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.
 
I actually got it to work! :D

I ended up inserting in new TOD slices which get skipped over during the cycle and then created the key combos to manually set that particular time. The neat thing is that you can select the new tod and then disable the cycle and it will stay that way as long as you want.

So you added text in the file? If so, congrats on that modding-breakthrough! Any chance you could add the times from S***face's Alternate Times of Day mod (preferably the 2nd version because of the unique "atmospheres", but whatever works for you)?
 
So you added text in the file? If so, congrats on that modding-breakthrough! Any chance you could add the times from S***face's Alternate Times of Day mod (preferably the 2nd version because of the unique "atmospheres", but whatever works for you)?

Yes, that can be done. See my last post just a moment ago. It's a lot of work though, so maybe someone can step up and add all those in using my last post as a guide.

EDIT:
Now that the Horror Pack is out, the number one priority is getting flame effects attached to the players head to use with the skull mask. :)
 
thanks, got the flames working. what skull mask tho? didn't know there was one
edit: hmm, STEAM doesn't show a Horror Pack but looks like i can buy it from a place called Green Man Gaming. never heard of them. they kosher? if i buy it from them, it gets loaded into my STEAM game?

any chance making the super powers running, knocking cars outta the way, thing...to work on fences and props? like crash thru a fence or dislodge mailboxes, ect?
 
thanks, got the flames working. what skull mask tho? didn't know there was one
edit: hmm, STEAM doesn't show a Horror Pack but looks like i can buy it from a place called Green Man Gaming. never heard of them. they kosher? if i buy it from them, it gets loaded into my STEAM game?

any chance making the super powers running, knocking cars outta the way, thing...to work on fences and props? like crash thru a fence or dislodge mailboxes, ect?

Yes, greenman gaming is a legit site. All places selling SRTT dlc will give you a Steam key that you can plug right in to Steam since the game is steamworks.

Not to say that it can't be done, but I don't see any way to enable breaking other stuff like fences.
 
Back
Top