Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -ur tmp/Electric-Trains-Redux_0.0.7_default/locale/en/en.cfg Electric-Trains-Redux_0.0.7/locale/en/en.cfg
- --- tmp/Electric-Trains-Redux_0.0.7_default/locale/en/en.cfg 2022-03-30 17:20:01.347414100 +0300
- +++ Electric-Trains-Redux_0.0.7/locale/en/en.cfg 2022-07-07 09:16:27.985275700 +0300
- @@ -61,6 +61,34 @@
- Lax-express-train-buffer=Express electric locomotive energy buffer
- Lax-maglev-train-buffer=Maglev locomotive energy buffer
- Lax-add-wagons=Add Cargo/Fluid wagons
- +Lax-locomotiveMk1-weight=Weight of Mk1 Locomotive
- +Lax-locomotiveMk1-braking_force=Breaking force of Mk1 Locomotive
- +Lax-locomotiveMk1-max_speed=Max speed of Mk1 Locomotive
- +Lax-locomotiveMk1-max_power_kw=Max power of Mk1 Locomotive
- +Lax-locomotiveMk2-weight=Weight of Mk2 Locomotive
- +Lax-locomotiveMk2-braking_force=Breaking force of Mk2 Locomotive
- +Lax-locomotiveMk2-max_speed=Max speed of Mk2 Locomotive
- +Lax-locomotiveMk2-max_power_kw=Max power of Mk2 Locomotive
- +Lax-locomotiveMk3-weight=Weight of Mk3 Locomotive
- +Lax-locomotiveMk3-braking_force=Breaking force of Mk3 Locomotive
- +Lax-locomotiveMk3-max_speed=Max speed of Mk3 Locomotive
- +Lax-locomotiveMk3-max_power_kw=Max power of Mk3 Locomotive
- +Lax-locomotiveMk4-weight=Weight of Mk4 Locomotive
- +Lax-locomotiveMk4-braking_force=Breaking force of Mk4 Locomotive
- +Lax-locomotiveMk4-max_speed=Max speed of Mk4 Locomotive
- +Lax-locomotiveMk4-max_power_kw=Max power of Mk4 Locomotive
- +Lax-wagon1-inventory_size=Wagon Mk1 inventory size
- +Lax-wagon1-weight=Wagon Mk1 weight
- +Lax-wagon2-inventory_size=Wagon Mk2 inventory size
- +Lax-wagon2-weight=Wagon Mk2 weight
- +Lax-wagon3-inventory_size=Wagon Mk3 inventory size
- +Lax-wagon3-weight=Wagon Mk3 weight
- +Lax-fwagon1-capacity=Fluid wagon Mk1 capacity
- +Lax-fwagon1-weight=Fluid wagon Mk1 weight
- +Lax-fwagon2-capacity=Fluid wagon Mk2 capacity
- +Lax-fwagon2-weight=Fluid wagon Mk2 weight
- +Lax-fwagon3-capacity=Fluid wagon Mk3 capacity
- +Lax-fwagon3-weight=Fluid wagon Mk3 weight
- [mod-setting-description]
- Lax-train-charge-ammount=How much power the script is allowed to move to the train each time it runs
- Lax-train-charge-tickrate=How often the charging script is run
- @@ -71,4 +99,32 @@
- Lax-improved-train-buffer=Max charge ammount in MW
- Lax-express-train-buffer=Max charge ammount in MW
- Lax-maglev-train-buffer=Max charge ammount in MW
- -Lax-add-wagons=If the mod should add its own larger cargo wagons or not.
- \ No newline at end of file
- +Lax-add-wagons=If the mod should add its own larger cargo wagons or not.
- +Lax-locomotiveMk1-weight=Weight of Mk1 Locomotive
- +Lax-locomotiveMk1-braking_force=50 is standard wagon
- +Lax-locomotiveMk1-max_speed=Max speed of Mk1 Locomotive
- +Lax-locomotiveMk1-max_power_kw=Amount in KW
- +Lax-locomotiveMk2-weight=Weight of Mk2 Locomotive
- +Lax-locomotiveMk2-braking_force=50 is standard wagon
- +Lax-locomotiveMk2-max_speed=Max speed of Mk2 Locomotive
- +Lax-locomotiveMk2-max_power_kw=Amount in KW
- +Lax-locomotiveMk3-weight=Weight of Mk3 Locomotive
- +Lax-locomotiveMk3-braking_force=50 is standard wagon
- +Lax-locomotiveMk3-max_speed=Max speed of Mk3 Locomotive
- +Lax-locomotiveMk3-max_power_kw=Amount in KW
- +Lax-locomotiveMk4-weight=Weight of Mk4 Locomotive
- +Lax-locomotiveMk4-braking_force=50 is standard wagon
- +Lax-locomotiveMk4-max_speed=Max speed of Mk4 Locomotive
- +Lax-locomotiveMk4-max_power_kw=Amount in KW
- +Lax-wagon1-inventory_size=Wagon Mk1 inventory size
- +Lax-wagon1-weight=Wagon Mk1 weight
- +Lax-wagon2-inventory_size=Wagon Mk2 inventory size
- +Lax-wagon2-weight=Wagon Mk2 weight
- +Lax-wagon3-inventory_size=Wagon Mk3 inventory size
- +Lax-wagon3-weight=Wagon Mk3 weight
- +Lax-fwagon1-capacity=Fluid wagon Mk1 capacity
- +Lax-fwagon1-weight=Fluid wagon Mk1 weight
- +Lax-fwagon2-capacity=Fluid wagon Mk2 capacity
- +Lax-fwagon2-weight=Fluid wagon Mk2 weight
- +Lax-fwagon3-capacity=Fluid wagon Mk3 capacity
- +Lax-fwagon3-weight=Fluid wagon Mk3 weight
- diff -ur tmp/Electric-Trains-Redux_0.0.7_default/prototypes/entities.lua Electric-Trains-Redux_0.0.7/prototypes/entities.lua
- --- tmp/Electric-Trains-Redux_0.0.7_default/prototypes/entities.lua 2022-04-15 13:23:13.181700600 +0300
- +++ Electric-Trains-Redux_0.0.7/prototypes/entities.lua 2022-07-07 09:09:27.905087400 +0300
- @@ -1,9 +1,10 @@
- local locomotiveMk1 = util.table.deepcopy(data.raw.locomotive["locomotive"])
- locomotiveMk1.name = "Electrical-Locomotive"
- locomotiveMk1.minable.result = "Electrical-Locomotive"
- -locomotiveMk1.weight = 2000
- -locomotiveMk1.max_speed = 1.2
- -locomotiveMk1.max_power = "600KW"
- +locomotiveMk1.weight = settings.startup["Lax-locomotiveMk1-weight"].value
- +locomotiveMk1.braking_force = settings.startup["Lax-locomotiveMk1-braking_force"].value
- +locomotiveMk1.max_speed = settings.startup["Lax-locomotiveMk1-max_speed"].value
- +locomotiveMk1.max_power = settings.startup["Lax-locomotiveMk1-max_power_kw"].value.."KW"
- locomotiveMk1.reversing_power_modifier = 1.0
- locomotiveMk1.burner.fuel_category = "train-power"
- locomotiveMk1.burner.fuel_inventory_size = 0
- @@ -27,26 +28,26 @@
- local locomotiveMk2 = util.table.deepcopy(locomotiveMk1)
- locomotiveMk2.name = "Improved-Electrical-Locomotive"
- -locomotiveMk2.max_speed = 1.5
- -locomotiveMk2.braking_force = 50
- -locomotiveMk2.weight = 1800
- -locomotiveMk2.max_power = "2MW"
- +locomotiveMk2.weight = settings.startup["Lax-locomotiveMk2-weight"].value
- +locomotiveMk2.braking_force = settings.startup["Lax-locomotiveMk2-braking_force"].value
- +locomotiveMk2.max_speed = settings.startup["Lax-locomotiveMk2-max_speed"].value
- +locomotiveMk2.max_power = settings.startup["Lax-locomotiveMk2-max_power_kw"].value.."KW"
- locomotiveMk2.minable.result = "Improved-Electrical-Locomotive"
- local locomotiveMk3 = util.table.deepcopy(locomotiveMk1)
- locomotiveMk3.name = "Express-Electrical-Locomotive"
- -locomotiveMk3.max_speed = 2
- -locomotiveMk3.braking_force = 100
- -locomotiveMk3.weight = 1600
- -locomotiveMk3.max_power = "4.5MW"
- +locomotiveMk3.weight = settings.startup["Lax-locomotiveMk3-weight"].value
- +locomotiveMk3.braking_force = settings.startup["Lax-locomotiveMk3-braking_force"].value
- +locomotiveMk3.max_speed = settings.startup["Lax-locomotiveMk3-max_speed"].value
- +locomotiveMk3.max_power = settings.startup["Lax-locomotiveMk3-max_power_kw"].value.."KW"
- locomotiveMk3.minable.result = "Express-Electrical-Locomotive"
- local locomotiveMk4 = util.table.deepcopy(locomotiveMk1)
- locomotiveMk4.name = "Maglev-Locomotive"
- -locomotiveMk4.weight = 1000
- -locomotiveMk2.braking_force = 250
- -locomotiveMk4.max_speed = 3.5
- -locomotiveMk4.max_power = "10MW"
- +locomotiveMk4.weight = settings.startup["Lax-locomotiveMk4-weight"].value
- +locomotiveMk4.braking_force = settings.startup["Lax-locomotiveMk4-braking_force"].value
- +locomotiveMk4.max_speed = settings.startup["Lax-locomotiveMk4-max_speed"].value
- +locomotiveMk4.max_power = settings.startup["Lax-locomotiveMk4-max_power_kw"].value.."KW"
- locomotiveMk4.minable.result = "Maglev-Locomotive"
- @@ -54,48 +55,49 @@
- if settings.startup["Lax-add-wagons"] then
- + local max_loco_speed = math.max(settings.startup["Lax-locomotiveMk1-max_speed"].value, settings.startup["Lax-locomotiveMk2-max_speed"].value, settings.startup["Lax-locomotiveMk3-max_speed"].value)
- local wagon1 = util.table.deepcopy(data.raw["cargo-wagon"]["cargo-wagon"])
- wagon1.name = "improved-cargo-wagon"
- - wagon1.inventory_size = 60
- - wagon1.max_speed = 3.5
- - wagon1.weight = 1500
- + wagon1.inventory_size = settings.startup["Lax-wagon1-inventory_size"].value
- + wagon1.max_speed = max_loco_speed
- + wagon1.weight = settings.startup["Lax-wagon1-weight"].value
- wagon1.minable.result = "improved-cargo-wagon"
- local wagon2 = util.table.deepcopy(wagon1)
- wagon2.name = "express-cargo-wagon"
- - wagon2.inventory_size = 80
- - wagon2.max_speed = 3.5
- - wagon2.weight = 2000
- + wagon2.inventory_size = settings.startup["Lax-wagon2-inventory_size"].value
- + wagon2.max_speed = max_loco_speed
- + wagon2.weight = settings.startup["Lax-wagon2-weight"].value
- wagon2.minable.result = "express-cargo-wagon"
- local wagon3 = util.table.deepcopy(wagon1)
- wagon3.name = "maglev-cargo-wagon"
- - wagon3.inventory_size = 120
- - wagon3.max_speed = 3.5
- - wagon3.weight = 1750
- + wagon3.inventory_size = settings.startup["Lax-wagon3-inventory_size"].value
- + wagon3.max_speed = max_loco_speed
- + wagon3.weight = settings.startup["Lax-wagon3-weight"].value
- wagon3.minable.result = "maglev-cargo-wagon"
- local fwagon1 = util.table.deepcopy(data.raw["fluid-wagon"]["fluid-wagon"])
- fwagon1.name= "improved-fluid-wagon"
- - fwagon1.capacity = 50000
- - fwagon1.max_speed=3.5
- - fwagon1.weight=1500
- + fwagon1.capacity = settings.startup["Lax-fwagon1-capacity"].value
- + fwagon1.max_speed=max_loco_speed
- + fwagon1.weight=settings.startup["Lax-fwagon1-weight"].value
- fwagon1.minable.result = "improved-fluid-wagon"
- local fwagon2 = util.table.deepcopy(fwagon1)
- fwagon2.name= "express-fluid-wagon"
- - fwagon2.capacity = 75000
- - fwagon2.max_speed=3.5
- - fwagon2.weight=2000
- + fwagon2.capacity = settings.startup["Lax-fwagon2-capacity"].value
- + fwagon2.max_speed=max_loco_speed
- + fwagon2.weight=settings.startup["Lax-fwagon2-weight"].value
- fwagon2.minable.result = "express-fluid-wagon"
- local fwagon3 = util.table.deepcopy(fwagon1)
- fwagon3.name= "maglev-fluid-wagon"
- - fwagon3.capacity = 100000
- - fwagon3.max_speed=3.5
- - fwagon3.weight=1750
- + fwagon3.capacity = settings.startup["Lax-fwagon3-capacity"].value
- + fwagon3.max_speed=max_loco_speed
- + fwagon3.weight=settings.startup["Lax-fwagon3-weight"].value
- fwagon3.minable.result = "maglev-fluid-wagon"
- data:extend({
- diff -ur tmp/Electric-Trains-Redux_0.0.7_default/settings.lua Electric-Trains-Redux_0.0.7/settings.lua
- --- tmp/Electric-Trains-Redux_0.0.7_default/settings.lua 2022-03-30 12:56:03.057505600 +0300
- +++ Electric-Trains-Redux_0.0.7/settings.lua 2022-07-07 09:14:51.169074800 +0300
- @@ -87,4 +87,256 @@
- default_value = true,
- order = "tfg",
- },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk1-weight",
- + setting_type = "startup",
- + default_value = 2000,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "uaa"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk1-braking_force",
- + setting_type = "startup",
- + default_value = 10,
- + minimum_value = 1,
- + maximum_value = 1000,
- + order = "uab"
- + },
- + {
- + type = "double-setting",
- + name = "Lax-locomotiveMk1-max_speed",
- + setting_type = "startup",
- + default_value = 1.2,
- + minimum_value = 0.1,
- + maximum_value = 10.0,
- + order = "uac"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk1-max_power_kw",
- + setting_type = "startup",
- + default_value = 600,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "uad"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk2-weight",
- + setting_type = "startup",
- + default_value = 1800,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "uba"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk2-braking_force",
- + setting_type = "startup",
- + default_value = 50,
- + minimum_value = 1,
- + maximum_value = 1000,
- + order = "ubb"
- + },
- + {
- + type = "double-setting",
- + name = "Lax-locomotiveMk2-max_speed",
- + setting_type = "startup",
- + default_value = 1.5,
- + minimum_value = 0.1,
- + maximum_value = 10.0,
- + order = "ubc"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk2-max_power_kw",
- + setting_type = "startup",
- + default_value = 2000,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "ubd"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk3-weight",
- + setting_type = "startup",
- + default_value = 1600,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "uca"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk3-braking_force",
- + setting_type = "startup",
- + default_value = 100,
- + minimum_value = 1,
- + maximum_value = 1000,
- + order = "ucb"
- + },
- + {
- + type = "double-setting",
- + name = "Lax-locomotiveMk3-max_speed",
- + setting_type = "startup",
- + default_value = 2.0,
- + minimum_value = 0.1,
- + maximum_value = 10.0,
- + order = "ucc"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk3-max_power_kw",
- + setting_type = "startup",
- + default_value = 4500,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "ucd"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk4-weight",
- + setting_type = "startup",
- + default_value = 1000,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "uda"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk4-braking_force",
- + setting_type = "startup",
- + default_value = 250,
- + minimum_value = 1,
- + maximum_value = 1000,
- + order = "udb"
- + },
- + {
- + type = "double-setting",
- + name = "Lax-locomotiveMk4-max_speed",
- + setting_type = "startup",
- + default_value = 3.5,
- + minimum_value = 0.1,
- + maximum_value = 10.0,
- + order = "udc"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-locomotiveMk4-max_power_kw",
- + setting_type = "startup",
- + default_value = 10000,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "udd"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-wagon1-inventory_size",
- + setting_type = "startup",
- + default_value = 60,
- + minimum_value = 10,
- + maximum_value = 500,
- + order = "uea"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-wagon1-weight",
- + setting_type = "startup",
- + default_value = 1500,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "ueb"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-wagon2-inventory_size",
- + setting_type = "startup",
- + default_value = 80,
- + minimum_value = 10,
- + maximum_value = 500,
- + order = "uec"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-wagon2-weight",
- + setting_type = "startup",
- + default_value = 2000,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "ued"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-wagon3-inventory_size",
- + setting_type = "startup",
- + default_value = 120,
- + minimum_value = 10,
- + maximum_value = 500,
- + order = "ufa"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-wagon3-weight",
- + setting_type = "startup",
- + default_value = 1750,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "ufb"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-fwagon1-capacity",
- + setting_type = "startup",
- + default_value = 50000,
- + minimum_value = 1000,
- + maximum_value = 1000000,
- + order = "ufc"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-fwagon1-weight",
- + setting_type = "startup",
- + default_value = 1500,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "ufd"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-fwagon2-capacity",
- + setting_type = "startup",
- + default_value = 75000,
- + minimum_value = 1000,
- + maximum_value = 1000000,
- + order = "ufe"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-fwagon2-weight",
- + setting_type = "startup",
- + default_value = 2000,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "uff"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-fwagon3-capacity",
- + setting_type = "startup",
- + default_value = 100000,
- + minimum_value = 1000,
- + maximum_value = 1000000,
- + order = "ufg"
- + },
- + {
- + type = "int-setting",
- + name = "Lax-fwagon3-weight",
- + setting_type = "startup",
- + default_value = 1750,
- + minimum_value = 100,
- + maximum_value = 100000,
- + order = "ufh"
- + },
- })
- \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement