A Torch plugin and mod for Space Engineers to better control ores in asteroids.
Code on github.
Server owner configures which ores spawn by default in space and in certain regions of space.
The plugin patches the server-side procedural asteroid generation so that only asteroids with the desired ores spawn.
Because clients are also generating asteroids procedurally, the server tells them of any asteroid that they should delete, and everything stays in sync.
Config is loaded and saved as AsteroidOres.cfg
.
There are 2 main sections:
<AllOres>true</AllOres>
) or not
(<AllOres>false</AllOres>
)<Ores><string>Stone</string></Ores>
)Imagine we want the following:
<AllOres>false</AllOres>
then list no oresPlatinum
<Center>
, <MinRadius>
, <MaxRadius>
and <Height>
to define the
asteroid ring characteristics<AllOres>false</AllOres>
then list all ores except Platinum
<Center>
and <MaxRadius>
to define the spherical field<AllOres>true</AllOres>
so all ores can spawnThe config then looks like this:
<?xml version="1.0" encoding="utf-8"?>
<Config xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- no ores spawn in space, so no asteroids -->
<AllOres>false</AllOres>
<Ores />
<Zones>
<!-- an asteroid ring around planet X:0 Y:0 Z:0, min 130km, max 80km, height 10km, with all ores except Platinum -->
<Zone>
<AllOres>false</AllOres>
<Ores>
<string>Cobalt</string>
<string>Gold</string>
<string>Ice</string>
<string>Iron</string>
<string>Magnesium</string>
<string>Nickel</string>
<string>Stone</string>
<string>Silicon</string>
<string>Silver</string>
<string>Uranium</string>
</Ores>
<Center>
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Center>
<MaxRadius>130000</MaxRadius>
<MinRadius>80000</MinRadius>
<Height>10000</Height>
</Zone>
<!-- an asteroid cluster centered on X:1000000 Y:1000000 Z:1000000 of radius 100km, with all ores -->
<Zone>
<AllOres>true</AllOres>
<Ores />
<Center>
<X>1000000</X>
<Y>1000000</Y>
<Z>1000000</Z>
</Center>
<MaxRadius>100000</MaxRadius>
</Zone>
</Zones>
</Config>
Create a new issue.
Ways to support the author directly