Commit Graph

57 Commits

Author SHA1 Message Date
obl3pplifp
8a987bb361 Add tubelib support to technic chests (#498) 2019-06-09 20:48:52 +02:00
mat9117
c9ba4b329d Add Polish translation (#493) 2019-03-31 13:00:48 +02:00
Christopher Head
4f78a69ffc Fix trailing whitespace (#482)
Trim all trailing whitespace characters,
2019-01-26 14:15:40 +01:00
Vanessa Dannenberg
44cb8df048 use basic_materials mod where possible. 2018-11-11 09:54:20 +01:00
Vitaliy
68fac3ed7b Fix wooden chest formspec (#429) 2018-07-15 12:28:34 +02:00
SmallJoker
6664714313 Skip interact check for fake players
Fixes crash related to pipeworks
default.can_interact_with_node is not official part of the API yet. Using it anyway..
2018-06-28 19:49:04 +02:00
DS-Minetest
930c51eef9 chests: fix sort_inventory function 2018-01-07 09:56:55 +01:00
Vanessa Ezekowitz
d4162be9a7 remove wooden chests redefinitions
they're incompatible with current minetest_game and do nothing useful anyway
2017-06-17 22:06:37 -04:00
Carlos
e1bb29c338 Agrege la traduccion al español (#362) 2017-06-05 10:52:31 -04:00
Vanessa Ezekowitz
d2fb249d94 fix wrong toggle switch "on" img in chests 2017-04-11 20:57:23 -04:00
Vanessa Ezekowitz
fab2c492c4 pipeworks has button on/off, button label, and button "base" cached
used them wherever possible
2017-04-11 19:19:29 -04:00
Vanessa Ezekowitz
b6d343e928 add pipeworks tube connection overlays to all chests
(only applies if pipeworks is installed, if not, nothing is added)
2017-04-11 07:15:59 -04:00
Vanessa Ezekowitz
11f20da744 allow per-chest stack splitting
(default off)
2017-04-11 04:41:26 -04:00
Vanessa Ezekowitz
af39221df9 only reject part of itemtack from chest/machine/etc., if possible
(e.g. if there's room for 50 of some item, and you send a stack of 99,
50 are added to the chest and a stack of 49 is rejected and sent
on to the next destination)
2017-04-09 20:35:11 -04:00
Thomas--S
ec6354b6a5 Update chests protection to current minetest_game 2017-03-06 21:09:44 +01:00
Thomas--S
35da22fcd2 Fix chest bug 2017-03-06 20:32:18 +01:00
Vanessa Ezekowitz
dd580e7684 Merge pull request #307 from Thomas--S/patch-2
Update chest definitions to current minetest_game definitions
2017-03-06 14:21:05 -05:00
Thomas--S
6b52c78963 Update chest definitions to current minetest_game definitions 2017-01-15 15:58:13 +01:00
Thomas--S
5f1919d2bc Update has_locked_chest_privilege to current minetest_game function 2017-01-15 15:51:53 +01:00
est31
d732c8dfbd Add listring functionality
Add shift-click functionality
2015-06-18 04:09:27 +02:00
Rogier
fcef0ef987 Make chests usable if pipeworks is not installed 2015-06-17 17:06:49 -04:00
Rogier
ae7f49de38 Make chests usable without moreores (& add soft dependency) 2015-06-17 17:06:49 -04:00
Rogier
84812d2307 Make technic_chests not (implicitly) depend on technic
(by moving two images that are used for chests only, from technic/textures
 to technic_chests/textures)
2015-06-17 17:06:49 -04:00
sdzen
055ee23431 Readd myself 2015-06-06 10:39:47 -04:00
Vanessa Ezekowitz
24eca043d0 allow form backgrounds for chests to be textured separately 2015-05-03 15:13:45 -04:00
Mahmut Elmas
db35c9b54b add turkish locale 2015-03-11 18:08:16 -04:00
Vanessa Ezekowitz
cbfeb0192c fix crash placing chests re: tubes 2015-02-07 12:07:17 -05:00
Vanessa Ezekowitz
d5db189cf4 fix chests connecting to tubes 2015-02-07 03:22:56 -05:00
Tim
41a10a86d5 reduce intllib code 2015-02-05 10:09:14 +01:00
Tim
c17732b16f localize modpath variable 2015-02-05 09:50:55 +01:00
Tim
49e82a604b supress undeclared variable access warnings in cases of intentional declaration checks 2015-02-05 09:47:37 +01:00
est31
4735055b94 Update chests formspec to not be deprecated 2015-02-03 11:14:26 +01:00
est31
d452d16fa6 Make technic chests independent from unified inventory
Copy the textures made by RealBadAngel (under WTFPL) from unified inventory to technic to avoid minetest not finding them when unified inventory is not installed.
2015-02-03 07:43:58 +01:00
Zefram
d60e3fe939 Reduce dependencies of technic_chests
technic_chests was depending on the technic mod, for the top-level
"technic" table and the technic.swap_node function.  Resolve that by
sharing the top-level table and inlining the one use of the function.
It was also depending on technic_worldgen, for the definitions of
cast iron and wrought iron.  Make the use of cast iron conditional on
technic_worldgen, falling back to default "steel".  Change the use of
wrought iron to directly use default "steel", to which it is aliased
anyway.
2014-07-26 19:45:31 +01:00
Zefram
1bf52c2d5a Better chest color button layout
Where possible (which it currently is for the gold chest), don't break
the centering of the player inventory in the chest formspec because
of the color buttons.  Where the color buttons don't fit next to a
perfectly centered player inventory (which doesn't currently occur for
any technic chest), move the player inventory only as much as necessary
to accommodate the color buttons.
2014-07-23 16:49:08 +01:00
Zefram
1d7cb74053 Bring wooden chest fully into the chest system
Re-register most aspects of default:chest and default:chest_locked,
using the technic chests code, so that the wooden chests fit properly
into the sequence of chest types.  This mainly affects the formspec,
which now uses the style of the other chests, rather than the bare style
used by the default mod.
2014-07-23 16:49:07 +01:00
ShadowNinja
ad0c310b6b Remove dependency on moreores that was accidentally left in place 2014-07-21 13:21:13 -04:00
Zefram
4ea213c1e0 Reduce mithril chest to gold chest size
Due to concerns about form appearance, reduce mithril chest size to avoid
its form exceeding screen height.  This reduces it to the same size as
the gold chest.  Having two chest types of the same size looks silly now,
but will be reasonable as soon as mithril chests get their long-planned
special features.
2014-06-27 18:48:10 +02:00
Zefram
96ad67b9ef Buff chest sizes
Make the inventory sizes of all the technic chests larger, to provide
a more appreciable benefit from upgrading chests, more in keeping with
the resources spent on the upgrades.

Currently the game engine doesn't handle large forms well.  The size
of an inventory slot is fixed relative to the screen height, and a
form that exceeds either screen dimension will extend off the screen,
making parts of it inaccessible.  The tallest a form can get and remain
usable is 13 slots, and even that slightly overspills the screen height.
The maximum usable width depends on the screen aspect ratio.  For the
narrowest common ratio, 5:4, the widest a form can usably get is 15 slots,
again slightly overspilling.  Combined with the layout of the chest forms,
this implies a maximum practical chest inventory size of 15x7 (= 105),
slightly smaller than the largest Minecraft chests.

To provide roughly equal size steps in the five upgrades from wooden
chest (staying at 8x4 = 32) to mithril chest, the steps need to be of
about 15 slots instead of the former 4.  The new sizes are:

    wooden   8x4  32
    iron     9x5  45
    copper  12x5  60
    silver  12x6  72
    gold    15x6  90
    mithril 15x7 105

To make upgrading from the old chest sizes to the new sizes more
convenient, the inventory size is now set not only upon chest construction
but also when accepting form input, at the same time as rewriting
the formspec.  So after upgrading the technic mod, viewing an existing
chest upgrades it to the new size.  The first time a pre-existing chest
is viewed its form will have the old dimensions, looking broken due
to the inventory background image now having the new number of slots.
The second time it is viewed the form will have the new dimensions,
and the full new number of slots will be usable.
2014-06-27 18:48:10 +02:00
Zefram
f7d103cd96 Rename default chest to "Wooden Chest"
All the chests added by technic specify their material in their
description, so the description "Chest" for the default chest looks
ambiguous.  Rename it to seamlessly fit into the range of chest types.
2014-06-21 01:20:30 +02:00
Zefram
68b7bcc28e split default iron/steel into three metals
Override the default mod's iron/steel substance, replacing it with three
metals: wrought iron (pure iron), carbon steel (iron alloyed with a little
carbon), and cast iron (iron alloyed with lots of carbon).  Wrought iron
is easiest to refine, then cast iron, and carbon steel the most difficult,
matching the historical progression.  Recipes that used default steel are
changed to use one of the three, the choice of alloy for each application
being both somewhat realistic and also matching up with game progression.

The default:steel{_ingot,block} items are identified specifically with
wrought iron.  This makes the default refining recipes work appropriately.
Iron-using recipes defined outside technic are thus necessarily
reinterpreted to use wrought iron, which is mostly appropriate.
Some objects are renamed accordingly.

Rather than use the default steel textures for wrought iron, with technic
providing textures for the other two, technic now provides textures for
all three metals.  This avoids problems that would occur with texture
packs that provide default_steel_{ingot,block} textures that are not
intended to support this wrought-iron/carbon-steel/cast-iron distinction.
A texture pack can provide a distinct set of three textures specifically
for the situation where this distinction is required.

Incidentally make grinding and alloy cooking recipes work correctly when
ingredients are specified by alias.
2014-05-22 20:57:50 +02:00
RealBadAngel
5c689acc22 Chests sorting by Zefram_Fysh 2014-05-01 09:32:01 +02:00
Zefram
e10335e952 Fix chest log messages
All log messages about moving stuff in/into/from chests described them
as "locked", whether the chests are locked or not.  Remove that word,
so the messages make no claim about lockedness.
2014-04-27 14:43:25 -04:00
Zefram
593972b156 Save chest label when exiting formspec
When using the form to edit a chest label, apply the edited label whenever the
form is submitted with the text field included, rather than only if the form's
specific "finished editing" button is used.  This supports the natural use of
<ret> to indicate that text editing is complete, which works with other text
editing forms such as that for signs.
2014-04-24 16:35:41 -04:00
Xanthin
39c41a06f4 Add german translations for all mods 2014-04-22 16:30:27 -04:00
ShadowNinja
179364ff8f Add translation support to technic_chests 2014-03-30 19:32:13 -04:00
ShadowNinja
187fd90a7c Make some headers smaller in the READMEs 2014-02-27 00:32:37 -05:00
ShadowNinja
2db9121bdb Update READMEs 2014-02-27 00:30:29 -05:00
ShadowNinja
0d32e05b52 Fix stack count fetching 2013-12-20 14:38:16 -05:00
ShadowNinja
78cacdcbc6 Rewrite chests 2013-12-17 19:15:20 -05:00