luk3yx
aa24cb41fd
Make code more efficient
...
Mass changes:
• Make the queue handler only run when required and with a delay of `tick_delay`.
• Launch the queue handler if it is not running and a queue item is added.
• Add `scriptblocks.create_formspec_handler()` to shrink code size by de-duplicating code.
• Add pipeworks-style protected program namespaces.
2018-09-06 20:53:35 +12:00
luk3yx
a450b91c03
Fork into scriptblocks
2018-09-06 15:04:07 +12:00
rdococ
1011eb14f3
Fixed a bug
2018-02-24 20:52:55 +00:00
rdococ
ad5cc79902
Mesegrates now conduct mesecon signal. Still trying to work out a few kinks in the grate's mechanics. Also, added description.txt, mod.conf.
2017-08-10 23:40:03 +01:00
rdococ
a35dfcd873
Fixed game-crashing bug that occurs when a digiline sender receives a message.
2017-08-07 21:17:55 +01:00
rdococ
9de5f0e3a8
Modified the functionality of the scriptblocks to update @last when data is pushed to @info, not using an overly complicated system of flags.
2017-08-07 16:37:16 +01:00
rdococ
4c6eddd898
Created type scriptblocks and the modulo operator; also fixed bugs in the code which would cause odd behavior.
2017-08-07 16:26:13 +01:00
rdococ
91dcb0f062
Added files I forgot to add. :P
2017-08-07 14:24:24 +01:00
rdococ
1e1578291e
Added digiline sender and updated the naming scheme for the mesecon/digiline receiver.
2017-08-07 04:58:13 +01:00
rdococ
2036096d3d
MASSIVE UPDATE. Added booleans, boolean comparison blocks and modified the IF block's behavior (old scripts are still just about supported, though).
2017-08-07 01:42:04 +01:00
rdococ
9e12f87a25
Added recursive table comparison function.
2017-08-06 23:25:43 +01:00
rdococ
283953473c
Removed unnecessary serialization and improved the stringification of tables for printing.
2017-08-06 23:20:14 +01:00
rdococ
20f754df8b
Disabled the debug feature.
2017-08-06 20:18:45 +01:00
rdococ
01c0ce3c72
Fixed a minor bug involving nested objects.
2017-08-06 20:10:08 +01:00
rdococ
ee9dad9578
1. Added object manipulation scriptblocks and the digiline receiver.
...
2. Modified the player detector texture to increase the contrast a little.
2017-08-06 19:54:28 +01:00
rdococ
87dae7faea
Added note about printing to certain players only in README.
2017-08-06 06:57:06 +01:00
rdococ
2cf6f6326d
Renamed the scriptblock_nearest to the scriptblock_player_detector, and added an entry for it in the README.
2017-08-06 06:55:39 +01:00
rdococ
875c22b118
Modified the textures to show equivalency "==" and non-equivalency "=/="
2017-08-06 05:56:14 +01:00
rdococ
8164b0fd05
minor readme fixes
2017-08-06 05:50:29 +01:00
rdococ
1c900a23f5
THE SCRIPTBLOCKS ARE HERE!!! Scriptblocks are blocks you can build scripts with - they're pretty cool, even if they're super complicated.
2017-08-06 05:46:25 +01:00
rdococ
2fb9eaaea8
PRIMARY: Added mesegrates (can be turned on and off), and digigrates (can be finetuned).
...
SECONDARY: Fixed some minor bugs where falling water (the kind that doesn't spread) could spread using nearby grates.
2017-08-03 21:35:32 +01:00
rdococ
e8400beb82
Added "toggle", "left" and "right" options.
2017-08-03 17:15:20 +01:00
rdococ
984824cc1b
Added README entry for digiconveyors.
2017-08-03 15:32:20 +01:00
rdococ
e8090e09b1
Separated meseconveyors into their own file, and added digiconveyors.
2017-08-03 15:26:34 +01:00
rdococ
b2ab2840a3
Changed grate drawtype back to glasslike
2017-08-03 14:00:09 +01:00
rdococ
c2c48ebebe
Completely rewritten the grate's flowing mechanics to use more modular subroutines and functions.
2017-08-03 13:40:28 +01:00
rdococ
06a195e08f
Improved the grate logic further by revamping the liquid level calculations and a few other things.
2017-08-03 11:09:00 +01:00
rdococ
5ff97f38ab
Improved the grate - water can now flow in more than one direction when it enters the grate. (Warning: possible race condition issues up ahead.)
2017-08-03 02:14:41 +01:00
rdococ
7fc84b4c86
Improved the infotext when the cursor is on a crate.
2017-08-02 16:33:18 +01:00
rdococ
27c6dff1ec
Improved grates - water flowing IN from the side can now flow OUT downwards.
2017-08-02 15:38:39 +01:00
rdococ
3da823bfd7
Fixed a minor bug in the conveyor globalstep.
2017-08-01 22:03:56 +01:00
rdococ
8c6306d0fa
1. Removed some useless debug messages.
...
2. Added meseconveyors, which require power.
2017-08-01 16:24:02 +01:00
rdococ
4f5415ccbc
Changed grate texture to something more aesthetically pleasing.
2017-08-01 00:55:42 +01:00
rdococ
6020b18565
Removed redundant code.
2017-07-31 18:31:07 +01:00
rdococ
d7acd32c72
Fixed minor spelling error. (Mod still worked with the spelling error, but could move player's heads into nodes.)
2017-07-31 18:29:21 +01:00
rdococ
6f394738e3
1. Reversed the directionality of the conveyors again, so that the movement direction matches the facing direction.
...
2. Fixed minor bugs with the animations - which should be completely seamless now except for mapblock borders.
3. Also modified the side texture a little bit.
2017-07-31 18:16:31 +01:00
rdococ
a963f93e94
Reversed the facing system back.
2017-07-31 17:53:12 +01:00
rdococ
8cae0de408
Revert "Fixed a game-crashing bug."
...
This reverts commit 78a404f6c1
.
Additionally refixed it with a proper fix that doesn't introduce another game-crashing bug. -_-
2017-07-31 16:56:48 +01:00
rdococ
9e078fc0c7
broken
2017-07-31 01:28:06 +01:00
rdococ
78a404f6c1
Fixed a game-crashing bug.
2017-07-31 00:18:49 +01:00
rdococ
20d23a4c5f
Fixed a bug in which players could use the conveyor to move up into nodes, and fixed a bug where escalators would take longer than intended.
2017-07-30 22:02:49 +01:00
rdococ
8eb6a3781a
Create README.md
2017-07-30 21:51:08 +01:00
rdococ
31cf39aa38
Moved to Github.
2017-07-30 21:24:43 +01:00