Commit graph

  • 2295b88e12 Use correct vectors for look directions east/west teknomunk 2024-11-09 09:41:08 -0600
  • 99500513c5 Remove debug code teknomunk 2024-11-09 09:21:23 -0600
  • 937884083f Fix minecart entity rotation teknomunk 2024-11-09 09:09:58 -0600
  • bd07311f08 Fix crash teknomunk 2024-11-08 07:19:33 -0600
  • 5fc28cb614 Make straight rails with a free end bend towards newly placed rail and form corners teknomunk 2024-11-08 07:03:18 -0600
  • 73eee3e344 Finish restricting 45 degree movement code to horizontal plane teknomunk 2024-11-03 07:44:28 -0600
  • 5b1b75b0fc Fix vertical movement that was hitting 45 degree curve code, reset pitch on minecarts teknomunk 2024-11-03 07:38:54 -0600
  • 1f83937de9 Fix friction on slopes, fix cart reversal when timestep is very small or zero teknomunk 2024-10-30 07:47:42 -0500
  • c394864546 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
  • 3ede8b4b7c Remove instance of debug logging, change movement.lua function export teknomunk 2024-10-29 07:45:00 -0500
  • b5892419c5 Fix crash with minecart on activator rail teknomunk 2024-10-28 21:30:44 -0500
  • 6cdd72c485 Fix cart pitch when detached teknomunk 2024-10-28 21:26:44 -0500
  • f4f0d01653 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
  • 8622ee771f Fix right-clicking nodes while holding rail teknomunk 2024-10-13 14:22:11 -0500
  • 29a619555d Add back shift+punch to immediately drop minecart teknomunk 2024-09-17 06:59:24 -0500
  • 2abb7b8f35 Fix another crash, fix rail tee on texture teknomunk 2024-09-17 05:57:35 -0500
  • 57bce03a33 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
  • 53e94e1c38 Prevent trains from slowing on 45 degree track teknomunk 2024-09-01 16:47:57 -0500
  • 26c034b985 Add guard that prevents crash when itemstack is nil teknomunk 2024-08-31 16:44:19 -0500
  • a9e1c5ad19 Silence debug prints and logging teknomunk 2024-08-31 16:39:59 -0500
  • 8780c8fca6 Prevent removal of old minecarts teknomunk 2024-08-31 16:36:01 -0500
  • 11ce4ad18f Add legacy node conversion to vl_legacy and update rails.lua to use it teknomunk 2024-08-11 10:39:03 -0500
  • f9136730ad Make activated tnt minecarts glow in the dark, fix crash with lit tnt minecarts teknomunk 2024-08-10 20:56:34 -0500
  • 89a0bd6e39 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
  • 9ca053aa2e Expand mcl_util.hopper_pull() to mcl_util.hopper_pull_to_inventory() teknomunk 2024-08-08 07:01:26 -0500
  • 6142c89dd2 Add profiling code to force_get_node() teknomunk 2024-08-07 21:32:45 -0500
  • 78ab49e971 Address additional review comments teknomunk 2024-08-07 21:25:38 -0500
  • 7b8705acad 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
  • b2c74dfe1a Rewrite mcl_util.hopper_pull in terms of mcl_util.hopper_pull_to_inventory teknomunk 2024-08-06 19:03:13 -0500
  • 2f4cbfca2d Correct documentation per review teknomunk 2024-08-06 18:56:00 -0500
  • cf4d6257ae Switch over to using vl_legacy for item conversion in player inventories teknomunk 2024-06-18 20:31:27 -0500
  • abda23c189 Fix typo teknomunk 2024-06-18 20:29:56 -0500
  • 246d681880 Register rail conversions teknomunk 2024-06-18 20:21:34 -0500
  • 48e610139b Implement vl_legacy deprecated function and item conversion APIs teknomunk 2024-06-18 20:21:12 -0500
  • 4303697e51 Fix crashes teknomunk 2024-06-18 19:48:48 -0500
  • 7d0345b785 Make old rails have a drawtype, make update lbm always run teknomunk 2024-05-04 06:33:41 +0000
  • 1cec9d6436 Move the various rails to their own files, code cleanup teknomunk 2024-05-04 04:52:48 +0000
  • 68bda2840a Remove undefined global for optional environmental physics teknomunk 2024-04-30 00:15:06 +0000
  • 4056f5b0e2 Remove Emerge-0 warning that occurs when placing mineshafts teknomunk 2024-04-28 20:17:33 +0000
  • d2ac38dba7 Restore 45 degree cart movement, remove warning about unknown global teknomunk 2024-04-28 08:09:42 +0000
  • be3bcbb426 Complete rework of curve/tee rail direction functions teknomunk 2024-04-28 06:58:42 +0000
  • d12896c162 Rework rail_dir_curve to significantly reduce code size teknomunk 2024-04-28 06:21:46 +0000
  • bb0f0747ae Convert curved rails direction code to use fourdir teknomunk 2024-04-28 05:52:16 +0000
  • 644393c856 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
  • 0f364016ee Fix cart detaching without unregistering from everything teknomunk 2024-04-27 18:46:48 +0000
  • 407133bdd3 Fix typo, set use_texture_alpha = clip for all rail teknomunk 2024-04-27 18:19:47 +0000
  • 133184c329 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
  • 597147e9cd Revert changed made to debug minecart-updates integration into tsm_railcorridors teknomunk 2024-04-25 15:38:08 +0000
  • a71ed25496 Make punch move minecarts a little, comment out more debug prints teknomunk 2024-04-25 08:34:11 +0000
  • 9ed1d0a059 Fix visual artifacts on the sides of rails teknomunk 2024-04-25 07:16:31 +0000
  • ffd3dbc7b1 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
  • a7d8b52510 Fix crash after entering a minecart not on rails teknomunk 2024-04-16 20:06:08 +0000
  • a3b3585300 Fix placed rail conversion, start automatic inventory rail conversion teknomunk 2024-04-12 21:25:40 +0000
  • b0f12dfabb Fix players repelling carts with new player metadata system teknomunk 2024-04-12 20:47:47 +0000
  • b8ed85a004 Cleanup debug prints teknomunk 2024-04-12 19:09:23 +0000
  • edf3b54fd4 Add documentation for newly exposed attach_driver teknomunk 2024-04-12 19:04:53 +0000
  • fad40d9444 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
  • d5ab0b5406 More fixes for minecart-hopper movement teknomunk 2024-04-12 18:17:17 +0000
  • 2cde46563d Get rail placement creating corners that lead into a downward sloped rail teknomunk 2024-04-12 14:44:55 +0000
  • e495dbc0a2 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
  • 0af628a8d4 Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead teknomunk 2024-04-12 12:28:24 +0000
  • 889c89c0e6 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
  • a388b6ebff Give carts a small vertical lift when pushed to allow them to get back on rails teknomunk 2024-04-12 07:37:34 +0000
  • 0368cf958b Stop rail from being placed directly above rail (floating in air) teknomunk 2024-04-11 14:02:53 +0000
  • 938c05e68e Fix sloped power,activator and detector rails, remove debug print teknomunk 2024-04-11 13:49:00 +0000
  • 8bcf9388d4 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
  • 4c6a10f613 Add documentation on the rail teknomunk 2024-04-11 12:33:22 +0000
  • d250678689 Add documentation on file structure and overviewes of each file teknomunk 2024-04-11 12:14:08 +0000
  • 57525d2072 Fix crashes, fix link in documentation teknomunk 2024-04-11 09:17:06 +0000
  • 9df1f9a588 More documentation, add myself to copyright list in README.txt teknomunk 2024-04-11 08:33:36 +0000
  • 17705348c3 More minor changes to API.md, start overall implementation documentation teknomunk 2024-04-11 08:18:52 +0000
  • 6160534ed5 Fix table of contents teknomunk 2024-04-11 07:12:08 +0000
  • 3881cd60f5 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
  • d22aa7285d Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() teknomunk 2024-04-11 00:04:59 +0000
  • c8513d5acd Continue writing API documentation, update call signatures for a couple of API functions teknomunk 2024-04-10 23:30:03 +0000
  • 20bf40a6ec Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus teknomunk 2024-04-10 22:48:24 +0000
  • b17710db9c Correct crashes/item duplication with dropping carts, start API documentation teknomunk 2024-04-10 22:22:17 +0000
  • 1d9ba2211f Fix cart controls, cart pushing teknomunk 2024-04-10 09:03:59 +0000
  • d41f2f03ce Fix typo in rail replacement mapping, fix several crashes teknomunk 2024-04-10 08:02:21 +0000
  • 14b50faf92 Implement movement thru tee rails teknomunk 2024-04-10 07:40:25 +0000
  • 464771b79d Tune respawn distance limit teknomunk 2024-04-09 23:27:49 +0000
  • 1f80628298 Fix crashes teknomunk 2024-04-09 23:09:10 +0000
  • 39ca793a43 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
  • b084ec558d Implement offline/out of range minecart movement and fix minecart respawning, remove railtype tracking teknomunk 2024-04-09 20:52:11 +0000
  • 763c59a1a2 Remove do_movement dependency on the existence of a cart luaentity teknomunk 2024-04-09 11:59:45 +0000
  • 188aca8c12 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
  • a0d8e5ad7e Make trains containing a player in a minecart function, minor cleanup in mcl_playerinfo teknomunk 2024-04-09 07:35:57 +0000
  • e3ca5a84c8 Fix crashes in train logic, allow breaking apart trains teknomunk 2024-04-09 00:40:04 +0000
  • d9bc707800 Implement train reversing teknomunk 2024-04-08 21:37:54 +0000
  • 8d15b8e99f 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
  • 9490e4a910 Add cart entity respawn/destroy to match cart data (partially working) teknomunk 2024-04-07 12:27:53 +0000
  • b38d8c3fa9 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
  • 643e6f3de6 Fix rail detach crash, make tnt minecarts explode if they hit something hard (off rails) teknomunk 2024-04-07 07:44:29 +0000
  • dd54270294 Make sure carts get detatch if the rail under them is removed teknomunk 2024-04-07 07:13:40 +0000
  • 9927f54ab4 Fixish reorganizing, initial train implementation teknomunk 2024-04-06 22:10:22 +0000
  • 17a5b1eee3 Major reorganization, start setup for trains teknomunk 2024-04-06 17:09:54 +0000
  • cf7350418f Make sure carts that collide move in the same direction the colliding cart was teknomunk 2024-04-06 14:23:59 +0000
  • 0511de8876 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
  • ce8b79fbe2 Harden against unknown nodes teknomunk 2024-04-06 07:33:47 +0000
  • 41943522a5 Allow players to push minecarts that are not on track teknomunk 2024-04-06 06:50:30 +0000