RimWorld

RimWorld

257 ratings
FirefliesTwo
25
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 (2)
2
13 Apr @ 12:46am
bug report: chasing fireflies as joy activity, causes ponds to freeze
Angry Canadian
0
13 Jul @ 5:15am
Bug: chasing fireflies overrides zone restrictions
NoxiousPluK
108 Comments
Scurvyez  [author] 18 Jul @ 12:55am 
@Deepfield When I can, yes. See my earlier post from today to Noxious lol
Deepfield 17 Jul @ 11:25pm 
Any chance at adding the space biomes to the biome tweaker or just removing space from the list totally? Not that I mind me some space fireflies but its a bit weird lol.
NoxiousPluK 17 Jul @ 4:59pm 
@Scurveyz good luck! :D
Maal 17 Jul @ 12:34pm 
I see, MO's 1.6 update seems to generally be incomplete. Half of my error log involve it lol. Tho I also have a lot of MO related mods which may refer to unported stuff like yours did.
Scurvyez  [author] 17 Jul @ 10:52am 
@Maal Just looked over all of MO's xml and my failed patch operation on their BiomeDef is not my fault. MO simply did not carry over the `DankPyon_AncientForest` biome to 1.6. It only exists in prior versions of the game. I will need to move my patch to a separate file in my mod to keep the 1.5 compat but... my patch is not to blame. Blame MO for not wanting to keep the ancient forest biome in their 1.6 version. lol
Scurvyez  [author] 17 Jul @ 10:39am 
@NoxiousPluK Huh.. that's an odd (and new) one. Thanks for the report. One of those weird ones where I won't have any errors to work with lmao Shooooould be an easy fix. I just need to find the time. I'm in the middle of selling my house and moving across the country so give me some time. :)
Maal 17 Jul @ 12:18am 
Might need some patch updating, getting a red error related to Medieval Overhaul biomes.

https://gist.github.com/HugsLibRecordKeeper/167a843c14e218425aa2d5e1ff74293b
NoxiousPluK 13 Jul @ 5:16am 
Bug: chasing fireflies overrides zone restrictions
One of my pawns happily went to chase fireflies outside when restricted to an indoors only zone during a manhunting animal event
Muronelkaz 12 Jul @ 8:52pm 
Interesting bug with Odyssey is that the fireflies overlay onto the world map
tenczen 4 Jul @ 1:44am 
Very happy they are particles now. Good choice! :steamthumbsup: