Giter VIP home page Giter VIP logo

vehicle_mash's Introduction

Vehicle Mash LuaCheck status ContentDB

Screenshot

A merge of all the vehicles from:

  • "Mesecars" by paramat.

  • "Car" by Esteban.

  • "Boats" by PilzAdam.

  • "Hovercraft" by Stuart Jones.

  • 28 vehicles currently.

  • All CAR01's can carry 3 passengers.

  • Disable vehicles by going to your Minetest Settings.

  • Adding new vehicles is a simple matter of:

    • Create/acquire vehicle model and textures.
    • Create, and name appropriately, a new .lua file on its appropiate folder for the vehicle based on one of the existing ones.
    • Add a setting in settingtypes.txt for users to enable/disable it.
    • Change settings in the file you created to reflect the new vehicle.
    • Add a new line to init.lua to load the vehicle dofile(minetest.get_modpath("vehicle_mash") .. "/NAME_OF_VEHICLE.lua")

Installation

  • Unzip the archive, rename the folder to vehicle_mash 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:
https://wiki.minetest.net/Installing_Mods

Known issues

  • None as of now.

License

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

All licenses of previous works, of course, apply (see credits below). As far as the work I did... It's really just a fork of a fork of a fork of a fork, tossed it all into a blender and spun it on puree for a bit. Baked it for a while and set it on the counter to cool. What I mean is, make what you will of it, it matters not to me.

See LICENSE.md for more information.

Dependencies

Requirements

  • vehicle_mash 2.1.0 for MT 5.0.0+.
  • vehicle_mash 2.0 for MT 0.4.12+ (may work on older versions).

TODO

There are no pending tasks to do yet.

Changelog

v2.4.0 1/12/2022

  • Added new API support for lib_mount.
  • Customizable HP/Armor for all vehicles. Players will be affected.
  • Short and tweak the code.
  • Cars can now be killed by players.
  • Support for 3+ passengers (beta).

v2.3.0 2/12/2021

  • Improved formatting in README.md.
  • Added API Mode setting.
  • Removed F1 and 126r cars due to closed-source license.
  • Improved vehicle drops.
    • Vehicles can now drop multiple items.
  • Add option for vehicles to fly (setting per vehicle).
  • Can enable/disable crash separately for each vehicle.
  • Added ContentDB badge on README.md.
  • Improved GitHub workflow.

v2.2.2 6/02/2020

  • Fix passengers not detaching when driver gets out.
  • Various other tweaks and fixes for passengers.

v2.2.1 5/28/2020

  • Added vehicle crafting (Enabled by default).
    • Added car battery, windshield, tire, and motor.
  • All CAR01's can now carry 3 passengers.
  • Add screenshot.png.
  • Improve README.md.

v2.2 5/15/2020

  • Move files to a folder of its own.
  • Add GitHub workflow and LuaCheck.
  • Add settingtypes.txt to select enabled cars.
  • Improve README.md.
  • Short a bit the code.

v2.1 6/10/2019

  • Fix attachment positions for drivers/passengers on all vehicles.
  • Adds red, green, and yellow hovercrafts.
  • Use mod.conf for name, description and dependencies.
  • Support for MT 5.0.0+.

v2.0 8/13/2016

  • converted to use the lib_mount mod for "driving"
  • enlarged F1 and 126r models x2.5
  • added yellow Mesecar
  • updated boat model from default boat mod
  • various speed/braking/turning/acceleration tweaks
  • various collision box tweaks
  • various other tweaks I probably forgot about
  • last version supporting MT 0.4.12+.

v1.4 5/19/2015

  • attach (one) passenger added
  • reorganized vehicle definition file code and added some variables pertaining to passengers
  • added a vehicle definition file template with comments
  • cleaned up to remove code dulplication

v1.3 5/5/2015

  • player now sits forward in vehicles
  • tweaked player sit positions
  • tweaked collison boxes
  • proper placement on_ground/in_water

v1.2 5/1/2015

  • added boats
  • changed name so to not conflict with other mods

v1.1 4/25/2015

  • car won't come to a complete stop (fixed)

v1.0 4/24/2015

  • first release

Bugs, suggestions and new features

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

vehicle_mash's People

Contributors

blert2112 avatar imgbot[bot] avatar lazerbeak12345 avatar panquesito7 avatar shivajiva101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vehicle_mash's Issues

Consider replacing non-free car model

The car model is currently under the license CC BY-NC-SA 3.0, which is a well-known non-free license that is incompatible with free software and open source standards.

https://www.gnu.org/licenses/license-list.en.html#CC-BY-NC
https://opensource.org/licenses/common-reasons-for-rejection-of-licenses/

This makes it impossible to integrate this mod as-is into free software/open source games or mods. Without the car model, this mod makes little sense, after all.

It would be nice if this model could be replaced with something that is compatible with free software / open source standards. I would suggest using the CC BY-SA 4.0 license as this is still quite similar to the current license.

Alternatively, the original author of this model is asked to re-release this model under that license, or any other libre license (here's a list: https://freedomdefined.org/Licenses ).

Server crash after player try to get in to: vehicle_mash:rowboat (minetest-5.7.0 / Windows)

Server crash after player try to get in to: vehicle_mash:rowboat

Server:
minetest-5.7.0-56d2567b5-win64
Windows Server 2016 x64

Log:
2023-02-09 00:51:12: ACTION[Server]: Sharp right-clicks object 2544: LuaEntitySAO "vehicle_mash:rowboat" at (721,2,963)
2023-02-09 00:51:12: ACTION[Main]: Server: Shutting down
2023-02-09 00:51:12: ACTION[Main]: [doc] Server shuts down. Player data is about to be saved.
2023-02-09 00:51:12: ACTION[Main]: [doc] Wrote player data into A:\Server\Minetest-server\minetest-5\bin..\worlds\SharpNet_Cz/doc.mt.
2023-02-09 00:51:13: ACTION[Server]: [doc] Wrote player data into A:\Server\Minetest-server\minetest-5\bin..\worlds\SharpNet_Cz/doc.mt.
2023-02-09 00:51:13: ACTION[Server]: Sharp leaves game. List of players:
2023-02-09 00:51:15: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'vehicle_mash' in callback luaentity_run_simple_callback(): ...etest-server\minetest-5\bin..\builtin\common\vector.lua:374: attempt to index local 'v' (a boolean value)
2023-02-09 00:51:15: ERROR[Main]: stack traceback:
2023-02-09 00:51:15: ERROR[Main]: ...etest-server\minetest-5\bin..\builtin\common\vector.lua:374: in function <...etest-server\minetest-5\bin..\builtin\common\vector.lua:373>
2023-02-09 00:51:15: ERROR[Main]: [C]: in function 'set_attach'
2023-02-09 00:51:15: ERROR[Main]: ...ver\Minetest-server\minetest-5\bin..\mods\dmobs/api.lua:251: in function 'attach'
2023-02-09 00:51:15: ERROR[Main]: ...server\minetest-5\bin..\mods\vehicle_mash/framework.lua:106: in function 'func'
2023-02-09 00:51:15: ERROR[Main]: ...r\minetest-5\bin..\builtin\profiler\instrumentation.lua:108: in function <...r\minetest-5\bin..\builtin\profiler\instrumentation.lua:101>

vehicle_mash:rowboat & motorboat:boat glitches

Minetest 5.6 - 5.7
Last version of vehicle_mash (but this problem was presented even before last ver.)

Hi, I found two glitches on boats.

  1. vehicle_mash:rowboat - driver is badly rotated (of 90degree) so he is looking to the side and not in front
  2. motorboat:boat - When you stop boat and exit.. than boat will almost sink (visually is under watter)

Thx

Multiple passenger support

Description

We can now add multiple passenger support thanks to the new Library Mount API.
This could help other mod creators use this API to add vehicles, or add more vehicles to this pack as well.

Already working on this.

Multiple issues

I've found a few relatively minor usability issues in this mod:

  • The F1 and 126R models are rather small, I wonder if maybe they ought to be about 150% the current size. They look more like "kiddie"/"pedal" cars ๐Ÿ˜„, though they otherwise work.
  • For Melcor's CAR01 model, the collision box probably needs to be modified to only cover the central part of the car, so that no matter what angle you turn it, the box stays mostly inside the vehicle.
  • Braking distance should be shortened, at least for the CAR01 model.
  • If the car goes off into a liquid and you sink below the surface, e.g. if you drive off of the end of an incomplete bridge, the player should be detached from the car (for gameplay reasons, I would say the car ought to be deleted, or maybe replaced with some sort of "pile of scrap metal" that could be collected and recycled).

Some users are complaining that the car is hard to drive - I think this can be mostly solved by the above changes to the braking distance and collision box, mostly so that vehicles can turn corners easier at speed, and handle narrow roads better.

What licence is the code in this repo?

This... is a hairy licencing issue.

  • It looks like the things from "Car" by Esteban are under CC-BY-NC-SA. (code included, I assume?) -- EDIT code is MIT
  • "Mesecars" by paramat and "Boats" by PilzAdam code WTFPL
  • "Hovercraft" by Stuart Jones doesn't say what the code is under. (it specifies every other detail)

But what about the code in ./framework.lua? What about other code not from the above?

Todos

Since there is some work to do here apparently:

  • indicate that the code from Car (if any) is MIT
  • (somehow) clarify what licence new code falls under. (WTFPL licence)

Share vehicles via keys.

I could reach you via ctf chat some days ago and it decided me to push the mod to gitlab.

I already tested it on another mod I now maintain maidroid and it works well with only 3 very small commits which are still not pushed upstream as I also work on technic_chests support for those helper robots in parallel.

Already opened a new mod topic on CDB with WIP mention.

The mod seems to be in good shape, but I can't guarantee there is no place the mod could generate a segfault yet.
It also still does not support keyring which is my milestone to not consider it as WIP.
It may be the wrong place to submit this issue.

Any idea, feedback, comments like about missing generic function the mod could provide, intend to add on option to support "share your cars key" for your library may be useful for me.

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.