Jump to content

Recommended Posts

Posted

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:

 

 

2S89RJ4.jpg

 

 

Video of an 360x sped up process:

 

 

 

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:

respawnTime

  • The time until the next batch of asteroids gets spawned.

and

respawnAmount

  • An percentage of the sectors original number of asteroids.

List of sectors with this script attached by default:

 

 

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    With very customizeable resource respawning sectors

Asteroid Respawner

Attachment in the second post very similar script to simple asteroid respawner (might be outdated)

Posted

Installation instructions

  • Download the .zip file from the 1st post
  • Place the content in the respective /Avorion/ folders. Create /mods/, if necessary. This will overwrite /data/scripts/sector/respawnresourceasteroids.lua

 

Version history

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

  - initial release

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...