Update node helps, dependency lyst. Enable more power options for electric rpm meter.
This commit is contained in:
parent
e527f5c1c5
commit
e6231c0403
@ -44,7 +44,7 @@ power_generators.combustion_engine_6c = appliances.appliance:new(
|
||||
node_name_active = "power_generators:combustion_engine_6c_active",
|
||||
|
||||
node_description = S("Combustion engine"),
|
||||
node_help = S("Can be greased.").."\n"..S("Use this for generate shaft power up to @1.", "283k").."\n"..S("Fuel supply open and close by punch.").."\n"..S("Place fuel tank on top."),
|
||||
node_help = S("Use this for generate shaft power up to @1.", "323M").."\n"..S("Fuel supply open and close by punch.").."\n"..S("Can be greased.").."\n"..S("Place fuel tank on top."),
|
||||
|
||||
input_stack_size = 0,
|
||||
have_input = false,
|
||||
@ -64,7 +64,7 @@ power_generators.combustion_engine_6c = appliances.appliance:new(
|
||||
_coef1 = 35.4931*2.5,
|
||||
_coef2 = -0.0054*2.5,
|
||||
-- -0.0054*x*x+35.4931*x-1768.3608 , rpm > 200 to start
|
||||
-- up to T = 56 000
|
||||
-- up to T = 141 000
|
||||
_fuel_per_rpm = 6e-6,
|
||||
|
||||
_qgrease_max = 2,
|
||||
|
10
crafting.lua
10
crafting.lua
@ -25,7 +25,7 @@ local items = {
|
||||
dye_yellow = "dye:yellow",
|
||||
|
||||
valve = "pipeworks:valve_off_empty",
|
||||
rubber = "technic:rubber",
|
||||
rubber = "mesecons_materials:fiber",
|
||||
}
|
||||
|
||||
if minetest.get_modpath("hades_core") then
|
||||
@ -74,6 +74,14 @@ if minetest.get_modpath("hades_technic") then
|
||||
items.rubber = "hades_technic:rubber"
|
||||
end
|
||||
|
||||
if minetest.get_modpath("elepower_dynamics") then
|
||||
items.valve = "elepower_dynamics:servo_valve"
|
||||
end
|
||||
|
||||
if minetest.get_modpath("techage") then
|
||||
items.valve = "techage:ta3_valve_open"
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = "power_generators:electric_cableS 6",
|
||||
recipe = {
|
||||
|
@ -15,7 +15,7 @@ power_generators.alternator = appliances.appliance:new(
|
||||
node_name_active = "power_generators:alternator_active",
|
||||
|
||||
node_description = S("Alternator"),
|
||||
node_help = S("Use this for generate energy depend on rpm."),
|
||||
node_help = S("Use this for generate energy PG EU depend on rpm."),
|
||||
|
||||
input_stack_size = 0,
|
||||
have_input = false,
|
||||
|
@ -14,7 +14,7 @@ power_generators.emergency_generator = appliances.appliance:new(
|
||||
node_name_active = "power_generators:emergency_generator_active",
|
||||
|
||||
node_description = S("Emergency generator"),
|
||||
node_help = S("Fill it with liquid fuel.").."\n"..S("Use this for generate 150 unit of energy.").."\n"..S("Startup and Shutdown by punch."),
|
||||
node_help = S("Fill it with liquid fuel.").."\n"..S("Use this for generate 150 PG EU.").."\n"..S("Startup and Shutdown by punch."),
|
||||
|
||||
input_stack_size = 0,
|
||||
have_input = false,
|
||||
|
@ -14,7 +14,7 @@ power_generators.emergency_generator = appliances.appliance:new(
|
||||
node_name_active = "power_generators:emergency_generator_2_active",
|
||||
|
||||
node_description = S("Emergency Generator With Controller"),
|
||||
node_help = S("Fill it with liquid fuel.").."\n"..S("Use this for generate 200 unit of energy.").."\n"..S("Startup and Shutdown by punch."),
|
||||
node_help = S("Fill it with liquid fuel.").."\n"..S("Use this for generate 200 PG EU.").."\n"..S("Startup and Shutdown by punch."),
|
||||
|
||||
input_stack_size = 0,
|
||||
have_input = false,
|
||||
|
2
mod.conf
2
mod.conf
@ -2,4 +2,4 @@ name = power_generators
|
||||
title = Add some power generators
|
||||
description = Add power generators based on appliances API.
|
||||
depends = appliances, tubelib2, screwdriver, basic_materials
|
||||
optional_depends = default, biofuel, farming, hades_core, hades_sounds, hades_biofuel, hades_extrafarming, sounds
|
||||
optional_depends = default, biofuel, farming, hades_core, hades_sounds, hades_biofuel, hades_extrafarming, sounds, mesecons_materials, elepower, techage
|
||||
|
@ -16,7 +16,7 @@ power_generators.electric_engine_200 = appliances.appliance:new(
|
||||
node_name_active = "power_generators:electric_engine_200_active",
|
||||
|
||||
node_description = S("Electric engine"),
|
||||
node_help = S("Use this for generata shaft torque.").."\n"..S("Startup and Shutdown by punch.").."\n"..S("Can be greased."),
|
||||
node_help = S("Use this for generate shaft power up to @1.", "40M").."\n"..S("Startup and Shutdown by punch.").."\n"..S("Can be greased."),
|
||||
|
||||
input_stack_size = 0,
|
||||
have_input = false,
|
||||
|
@ -16,7 +16,7 @@ power_generators.electric_engine_400 = appliances.appliance:new(
|
||||
node_name_active = "power_generators:electric_engine_400_active",
|
||||
|
||||
node_description = S("Electric engine"),
|
||||
node_help = S("Use this for generata shaft torque.").."\n"..S("Startup and Shutdown by punch.").."\n"..S("Can be greased."),
|
||||
node_help = S("Use this for generate shaft power up to @1.", "80M").."\n"..S("Startup and Shutdown by punch.").."\n"..S("Can be greased."),
|
||||
|
||||
input_stack_size = 0,
|
||||
have_input = false,
|
||||
@ -40,32 +40,32 @@ power_generators.electric_engine_400 = appliances.appliance:new(
|
||||
sounds = {
|
||||
active_running = {
|
||||
sound = "power_generators_electric_engine_startup",
|
||||
sound_param = {max_hear_distance = 32, gain = 1.41},
|
||||
sound_param = {max_hear_distance = 24, gain = 1.41},
|
||||
},
|
||||
waiting_running = {
|
||||
sound = "power_generators_electric_engine_startup",
|
||||
sound_param = {max_hear_distance = 32, gain = 1.41},
|
||||
sound_param = {max_hear_distance = 24, gain = 1.41},
|
||||
},
|
||||
nopower_running = {
|
||||
sound = "power_generators_electric_engine_startup",
|
||||
sound_param = {max_hear_distance = 32, gain = 1.41},
|
||||
sound_param = {max_hear_distance = 24, gain = 1.41},
|
||||
},
|
||||
running = {
|
||||
sound = "power_generators_electric_engine_running",
|
||||
sound_param = {max_hear_distance = 32, gain = 1.41, loop = true},
|
||||
sound_param = {max_hear_distance = 24, gain = 1.41, loop = true},
|
||||
key = "running",
|
||||
},
|
||||
running_idle = {
|
||||
sound = "power_generators_electric_engine_shutdown",
|
||||
sound_param = {max_hear_distance = 32, gain = 1.41},
|
||||
sound_param = {max_hear_distance = 24, gain = 1.41},
|
||||
},
|
||||
running_nopower = {
|
||||
sound = "power_generators_electric_engine_shutdown",
|
||||
sound_param = {max_hear_distance = 32, gain = 1.41},
|
||||
sound_param = {max_hear_distance = 24, gain = 1.41},
|
||||
},
|
||||
running_waiting = {
|
||||
sound = "power_generators_electric_engine_shutdown",
|
||||
sound_param = {max_hear_distance = 32, gain = 1.41},
|
||||
sound_param = {max_hear_distance = 24, gain = 1.41},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
@ -16,7 +16,7 @@ power_generators.electric_engine_800 = appliances.appliance:new(
|
||||
node_name_active = "power_generators:electric_engine_800_active",
|
||||
|
||||
node_description = S("Electric engine"),
|
||||
node_help = S("Use this for generata shaft torque.").."\n"..S("Startup and Shutdown by punch.").."\n"..S("Can be greased."),
|
||||
node_help = S("Use this for generate shaft power up to @1.", "160M").."\n"..S("Startup and Shutdown by punch.").."\n"..S("Can be greased."),
|
||||
|
||||
input_stack_size = 0,
|
||||
have_input = false,
|
||||
@ -40,32 +40,32 @@ power_generators.electric_engine_800 = appliances.appliance:new(
|
||||
sounds = {
|
||||
active_running = {
|
||||
sound = "power_generators_electric_engine_startup",
|
||||
sound_param = {max_hear_distance = 48, gain = 2},
|
||||
sound_param = {max_hear_distance = 32, gain = 2},
|
||||
},
|
||||
waiting_running = {
|
||||
sound = "power_generators_electric_engine_startup",
|
||||
sound_param = {max_hear_distance = 48, gain = 2},
|
||||
sound_param = {max_hear_distance = 32, gain = 2},
|
||||
},
|
||||
nopower_running = {
|
||||
sound = "power_generators_electric_engine_startup",
|
||||
sound_param = {max_hear_distance = 48, gain = 2},
|
||||
sound_param = {max_hear_distance = 32, gain = 2},
|
||||
},
|
||||
running = {
|
||||
sound = "power_generators_electric_engine_running",
|
||||
sound_param = {max_hear_distance = 48, gain = 2, loop = true},
|
||||
sound_param = {max_hear_distance = 32, gain = 2, loop = true},
|
||||
key = "running",
|
||||
},
|
||||
running_idle = {
|
||||
sound = "power_generators_electric_engine_shutdown",
|
||||
sound_param = {max_hear_distance = 48, gain = 2},
|
||||
sound_param = {max_hear_distance = 32, gain = 2},
|
||||
},
|
||||
running_nopower = {
|
||||
sound = "power_generators_electric_engine_shutdown",
|
||||
sound_param = {max_hear_distance = 48, gain = 2},
|
||||
sound_param = {max_hear_distance = 32, gain = 2},
|
||||
},
|
||||
running_waiting = {
|
||||
sound = "power_generators_electric_engine_shutdown",
|
||||
sound_param = {max_hear_distance = 48, gain = 2},
|
||||
sound_param = {max_hear_distance = 32, gain = 2},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
@ -54,18 +54,38 @@ local rpm_meter = power_generators.rpm_meter
|
||||
|
||||
rpm_meter:power_data_register(
|
||||
{
|
||||
["no_power"] = {
|
||||
disable = {}
|
||||
},
|
||||
["LV_power"] = {
|
||||
demand = 25,
|
||||
run_speed = 1,
|
||||
disable = {}
|
||||
disable = {"no_power"}
|
||||
},
|
||||
["power_generators_electric_power"] = {
|
||||
demand = 25,
|
||||
run_speed = 1,
|
||||
disable = {}
|
||||
disable = {"no_power"}
|
||||
},
|
||||
["elepower_power"] = {
|
||||
demand = 2,
|
||||
run_speed = 1,
|
||||
disable = {"no_power"}
|
||||
},
|
||||
["techage_electric_power"] = {
|
||||
demand = 10,
|
||||
run_speed = 1,
|
||||
disable = {"no_power"}
|
||||
},
|
||||
["factory_power"] = {
|
||||
demand = 1,
|
||||
run_speed = 1,
|
||||
disable = {"no_power"}
|
||||
},
|
||||
})
|
||||
|
||||
rpm_meter.node_help = S("Connect to power (@1).", rpm_meter:get_power_help()).."\n"..rpm_meter.node_help
|
||||
|
||||
--------------
|
||||
-- Formspec --
|
||||
--------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user