RimWorld

RimWorld

295 ratings
FirefliesTwo
2
26
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
501.564 KB
11 Oct, 2024 @ 1:54pm
11 Jun @ 1:08pm
8 Change Notes ( view )

Subscribe to download
FirefliesTwo

Description
Discord: steveo.o
steam: Scurvyez

EDIT: Reading is hard so here it is for everyone...... these fireflies are not pawns. They are just visual effects.
EDIT: Fine to add to existing saves! :)

A simple, yet... heart-warming revamp of my original mod which adds fireflies to the Rim (as pure visual effects using Unity's ParticleSystem). Will I be adding more visual effects such as butterflies, embers, falling leaves in autumn, etc.? No. This mod is about fireflies only. I might make a separate mod for more general ambient effects in the future though. I would recommend running Realistic Darkness alongside this mod for the best experience.

[ko-fi.com]

[github.com]





Example of fireflies in the Idyllic Meadows biome w/o Realistic Darkness.

Supported Biomes
  • [Core] BorealForest, Temperate Forest, Temperate Swamp, Tropical Rainforest, Tropical Swamp, Arid Shrubland, Desert, and Extreme Desert
  • [More Vanilla Biomes] Alpine Meadow, Cloud Forest, Coastal Dunes, Desert Oasis, Grasslands, and Marsh
  • [Alien Biomes (WIP)] Radiant Plains, Delirious Dunes, and Crystalline Flats
  • [Alpha Biomes] Feralisk Infested Jungle and Idyllic Meadows
  • [Biomes! Oasis] Chromatic Oasis

Fireflies spawn if...
  • the weather is clear
  • the outdoor temperature is above some threshold, 5C by default
  • the current season is not winter or permanent winter
  • ambient light from sun is less than 30% (so from around dusk til dawn)
  • additional log message pops if you chose a biome not supported


Example of fireflies in the Feralisk Infested Jungle biome w/o Realistic Darkness.

Jobs
  • pawns can periodically chase fireflies for fun, 75% base chance
    • will count towards joy/recreation as meditation
    • if caught, a jar with a firefly is added to the pawns' inventory
    • this jar can be installed/uninstalled like any other piece of furniture
  • pawns can also view captured fireflies in glass jars
    • will count towards joy/recreation as meditation

Thoughts
  • good (short-term) memory for being outside while fireflies are active
  • good (short-term) memory for catching a firefly while chasing them, 25% base chance
  • bad (short-term) memory for accidentally squishing a firefly, chance based on several factors

Buildings
  • glass jar w/ a single firefly inside
    • cannot be built
    • found and automatically added to a pawns' inventory if a pawn successfully catches a firefly during joy recreation


Example of the glass jars w/ a yellow firefly, and w/o Realistic Darkness.

Mod Authors
  • If you want to adjust the spawn rate, allowed temperature range, or chance to spawn in winter/permanent winter, just use a PatchOperation to target the biome of your choosing and ensure your patch loads after this mod OR directly insert the NightlySpawningExtension and it's values into your custom BiomeDef if you are making a biome of your own and want to add functionality from this mod if this mod is enabled.
  • Examples below of how to do each.

1. Patching into another mods' biome or one from core.
  • If the target biome already has the extension then use a PatchOperationReplace instead. Read the wiki[rimworldwiki.com] for more info on PatchOperations.


2. Directly adding conditional support for your own custom biome.



TweakValues
  • option to enable the mesh overlay drawer
  • MeshOverlayDrawer.DrawFireflySpawnMesh
  • shows the finalized Mesh where firefly particles are allowed to spawn from (used for debugging)
  • this will kill your FPS lol


Example mesh generation using the added TweakValue to see where firefly particles will be allowed to spawn.




FAQ...

Q1. Are these pawns like in the original mod?
A1. Nope. This mod uses Unity's particle system to generate and render the fireflies on the map. No more pesky lag because there are suddenly dozens or hundreds of actual pawns on the map. Just pleasant little particles being handled by the GPU for much better performance.

Q2. Does this mod have impacts on performance?
A1. Nope. Again, just happy little visual effects floating around.
Popular Discussions View All (5)
3
27 Sep @ 8:45pm
Red text appears during startup,Compatible with RegrowthCoreBiomes
DeleteC
2
13 Apr @ 12:46am
bug report: chasing fireflies as joy activity, causes ponds to freeze
Angry Canadian
0
27 Sep @ 10:16pm
Getting Fireflies 2 working with Regrowth 2 :)
Bazalisk
130 Comments
Scurvyez  [author] 13 Oct @ 2:22pm 
@hoxise You're all good! Just make sure your code/mod uses the same license that mine does. ;)
hoxise 11 Oct @ 9:01pm 
I like this firefly mod. so here's a temporary fix to make it compatible with Odyssey DLC and community mod. FirefliesTwo(Temp)
The DLL (from github) translated the text I wanted. Additionally, fireflies will no longer render when the world map is open (in my own gameplay or testing, I haven't seen them in outer space in the Odyssey DLC).
I'm sorry, temporary fix mod is unlisted state, if I have infringed upon the author's rights, I will remove it immediately.
Scurvyez  [author] 11 Oct @ 11:38am 
@hoxise Of course! When I can get to the update I will do that. Thanks, it looks like a simple oversight on my end there. :D
Scurvyez  [author] 11 Oct @ 11:37am 
@kyrambox None of my mods are abandoned. If you'd have read any of my last comments on my mods you'd have seen I simply don't have a PC at the moment. I'll be getting back to all my mods as soon as I can. Please don't just tell folks mods are abandoned when they aren't. -_-
hoxise 11 Oct @ 8:08am 
@kyrambox :steamfacepalm:
kyrambox 11 Oct @ 7:55am 
@hoxise This mod is abandoned, nobody will answer you...
hoxise 11 Oct @ 7:50am 
Can you provide a translation interface for the text [Contained firefly:{color}] under the method [CompInspectStringExtra]?
The God 28 Sep @ 10:31am 
You know they spawn in space, right? I'm 99% sure it's a bug and not the firefly type of bug
AusFox 24 Sep @ 3:46pm 
Love this mod, really helps bring an environment to life! I'd love to see an expanded version that adds butterflies/dragonflies, or other bugs to my maps for pawns to catch, but until then I'll just continue being jealous that they get to watch glowbugs and I don't (irl)! =P
LordBeef21 16 Sep @ 2:38pm 
Hi! Here is the error that occurs with Regrowth 2.0:

[FirefliesTwo - Start of stack trace]
Verse.PatchOperationAddModExtension(xpath="Defs/BiomeDef[defName="RG_TemperateGrassland"]"): Failed to find a node with the given xpath
[End of stack trace]
Source file: C:\Steam\steamapps\workshop\content\294100\3347026598\RegrowthCore\1.6\Patches\Patches_RegrowthCoreBiomes.xml

Temperate Grassland is not a thing now that Regrowth has updated to 1.6.