help pages added

This commit is contained in:
Joachim Stolberg 2019-06-11 20:31:53 +02:00
parent ae98b92f67
commit 4cc4f4c75f
11 changed files with 117 additions and 15 deletions

View File

@ -51,7 +51,7 @@ function techage.firebox.formspec(mem)
"image[2,0.5;1,1;default_furnace_fire_bg.png^[lowpart:".. "image[2,0.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
fuel_percent..":default_furnace_fire_fg.png]".. fuel_percent..":default_furnace_fire_fg.png]"..
"label[4.5,0.1;"..I("Power")..":]".. "label[4.5,0.1;"..I("Power")..":]"..
"dropdown[6,0;1.8;power_level;25%,50%,75%,100%;"..power_level.."]".. "dropdown[6,0;1.8;power_level;25%,50%,75%,100%;"..mem.power_level.."]"..
"button[1,1.5;1.8,1;update;"..I("Update").."]".. "button[1,1.5;1.8,1;update;"..I("Update").."]"..
"list[current_player;main;0,2.8;8,4;]".. "list[current_player;main;0,2.8;8,4;]"..
"listring[current_name;fuel]".. "listring[current_name;fuel]"..

View File

@ -193,7 +193,8 @@ minetest.register_craft({
}) })
techage.register_help_page(I("TA3 Booster"), techage.register_help_page(I("TA3 Booster"),
I([[Part of the TA3 Furnace and further machines. I([[Part of the TA3 Industrial Furnace
and further machines.
Used to increase the air/gas pressure.]]), "techage:ta3_booster") Used to increase the air/gas pressure.]]), "techage:ta3_booster")

View File

@ -210,3 +210,8 @@ minetest.register_lbm({
minetest.get_node_timer(pos):start(CYCLE_TIME) minetest.get_node_timer(pos):start(CYCLE_TIME)
end end
}) })
techage.register_help_page(I("TA3 Furnace Firebox"),
I([[Part of the TA3 Industrial Furnace.
Faster and more powerful
than the standard furnace.]]), "techage:furnace_firebox")

View File

@ -257,3 +257,8 @@ minetest.register_craft({
{"", "techage:vacuum_tube", ""}, {"", "techage:vacuum_tube", ""},
}, },
}) })
techage.register_help_page(I("TA3 Furnace Top"),
I([[Part of the TA3 Industrial Furnace.
Faster and more powerful
than the standard furnace.]]), "techage:ta3_furnace_pas")

43
furnace/help.lua Normal file
View File

@ -0,0 +1,43 @@
--[[
TechAge
=======
Copyright (C) 2019 Joachim Stolberg
LGPLv2.1+
See LICENSE.txt for more information
TA3 Furnace Help
]]--
-- Load support for intllib.
local MP = minetest.get_modpath("techage")
local S, NS = dofile(MP.."/intllib.lua")
local HelpText = S([[1. Build the Furnace with
TA3 Furnace Firebox, TA3 Furnace Top,
and TA3 Booster according to the plan.
2. Heat the Firebox with coal/charcoal/oil
3. Power the Booster with electrical power.
4. Select one of the possible outputs
5. Connect the TA3 Furnace Top with your machines by means of tubes.
6. Start the Furnace]])
local Cable = "techage_electric_cable_inv.png"
local Tube = "techage_tube_tube.png"
local Pusher = "techage_appl_pusher.png^techage_frame_ta3.png"
local Booster = "techage_filling_ta3.png^techage_appl_compressor.png^[transformFX^techage_frame_ta3.png"
local Firebox = "techage_concrete.png^techage_appl_firehole.png^techage_frame_ta3.png"
local Furnace = "techage_concrete.png^techage_appl_furnace.png^techage_frame_ta3.png"
local Images = {
{false, false, false, false, false, false, false},
{Tube, Pusher, Tube, Furnace, Tube, Pusher, Tube},
{false, Cable, Booster, Firebox, false, false, false},
}
techage.register_help_page(S("TA3 Industrial Furnace"), HelpText, nil, Images)

View File

@ -105,6 +105,7 @@ else
dofile(MP.."/coal_power_station/akkubox.lua") dofile(MP.."/coal_power_station/akkubox.lua")
-- Industrial Furnace -- Industrial Furnace
dofile(MP.."/furnace/help.lua")
dofile(MP.."/furnace/firebox.lua") dofile(MP.."/furnace/firebox.lua")
dofile(MP.."/furnace/cooking.lua") dofile(MP.."/furnace/cooking.lua")
dofile(MP.."/furnace/furnace_top.lua") dofile(MP.."/furnace/furnace_top.lua")
@ -120,6 +121,7 @@ else
dofile(MP.."/lamps/industriallamp2.lua") dofile(MP.."/lamps/industriallamp2.lua")
-- Oil -- Oil
dofile(MP.."/oil/help.lua")
dofile(MP.."/oil/explore.lua") dofile(MP.."/oil/explore.lua")
dofile(MP.."/oil/tower.lua") dofile(MP.."/oil/tower.lua")
dofile(MP.."/oil/drillbox.lua") dofile(MP.."/oil/drillbox.lua")

View File

@ -32,7 +32,7 @@ local formspec0 = "size[5,4]"..
default.gui_bg_img.. default.gui_bg_img..
default.gui_slots.. default.gui_slots..
"image[1,0;3.4,3.4;techage_oil_tower_inv.png]".. "image[1,0;3.4,3.4;techage_oil_tower_inv.png]"..
"button_exit[1,3.2;3,1;build;"..I("Build Tower").."]" "button_exit[1,3.2;3,1;build;"..I("Build derrick").."]"
local function play_sound(pos) local function play_sound(pos)
local mem = tubelib2.get_mem(pos) local mem = tubelib2.get_mem(pos)
@ -73,7 +73,7 @@ local function formspec(self, pos, mem)
"image_button[3.5,2;1,1;".. self:get_state_button_image(mem) ..";state_button;]".. "image_button[3.5,2;1,1;".. self:get_state_button_image(mem) ..";state_button;]"..
"label[6.2,0.5;OUT]".. "label[6.2,0.5;OUT]"..
"list[context;dst;6,1;1,1;]".. "list[context;dst;6,1;1,1;]"..
"button_exit[5,3;3,1;remove;"..I("Remove Tower").."]".. "button_exit[5,3;3,1;remove;"..I("Remove derrick").."]"..
"list[current_player;main;0,4;8,4;]".. "list[current_player;main;0,4;8,4;]"..
"listring[context;dst]".. "listring[context;dst]"..
"listring[current_player;main]".. "listring[current_player;main]"..
@ -261,7 +261,7 @@ local tubing = {
} }
local _, node_name_ta3, _ = local _, node_name_ta3, _ =
techage.register_consumer("drillbox", I("Oil Drill Box"), tiles, { techage.register_consumer("drillbox", I("TA3 Oil Drill Box"), tiles, {
drawtype = "normal", drawtype = "normal",
cycle_time = CYCLE_TIME, cycle_time = CYCLE_TIME,
standby_ticks = STANDBY_TICKS, standby_ticks = STANDBY_TICKS,
@ -308,9 +308,19 @@ minetest.register_craft({
}, },
}) })
techage.register_help_page(I("Oil Drill Box"), techage.register_help_page(I("TA3 Oil Drill Box"),
I([[Used to drill for oil, I([[The box automatically unfolds to a
Oil is used as fuel.]]), node_name_ta3) derrick when you press the button.
1: Place the box in the middle of the marked position
(the derrick requires a free area of 3x3m)
2: Press the build button
3: Supply the drill with electricity
4: Supply the drill with Drill Bits
5: Press the start button
6: Remove the excavated material with Tubes/Pusher
7: The drill stops when oil is found
(drill speed is 1m/8s)
8: Replace the drill with the Pumpjack]]), node_name_ta3)
minetest.register_lbm({ minetest.register_lbm({
label = "[techage] Oil Tower sound", label = "[techage] Oil Tower sound",

View File

@ -174,7 +174,7 @@ end
-- Used as storage for already explored blocks -- Used as storage for already explored blocks
minetest.register_node("techage:oilstorage", { minetest.register_node("techage:oilstorage", {
description = I("TA Oil Storage"), description = I("TA3 Oil Storage"),
tiles = {"default_stone.png"}, tiles = {"default_stone.png"},
groups = {not_in_creative_inventory=1}, groups = {not_in_creative_inventory=1},
diggable = false, diggable = false,
@ -183,7 +183,7 @@ minetest.register_node("techage:oilstorage", {
}) })
minetest.register_node("techage:oilexplorer", { minetest.register_node("techage:oilexplorer", {
description = I("TA Oil Explorer"), description = I("TA3 Oil Explorer"),
tiles = { tiles = {
"techage_filling_ta3.png^techage_appl_oilexplorer_top.png^techage_frame_ta3_top.png", "techage_filling_ta3.png^techage_appl_oilexplorer_top.png^techage_frame_ta3_top.png",
"techage_filling_ta3.png^techage_frame_ta3.png", "techage_filling_ta3.png^techage_frame_ta3.png",
@ -202,7 +202,7 @@ minetest.register_node("techage:oilexplorer", {
}) })
minetest.register_node("techage:oilexplorer_on", { minetest.register_node("techage:oilexplorer_on", {
description = I("TA Oil Explorer"), description = I("TA3 Oil Explorer"),
tiles = { tiles = {
{ {
image = "techage_filling4_ta3.png^techage_appl_oilexplorer_top4.png^techage_frame4_ta3_top.png", image = "techage_filling4_ta3.png^techage_appl_oilexplorer_top4.png^techage_frame4_ta3_top.png",
@ -336,12 +336,12 @@ minetest.register_craft({
}, },
}) })
techage.register_help_page(I("TA Oil Explorer"), techage.register_help_page(I("TA3 Oil Explorer"),
I([[Used to find oil. I([[Used to find oil (petroleum).
Oil can be used as fuel for the Coal Power Station. Oil can be used as fuel for the Coal Power Stations and others.
Place the block and right-click on the block to explore the underground. Place the block and right-click on the block to explore the underground.
The block will explore a 16x16 field with a depth of up to 400 m. The block will explore a 16x16 field with a depth of up to 400 m.
To go deeper, you can click on the block several times. To search deeper, click the block several times.
When oil is found, the position for the Oil Tower is highlighted. When oil is found, the position for the Oil Tower is highlighted.
Hint: Mark and protect the position for later use.]]), Hint: Mark and protect the position for later use.]]),
"techage:oilexplorer") "techage:oilexplorer")

32
oil/help.lua Normal file
View File

@ -0,0 +1,32 @@
--[[
TechAge
=======
Copyright (C) 2019 Joachim Stolberg
LGPLv2.1+
See LICENSE.txt for more information
TA3 Oil Help
]]--
-- Load support for intllib.
local MP = minetest.get_modpath("techage")
local S, NS = dofile(MP.."/intllib.lua")
local HelpText = S([[In the TA3 age, oil (petroleum)
serves as an almost infinite fuel.
But oil is difficult and expensive to recover:
1: Search for oil with the TA3 Oil Explorer
2: Drill for oil with the TA3 Oil Drill Box (oil derrick)
3: Recover the oil with the TA3 Oil Pumpjack
4: A power station nearby provides the necessary
electrical power for the derrick and pumpjack.
5: Tubes or rails are used for oil transportation.
]])
techage.register_chap_page(S("TA3 Oil Age"), HelpText, "techage:oil_source")

View File

@ -205,3 +205,7 @@ minetest.register_craft({
{"", "techage:oil_drillbit", ""}, {"", "techage:oil_drillbit", ""},
}, },
}) })
techage.register_help_page(I("TA3 Oil Pumpjack"),
I([[The Pumpjack works similar to a pusher but needs
electricity for operation.]]), "techage:ta3_pumpjack_pas")

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B