Commit Graph

12410 Commits

Author SHA1 Message Date
teknomunk 0adaabdfbd Switch over to using vl_legacy for item conversion in player inventories 2024-06-19 07:18:57 -05:00
teknomunk 492022e762 Fix typo 2024-06-19 07:18:57 -05:00
teknomunk 0567e7e80e Register rail conversions 2024-06-19 07:18:57 -05:00
teknomunk 9646469f0f Implement vl_legacy deprecated function and item conversion APIs 2024-06-19 07:18:57 -05:00
teknomunk 0856e49133 Fix crashes 2024-06-19 07:18:57 -05:00
teknomunk 84958fbca2 Make old rails have a drawtype, make update lbm always run 2024-06-19 07:18:57 -05:00
teknomunk baa47b130b Move the various rails to their own files, code cleanup 2024-06-19 07:18:57 -05:00
teknomunk 6e38652279 Remove undefined global for optional environmental physics 2024-06-19 07:18:57 -05:00
teknomunk 74b0bb69f8 Remove Emerge-0 warning that occurs when placing mineshafts 2024-06-19 07:18:57 -05:00
teknomunk 215320acb4 Restore 45 degree cart movement, remove warning about unknown global 2024-06-19 07:18:57 -05:00
teknomunk f7e8a58715 Complete rework of curve/tee rail direction functions 2024-06-19 07:18:57 -05:00
teknomunk 51f0a4511f Rework rail_dir_curve to significantly reduce code size 2024-06-19 07:18:57 -05:00
teknomunk bb900123da Convert curved rails direction code to use fourdir 2024-06-19 07:18:57 -05:00
teknomunk 465d538a95 Change verticle offset for testing reattaching to rail to 0.55, which is a bit more than the stair step height 2024-06-19 07:18:57 -05:00
teknomunk 9fe9a03e63 Fix cart detaching without unregistering from everything 2024-06-19 07:18:57 -05:00
teknomunk aa6b9e57d8 Fix typo, set use_texture_alpha = clip for all rail 2024-06-19 07:18:57 -05:00
teknomunk 302ee00cfa Fix several undefined global warnings, fix cart movement when over maximum speed, fix cart reattachment to sloped track 2024-06-19 07:18:57 -05:00
teknomunk ee531046e5 Revert changed made to debug minecart-updates integration into tsm_railcorridors 2024-06-19 07:18:57 -05:00
teknomunk 2cb84ec297 Make punch move minecarts a little, comment out more debug prints 2024-06-19 07:18:57 -05:00
teknomunk bd91556545 Fix visual artifacts on the sides of rails 2024-06-19 07:18:57 -05:00
teknomunk 515bdfd9b3 Stop carts from reversing when they stop, make stopped carts try to start moving in the direction the player is facing 2024-06-19 07:18:57 -05:00
teknomunk 4cfd60b7bb Fix crash after entering a minecart not on rails 2024-06-19 07:18:57 -05:00
teknomunk 16199ea6e5 Fix placed rail conversion, start automatic inventory rail conversion 2024-06-19 07:18:57 -05:00
teknomunk 1134bc704d Fix players repelling carts with new player metadata system 2024-06-19 07:18:57 -05:00
teknomunk 713d9dd5af Cleanup debug prints 2024-06-19 07:18:57 -05:00
teknomunk 95ceae9d0f Add documentation for newly exposed attach_driver 2024-06-19 07:18:57 -05:00
teknomunk 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) 2024-06-19 07:18:57 -05:00
teknomunk c45b812ca8 More fixes for minecart-hopper movement 2024-06-19 07:18:57 -05:00
teknomunk 9e0452b514 Get rail placement creating corners that lead into a downward sloped rail 2024-06-19 07:18:57 -05:00
teknomunk 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 2024-06-19 07:18:57 -05:00
teknomunk 618cfd6098 Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead 2024-06-19 07:18:57 -05:00
teknomunk 737f915ba2 Update mineshafts for new rail and minecarts, add loot to generated chest and hopper minecarts (and remove notes about a hack) 2024-06-19 07:18:57 -05:00
teknomunk ceae73e569 Give carts a small vertical lift when pushed to allow them to get back on rails 2024-06-19 07:18:57 -05:00
teknomunk aede029a10 Stop rail from being placed directly above rail (floating in air) 2024-06-19 07:18:57 -05:00
teknomunk 644b6ec3a6 Fix sloped power,activator and detector rails, remove debug print 2024-06-19 07:18:57 -05:00
teknomunk 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 2024-06-19 07:18:57 -05:00
teknomunk b9193feb80 Add documentation on the rail 2024-06-19 07:18:57 -05:00
teknomunk 390a2eb907 Add documentation on file structure and overviewes of each file 2024-06-19 07:18:57 -05:00
teknomunk 37d0006179 Fix crashes, fix link in documentation 2024-06-19 07:18:57 -05:00
teknomunk 0501f23816 More documentation, add myself to copyright list in README.txt 2024-06-19 07:18:57 -05:00
teknomunk e5c43fac8e More minor changes to API.md, start overall implementation documentation 2024-06-19 07:18:57 -05:00
teknomunk af198231b9 Fix table of contents 2024-06-19 07:18:57 -05:00
teknomunk 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 2024-06-19 07:18:57 -05:00
teknomunk 57598f742c Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() 2024-06-19 07:18:57 -05:00
teknomunk 933625e67d Continue writing API documentation, update call signatures for a couple of API functions 2024-06-19 07:18:57 -05:00
teknomunk a559c8fde1 Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus 2024-06-19 07:18:57 -05:00
teknomunk 1dec6f7489 Correct crashes/item duplication with dropping carts, start API documentation 2024-06-19 07:18:57 -05:00
teknomunk 8427d072f0 Fix cart controls, cart pushing 2024-06-19 07:18:57 -05:00
teknomunk a95923ad18 Fix typo in rail replacement mapping, fix several crashes 2024-06-19 07:18:57 -05:00
teknomunk aa558fa42b Implement movement thru tee rails 2024-06-19 07:18:57 -05:00