Avorion Forum

General => Mods => Topic started by: Laserzwei on January 12, 2019, 07:17:05 PM

Title: [MOD] Simple Asteroid Respawner
Post by: Laserzwei on January 12, 2019, 07:17:05 PM
This is a simple asteroid respawn script. It's based on vanilla's respawn file, but extends it for a use in actively loaded sectors.
It turns barren asteroid fields into nice mining places:
Spoiler: show

(https://i.imgur.com/2S89RJ4.jpg)

Video of an 360x sped up process:
Spoiler: show



It is not required to set the variable
numRichAsteroids
seen at the very beginning. I only had to use this for demonstration purposes.


It comes with 2 config options:
Quote
respawnTime
and
Quote
respawnAmount
List of sectors with this script attached by default:
Spoiler: show

asteroidfield
asteroidfieldminer
functionalwreckage
miningfield
pirateasteroidfield
piratefight
resistancecell
smallasteroidfield
smugglerhideout
wreckageasteroidfield
startsector

So it only works in these sectors.
* It requires at least one (empty) asteroid in the sector to begin respawning.

From Avorion 0.23 on, this mod will be continued in the workshop (https://steamcommunity.com/sharedfiles/filedetails/?id=1692998037)
Since 0.23+ became the main gameversion, there is no download here.


Motivation:
I mothballed an older project over at Github and I didn't want to throw this here away. So I updated it for 0.20.x.
This is not the only asteroid respawn mod:
 Regenerative Asteroid Fields (https://www.avorion.net/forum/index.php/topic,3055.0.html)    With very customizeable resource respawning sectors
 Asteroid Respawner (https://www.avorion.net/forum/index.php/topic,3115)
Attachment in the second post (https://www.avorion.net/forum/index.php/topic,832.0.html) very similar script to simple asteroid respawner (might be outdated)
Title: Re: [MOD] Simple Asteroid Respawner
Post by: Laserzwei on January 12, 2019, 07:20:55 PM
Installation instructions

Version history
1.0.0 for 0.20.x (probably works with 0.19 as well) [2019-01-12]
  - initial release