Commit graph

  • b5754d63a2 Remove temporary description string, add assert to force description field to be present in rail definitions and fix descriptions for on variants of rail teknomunk 2024-12-30 18:21:39 -0600
  • 1656262156 Re-enable trains by default, add to settingtypes.txt teknomunk 2024-12-29 20:21:02 -0600
  • 0dbf3fcd62 Fix crash in rail corridor generation, fix missing globals warnings, fix floating rail in rail corridors teknomunk 2024-12-29 19:11:28 -0600
  • 46ea9e98cc Guard against undefined nodes teknomunk 2024-12-29 16:20:16 -0600
  • 363187b0d6 Prevent glitching into solid blocks at the end of rail teknomunk 2024-12-29 16:07:43 -0600
  • c97e2f77e7 Add comments to clarify _mcl_minecarts_on_enter_*() callbacks teknomunk 2024-12-29 12:11:31 -0600
  • aef68d34fd Address review comment and adjust multiplier teknomunk 2024-12-29 11:55:55 -0600
  • 3b63b1eec3 Swap push/pull for straight hoppers teknomunk 2024-12-29 11:53:20 -0600
  • 42fe5c4c85 Reduce repulsion of carts off rails teknomunk 2024-12-29 10:40:28 -0600
  • 6898675e05 Limit detached cart vertical boost to no more than what is needed to get over the lip of rails teknomunk 2024-12-29 10:26:31 -0600
  • cacc9d384f Handle edge case in mcl_minecarts.reverse_cart_direction() that lead to strange punching and pushing behavior teknomunk 2024-12-29 09:17:35 -0600
  • 31066caf06 Fix cart reversal/wrong direction movement on collisions teknomunk 2024-12-29 07:35:17 -0600
  • 48c380ca0b Make sure to clear _passenger after expelling mobs teknomunk 2024-12-29 07:04:39 -0600
  • bf9ad1919e Prevent players getting in the same cart as a mob, don't allow mobs already in a cart to be moved to another one teknomunk 2024-12-29 07:04:02 -0600
  • bef17e5401 Patch initial cart direction when placing teknomunk 2024-12-29 06:54:36 -0600
  • 9b647b0823 Add curve->tee and tee->cross conversion logic, fix typo teknomunk 2024-12-28 20:02:52 -0600
  • 929d7a6492 Make trains experimental behind a setting teknomunk 2024-12-28 19:30:51 -0600
  • b627d71750 Allow curved special rail conversion without dropping as item teknomunk 2024-12-28 18:56:09 -0600
  • 6559bc23f9 Fix orientation of carts on slopes teknomunk 2024-12-28 18:34:27 -0600
  • e28b55c16a Replace linear cart fill with mcl_loot.fill_inventory() using a fake inventory, remove debug print teknomunk 2024-12-28 17:04:05 -0600
  • bf3b98021f Fix conversion of cart inventories to mod storage without duplicating items teknomunk 2024-12-28 16:35:48 -0600
  • a694675b87 Remove stray line teknomunk 2024-12-27 06:26:39 -0600
  • 8118495c80 Add guard to prevent crash and log when this happens teknomunk 2024-12-26 18:15:21 -0600
  • 3cc8a8474d Fix rebase duplicating code teknomunk 2024-12-26 15:45:13 -0600
  • 8881048a4c Remove debug minetest.log() teknomunk 2024-11-13 20:48:58 -0600
  • ddb70e5ebf Increase off-rail friction, make off-rail carts shake, remove debug print teknomunk 2024-11-12 06:22:08 -0600
  • 6f5760000e Address review comments teknomunk 2024-11-10 12:01:42 -0600
  • dd9edcb827 Change cart punching to impulse on velocity instead of acceleration, make punch impulse larger teknomunk 2024-11-10 07:36:02 -0600
  • bf3e9190b3 Fix syntax error from rebase, fix cart tilt, change cart speed to 4 blocks/second and make into a setting, make minecart settings compatibily with upcoming dynamic rules PR (#4662) teknomunk 2024-11-10 07:11:12 -0600
  • 879175bb97 Fix crash when train cars leave track teknomunk 2024-11-09 20:05:48 -0600
  • aacc4b5d4a Flip powered special T-junction textures to match regular rails teknomunk 2024-11-09 15:44:37 -0600
  • fc38b6eea1 Add in working curved variants of special rails teknomunk 2024-11-09 15:14:57 -0600
  • f6f8c3e5bc Make powered rails always accelerate moving carts teknomunk 2024-11-09 12:36:57 -0600
  • fcbb4f6e34 Fix detector rail strangeness, prevent crash teknomunk 2024-11-09 12:33:39 -0600
  • 524fe37f4a Use correct vectors for look directions east/west teknomunk 2024-11-09 09:41:08 -0600
  • cea82c07f8 Remove debug code teknomunk 2024-11-09 09:21:23 -0600
  • 56a5a28e58 Fix minecart entity rotation teknomunk 2024-11-09 09:09:58 -0600
  • 6143832ee3 Fix crash teknomunk 2024-11-08 07:19:33 -0600
  • c8611b08f9 Make straight rails with a free end bend towards newly placed rail and form corners teknomunk 2024-11-08 07:03:18 -0600
  • 8e2a58a4c6 Finish restricting 45 degree movement code to horizontal plane teknomunk 2024-11-03 07:44:28 -0600
  • 1503aaeced Fix vertical movement that was hitting 45 degree curve code, reset pitch on minecarts teknomunk 2024-11-03 07:38:54 -0600
  • e025070233 Fix friction on slopes, fix cart reversal when timestep is very small or zero teknomunk 2024-10-30 07:47:42 -0500
  • 295589f032 Allow functions for _rail_acceleration, make powered rail only accelerate carts when one side of the rail is a solid block or stairs teknomunk 2024-10-29 07:58:52 -0500
  • 3e6fe24a57 Remove instance of debug logging, change movement.lua function export teknomunk 2024-10-29 07:45:00 -0500
  • fd559ec40d Fix crash with minecart on activator rail teknomunk 2024-10-28 21:30:44 -0500
  • cc74a5e75e Fix cart pitch when detached teknomunk 2024-10-28 21:26:44 -0500
  • 0ddecdff2a Add workaround to prevent random detached inventory doesn't exist warning when right-clicking entities with inventory teknomunk 2024-10-13 14:37:40 -0500
  • acd8195d9b Fix right-clicking nodes while holding rail teknomunk 2024-10-13 14:22:11 -0500
  • d6f6bd3fa1 Add back shift+punch to immediately drop minecart teknomunk 2024-09-17 06:59:24 -0500
  • b138add498 Fix another crash, fix rail tee on texture teknomunk 2024-09-17 05:57:35 -0500
  • e7c550858d Calculate acceleration of trains based on average of acceleration for all carts in the train, make velocity not change on slopes and 45 degree track teknomunk 2024-09-12 08:28:34 -0500
  • 0119814c0d Prevent trains from slowing on 45 degree track teknomunk 2024-09-01 16:47:57 -0500
  • 9ef2e02463 Add guard that prevents crash when itemstack is nil teknomunk 2024-08-31 16:44:19 -0500
  • ee49ff612d Silence debug prints and logging teknomunk 2024-08-31 16:39:59 -0500
  • 8cde9d4244 Prevent removal of old minecarts teknomunk 2024-08-31 16:36:01 -0500
  • b963936c6d Add legacy node conversion to vl_legacy and update rails.lua to use it teknomunk 2024-08-11 10:39:03 -0500
  • 46c1330d31 Make activated tnt minecarts glow in the dark, fix crash with lit tnt minecarts teknomunk 2024-08-10 20:56:34 -0500
  • 3d7f45154b Fix a couple of crashes (TNT minecart trying to update orientation after exploding, trying to punch/push a minecart not on track) teknomunk 2024-08-08 07:21:54 -0500
  • b83fb8ccba Expand mcl_util.hopper_pull() to mcl_util.hopper_pull_to_inventory() teknomunk 2024-08-08 07:01:26 -0500
  • c328f9920e Add profiling code to force_get_node() teknomunk 2024-08-07 21:32:45 -0500
  • 00665063da Address additional review comments teknomunk 2024-08-07 21:25:38 -0500
  • 80c0f52e17 Update API documentation to always use , add compatibility shim to mcl_minecarts.is_rail() and mcl_minecarts.ge_rail_direction() teknomunk 2024-08-07 06:36:50 -0500
  • 16caed401c Rewrite mcl_util.hopper_pull in terms of mcl_util.hopper_pull_to_inventory teknomunk 2024-08-06 19:03:13 -0500
  • a176d04bda Correct documentation per review teknomunk 2024-08-06 18:56:00 -0500
  • 8c754bf55d Switch over to using vl_legacy for item conversion in player inventories teknomunk 2024-06-18 20:31:27 -0500
  • c165938c1b Fix typo teknomunk 2024-06-18 20:29:56 -0500
  • 0dece0afbf Register rail conversions teknomunk 2024-06-18 20:21:34 -0500
  • b47288a260 Implement vl_legacy deprecated function and item conversion APIs teknomunk 2024-06-18 20:21:12 -0500
  • 78afadd8b1 Fix crashes teknomunk 2024-06-18 19:48:48 -0500
  • 41860500a3 Make old rails have a drawtype, make update lbm always run teknomunk 2024-05-04 06:33:41 +0000
  • dcb534bf9a Move the various rails to their own files, code cleanup teknomunk 2024-05-04 04:52:48 +0000
  • cd1e915638 Remove undefined global for optional environmental physics teknomunk 2024-04-30 00:15:06 +0000
  • f6a002a0b9 Remove Emerge-0 warning that occurs when placing mineshafts teknomunk 2024-04-28 20:17:33 +0000
  • 9c7b4d366c Restore 45 degree cart movement, remove warning about unknown global teknomunk 2024-04-28 08:09:42 +0000
  • 3eb1e82f7e Complete rework of curve/tee rail direction functions teknomunk 2024-04-28 06:58:42 +0000
  • 788db71850 Rework rail_dir_curve to significantly reduce code size teknomunk 2024-04-28 06:21:46 +0000
  • 8736f463ad Convert curved rails direction code to use fourdir teknomunk 2024-04-28 05:52:16 +0000
  • 90cfa2cf40 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
  • 2c22f1537e Fix cart detaching without unregistering from everything teknomunk 2024-04-27 18:46:48 +0000
  • c02ce8b8e7 Fix typo, set use_texture_alpha = clip for all rail teknomunk 2024-04-27 18:19:47 +0000
  • fa29e3410b 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
  • 356328ce4b Revert changed made to debug minecart-updates integration into tsm_railcorridors teknomunk 2024-04-25 15:38:08 +0000
  • 10865e6dbb Make punch move minecarts a little, comment out more debug prints teknomunk 2024-04-25 08:34:11 +0000
  • 0a935d1f99 Fix visual artifacts on the sides of rails teknomunk 2024-04-25 07:16:31 +0000
  • 689b6a8d30 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
  • 8351f39fb1 Fix crash after entering a minecart not on rails teknomunk 2024-04-16 20:06:08 +0000
  • de01ba45a6 Fix placed rail conversion, start automatic inventory rail conversion teknomunk 2024-04-12 21:25:40 +0000
  • 4c56707336 Fix players repelling carts with new player metadata system teknomunk 2024-04-12 20:47:47 +0000
  • 1831e34b09 Cleanup debug prints teknomunk 2024-04-12 19:09:23 +0000
  • aec9665ecc Add documentation for newly exposed attach_driver teknomunk 2024-04-12 19:04:53 +0000
  • 22f5369db9 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
  • 3bbd5a20fa More fixes for minecart-hopper movement teknomunk 2024-04-12 18:17:17 +0000
  • 7990ed65f6 Get rail placement creating corners that lead into a downward sloped rail teknomunk 2024-04-12 14:44:55 +0000
  • e1ff394204 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
  • 712f0b9b9b Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead teknomunk 2024-04-12 12:28:24 +0000
  • d93cf5d4f5 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
  • 04d29e8f2b Give carts a small vertical lift when pushed to allow them to get back on rails teknomunk 2024-04-12 07:37:34 +0000
  • eae9a2b6ad Stop rail from being placed directly above rail (floating in air) teknomunk 2024-04-11 14:02:53 +0000
  • 7a1e0d9a52 Fix sloped power,activator and detector rails, remove debug print teknomunk 2024-04-11 13:49:00 +0000
  • 9f192e87f3 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