Commit Graph

  • b67f2261ed Get redstone torches mostly workng (had to disable only calling node update routines when power level changes which is incorrect behavior, three redstone torch oscillator is not working correctly) teknomunk 2024-04-23 08:32:48 +0000
  • bbbc90e514 Add direction hash reversal lookup table, reverse direction for input rule checking teknomunk 2024-04-22 20:20:02 +0000
  • 1da30698d7 Fix crash in comparitor code, add input rule processing teknomunk 2024-04-21 22:50:40 +0000
  • 74d3fff5ff Change over redstone torcher (don't work), change hopper-comparator interaction again, start working on dig/place node handlers (doesn't work yet) teknomunk 2024-04-15 11:44:36 +0000
  • b3a04aae3b Add delay support to vl_redstone.set_power, switch repeater over teknomunk 2024-04-15 10:13:19 +0000
  • d3072fdf20 Fix power level when multiple sources power nodes (update distance was wrong) teknomunk 2024-04-15 09:28:19 +0000
  • 781ccc04f6 Convert from storing power information directly in node metadata to storing in memory in a multipower table that gets loaded and saved to node metadata as needed, change all locally cached functions to have the source prefix in the name for better core readability, fix global access in mcl_util.assign_uuid teknomunk 2024-04-15 08:21:14 +0000
  • 6396b6f56c Move force_get_node to mcl_util and swap all minetest.get_node to force_get_node in the new redstone code, implement conductors teknomunk 2024-04-15 07:11:38 +0000
  • 13888236d6 Implement comparator accurately and remove WIP, remove ABMs for comparators and make updates triggered instead of polled, changes to redstone power transmission teknomunk 2024-04-14 22:35:32 +0000
  • e970a5f414 make mcl_util.call_safe and use it to make sure that mesecon devices are isolated from each other and can't crash the server, handle powered solid blocks, increase powered on to 16 teknomunk 2024-04-14 20:35:38 +0000
  • 6107bba52f Disable mesecons processing, create initial redstone power propigation code, change wall lever to use new code, modify scheduler to provide backtraces when tasks error teknomunk 2024-04-14 19:05:05 +0000
  • a958fbbf71 Update vl_scheduler.register_function to require the function name to be prefixed by the mod registering, add examples of function registration teknomunk 2024-04-14 15:21:46 +0000
  • 27fb96afdf Get scheduler reliably running and rescheduling tasks teknomunk 2024-04-14 13:11:28 +0000
  • 09f034de16 Add back in test code, get queue working correctly teknomunk 2024-04-13 21:26:25 +0000
  • 939d2c9ef0 Use new prefix for modules, remove test, make scheduler use priority bins other than the first teknomunk 2024-04-13 17:05:30 +0000
  • 3baf1a2f17 Add FIFO, implement scheduler timestep teknomunk 2024-04-08 08:45:53 +0000
  • d40b52bea5 Move queue to its own file, move test code to a function teknomunk 2024-04-08 08:19:58 +0000
  • 3117f932a6 Fix several bugs, test behavior and profile (insert 8-32 microseconds, delete 22-37 microseconds) teknomunk 2024-04-08 08:10:20 +0000
  • e4aef86352 Make old rails have a drawtype, make update lbm always run teknomunk 2024-05-04 06:33:41 +0000
  • aefdb963de Move the various rails to their own files, code cleanup teknomunk 2024-05-04 04:52:48 +0000
  • 6468ba7f33 Remove undefined global for optional environmental physics teknomunk 2024-04-30 00:15:06 +0000
  • b8f0a271dd Remove Emerge-0 warning that occurs when placing mineshafts teknomunk 2024-04-28 20:17:33 +0000
  • db2f02b485 Restore 45 degree cart movement, remove warning about unknown global teknomunk 2024-04-28 08:09:42 +0000
  • 4ed0fe6a74 Complete rework of curve/tee rail direction functions teknomunk 2024-04-28 06:58:42 +0000
  • 160863a740 Rework rail_dir_curve to significantly reduce code size teknomunk 2024-04-28 06:21:46 +0000
  • a2bb88bb2e Convert curved rails direction code to use fourdir teknomunk 2024-04-28 05:52:16 +0000
  • 120af0f434 Change verticle offset for testing reattaching to rail to 0.55, which is a bit more than the stair step height teknomunk 2024-04-28 05:35:36 +0000
  • 10fd9bb918 Fix cart detaching without unregistering from everything teknomunk 2024-04-27 18:46:48 +0000
  • d165e0d2ed Fix typo, set use_texture_alpha = clip for all rail teknomunk 2024-04-27 18:19:47 +0000
  • 4cdb9fd876 Fix several undefined global warnings, fix cart movement when over maximum speed, fix cart reattachment to sloped track teknomunk 2024-04-27 18:12:06 +0000
  • 2f0976edc6 Revert changed made to debug minecart-updates integration into tsm_railcorridors teknomunk 2024-04-25 15:38:08 +0000
  • 9d393aa2f1 Make punch move minecarts a little, comment out more debug prints teknomunk 2024-04-25 08:34:11 +0000
  • 61a1cda7f8 Fix visual artifacts on the sides of rails teknomunk 2024-04-25 07:16:31 +0000
  • 388e63da7e Stop carts from reversing when they stop, make stopped carts try to start moving in the direction the player is facing teknomunk 2024-04-23 16:34:39 +0000
  • 190ce1b811 Fix crash after entering a minecart not on rails teknomunk 2024-04-16 20:06:08 +0000
  • 1054d38b4e Fix placed rail conversion, start automatic inventory rail conversion teknomunk 2024-04-12 21:25:40 +0000
  • a980446315 Fix players repelling carts with new player metadata system teknomunk 2024-04-12 20:47:47 +0000
  • 0ad7ddf2c6 Cleanup debug prints teknomunk 2024-04-12 19:09:23 +0000
  • 35bc1b6be4 Add documentation for newly exposed attach_driver teknomunk 2024-04-12 19:04:53 +0000
  • ccf5882a98 Add persistent player-specific metadata into mcl_playerinfo, simple cart reattachment (only exists if the luaentity for the cart exists when the player logs in) teknomunk 2024-04-12 19:01:15 +0000
  • e5fb891d99 More fixes for minecart-hopper movement teknomunk 2024-04-12 18:17:17 +0000
  • e9c4cdf62f Get rail placement creating corners that lead into a downward sloped rail teknomunk 2024-04-12 14:44:55 +0000
  • 94c1026ba3 Create mcl_util.metadata_timer, fix crashes, add checks to prevent hoppers from pulling from carts that are not in the square above it teknomunk 2024-04-12 13:31:01 +0000
  • f3b0ee67ed Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead teknomunk 2024-04-12 12:28:24 +0000
  • 59f64ca947 Update mineshafts for new rail and minecarts, add loot to generated chest and hopper minecarts (and remove notes about a hack) teknomunk 2024-04-12 09:11:46 +0000
  • 80a45c2c0d Give carts a small vertical lift when pushed to allow them to get back on rails teknomunk 2024-04-12 07:37:34 +0000
  • a96c3fe3ac Stop rail from being placed directly above rail (floating in air) teknomunk 2024-04-11 14:02:53 +0000
  • fba49df2f0 Fix sloped power,activator and detector rails, remove debug print teknomunk 2024-04-11 13:49:00 +0000
  • b0fff9f3e9 Modify mcl_entity_invs to add support for save/load items hooks in entities, add save/load hooks to minecarts to store item list in the minecart data and not in the entity data so that respawn doesn't destroy items teknomunk 2024-04-11 13:09:24 +0000
  • 6d0ce3ffd1 Add documentation on the rail teknomunk 2024-04-11 12:33:22 +0000
  • fee12804f8 Add documentation on file structure and overviewes of each file teknomunk 2024-04-11 12:14:08 +0000
  • a149ef5f05 Fix crashes, fix link in documentation teknomunk 2024-04-11 09:17:06 +0000
  • db2c200136 More documentation, add myself to copyright list in README.txt teknomunk 2024-04-11 08:33:36 +0000
  • 99dec4217c More minor changes to API.md, start overall implementation documentation teknomunk 2024-04-11 08:18:52 +0000
  • e5f4650114 Fix table of contents teknomunk 2024-04-11 07:12:08 +0000
  • acb246b88e Finish writing API documentation, remove drop_railcarts (replaced by try_detach_minecart), rename constants to ALL CAPS for consistency, change mcl_minecarts. to mod. for API function definitions teknomunk 2024-04-11 07:08:25 +0000
  • 51036b0592 Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() teknomunk 2024-04-11 00:04:59 +0000
  • 9781627bb2 Continue writing API documentation, update call signatures for a couple of API functions teknomunk 2024-04-10 23:30:03 +0000
  • c56d98ab2f Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus teknomunk 2024-04-10 22:48:24 +0000
  • 49ef40aa3c Correct crashes/item duplication with dropping carts, start API documentation teknomunk 2024-04-10 22:22:17 +0000
  • 5c351ae258 Fix cart controls, cart pushing teknomunk 2024-04-10 09:03:59 +0000
  • 581dcd7b3f Fix typo in rail replacement mapping, fix several crashes teknomunk 2024-04-10 08:02:21 +0000
  • c04ed709e0 Implement movement thru tee rails teknomunk 2024-04-10 07:40:25 +0000
  • fe3e783f6f Tune respawn distance limit teknomunk 2024-04-09 23:27:49 +0000
  • d1b5e77ca1 Fix crashes teknomunk 2024-04-09 23:09:10 +0000
  • 778e42165a Remove memory leak for cart data, check distance to players before respawning distant carts to prevent adding entities that are immediately inactivated teknomunk 2024-04-09 22:32:58 +0000
  • 15c13b7bb3 Implement offline/out of range minecart movement and fix minecart respawning, remove railtype tracking teknomunk 2024-04-09 20:52:11 +0000
  • a4987f63e9 Remove do_movement dependency on the existence of a cart luaentity teknomunk 2024-04-09 11:59:45 +0000
  • 79d068b98a Fix undefined global warning, move player off to the side of a cart when dismounting so trains don't get pushed apart when getting out teknomunk 2024-04-09 08:14:30 +0000
  • 79b3b3b26b Make trains containing a player in a minecart function, minor cleanup in mcl_playerinfo teknomunk 2024-04-09 07:35:57 +0000
  • 475d6f3e93 Fix crashes in train logic, allow breaking apart trains teknomunk 2024-04-09 00:40:04 +0000
  • e59a89eb2a Implement train reversing teknomunk 2024-04-08 21:37:54 +0000
  • a48c58a244 Repair vectors in cart data, mostly fix train movement bugs (still possible to have a furnace minecart flip, without the train also flipping) teknomunk 2024-04-08 19:38:13 +0000
  • 52904ef5e0 Add cart entity respawn/destroy to match cart data (partially working) teknomunk 2024-04-07 12:27:53 +0000
  • 095ad465e5 Give furnace minecart minimum velocity when lit, add train separation code, update logging code, add sequence number to entity staticdata to allow respawn/despawn when carts move when the entity is unloaded teknomunk 2024-04-07 10:18:55 +0000
  • db96e86d57 Fix rail detach crash, make tnt minecarts explode if they hit something hard (off rails) teknomunk 2024-04-07 07:44:29 +0000
  • dcf833907e Make sure carts get detatch if the rail under them is removed teknomunk 2024-04-07 07:13:40 +0000
  • 24bf99df44 Fixish reorganizing, initial train implementation teknomunk 2024-04-06 22:10:22 +0000
  • 386bde698d Major reorganization, start setup for trains teknomunk 2024-04-06 17:09:54 +0000
  • 3ca5bd0dff Make sure carts that collide move in the same direction the colliding cart was teknomunk 2024-04-06 14:23:59 +0000
  • bacc8bdf64 Add utilities to convert between an ObjectRef, it's active object id and a 128bit uuid, move minecart data from entity staticdata to mod storage to eventually allow updating carts when out of range of players and also track what carts are alive, implement on-rail cart collisions teknomunk 2024-04-06 13:40:40 +0000
  • ce9e3481af Harden against unknown nodes teknomunk 2024-04-06 07:33:47 +0000
  • 659a387256 Allow players to push minecarts that are not on track teknomunk 2024-04-06 06:50:30 +0000
  • b6e51a3c40 Fix rails in creative inventory, make minecart with tnt not crash server when exploding, make minecart with tnt slightly more powerful than regular tnt teknomunk 2024-04-06 06:24:31 +0000
  • 6d9cae1034 Fix rail movement regressions teknomunk 2024-04-06 05:56:21 +0000
  • e6664de6e7 Move cart code to its own file, more code cleanup, add aliases for old track items teknomunk 2024-04-05 06:39:42 +0000
  • fd03fc0027 Cleanup code, restore uphill/downhill cart movement, completely remove old rail teknomunk 2024-04-04 22:08:20 +0000
  • c9883cc6cc Get rail reattachment (especially after jumps) working correctly teknomunk 2024-04-04 18:20:14 +0000
  • 5bd06f5c03 Make legacy rail update apply to all old rail types, add basic detached railcart physics with a stub to use mcl_physics when it gets merged teknomunk 2024-04-04 07:33:16 +0000
  • 284c366136 Silence unmaskable print statements teknomunk 2024-04-03 22:07:14 +0000
  • c1a7001c31 Add immortal item entity support, add legacy rail conversion that uses immortal item drops for corners/tees/crosses that are no longer possible teknomunk 2024-04-03 21:33:48 +0000
  • 8cd9ee9b32 Fix more rail connection bugs teknomunk 2024-04-01 06:12:59 +0000
  • 3391a28fa9 Get sloped connections working correctly teknomunk 2024-03-31 20:20:34 +0000
  • ad11fc22ec Re-enable rule for powering rail from underneath, have stairs block minecart movement, fix crash when lightning strikes a minecart teknomunk 2024-03-31 11:49:55 +0000
  • 4589206985 Fix mcl_util.table_merge where a standard value overwrites a table, fix base definition usage, implement behavior difference when there is a solid block after a straight piece of track (this will eventually allow minecarts to fly off the end of the track) teknomunk 2024-03-31 11:13:50 +0000
  • 19e2dc58eb Update all rail types to new version teknomunk 2024-03-31 10:41:00 +0000
  • 4b8cb85319 Reorganize teknomunk 2024-03-31 10:21:07 +0000
  • 7b7dfd1da3 Finish reverting 08b41a3b39 teknomunk 2024-03-30 23:00:17 +0000
  • 603577e7a6 Enable new track with get_next_dir handlers teknomunk 2024-03-30 22:33:40 +0000
  • 34f394d8dc Change connection rules again to allow building parallel track, tees and crosses), start implementing rail rules callbacks teknomunk 2024-03-30 22:02:06 +0000