Commit Graph

  • 492022e762 Fix typo teknomunk 2024-06-18 20:29:56 -0500
  • 0567e7e80e Register rail conversions teknomunk 2024-06-18 20:21:34 -0500
  • 9646469f0f Implement vl_legacy deprecated function and item conversion APIs teknomunk 2024-06-18 20:21:12 -0500
  • 0856e49133 Fix crashes teknomunk 2024-06-18 19:48:48 -0500
  • 84958fbca2 Make old rails have a drawtype, make update lbm always run teknomunk 2024-05-04 06:33:41 +0000
  • baa47b130b Move the various rails to their own files, code cleanup teknomunk 2024-05-04 04:52:48 +0000
  • 6e38652279 Remove undefined global for optional environmental physics teknomunk 2024-04-30 00:15:06 +0000
  • 74b0bb69f8 Remove Emerge-0 warning that occurs when placing mineshafts teknomunk 2024-04-28 20:17:33 +0000
  • 215320acb4 Restore 45 degree cart movement, remove warning about unknown global teknomunk 2024-04-28 08:09:42 +0000
  • f7e8a58715 Complete rework of curve/tee rail direction functions teknomunk 2024-04-28 06:58:42 +0000
  • 51f0a4511f Rework rail_dir_curve to significantly reduce code size teknomunk 2024-04-28 06:21:46 +0000
  • bb900123da Convert curved rails direction code to use fourdir teknomunk 2024-04-28 05:52:16 +0000
  • 465d538a95 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
  • 9fe9a03e63 Fix cart detaching without unregistering from everything teknomunk 2024-04-27 18:46:48 +0000
  • aa6b9e57d8 Fix typo, set use_texture_alpha = clip for all rail teknomunk 2024-04-27 18:19:47 +0000
  • 302ee00cfa 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
  • ee531046e5 Revert changed made to debug minecart-updates integration into tsm_railcorridors teknomunk 2024-04-25 15:38:08 +0000
  • 2cb84ec297 Make punch move minecarts a little, comment out more debug prints teknomunk 2024-04-25 08:34:11 +0000
  • bd91556545 Fix visual artifacts on the sides of rails teknomunk 2024-04-25 07:16:31 +0000
  • 515bdfd9b3 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
  • 4cfd60b7bb Fix crash after entering a minecart not on rails teknomunk 2024-04-16 20:06:08 +0000
  • 16199ea6e5 Fix placed rail conversion, start automatic inventory rail conversion teknomunk 2024-04-12 21:25:40 +0000
  • 1134bc704d Fix players repelling carts with new player metadata system teknomunk 2024-04-12 20:47:47 +0000
  • 713d9dd5af Cleanup debug prints teknomunk 2024-04-12 19:09:23 +0000
  • 95ceae9d0f Add documentation for newly exposed attach_driver teknomunk 2024-04-12 19:04:53 +0000
  • 5496e37edb 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
  • c45b812ca8 More fixes for minecart-hopper movement teknomunk 2024-04-12 18:17:17 +0000
  • 9e0452b514 Get rail placement creating corners that lead into a downward sloped rail teknomunk 2024-04-12 14:44:55 +0000
  • bbc1aaac11 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
  • 618cfd6098 Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead teknomunk 2024-04-12 12:28:24 +0000
  • 737f915ba2 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
  • ceae73e569 Give carts a small vertical lift when pushed to allow them to get back on rails teknomunk 2024-04-12 07:37:34 +0000
  • aede029a10 Stop rail from being placed directly above rail (floating in air) teknomunk 2024-04-11 14:02:53 +0000
  • 644b6ec3a6 Fix sloped power,activator and detector rails, remove debug print teknomunk 2024-04-11 13:49:00 +0000
  • 1810a317a8 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
  • b9193feb80 Add documentation on the rail teknomunk 2024-04-11 12:33:22 +0000
  • 390a2eb907 Add documentation on file structure and overviewes of each file teknomunk 2024-04-11 12:14:08 +0000
  • 37d0006179 Fix crashes, fix link in documentation teknomunk 2024-04-11 09:17:06 +0000
  • 0501f23816 More documentation, add myself to copyright list in README.txt teknomunk 2024-04-11 08:33:36 +0000
  • e5c43fac8e More minor changes to API.md, start overall implementation documentation teknomunk 2024-04-11 08:18:52 +0000
  • af198231b9 Fix table of contents teknomunk 2024-04-11 07:12:08 +0000
  • 05dfaaad78 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
  • 57598f742c Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() teknomunk 2024-04-11 00:04:59 +0000
  • 933625e67d Continue writing API documentation, update call signatures for a couple of API functions teknomunk 2024-04-10 23:30:03 +0000
  • a559c8fde1 Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus teknomunk 2024-04-10 22:48:24 +0000
  • 1dec6f7489 Correct crashes/item duplication with dropping carts, start API documentation teknomunk 2024-04-10 22:22:17 +0000
  • 8427d072f0 Fix cart controls, cart pushing teknomunk 2024-04-10 09:03:59 +0000
  • a95923ad18 Fix typo in rail replacement mapping, fix several crashes teknomunk 2024-04-10 08:02:21 +0000
  • aa558fa42b Implement movement thru tee rails teknomunk 2024-04-10 07:40:25 +0000
  • 3cffc2a96e Tune respawn distance limit teknomunk 2024-04-09 23:27:49 +0000
  • cb047d2474 Fix crashes teknomunk 2024-04-09 23:09:10 +0000
  • 291bbfb1f4 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
  • 035a1b2401 Implement offline/out of range minecart movement and fix minecart respawning, remove railtype tracking teknomunk 2024-04-09 20:52:11 +0000
  • 0ca2ce3ba4 Remove do_movement dependency on the existence of a cart luaentity teknomunk 2024-04-09 11:59:45 +0000
  • 8e852b0d23 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
  • aa683d9f99 Make trains containing a player in a minecart function, minor cleanup in mcl_playerinfo teknomunk 2024-04-09 07:35:57 +0000
  • 48a130eee6 Fix crashes in train logic, allow breaking apart trains teknomunk 2024-04-09 00:40:04 +0000
  • 23eb476c3f Implement train reversing teknomunk 2024-04-08 21:37:54 +0000
  • 642d7393a1 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
  • b45de39d71 Add cart entity respawn/destroy to match cart data (partially working) teknomunk 2024-04-07 12:27:53 +0000
  • de45866ac9 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
  • c918b34871 Fix rail detach crash, make tnt minecarts explode if they hit something hard (off rails) teknomunk 2024-04-07 07:44:29 +0000
  • 0647c6ece6 Make sure carts get detatch if the rail under them is removed teknomunk 2024-04-07 07:13:40 +0000
  • 0cda608521 Fixish reorganizing, initial train implementation teknomunk 2024-04-06 22:10:22 +0000
  • f9b22f2dc4 Major reorganization, start setup for trains teknomunk 2024-04-06 17:09:54 +0000
  • ad161afe1a Make sure carts that collide move in the same direction the colliding cart was teknomunk 2024-04-06 14:23:59 +0000
  • 6736d80b0c 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
  • 2247d19dea Harden against unknown nodes teknomunk 2024-04-06 07:33:47 +0000
  • 31cd3ac099 Allow players to push minecarts that are not on track teknomunk 2024-04-06 06:50:30 +0000
  • 00df623b32 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
  • 520b40bdc2 Fix rail movement regressions teknomunk 2024-04-06 05:56:21 +0000
  • 2f6f860c82 Move cart code to its own file, more code cleanup, add aliases for old track items teknomunk 2024-04-05 06:39:42 +0000
  • b1d8809a4d Cleanup code, restore uphill/downhill cart movement, completely remove old rail teknomunk 2024-04-04 22:08:20 +0000
  • cf955109c9 Get rail reattachment (especially after jumps) working correctly teknomunk 2024-04-04 18:20:14 +0000
  • 3dc09fe41d 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
  • 030b98bcfc Silence unmaskable print statements teknomunk 2024-04-03 22:07:14 +0000
  • b0e2e34a23 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
  • 2ee94d3e2b Fix more rail connection bugs teknomunk 2024-04-01 06:12:59 +0000
  • 879e86e8ad Get sloped connections working correctly teknomunk 2024-03-31 20:20:34 +0000
  • 466cda1c41 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
  • 711a179669 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
  • 38f31ac6df Update all rail types to new version teknomunk 2024-03-31 10:41:00 +0000
  • 353ad7f914 Reorganize teknomunk 2024-03-31 10:21:07 +0000
  • efae117a89 Finish reverting 08b41a3b392005e7078b09d68854e6df562d5fd7 teknomunk 2024-03-30 23:00:17 +0000
  • a008d059cb Enable new track with get_next_dir handlers teknomunk 2024-03-30 22:33:40 +0000
  • bd23801c51 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
  • 22d089e1c6 Add sloped rail teknomunk 2024-03-29 19:53:13 +0000
  • ce544963d5 Fix rail visuals, add switch operation teknomunk 2024-03-29 18:08:07 +0000
  • 0a7aa9751f Implement initial rail connection logic (no vertical track yet), experiment with texture modifiers and gravel underlay for display (not working) teknomunk 2024-03-28 15:06:26 +0000
  • 12ae7869f9 Start implementing new rail nodes teknomunk 2024-03-28 07:11:59 +0000
  • c2c577fdde Implement minecart with command block teknomunk 2024-03-28 06:18:50 +0000
  • 59aa570b84 Create mesecons command API and modify commandblock to use it teknomunk 2024-03-28 05:49:46 +0000
  • ed07d9f6d4 Disable punch to move minecarts, implement punch to drop minecart, enable basic cart keyboard controls (accelerate and brake) teknomunk 2024-03-23 09:59:08 +0000
  • 1f1ccd8427 Remove cart oscillation when pushed teknomunk 2024-03-23 09:08:17 +0000
  • 67a8216491 Limit top speed of furnace minecarts to 4 blocks/second, limit total fuel time to 27 minutes teknomunk 2024-03-23 08:09:37 +0000
  • 3157492548 Fix bug with furnace minecart at max velocity (stopped until fuel ran out), move _fueltime into staticdata teknomunk 2024-03-23 07:32:32 +0000
  • d8091d7441 Fix call signature of mcl_util.hopper_pull_to_inventory, move cart-specific behaviors to _mcl_minecarts_on_step handlers, fix typo, change distance used in rail reattach code, move cart_id generation teknomunk 2024-03-23 07:09:20 +0000
  • bc4986e5ed Add groups to minecart entities (for containers), fix cart node watch handling, relocate hopper_push_to_mc in mcl_hopper/init.lua, implement hopper-to-minecart push using enter/leave hooks for both straight and bent hoppers teknomunk 2024-03-23 06:13:53 +0000
  • 25fd563fcd Add API function to remove node watch teknomunk 2024-03-16 09:21:39 +0000
  • 14f41e8a78 Refactor enter/leave hook processing, add node watches for implementing hopper-to-minecart functionality (should properly handle heavy server lag without missing any time), temporarily disable hopper push/pull to minecart in mcl_hoppers, prepare to move minecart-specific on_step behavior out of main on_step function and to a minecart-specific handler teknomunk 2024-03-16 09:17:09 +0000