even though this says it requires the beta version of the game, it contains none of the new parts so it should be fine

Ever wanted to establish a colony in sr2, but your efforts have been put on hold until a colony mod comes around? Or maybe youve just given up hope bcs, lets be real, mods arent gonna come to mobile?

Well, wait no longer, because with this pretty big vizzy script, mobile and pc players alike can build large self sufficient colonies just about anywhere, or just send colonists to their slow demise in the Urados system because you only packed 5 tons of cargo for a 10 year journey.

Sooo, what exactly does this script do?
First off, it measures the mass of all fuel tanks with names containing "Cargo" on the craft (yes you can rename fuel tanks), then it takes that mass and divides it up among each of the primary resources, those being Food, Water, and Oxygen.
And dont think you can just cheese the system by just ejecting the cargo tanks at launch, the script checks for changes in the Cargo Tanks' total mass, and adjust the max amount for each resource accordingly.
Then the colony uses those resouces over time at a rate determined by the amount of colonists and some other factors. This depletion is based on the amount of time since resources were last added or depleted, so keep in mind that colonies still use resources when you are not controlling them.

Eventually, the colony will run out of resources, and the colonists will inevitably die. This brings us to the only system of the script I am very much not satisfied with, death. The colonists are dead in the script, and the colony will stop producing and using resources, but my original system of killing the in-game astronauts led to the entire colony being irredeamable, so I removed that system, and now its completely up to the player to take the astronauts out back when the resources run low.

Anyways, to prevent the colonists' inevitable death, you can add in various modules like Algae farms, Oxygenators, and Water Recyclers to help recycle or produce resources. Each of these modules requires power, which can be genorated by solar modules (which, yes, do take into account the distance from the sun), and because solar panels dont genorate power at night, a large battery module is needed for every certain units of power genorated to make the solar modules work.
Now, bcs I dont want the mobile plebs to riot, this script does not use the ansible mod, and as such the only requirments for a module to work is to be within 1 km lateral distance, be above the minimum mass for at least the smallest size (different for every module type), and have the correct craft name, so its up to the user to not make each module a large cube.
Just to clarify, you don't need to put the script in each module, just the central module, putting it in all would just lag out your game
Also, because I dont have endless amounts of time, theres only one module for every resource as of now, each with 3 sizes, and the only way to genorate power is through solar or nuclear.

Also, this does not currently support colony ships as each module MUST be its own seporate craft. Do seporate modules docked together like a station or colony ship work? No, unfortunetly, when crafts dock they merge into one craft, so they don't work as seporate colony modules as of now

And yes, the demo colony shown in the pictures comes with the download, though you will have to rename each module's craft name correctly in flight to get it to work (you can edit the craft names on the map view by clicking the search bar, then the pencil button next to craft names), though the demo colony doesn't generate enough power to power all the modules, so the large algae module (the one the looks like a dome) won't work if all the other modules are on unless you add more power modules.

A note on the addition of the new size, generally the bigger module sizes generate more output per KG, so while the small module will be easier to bring, your sorta getting ripped off.

You can also now activate the activation group 7 to hide the colonial materials thing at the top.

And finally, onto the numbers part, think of this as the colonial handbook:

GENERAL STATS - Each colonist uses 2 KG of oxygen per day, 3 KG of food per day, and 10 KG of water per day. The default population for the script is 3, though you can change it easily as the variable for it is at the top, and if you set a parts AG group to 5 and 6, you can activate AG 6 to add one to the population and AG 5 to remove one. Also, for every 100 KG of cargo, you'll get 15 KG of Oxygen, 20 KG of Food, and 65 KG of Water. The default colonial range is 1 KM, and the cargo tanks are intended to be solid fuel tanks.

ALGAE FARMS -
- Sizes:
- -Small: At least 2,000 KG in mass
- -Medium: At least 10,000 KG in mass
- -Large: At least 25,000 KG in mass
- Must have a name containing "Algae" or "Algea"
- Power Consumption:
- -Small: 1 units
- -Medium: 5 units
- -Large: 20 units
- Water Consumption:
- -Small: 1.5 KG per day
- -Medium: 10 KG per day
- -Large: 50 KG per day
- Food Generation:
- -Small: 1 KG per day
- -Medium: 6 KG per day
- -Large: 30 KG per day

WATER RECYCLER -
- Sizes:
- -Small: 3,000 KG in mass
- -Medium: 15,000 KG in mass
- -Large: 37,500 KG in mass
- Must have a name containing "Water Recycler" or "Recycler"
- Power Consumption:
- -Small: 1 units
- -Medium: 8 units
- -Large: 20 units
- Water Cylcling Output:
- -Small: 6 KG per day
- -Medium: 60 KG per day
- -Large: 300 KG per day
- Cannot produce more water than is used by colony (Obviously)

OXYGENATOR -
- Sizes:
- -Small: 1,000 KG in mass
- -Medium: 5,000 KG in mass
- -Large: 25,000 KG in mass
- Must have a name containing either "Oxygen" or "Oxygenator"
- Power Consumption:
- -Small: 0.5 units
- -Medium: 2 units
- -Large: 10 units
- Algae Consumption:
- -Small: 0.5 KG per day
- -Medium: 3 KG per day
- -Large: 15 KG per day
- Oygen Generation:
- -Small: 1 KG per day
- -Medium: 6 KG per day
- -Large: 30 KG per day

SOLAR -
- Sizes:
- -Small: 500 KG in mass
- -Medium: 1,000 KG in mass
- -Large: 5,000 KG in mass
- Must have a name containing "Solar"
- Generates power based on a linear equation (yes its unrealistic but Im lazy), where something like mercury should be 6-7 units of power, Droo and Luna generate 4 units of power, cylero is 2 units of power, and the outer system (Tydos and Urados) generates no power, so you'll have to use another method to power your colony.

BATTERY -
- Sizes:
- -Small: 2,000 KG in mass
- -Medium: 10,000 KG in mass
- -Large: 25,000 KG in mass
- Must have a name that contains "Battery"
- Power Storage Capacity:
- -Small: 2 units of power
- -Medium: 20 units of power
- -Large: 100 units of power
- For every unit of power generated by solar panels, you'll need *at least that amount of battery storage* (EX: 17 units of power require 1 Medium Battery, 24 units of power requires 2 Medium Batteries).

NUCLEAR REACTORS -
- Sizes:
- -Small: 1,250 KG in mass
- -Medium: 5,000 KG in mass
- -Large: 10,000 KG in mass
- Power Genorated:
- -Small: 1
- -Medium: 4
- -Large: 8
- The ones in the demo colony are inspired by the Kilopower reactors, so maybe look into that for inspiration.

EXTERNAL CARGO -
- No mass requirement
- Uses no power
- Must have a name containing "Cargo" or "Cargo Tank"
- The script assumes that only 80% of the mass is cargo, which is pretty lenient in my opinion. When a cargo module initially connects to the colony, its cargo mass is divided up among the resources and added to the colony resources. It also adds its cargo mass to the max cargo capacity of the colony. This means that if the cargo module disconnects from the colony, the resources it initially added aren't directly removed, but the colony's max capacity is changed accordingly, and any resources above the new max capacity of the colony are removed. Because of this, it's completely reasonable to just have a cargo vessel connect to the colony, refill the resources, and then leave.

Changelog:
- Added new sizes to modules.
- Added nuclear reactors.
- Changed the solar equation to be less forgiving and more realistic, making nuclear reactors more useful.
- AG 7 now hides the resource display.
- Minor tweak to the cargo tank system
- Script now waits 3 seconds at the end of the loop, rather than 5, to compensate for the now significantly longer runtime.

Last but Not Least, My Modification Policy
While the script isn't perfectly organized, and it has a million and one variables flying around, the variables are all initially established at the top, and the script is labeled enough that most people can figure out what part of the script does what, so it shouldn't be impossible for the layman to modify the script and add a module type or something like that in.

Feel free to publish a modified version to the site, but if you do, credit me at the top of the description, bcs this took a truckload of work to make. Also, if you want you can put a link in this post's comments to your modified version and if I like it, I'll make it the canon new version of this script. And with that note, make sure your modifying the newest version, I'll have a link to the newest version at the top.

GENERAL INFO

PERFORMANCE

  • Total Delta V: 0m/s
  • Total Thrust: 900N
  • Engines: 3
  • Wet Mass: 92,097kg
  • Dry Mass: 30,116kg

STAGES

Stage Engines Delta V Thrust Burn Mass

4 Upvotes

Log in in to upvote this post.