Commit Graph

43 Commits

Author SHA1 Message Date
wsor4035
5aa0501872
make pipeworks Game agnostic (#16)
* make it boot in non mtg

* make water flow

* fix water texture warnings

* fix missing steel texture issues

* remove depreciated/unnessary default function calls

* make sounds work

* fix default formspec crashes

* fix wierd tab spacing

* additionally game dig group support

* move crafts to crafts.lua

* make crafts support various games
2022-03-14 21:39:58 -04:00
SX
794cae675e
Expose set_tube on public API (#6)
* Expose set_tube on public API
* Added update_meta to public tptube API
2022-01-02 15:14:14 +01:00
BuckarooBanzay
047718b3c3 add caching layer to teleport tube 2021-06-01 18:57:59 +02:00
hlqkj
4add40705f Improve formspecs for better mobile usability and consistency 2021-04-02 19:47:48 +00:00
HybridDog
17a602a5a1 Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations 2021-02-05 17:17:50 +01:00
SX
477a024034 Expose teleport tube database API 2020-08-09 23:09:31 +03:00
Louis Royer
728d4e179a Translation string errors
Fixes #21.
Sorry, I had put wrong identifiers in translations strings.
Also, found another one to fix in `teleport_tube.lua`.

I hope, there is no other error.
2020-02-20 15:27:08 +01:00
Louis Royer
62bc13078f Add translation support
- Created `locale/template.txt`
- Fixed some typos
- Replace some `print("[pipeworks]"..` with `pipeworks.logger()`
- Removed "You hacker, you" from descriptions
2020-02-18 17:34:52 +00:00
Vanessa Dannenberg
d7dfd11364 use basic_materials mod where possible 2018-10-30 20:45:48 -04:00
thetaepsilon-gamedev
91bd0c7e98 teleport_tube.lua: add checks for hash collisions in positions table 2017-12-22 17:57:00 +00:00
thetaepsilon-gamedev
57fc8c67f8 teleport_tube.lua: fix 32-bit clamping issues on some systems for %d in string.format
Some servers running ubuntu in particular were reporting issues with teleport tubes not working.
On investigation, all tube entries were colliding as string.format("%d", ...)
was returning either -2^31 or 2^31-1 depending on system bit width,
causing hash entries to be overwritten.
This is possibly related to the use of C sprintf within lua.
Fix this by using %g instead to interpret as double without int conversion,
with a large enough number of digits such that all possible 2^48 values from
minetest.hash_node_position() can be correctly serialised.
2017-12-22 17:18:31 +00:00
Vanessa Ezekowitz
9d6881deca fix scale of on/off switch in teleport tube 2017-04-12 14:36:50 -04:00
Rainer
388297de4e teleport_tube.lua recipe change
The default mese block has been changed to default:mese, so a change of the recipe of the teleport_tube_1 had to be made
2015-03-14 21:06:24 +01:00
Tim
d167aacf4d add ownership/protection handling for device configuration
take any available ownership into account before deciding on area protection
2015-03-11 19:36:41 +01:00
Tim
f46de19ff0 use the right variable to test on_receive_fields 2015-02-05 08:23:24 +01:00
Tim
cb8ecbf8cf don't tostring "nil" in the teleportation tube on escape 2015-02-04 15:39:08 +01:00
Tim
dc58fe8467 trim teleport_tube string input 2015-02-03 00:22:59 +01:00
Tim
e60f86a588 switch to the minetest-conventional def-table style of registering tubes to clean up their registrations
fallback for the old call is provided
2015-01-31 16:10:25 +01:00
Tim
810ae99008 reduce texturename repetition via __index 2015-01-31 14:47:06 +01:00
Tim
471e1131c6 add tube inventory image to the restyled tp tube formspec 2015-01-29 20:58:28 +01:00
Tim
fcba05fd78 move autocrafter, tp-tube and filter-injector crafts to their respective code files 2015-01-29 20:31:08 +01:00
Tim
1e50644487 add infotexts to the teleportation tube
this should also debunk the myth of some players, that they are the only ones seeing the channel
2015-01-29 19:10:01 +01:00
Tim
9d45599872 improve/style tp tube formspec and formspec handling
display text explaining private channels
2015-01-29 19:09:59 +01:00
Tim
fb98963810 use a hashmap to manage teleportation tubes, to speedup lookups and tablemodifications 2015-01-25 23:42:35 +01:00
Tim
5b026d2cc7 improve tp_tube configuration handling to decrease disk i/o, handle empty strings and form escapes 2015-01-25 20:05:10 +01:00
Tim
82a7b6a749 rewrite parts of the teleportation tube to avoid a few grave performance issues:
* don't forceload the block of every single tube in the world on every item being send through any one of them
* cache file contents to avoid unnecessary reads on every single item send through a tp tube
* reduce redundant metadata and table lookups
* reduce write operations during the same changes to a file

still to do is a switch from an arraylist-table to a hashmap-table to make lookups and updates on the cache faster
2015-01-20 19:29:49 -05:00
Vanessa Ezekowitz
28cef5e82f update to use current mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
2014-11-22 13:55:54 -05:00
Zefram
c5ab801741 Better teleport tube control dialog
Describe the two modes as "Send and Receive" and "Send only", rather
than the misleading "On" and "Off".  Also make the mode toggle button
lag-resistant.
2014-07-21 14:43:37 -04:00
Zefram
87d87c91fa Name tube items for function rather than material
Previously, some tube types were named based on their function, and others
based on some arbitrarily-chosen material used in their construction,
with no meaningful system governing which was in each category.  With this
change they are consistently named according to function.  Naming style
is also made consistent in the wording that identifies tubes as such,
and in capitalisation.
2014-07-05 12:55:33 -04:00
Novatux
d532e646f6 Fix problems with incorrectly destructed teleport tubes. 2014-06-29 12:36:22 +02:00
Novatux
d33eb89dcb Support for the mesecons mvps callback 2014-01-03 21:36:10 +01:00
Vanessa Ezekowitz
e5344edf98 local-ize a couple of variables, code style fixes 2013-12-21 03:45:45 -05:00
Vanessa Ezekowitz
659b4e42b2 local-ize a few more variables, move all of the nodebox models
into their own file and confine them and pretty much everything
else to the pipeworks.{} table (still global though).  More to
come.
2013-12-15 04:35:59 -05:00
Vanessa Ezekowitz
bd80f18cfc local-ize pretty muchg everything that was previously global except where
stuff needs to be globally-visible.  Also, fix a bad drop on valve.
2013-12-15 02:53:10 -05:00
hdastwb
f66336394e added reserved teleport channels 2013-08-06 14:58:11 -04:00
Vanessa Ezekowitz
17ee4f6aab Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Novatux
c9a8224bb5 Add an no-receive option to teleport tubes. 2013-06-05 15:55:33 +02:00
Anthony Zhang
93fb11791c Fix the teleport tube in the latest mt. 2013-05-21 17:44:05 -04:00
Novatux
9001f0c293 Fix repartition of teleport tubes not being random. 2013-04-13 11:47:50 +02:00
Novatux
660feea147 Improved the code of the teleport tube. 2013-02-03 16:11:15 +01:00
Novatux
23bf19f480 Added textures for teleport tube 2013-01-19 17:51:11 +01:00
Novatux
4ecb747570 Added channel formspec for teleport tube 2013-01-19 13:40:19 +01:00
Novatux
aea0207b7f Added accelrator and teleport pipes 2013-01-19 13:14:41 +01:00