The Floor Is Lava


Extreme radiation causes you to take damage unless you're on manmade tiles. A fun challenge for territory expansion.

5 years ago
0.17
13

i more/custom tiles / support other mods

5 years ago

hi, i am playing with lots of mods, including Asphalt roads mod https://mods.factorio.com/mod/AsphaltRoads
i was wondering if i could add the tiles as registered player made tiles so that i can actually use them with out getting burned, and how i would go about doing so, or if maybe you could make compatibility with such mods yourself?

5 years ago

If you are feeling curious and ambitious here is how you would do it yourself:
- step 1: find your factorio mods folder. (google where that would be for your particular OS (windows or macOS probably))
- step 2: unzip the zip files for the AsphaultRoads mod and this mod
- step 3: go into the Asphault Roads folder and find what the item name for asphault roads are (as specified by the code), probably in something like asphault-road.lua in a folder labelled prototypes/
- step 4: go into the TheFloorIsLava folder and look at control.lua, specifically line 16. This is where the logic exists for which tiles count as "man-made".
- step 5: add an 'or condition' to that line to include the tile or tiles you want to include. probably something like: or string.find("asphault", undertile)

If you don't want to do that I'm happy to do it for you if you give me a list of mods/ tiles you want included; I'll put it in an update for the mod. But it might be a cool experience for you to figure it out yourself. "Give a man a fish..." and all that.

5 years ago

Oh and once you change the code for my mod there's no need to rezip the mod. Factorio will by default use the files in the TheFloorIsLava folder and include your changes to the code :)

5 years ago

Why not check "if not player.surface.get_tile(player.position).hidden_tile then apply_damage()"?

This would support all modded tiles. Except Factorissimo.

5 years ago

I didn't even know there was a hidden_tile attribute. I'll try that

5 years ago

also an idea we just thought of, there are mods, like Factorissmo were the starting area that this mod makes goes outside the boundary of the factorismo "world" maybe make the starting area smaller or configurable, or maybe it is possible to say that the entire area of the factorismo building gets auto filled with basic bricks if both mods are installed?

4 years ago

I've added support for any tiles with a .hidden_tile attribute and any tiles with factory in the name (to catch factorissimo factory floors) in my version of this mod for 1.0: https://mods.factorio.com/mod/TheFloorIsLavaRevival

New response