Page 1 of 1

[Tutorial] The Lava Redemption – Active Volcanic Systems Script

Posted: Sat Jul 04, 2026 4:33 am
by leo.priori
The Lava Redemption – Active Volcanic Systems Script

Hello everyone! I'm sharing a new script that makes volcanoes dynamic. They can now transition between active and dormant states during the game.
Be careful: if a volcano becomes active within a city’s radius, it can trigger serious disasters!

ISO - maps
volcano_iso.png
volcano_iso.png (661.2 KiB) Viewed 767 times
A) Installation Guide

Using the files provided in the The Lava Redemption.tar.gz (available for download below), follow these steps:

Script Setup: Copy luadata.txt and script.lua into your ruleset folder. (Remember to back up your original files before overwriting them).

Ruleset Integration: Open the provided .ruleset documentation files, then copy and paste their contents into your own ruleset files with the corresponding names.

B) Playing on Hex Maps

If you prefer playing on Hexagonal maps, please use the dedicated tileset: volcanoes_tileset.tar.gz (also available for download below).
volcano_hex.png
volcano_hex.png (843.59 KiB) Viewed 767 times
Tileset to play in Hex Maps
volcanoes_tileset.tar.gz
(113.37 KiB) Downloaded 17 times


C) Gameplay Tuning

Volcano Density: To control how many volcanoes appear, adjust the property_mountainous value within each terrain entry in combination with the game's global steepness option.

Disaster Frequency: You can scale the intensity of events by modifying the [disaster_*] entries and the global disasters setting.

Script Logic: For deeper customization, you can edit the constants at the beginning of the script.lua file, specifically the following keys:

activity_rarity

eruption_chance

dormancy_chance

Re: [Tutorial] The Lava Redemption – Active Volcanic Systems Script

Posted: Sat Jul 04, 2026 4:34 am
by leo.priori
Rulesets with The Lava Redemption

Re: [Tutorial] The Lava Redemption – Active Volcanic Systems Script

Posted: Tue Jul 07, 2026 4:24 am
by Dino the Dinosore
This is awesome, thanks. I also did an implementation of volcanoes and eruptions in my dino3 ruleset

viewtopic.php?t=91837&start=30

Mine is much simpler - I do a similar thing in the script.lua to place the volcanoes after the map_generated signal, but I don't have names or tweekable settings. Instead of having the eruptions controlled by the script, in terrain.ruleset I have an extra

Code: Select all

name=_("Eruption")
category="Nuisance"
causes="Appear"
rmcauses="Disappear"
graphic="tx.erupting_volcano"
appearance_reqs={"type","name","range"
"Terrain","Volcano","Tile"
}
appearance_chance=200
disappearance_chance=5000
I also do the disaster in game.ruleset similar to yours, but add this to the reqs to spare the AI players (who aren't programmed to handle them)

Code: Select all

reqs={"type","name","range","present"
"Extra","Eruption","Adjacent",TRUE
"AI","Restricted","Player",FALSE
"AI","Novice","Player",FALSE
"AI","Easy","Player",FALSE
"AI","Normal","Player",FALSE
"AI","Hard","Player",FALSE
"AI","Cheating","Player",FALSE
"AI","Experimental","Player",FALSE
}
What I'm missing is anything in the help text explaining all the volcano/eruptions stuff.

Question - where did you get the AmplioHexBig volcanoes.png? All I could find is Amplio2 volcano.png and I had to make my own hex version.

Re: [Tutorial] The Lava Redemption – Active Volcanic Systems Script

Posted: Tue Jul 07, 2026 6:05 am
by leo.priori
Hi Dino. Thanks!
I've had these images for a long time, and since I'm terrible at drawing, I'm sure I downloaded them all from this very forum. But you're right—I couldn't find them again. Maybe they were deleted.
Your script is amazing, and I remember playing it; it served as inspiration for me.
I didn't include any help text in the ruleset explaining the volcanoes—sorry about that.
You're right about the AI, too. The AI ​​really can't handle volcanoes, and your ruleset solves that issue more simply and precisely. Still, it's pretty fun watching them get wrecked by the disasters, too.