Corrupted Crystal

If you liked this item, please rate it up on Steam Workshop page.

Author: Geneosis

Last revision: 30 Apr, 2023 at 21:10 UTC

File size: 1.29 MB

On Steam Workshop

Description:

They will spread the Corruption all across the world!

Any resemblance to other crystals growing on other planets in other skies is purely coincidental…

SPAWN
– Corrupted Crystal: Various predefined sizes of Crystals are available in the spawn menu.

TOOLS
– Corrupted Crystal: Place Crystals manually and edit their settings ingame with this tool.

KEYBOARD CONTROLS
[LeftClick]: Place a Crystal.
[L]: Stop propagation.
[K]: Remove all Crystals.
[O]: Open options menu.

CHARACTERISTICS
– Corrupted Crystals placed with the tool are static (they are frozen in space and cannot move no matter what).
– Corrupted Crystals created from Spawn menu become static when they stop moving and you look away from them.
– Only static Corrupted Crystals will grow.
– Corrupted Crystals grow near the surface of objects.
– Corrupted Crystals stop growing when broken.
– You can make Crystals of different sizes.
– You can make Crystals explosive or unbreakable.
– You can make Crystals dissolve matter near them when they grow or break.
– You can control how fast the Crystals grow and in what shape.
– You can fully customize the look of your Crystals and save some skins you like.
– You can disable Crystal growth completely and use this mod as a sculpting tool.

KNOWN BUGS
– Crystals are frozen in the air and not subject to gravity until broken: yes.
– Some broken Crystals may still be frozen in the air: yes.
– Crystals may spawn in place they were not supposed to (like underground).
– Crystals may push away objects when they grow.

DEV NOTES

Originally posted by About this mod:

With this mod we are getting closer to what the Hungry Slimes mod was originally supposed to be: Some matter growing around existing objects and slowly consuming them :p
But due to some restrictions in the current modding API, only static shapes can be perfectly sticked together (I know about joints, but they do not perfectly weld items so they are out of context here). So this mod is the best I can produce in those conditions, and I guess it somehow makes sense for a crystal to be unable to move around 😉
So yeah it is both very close to the Hungry Slimes mod and very different in the way it is coded. The main reason being that I decided to make this mod work both as a spawnable element in the Spawn menu and as a tool that can place it.
This added a few limitations to what was possible and what was not, but in the end I am pretty happy with the result ^^
And as I had some settings working pretty well to fully customize blocks, I put those in this mod as well, so if you don’t like the colors of the Crystals you can fully repaint them, and if you want to pretend you are surviving a radioactive goo invasion, you can do it too XD
So yeah as usual, trying to avoid turning the game into instant lag was a bit of a challenge with this kind of mod X) I think I managed to get something decent, with some easy options to switch on to get faster grow speed but still retain some frames 😉
Only one point beat me in this mod, and it is the tool model itself: I wanted to make it out of the actual material of the crystal, but the game only allow to load a simple vox file for your tool, not an actual prefab… I did try a few workaround like spawning the crystals manually and trying to place them at the right location in front of the player, but aside from not being perfectly in sync with player movement this had one big issue: the tool shape was actually colliding with the player, which led to some pretty broken moves, especially when falling while looking down >_< So I ended up scrapping that part until we have more flexible options for tool customization 😉