Jump to content

Welcome to the Forum!

The best place to exchange builds and ideas! Vote for the best ideas and suggestions here.

Join the Avorion Discord!

Connect with other passionate players and talk about the latest news.
Discord

DLC Avorion Into the Rift Out Now!

Now available on Steam!
Steam

[MOD] Simple Asteroid Respawner


Laserzwei
 Share

Recommended Posts

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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...