Giter Club home page Giter Club logo

lib_mount's Introduction

Library Mount LuaCheck status License ContentDB

Made by blert2112.
Handed over to Panquesito7.

Current version: 1.4

Dependencies

Optional dependencies

Requirements

  • Version 1.0 for MT 0.4.14+
  • Version 1.1 for MT 5.0.0+

License

Copyright (C) 2016 blert2112 and contributors
Copyright (C) 2019-2023 Panquesito7 ([email protected]) and contributors

Based on the Boats mod by PilzAdam.
See LICENSE.md for information.

Installation

  • Unzip the archive, rename the folder to lib_mount and place it in ../minetest/mods/.

  • GNU/Linux: If you use a system-wide installation, place it in ~/.minetest/mods/.

  • If you only want this to be used in a single world, place the folder in worldmods/ in your world directory.

For further information or help, see:
http://wiki.minetest.net/Installing_Mods.

Bugs, suggestions, features & bugfixes

Report bugs or suggest ideas by creating an issue.
If you know how to fix an issue, consider opening a pull request.

lib_mount's People

Contributors

blert2112 avatar lazerbeak12345 avatar panquesito7 avatar zweihorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lib_mount's Issues

Lots of stored references to player objectrefs

This section of the official lua modding documentation does not recommend keeping pointers to object refs (I understand a player to be an example of one - perhaps I'm wrong). This is to avoid the objectref going invalid.

Looking over this code, pretty much every single reference to a "player" is not the player's name - but an objectref. This is only a problem where the objectref (and not the username) is stored in the vehicle (for the driver and all passengers), and the potentially completely useless lib_mount.passengers value (which is even more scary - you're indexing with a playerref to get the same playerref, and the same playerref might not even == itself all the time)

This is brought up as an issue instead of a PR because fixing this will may break backwards compatibility.


See below. There's a way, at cost of performance, to not break compatibility.

Server crash when player leave server and is in the car/boat

Hello, im not coder, idk how to fix this, and if it can be fixed..

But i found bug, when player is in the car/boat from this mod and simple leave game.

Server will crash with this error:
2021-01-30 18:39:58: ACTION[Server]: milan right-clicks object 120: LuaEntitySAO "vehicle_mash:rowboat" at (-3124,2,267)
2021-01-30 18:40:02: ACTION[Server]: milan leaves game. List of players:
2021-01-30 18:40:03: ACTION[Main]: Server: Shutting down
2021-01-30 18:40:29: ACTION[Main]: [Tubelib] Store data...
2021-01-30 18:40:29: ACTION[Main]: [Tubelib] Data stored. t=1312us
2021-01-30 18:40:31: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'vehicle_mash' in callback luaentity_Step(): /home/minetest/.minetest/mods/lib_mount/init.lua:261: attempt t
o perform arithmetic on a nil value
2021-01-30 18:40:31: ERROR[Main]: stack traceback:
2021-01-30 18:40:31: ERROR[Main]: /home/minetest/.minetest/mods/lib_mount/init.lua:261: in function 'drive'
2021-01-30 18:40:31: ERROR[Main]: /home/minetest/.minetest/mods/vehicle_mash/framework.lua:143: in function </home/minetest/.minetest/mods/vehicle_mash/framework.lua:142>

crash my mt server

2021-11-14 17:40:43: WARNING[Server]: Deprecated call to get_look_yaw, use get_look_horizontal instead (at ...gger\minetest-5.4.1-win64\bin..\mods\lib_mount\init.lua:274)
This error occurred a few thousand times in a few seconds. easy to fix.

change line 274 to:
entity.object:set_yaw(entity.driver:get_look_horizontal() - rot_steer)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.