minor improvements

This commit is contained in:
Joachim Stolberg 2020-06-23 20:34:44 +02:00
parent 66e5a8f6fb
commit a8a116fc00
4 changed files with 77 additions and 113 deletions

105
README.md
View File

@ -1,94 +1,45 @@
# Tech Age [techage] (Minetest 5.0+)
# TA4 Jetpack [ta4_jetpack]
Tech Age, a mod to go through 4 tech ages in search of wealth and power.
**A Jetpack for techage with hydrogen as fuel and TA4 recipe**
**Tech Age (techage) is the successor to TechPack V2, at first glance similar and yet completely different!**
![screenshot](https://github.com/joe7575/techage/blob/master/screenshot.png)
The Jetpack is inspired by the jetpack from spirit689 (https://github.com/spirit689/jetpack)
and by the historical game Lunar Lander.
Important facts:
- techage is not backwards compatible and cannot be installed on a server together with TechPack
- techage is significantly more extensive, since additional mods are integrated
- techage represents 4 technological ages:
- Iron Age (TA1) - simple tools like coal pile, coal burner, gravel sieve, hammer for getting ores and making goods
- Steam Age (TA2) - Simple machines that are powered by steam engines and drive axles
- Oil Age (TA3) - More modern machines that are powered by electricity.
The electricity is generated by coal & oil power plants. The oil must be explored, extracted and transported.
- Future Age (TA4) - Electricity from renewable energy sources such as sun and wind.
Environmentally friendly electricity storage, intelligent machines and means of transport of the future
- Since the levels build on each other, all ages have to be run through one after the other
In contrast to TechPack, the resources are more limited and it is much more difficult to pass all levels.
(no endless ore generation by means of cobble generators)
[Manuals](https://github.com/joe7575/techage/wiki)
Instructions:
- Craft TA4 Jetpack, Jetpack Controller and Training Mat
- Use the armor extension (3d_armor) of the player menu to strap the Jetpack on your back
- You can refuel the jetpack by left-clicking with the controller on a hydrogen tank
- Turn the controller on by right-click and check the fuel tank level (the small colored bar below the controller icon)
- Use the space bar to activate the Jetpack and the WASD keys to control the direction
- Before your first flight you should do some training starts and landings on the Training Mat
(The Jetpack is a bit stubborn, it takes some practice to keep the JetPack in the air)
Important to know:
- 12 units of hydrogen are sufficient for a flight of 6 minutes
- Maximum 5 items stacks in your inventory are allowed including the controller.
Otherwise you would be too heavy :-)
- The Jetpack also wears out and can be used for approximately 10 flights
### License
Copyright (C) 2019-2020 Joachim Stolberg
Code: Licensed under the GNU GPL version 3 or later. See LICENSE.txt
Copyright (C)2020 Joachim Stolberg
Code: Licensed under the GNU GPL version 3 or later. See LICENSE.txt
Textures: CC BY-SA 3.0
Sounds:
- "ta4_jetpack_on.ogg" Copyright by lextrack CC0 1.0 (https://freesound.org/s/346323/)
- "ta4_jetpack_alarm.ogg" Copyright by Tim_Verberne CC0 1.0 (https://freesound.org/s/514079/)
### Dependencies
Required: default, doors, bucket, stairs, screwdriver, basic_materials, tubelib2, minecart, lcdlib, safer_lua
Recommended: signs_bot, hyperloop, compost, techpack_stairway, autobahn
Optional: unified_inventory, wielded_light, unifieddyes, lua-mashal, lsqlite3, moreores, ethereal, mesecon
The mods `default`, `doors`, `bucket`, `stairs`, and `screwdriver` are part of Minetest Game.
`basic_materials` will be found here: https://content.minetest.net/
The following mods in the newest version have to be downloaded directly from GitHub:
* [tubelib2](https://github.com/joe7575/tubelib2)
* [minecart](https://github.com/joe7575/minecart)
* [lcdlib](https://github.com/joe7575/lcdlib)
* [safer_lua](https://github.com/joe7575/safer_lua)
It is highly recommended that you install the following mods, too:
* [signs_bot](https://github.com/joe7575/signs_bot): For many automation tasks in TA3/TA4 like farming, mining, and item transportation
* [hyperloop](https://github.com/joe7575/Minetest-Hyperloop): Used as passenger transportation system in TA4
* [compost](https://github.com/joe7575/compost): The garden soil is needed for the TA4 LED Grow Light based flower bed
* [techpack_stairway](https://github.com/joe7575/techpack_stairway): Ladders, stairways, and bridges for your machines
* [autobahn](https://github.com/joe7575/autobahn): Street blocks and slopes with stripes for faster traveling
For large servers with many player, the following packages are recommended:
* `lua-mashal` for faster serialization/deserialization of data
* `lsqlite3` for storing node and network data
Both packages are installed via [luarocks](https://luarocks.org/):
luarocks install lua-marshal
luarocks install lsqlite3
To enable this `unsafe` packages, add 'techage' to the list of trusted mods in minetest.conf:
secure.trusted_mods = techage
For the installation of 'luarocks' (if not already available), see [luarocks](https://luarocks.org/)
If you enable 'lsqlite3' you also have to enable 'lua-marshal'. Available worlds will be converted
to 'lsqlite3' and 'lua-marshal', but there is no way back, so:
** Never disable 'lsqlite3' and 'lua-marshal' for a world, which it was already used!**
Required: techage, default, 3d_armor
### History
- 2019-06-16 V0.01 * First upload
- 2019-09-28 V0.02 * TA3 finished
- 2020-02-29 V0.04 * TA4 ICTA controller added
- 2020-03-14 V0.05 * TA4 Lua controller added
- 2020-04-24 V0.06 * TA4 injector added
- 2020-04-26 V0.07 * English translation added
- 2020-05-22 V0.08 * Support for 'lua-marshal' and 'lsqlite3' added
- 2020-05-31 V0.09 * TA4 tubes upgraded, manuals updated
- 2020-06-04 V0.10 * minor changes and bugfixes
- 2020-06-14 V0.11 * cart commands added for both controllers, support for moreores added
- 2020-06-17 V0.12 * Ethereal support added, manual correction, tin ingot recipe bugfix
- 2020-06-19 V0.13 * Mesecons Converter added
- 2019-06-23 V0.01 * First version

View File

@ -7,10 +7,7 @@
GPL v3
See LICENSE.txt for more information
Jetpack inspired by jetpack from spirit689 (https://github.com/spirit689/jetpack)
and the historical game Lunar Lander.
]]--
-- Load support for I18n.
@ -37,9 +34,9 @@ local WEAR_VALUE = 180 -- roughly 10 flys, 6 min each
local function store_player_physics(player)
local meta = player:get_meta()
-- Check access conflicts with other mods
if meta:get_int("player_physics_under_control") == 0 then
if meta:get_int("player_physics_locked") == 0 then
local physics = player:get_physics_override()
meta:set_int("player_physics_under_control", 1)
meta:set_int("player_physics_locked", 1)
meta:set_int("ta4_jetpack_normal_player_speed", physics.speed)
meta:set_int("ta4_jetpack_normal_player_gravity", physics.gravity)
return true
@ -52,7 +49,7 @@ local function restore_player_physics(player)
local physics = player:get_physics_override()
physics.speed = meta:get_int("ta4_jetpack_normal_player_speed")
physics.gravity = meta:get_int("ta4_jetpack_normal_player_gravity")
meta:set_int("player_physics_under_control", 0)
meta:set_int("player_physics_locked", 0)
player:set_physics_override(physics)
end
@ -146,19 +143,19 @@ local function check_player_load(player)
local bags_meta = meta:get_string("unified_inventory:bags")
if bags_meta then
if next(minetest.deserialize(bags_meta) or {}) then
return S("bags are used!")
return S("check your bags!")
end
end
for _, stack in ipairs(inv:get_list("craft") or {}) do
if not stack:is_empty() then
return S("carfting grid is used!")
return S("check your carfting menu!")
end
end
local count = 0
for _, stack in ipairs(inv:get_list("main") or {}) do
count = count + (stack:is_empty() and 0 or 1)
if count > MAX_NUM_INV_ITEMS then
return S("more than 5 stacks are used!")
return S("check your inventory!")
end
end
end
@ -502,29 +499,29 @@ minetest.register_node("ta4_jetpack:trainingmat", {
groups = {cracky = 3, oddly_breakable_by_hand = 1, fall_damage_add_percent = -80, bouncy = 40},
})
--minetest.register_craft({
-- output = "ta4_jetpack:jetpack",
-- recipe = {
-- {"technic:carbon_steel_ingot", "jetpack:battery", "technic:carbon_steel_ingot"},
-- {"jetpack:motor", "technic:mv_cable", "jetpack:motor"},
-- {"", "", ""}
-- },
--})
minetest.register_craft({
output = "ta4_jetpack:jetpack",
recipe = {
{"techage:ta4_carbon_fiber", "", "techage:ta4_carbon_fiber"},
{"techage:aluminum", "techage:ta3_cylinder_large", "techage:aluminum"},
{"basic_materials:motor", "basic_materials:steel_bar", "basic_materials:motor"}
},
})
--minetest.register_craft({
-- output = "ta4_jetpack:controller_off",
-- recipe = {
-- {"technic:carbon_steel_ingot", "jetpack:battery", "technic:carbon_steel_ingot"},
-- {"jetpack:motor", "technic:mv_cable", "jetpack:motor"},
-- {"", "", ""}
-- },
--})
minetest.register_craft({
output = "ta4_jetpack:controller_off",
recipe = {
{"basic_materials:plastic_sheet", "techage:basalt_glass_thin", "basic_materials:plastic_sheet"},
{"techage:ta4_wlanchip", "techage:ta4_battery", "techage:ta4_ramchip"},
{"", "", ""}
},
})
--minetest.register_craft({
-- output = "ta4_jetpack:trainingmat",
-- recipe = {
-- {"technic:carbon_steel_ingot", "jetpack:battery", "technic:carbon_steel_ingot"},
-- {"jetpack:motor", "technic:mv_cable", "jetpack:motor"},
-- {"", "", ""}
-- },
--})
minetest.register_craft({
output = "ta4_jetpack:trainingmat",
recipe = {
{"dye:green", "dye:green", "dye:green"},
{"techage:ta4_carbon_fiber", "techage:ta4_carbon_fiber", "techage:ta4_carbon_fiber"},
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"}
},
})

View File

@ -1,6 +1,14 @@
# textdomain: ta4_jetpack
Jetpack Training Mat=Jetpack Trainingsmatte
TA4 Jetpack=TA4 Jetpac
TA4 Jetpack Controller Off=TA4 Jetpack Controller Aus
TA4 Jetpack Controller On=TA4 Jetpack Controller An
Use the controller (left click) to fill the tank with hydrogen=Benutze den Controller (linksklick) um den Tank mit Wasserstoff zu füllen
[Jetpack] You are too heavy: =[Jetpack] Du bist zu schwer:
[Jetpack] You don't have your jetpack on your back!=[Jetpack] Du hast dein Jetpack nicht auf dem Rücken!
[Jetpack] Your tank is empty!=[Jetpack] Dein Tank ist leer!
##### not used anymore #####
check your bags!=Prüfe deine Rucksäcke!
check your carfting menu!=Prüfe dein Crafting Menü!
check your inventory!=Prüfe dein Inventar!
##### not used anymore #####

View File

@ -1,3 +1,11 @@
Jetpack Training Mat=
TA4 Jetpack=
TA4 Jetpack Controller Off=
TA4 Jetpack Controller On=
Use the controller (left click) to fill the tank with hydrogen=
[Jetpack] You are too heavy: =
[Jetpack] You don't have your jetpack on your back!=
[Jetpack] Your tank is empty!=
[Jetpack] Your tank is empty!=
check your bags!=
check your carfting menu!=
check your inventory!=