Jump to content

If you don't want to lose your world and still have meteor showers


Recommended Posts

If you are willing to use the console to have some meteor showers in your world. You can do the following:

 

  1. Go to a Rocky biome (not required, but this is the place where the meteor showers spawners are placed by default).
  2. Place the mouse cursor at some location that is clean (no stones, no webs, nothing)
  3. Open the console and issue the following command: c_spawn("meteorspawner")

If you want to see how it looks, enter this command: c_find( "meteorspawner" ).components.meteorshower.nextshower = 5

Does anyone know how to go the other way and remove meteor spawners via console? @rezecib ?

function c_delprefabs(prefab)	for k,v in pairs(Ents) do		if v.prefab == prefab then			v:Remove()		end	endend

Called with c_delprefabs("prefab")

This will remove all of the selected prefab.

 

If you want to make a new world with no meteorspawners, the game brings them into the world at lines 43-45 of Don't Starve Together Beta\data\scripts\map\rooms\terrain_rocky.lua remove them there, and you've removed them from the world. Alternatively you could add a ridiculous number of them in.

Awesome, thanks for the help. Last questions for me:

 

1) Can I define that function via the console, or do I need to put it in a file like consolecommands.lua?

2) Is the prefab for meteor spawners called "meteorspawner", or is it the full path "common/objects/meteorspawner"?

 

Cheers,

Unislash


Awesome, thanks for the help. Last questions for me:

 

1) Can I define that function via the console, or do I need to put it in a file like consolecommands.lua?

2) Is the prefab for meteor spawners called "meteorspawner", or is it the full path "common/objects/meteorspawner"?

 

Cheers,

Unislash

@Unislash, You can define it on the console, but it will only last for that session. It's a little tough to write on the console because you have to do it all on one line. For that purpose, I'd recommend typing this (less reusable, but more concise):

for k,v in pairs(Ents) do if v.prefab == "meteorspawner" then v:Remove() end end

@Tomer8009 The only difference between this and normal world gen is that world gen will automatically place a few meteor spawners in each rocky area.

 

Definition of a few - Between 1 and 2 per rocky area

 

There are between 1 and 4 rocky areas per world, for reference, so more often than not you're going to have a meteorspawner.

 

If you're really unlucky you could have 4, and at most you could have 8 in a default world

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...