Napus Jagged Ores

by Napu

Do you want a new challenge? Try out this mod. It overhauls the normal ore spawn of the game and puts ore everywhere. Be careful though, you can only place miners onto the ore!

Content
1 year, 17 days ago
0.15 - 2.0
295
Environment Mining

g cant place curved rail on ore

10 months ago

as the title says i cant place certain curved rails on the ores. it might be that the game update to rails broke the safe transport research.

am still testing what else cant be placed on ores that you were able to before in ver 1.0

10 months ago
(updated 10 months ago)

Can confirm this bug.

Quickfix: Add the following diff to control.lua to allow placement of the new rail types:

--- a/control.lua
+++ b/control.lua
@@ -98,7 +98,10 @@ function Dangerous_Ores(event)
            if last_user.force.technologies['safe-railway'].researched then 
                if event.entity.type == "straight-rail" 
                or event.entity.type == "curved-rail" 
-               or event.entity.type == "train-stop" 
+               or event.entity.type == "curved-rail-a"
+               or event.entity.type == "curved-rail-b"
+               or event.entity.type == "half-diagonal-rail"
+               or event.entity.type == "rail-ramp"
+               or event.entity.type == "rail-support"
+               or event.entity.type == "train-stop"
                or event.entity.type == "rail-signal" 
                or event.entity.type == "rail-chain-signal" 
                or event.entity.type == "locomotive" 
@@ -113,7 +116,10 @@ function Dangerous_Ores(event)
                if event.entity.type == "entity-ghost" then
                    if event.entity.ghost_type == "straight-rail" 
                    or event.entity.ghost_type == "curved-rail" 
-                   or event.entity.ghost_type == "train-stop" 
+                   or event.entity.ghost_type == "curved-rail-a"
+                   or event.entity.ghost_type == "curved-rail-b"
+                   or event.entity.ghost_type == "half-diagonal-rail"
+                   or event.entity.ghost_type == "rail-ramp"
+                   or event.entity.ghost_type == "rail-support"
+                   or event.entity.ghost_type == "train-stop"
                    or event.entity.ghost_type == "rail-signal" 
                    or event.entity.ghost_type == "rail-chain-signal" 
                    or event.entity.ghost_type == "locomotive"

Extract the control.lua file from the mod, save this diff to a file like "rail-fix.diff" and apply it with "git apply rail-fix.diff". Finally replace the control.lua in the mod's .zip-file with the fixed one.
Alternatively add the three respective lines manually to control.lua if you do not have git available or if this comment gets corrupted by the formatting.

Edit: Added "rail-ramp" and "rail-support" to the list.

New response