Novatux [Wed, 2 Jul 2014 20:45:46 +0000 (22:45 +0200)]
Add MV version of compressor too, remove infinite sand-producing compressor recipe.
Novatux [Wed, 2 Jul 2014 20:24:38 +0000 (22:24 +0200)]
Refactor a lot of code: make only one registration function for grinder, extractor and electric furnace (compressor will follow soon)
Novatux [Wed, 2 Jul 2014 17:43:24 +0000 (19:43 +0200)]
Add MV extractor
Novatux [Wed, 2 Jul 2014 17:43:13 +0000 (19:43 +0200)]
Add registration code for extractor
Zefram [Sun, 22 Jun 2014 09:41:52 +0000 (10:41 +0100)]
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.
Zefram [Fri, 20 Jun 2014 17:46:57 +0000 (18:46 +0100)]
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.
ShadowNinja [Thu, 26 Jun 2014 20:53:38 +0000 (16:53 -0400)]
Fix the chainsaw's protection check
ShadowNinja [Thu, 26 Jun 2014 15:13:30 +0000 (11:13 -0400)]
Clean up and improve chainsaw
Phvli [Sun, 4 May 2014 16:59:37 +0000 (19:59 +0300)]
Make sure chainsaw drops appear above ground
A fix for https://github.com/minetest-technic/technic/issues/137
Chainsaw drops are forced to pop above ground. Also, as asl suggested,
they must not end up too high on a ledge or a pillar.
This also cleans up the code style of chainsaw.lua.
Zefram [Fri, 20 Jun 2014 21:35:56 +0000 (22:35 +0100)]
Handle lag better in drill
If a mining drill is apparently applied to a non-pointable node, do
nothing rather than drilling as normal. This situation usually arises
from lag, where the news of a node having been drilled didn't reach the
user quickly enough and the user thereby applied the drill twice to the
same node. The second drill attempt would formerly consume charge and
then find that all the nodes it wanted to dig had already been removed.
Zefram [Fri, 20 Jun 2014 15:58:52 +0000 (16:58 +0100)]
Rationalise machine terminology
All electrically-powered machines now consistently indicate their
tier (supply voltage) in their names. As this implies that they are
electrically powered, the furnaces no longer have "Electric" in their
names. The fuel-fired equivalents of electric machines, which exist
for alloy furnace and furnace, now say "Fuel-Fired" to distinguish them.
(The fuel-fired alloy furnace used to say "Coal", which was inaccurate
because it uses any fuel. The fuel-fired furnace, from the default mod,
used to just be called "Furnace", which is ambiguous.)
Electric power generators now consistently indicate their tier and have
the word "Generator" in their names. This makes their purpose much
clearer, and makes obvious craft guide searches produce useful results.
The fuel-fired generators, previously just (ambiguously) called
"Generator", are now explicitly "Fuel-Fired".
Zefram [Fri, 20 Jun 2014 14:44:05 +0000 (15:44 +0100)]
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.
Zefram [Sat, 7 Jun 2014 20:16:15 +0000 (21:16 +0100)]
Full glooptest support
To support the glooptest mod (successor of gloopores), define the
gloopores lump->dust grinding recipes if either of the mods is available.
(Formerly only "gloopores" was supported.) Define kalite dust item,
which was previously missing. Make gloop ingots grindable to dust as the
non-gloop ingots already are; incidentally refactor this to automatically
make ingots grindable whenever the ingot can be made by cooking dust.
Add textures for all the gloop dusts. Do the "Steel"->"Iron" renaming
for glooptest-defined tools and items.
Zefram [Sat, 24 May 2014 09:32:57 +0000 (10:32 +0100)]
Proper x32 texture for coal dust
Novatux [Sun, 8 Jun 2014 07:46:19 +0000 (09:46 +0200)]
Chainsaw should dig jungle leaves too.
ShadowNinja [Sat, 31 May 2014 01:13:14 +0000 (21:13 -0400)]
Fix wear_represents logic
ShadowNinja [Sat, 31 May 2014 01:00:58 +0000 (21:00 -0400)]
Remove unused parameter to is_empty()
ShadowNinja [Sat, 31 May 2014 00:58:32 +0000 (20:58 -0400)]
Fix crash when trying to repair unknown items
Zefram [Fri, 23 May 2014 21:37:44 +0000 (22:37 +0100)]
Better quarry control dialog
The size configuration is no longer cleared when exiting the dialog with
<esc>. The enable/disable toggle button now indicates the current state.
The name of the toggle button now varies according to state, so that
pressing the button multiple times in one state (which can arise due
to lag making the user unsure about whether the first press registered)
only makes the state change that the user requested, rather than toggling
repeatedly.
Zefram [Sun, 18 May 2014 20:03:58 +0000 (21:03 +0100)]
Stop quarry duplicating items
The quarry was digging via dig_node and also manually putting the node's
drops into the tube system. This assumed that dig_node would attempt
to put the drops in the player's inventory, doing nothing if there is
no such inventory. With the item_drop mod installed, dig_node would
instead turn the node into an item entity, so the quarry's strategy would
duplicate the item, making it appear both as an item entity in situ and
as an item in the tube. Instead, the quarry must use remove_node when
it manually processes the drops, just like the pipeworks node breaker.
Zefram [Sun, 18 May 2014 18:53:43 +0000 (19:53 +0100)]
Fix supply converter
Its registration as a battery (BA) node didn't work. It needs to be
registered as both a producer (PR) and a receiver (RE).
Zefram [Thu, 1 May 2014 20:21:40 +0000 (21:21 +0100)]
Only make gloop dusts if gloopores is present
Zefram [Thu, 1 May 2014 20:13:14 +0000 (21:13 +0100)]
Make stainless steel ingot grindable to dust
Consistent with all the other ingot/dust pairs.
Novatux [Fri, 23 May 2014 17:51:23 +0000 (19:51 +0200)]
Upgrades to battery boxes too, prevent frames from moving too often (one move every second max)
Zefram [Fri, 16 May 2014 21:02:49 +0000 (22:02 +0100)]
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.
Novatux [Sun, 18 May 2014 14:11:06 +0000 (16:11 +0200)]
Mining lasers: don't dig the node the player is in.
Novatux [Sun, 18 May 2014 12:47:05 +0000 (14:47 +0200)]
Fix errors when trying to charge buckets of water.
RealBadAngel [Tue, 6 May 2014 20:11:04 +0000 (22:11 +0200)]
Fix invalid check for UI.
asl97 [Sun, 4 May 2014 07:10:11 +0000 (15:10 +0800)]
Move checking of node that should be ignore above protection checking
firing a laser into a sky while in someone land without hitting anything but air shouldn't get anyone ban
Vanessa Ezekowitz [Sun, 4 May 2014 19:23:34 +0000 (15:23 -0400)]
86400 ticks is one week, not 24h
roberto5 [Thu, 1 May 2014 10:56:38 +0000 (12:56 +0200)]
Improve italian translation
RealBadAngel [Thu, 1 May 2014 07:32:01 +0000 (09:32 +0200)]
Chests sorting by Zefram_Fysh
Zefram [Wed, 30 Apr 2014 09:49:54 +0000 (10:49 +0100)]
Refill behaviour for power tools and cans
Supply the on_refill hook for power tools and cans, to perform appropriate
charging. This is to be used by unified_inventory's creative-mode
refill slot.
Zefram [Mon, 21 Apr 2014 19:24:01 +0000 (20:24 +0100)]
various backward-compatibility aliases
Zefram [Tue, 29 Apr 2014 23:19:17 +0000 (00:19 +0100)]
Register craft types with unified_inventory
Zefram [Tue, 29 Apr 2014 20:43:20 +0000 (21:43 +0100)]
Declare unified_inventory optional dependency
Make sure unified_inventory is loaded before us if present, so that we
successfully register crafts with it.
Zefram [Mon, 28 Apr 2014 19:41:33 +0000 (20:41 +0100)]
Fix can wear following tool workshop change
The cans used set_RE_wear() to manage their wear bars. As that now only
sets wear for power tools, the cans need a separate function.
Zefram [Mon, 28 Apr 2014 09:44:07 +0000 (10:44 +0100)]
Genericise handling of multiple meanings of wear
The tool workshop is meant to repair mechanical damage to tools, so
is at risk of `repairing' tools that use the wear bar to represent
something other than mechanical wear. It had special-case recognition
of the water and lava cans, which use the wear bar to represent how much
content they're carrying, and wouldn't repair them. But it didn't avoid
`repairing' RE chargeable items, which use the wear bar to represent
how much energy they have stored. It would modify the wear bar without
actually affecting the charge, so the wear bar would jump back to the
correct place when the next charging or discharging event occurred.
To genericise, introduce a new item property, "wear_represents", which
indicates how the wear bar is used for this item. Currently defined
values are "mechanical_wear" (straightforward damage to tools that
start out perfect), "technic_RE_charge" (electrical energy, canonically
represented in the meta rather than the wear bar), and "content_level"
(how full a container is). For backcompat, nil is interpreted as
"mechanical_wear". The tool workshop will only repair "mechanical_wear"
tools. As a bonus, set_RE_wear() will only set the wear bar for
"technic_RE_charge" items: this means developers will notice if they
forget to declare wear_represents, but also means that with no further
changes it's possible to have an RE chargeable item that uses its wear
bar to represent something else.
Zefram [Fri, 25 Apr 2014 22:18:50 +0000 (23:18 +0100)]
fix tube properties for injector
By relying on another no-longer-extant definition, the injector didn't
visually connect to the tube below it.
Zefram [Fri, 25 Apr 2014 22:09:08 +0000 (23:09 +0100)]
fix groups for injector
The injector was in no groups, and therefore not breakable by ordinary
means. This was because the code referred to a defined variable that
went away in the course of a rewrite of the chests code.
Zefram [Sun, 27 Apr 2014 17:45:22 +0000 (18:45 +0100)]
Fix search for operating flashlight
Having a never-charged flashlight in the hotbar earlier than a charged
flashlight prevented the charged flashlight being found.
Zefram [Sun, 27 Apr 2014 17:40:21 +0000 (18:40 +0100)]
Fix discharge of flashlight and sonic screwdriver
These two tools wouldn't discharge all the way to zero through use,
unlike most chargeable items.
Incidentally remove a duplicate of the check_for_flashlight() function.
Zefram [Sat, 26 Apr 2014 22:26:07 +0000 (23:26 +0100)]
Fix flashlight's light generation
The flashlight was lighting the wrong node, 1 m east of the player's lower
half, thus getting no light if the player is adjacent to an eastern wall.
Restore the old 1 m above, that coincides with the player's hands.
There was a problem with light from the flashlight getting stuck in
the map. This arises because the flashlight's light value was 15, the
reserved value that the engine uses for sunlight. Moving the flashlight
upwards, by jumping while it is equipped, would cause the node below it to
acquire a bogus sunlit state. Fix this by reducing the flashlight's light
value to 14 (LIGHT_MAX), which is the maximum permitted for non-sunlight.
The light_off node type is not required. With the light value limited
to 14, mere removal of the light node suffices to correctly recalculate
lighting.
Zefram [Sat, 26 Apr 2014 20:27:43 +0000 (21:27 +0100)]
Fix flashlight light node declarations
The light and light_off node types should be not_in_creative_inventory,
and should drop nothing.
Zefram [Sat, 26 Apr 2014 20:12:10 +0000 (21:12 +0100)]
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.
Zefram [Sat, 26 Apr 2014 20:07:05 +0000 (21:07 +0100)]
Fix drops for active machines
Active machine nodes need to drop their inactive counterpart. Some were
missing that declaration.
Zefram [Sat, 26 Apr 2014 19:02:19 +0000 (20:02 +0100)]
Fix drill charge usage
The drills weren't taking the variable usage cost into account (either
the per-type base cost or the per-mode multiplier) when deciding whether
they have sufficient charge to use. This could cause them to overshoot in
charge usage, although they would then clamp to zero rather than record
negative charge. Also, for the Mk1 drill where the cost was assessed
correctly, the drill would refuse to discharge to exactly zero charge.
Zefram [Fri, 25 Apr 2014 16:44:46 +0000 (17:44 +0100)]
Improve message about drill control
The message to "hold shift" makes an unwarranted assumption about the
user's keybindings. Messages from the server should refer to a key's
game function, rather than its extragame identity.
RealBadAngel [Sun, 27 Apr 2014 13:57:11 +0000 (15:57 +0200)]
The code to connect an electrical machine to cables would only consider
the first-seen tier for which the machine was registered. So the
switching station, which is uniquely registered for all tiers, would
only visually connect to LV cable when placed, not to MV or HV cable.
(It would function nevertheless, and cable would connect to the switching
station if placed later.) Change to consider all tiers. Incidentally
avoid a gratuitous iteration through all registered machines.
Zefram [Thu, 24 Apr 2014 16:42:35 +0000 (17:42 +0100)]
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.
asl97 [Mon, 21 Apr 2014 10:14:07 +0000 (18:14 +0800)]
Add fir leaves to the chainsaw's timber_nodenames
Xanthin [Wed, 16 Apr 2014 17:10:00 +0000 (19:10 +0200)]
Add german translations for all mods
Zefram [Tue, 22 Apr 2014 16:04:18 +0000 (17:04 +0100)]
Fix laser discharging
Commit
a6dae893d66319739e8dfe962f67285221eb9b91 introduced per-version
charge cost for firing mining lasers, but applies this in addition to
the old fixed cost which it was meant to replace. Fix by removing the
application of the fixed cost.
The same commit did successfully change the check for a laser having
sufficient charge to fire, so that's based purely on the variable cost.
As a consequence, firing a laser that has just enough charge to cover the
variable cost could cause its charge to go negative. (For example, by
fully charging a Mk1 laser and then firing it until it empties, resulting
in a charge of -400.) It turned out that set_RE_wear handled that badly,
producing an over-100% wear value that would wrap to a *low* wear value,
leading to the laser's wear bar looking as if it's fully charged.
To protect against silly wear values, make set_RE_wear clamp the wear
value to avoid wrapping. Handle specially the case of a fully-discharged
tool, where there was desirable wrapping to zero.
Boba [Mon, 14 Apr 2014 17:58:50 +0000 (19:58 +0200)]
Fix typo in frame and template motor recipes
Boba [Mon, 14 Apr 2014 18:05:08 +0000 (20:05 +0200)]
Fix crash when using the template tool
ShadowNinja [Thu, 3 Apr 2014 03:03:51 +0000 (23:03 -0400)]
Fix steel ingot item name in laser Mk1 crafting recipe
ShadowNinja [Sun, 30 Mar 2014 23:32:13 +0000 (19:32 -0400)]
Add translation support to technic_chests
Bryant Mairs [Wed, 4 Dec 2013 03:05:23 +0000 (19:05 -0800)]
Modify mining drill charges and power usage. Also fix bug with mk3 power usage.
Bryant Mairs [Wed, 4 Dec 2013 02:52:55 +0000 (18:52 -0800)]
Make the charge stored by every battery box consistent with the input ingredients.
Bryant Mairs [Wed, 4 Dec 2013 02:52:27 +0000 (18:52 -0800)]
Reduce the charge stored by each type of crystal.
Bryant Mairs [Wed, 4 Dec 2013 02:51:57 +0000 (18:51 -0800)]
Modify the cost, range, and cost-per-shot of all 3 lasers.
Bryant Mairs [Wed, 4 Dec 2013 02:45:33 +0000 (18:45 -0800)]
Revised recipe for mk1 laser and added mk2 & mk3 laser recipes.
Tim [Sat, 29 Mar 2014 09:57:01 +0000 (10:57 +0100)]
Fix CNC steel block groups
Tim [Sat, 29 Mar 2014 09:17:35 +0000 (10:17 +0100)]
Fix constructor description
Tim [Sat, 29 Mar 2014 08:59:41 +0000 (09:59 +0100)]
Make marble, granite, bronze and stainless steel blocks CNC-millable
Tim [Sat, 29 Mar 2014 08:42:46 +0000 (09:42 +0100)]
Remove duplicate CNC registration of default:tree
Tim [Sat, 29 Mar 2014 08:36:08 +0000 (09:36 +0100)]
Fix steel block node name in the CNC
ShadowNinja [Thu, 27 Mar 2014 02:34:17 +0000 (22:34 -0400)]
Fix CNC power drain
ShadowNinja [Thu, 27 Feb 2014 05:32:37 +0000 (00:32 -0500)]
Make some headers smaller in the READMEs
ShadowNinja [Thu, 27 Feb 2014 05:27:16 +0000 (00:27 -0500)]
Update READMEs
Novatux [Sun, 12 Jan 2014 15:52:42 +0000 (16:52 +0100)]
Infinite stacks fix
Novatux [Fri, 3 Jan 2014 14:19:43 +0000 (15:19 +0100)]
Actually call the mvps callback
Novatux [Fri, 3 Jan 2014 12:39:12 +0000 (13:39 +0100)]
Mesecons mvps support, better frames
Novatux [Thu, 2 Jan 2014 13:07:15 +0000 (14:07 +0100)]
A few fixes
Novatux [Thu, 2 Jan 2014 10:26:50 +0000 (11:26 +0100)]
Make those frames able to move
Novatux [Thu, 2 Jan 2014 10:00:42 +0000 (11:00 +0100)]
First tests
Carter Kolwey [Sat, 11 Jan 2014 03:57:16 +0000 (21:57 -0600)]
Fixed music player
Vanessa Ezekowitz [Sat, 4 Jan 2014 03:05:35 +0000 (22:05 -0500)]
fix a few more tube-based recipes
Vanessa Ezekowitz [Thu, 2 Jan 2014 04:27:51 +0000 (23:27 -0500)]
Fix all recipes that use pipeworks pneumatic tubes to follow latest changes
in pipeworks node namining conventions.
ShadowNinja [Sun, 29 Dec 2013 15:59:04 +0000 (10:59 -0500)]
Use get_string for owner string
ShadowNinja [Mon, 23 Dec 2013 21:54:21 +0000 (16:54 -0500)]
Fix mining drill digging in the wrong direction
ShadowNinja [Mon, 23 Dec 2013 20:18:38 +0000 (15:18 -0500)]
Localize generator fuel
Vanessa Ezekowitz [Sat, 21 Dec 2013 07:26:09 +0000 (02:26 -0500)]
fix crash in constructor
ShadowNinja [Fri, 20 Dec 2013 23:48:46 +0000 (18:48 -0500)]
Add wrench serialization format version
ShadowNinja [Fri, 20 Dec 2013 22:07:39 +0000 (17:07 -0500)]
Rewrite wrench. INCOMPATIBLE WITH OLD ITEMS
You must place all of your picked up nodes before
updating and pick them back up after.
ShadowNinja [Wed, 18 Dec 2013 22:10:25 +0000 (17:10 -0500)]
Fix stack count fetching
ShadowNinja [Fri, 20 Dec 2013 03:57:25 +0000 (22:57 -0500)]
Rename wrench variable
Vanessa Ezekowitz [Thu, 19 Dec 2013 01:41:08 +0000 (20:41 -0500)]
move inject_items to top of file (so that it's above the abm that calls it)
ShadowNinja [Wed, 18 Dec 2013 01:01:01 +0000 (20:01 -0500)]
Remove config file creation
This made it difficult to change default settings
ShadowNinja [Wed, 18 Dec 2013 00:57:24 +0000 (19:57 -0500)]
Rewrite flashlight
ShadowNinja [Wed, 18 Dec 2013 00:51:38 +0000 (19:51 -0500)]
More global localiztions
ShadowNinja [Wed, 18 Dec 2013 00:15:20 +0000 (19:15 -0500)]
Rewrite chests
ShadowNinja [Tue, 17 Dec 2013 19:37:02 +0000 (14:37 -0500)]
Make tube sending faster
ShadowNinja [Tue, 17 Dec 2013 19:24:06 +0000 (14:24 -0500)]
Remove duplicate ABM
ShadowNinja [Tue, 17 Dec 2013 19:22:10 +0000 (14:22 -0500)]
Add protection support to tools
This adds support to the chainsaw, mining drill, mining laser,
sonic screwdriver, and tree tap.
ShadowNinja [Tue, 17 Dec 2013 18:56:37 +0000 (13:56 -0500)]
Localize most variables
ShadowNinja [Mon, 16 Dec 2013 23:57:01 +0000 (18:57 -0500)]
Fix music player
Sounds not included
Vanessa Ezekowitz [Sun, 15 Dec 2013 20:49:28 +0000 (15:49 -0500)]
more pipeworks API-change updates
Vanessa Ezekowitz [Sun, 15 Dec 2013 20:03:41 +0000 (15:03 -0500)]
adapt to changes in Pipeworks API
ShadowNinja [Wed, 11 Dec 2013 01:14:39 +0000 (20:14 -0500)]
Add support for minetest.swap_node