Simple Land Vehicle

Discussion in 'JS Plugin Releases (RMMV)' started by Karberus, Oct 27, 2015.

  1. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    Simple Land Vehicle
    by Karberus
     ​
     ​
     ​
    Versions:
    Current Version: 1.2

    v1.0        27 Oct 2015 -  Initial Release.v1.1 27 Oct 2015 - Added the option to change whether events can be triggered while on the land vehicle.v1.2 27 Oct 2015 - Added the option to set a Region ID that will forbid the land vehicle to pass through.
     
     ​
    Introduction:
    This plugin will replace the boat vehicle and make it into a vehicle that can be driven in land, but not in water.
     
     
    Features:

    • Drive a vehicle in land
    • Set the speed of the land vehicle
    • Set whether encounters will happen while you are in the land vehicle
    • Set whether events can be triggered while on the land vehicle (Default: false)
    • Set a Region ID that will forbid the land vehicle to pass through (Optional)

    How to use:

    • Add the plugin to your game.
    • Change the graphic of the boat in the database into the graphic of your land vehicle (unless you want an actual boat on land xD)
    • Set Starting Position of "Boat" which will be your Land Vehicle. (Boat = Land Vehicle, Ship = Water Vehicle, Airship = Air Vehicle)
    • Go to the Parameter Settings and set your land vehicle speed, Encounters and whether touch/action button events can be triggered
    • In the Parameter Settings, set a Region ID that forbids the vehicle to pass. (Optional)

    Plugin:
    SimpleLandVehicle
     
     
    Dependencies:
    None
     
     
    Known Bugs:
    Let me know
     
     
    Credit/Terms of use:
    Credit me if you wish; May be used however you wish; commercial or non-commercial.
     
     
    Author's Notes
    Another plugin I've made as I practice, let me know in what ways I should improve and what you think. Thanks!
     
    Last edited by a moderator: Nov 1, 2015
    #1
    Eliaquim, anonamix, Alastor01 and 7 others like this.
  2. Strange_Dragon_99

    Strange_Dragon_99 Veteran Veteran

    Messages:
    130
    Likes Received:
    156
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    I was hoping someone would make this plugin and here it is! 

    I tested it out and it works great from what I can tell. Awesome work!

    You have my thanks!
     
    #2
  3. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,039
    Likes Received:
    200
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Alright since I'm new to the plug in thing, I really want to use this but how do I download the script as a plugin file?

    *EDIT

    I think I just figured out how silly me.

    how do I configure the parameters so that the vehicle can drive on walkable terrain of my choosing?
     
    Last edited by a moderator: Oct 28, 2015
    #3
  4. Ashouse

    Ashouse Resident Zombie Veteran

    Messages:
    245
    Likes Received:
    91
    First Language:
    English
    Primarily Uses:
    N/A
    Oops missread....
     
    Last edited by a moderator: Oct 28, 2015
    #4
  5. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    @Strange_Dragon_99 - Thanks, I'm glad it works for you :)

    @Skurge -

    I just updated the plugin so that you can set a region id which will forbid the land vehicle to drive through it.

    I hope that helps :p
     
    #5
    sieben43 likes this.
  6. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,039
    Likes Received:
    200
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I don't understand why my boat vehicle refuses to move on any land.
     
    #6
  7. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    Can you tell me exactly what you've done? 

    Remember you need to:

    1. Download the plugin and save it as SimpleLandVehicle.js inside your project's plugin folder. ("YourProjectName"\js\plugins)
    2. In the editor, click on the plugin manager, then right-click any empty slot, click edit and on the drop down menu of "Name:" look for SimpleLandVehicle
    3. After that, check the parameter settings below and set it up as you like
     
    Last edited by a moderator: Oct 28, 2015
    #7
  8. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,039
    Likes Received:
    200
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I've done exactly how you said, but the boat/ground vehicle still acts like sea vessel. I'm trying to have this ground vehicle work on tiles/terrain/region (whichever your plugin allows movement on) so essentially this is for a city map and the vehicle I Intend to have I want to only be drive-able on the roads so that you can't go into strange areas like the side walks.

    The vehicle still likes to travel on shallow water/ocean however, I've updated the plugin but I'm not sure what else I'm doing wrong, I've also tested around with the Forbid region ID part, but the vehicle still ignores and passes through them.
     
    Last edited by a moderator: Oct 28, 2015
    #8
  9. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    That's weird. I really have no idea what could be going on :c

    Could you show me a screenshot of the steps you've taken? I don't know what else to do
     
    #9
  10. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,039
    Likes Received:
    200
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Well with the plugin installed and the forbid region id is set to 2, that should mean that the vehicle is unable to traverse the region of 2 on the map here? It ignores anyway and continues to move through.

    Secondly the vehicle does not want to traverse the grass here which is what I am aiming for. A terrain the player can walk on as well as the vehicle, but the vehicle itself is only limited to a floor type*

    The vehicle (boat) still is able to move through water, but not land.

    If that makes any sense to you.

    [​IMG]
     
    Last edited by a moderator: Oct 28, 2015
    #10
  11. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    That screenshot isn't telling me much, but make sure you set boat starting position on land like where the player is.

    Also, in the plugin manager is the plugin status ON?

    If the plugin is in the right folder, and the plugin status is ON, then I can't see what the problem is.

    Maybe it's conflicting with another plugin? I have most of the 37 plugins, and a few others but I have no problem with it.
     
    #11
  12. Hoppy

    Hoppy Veteran Veteran

    Messages:
    326
    Likes Received:
    54
    First Language:
    English
    Nice now I can use the covered wagon and maybe one of the other vehicles.
     
    #12
  13. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,039
    Likes Received:
    200
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I only have 4 plugins.

    Boat is on land now but still does not work, not sure why.

    hopefully this screenshot will show you more of what the plugin has for us.

    [​IMG]
     
    #13
  14. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    Okay, looking at that I can tell there is something wrong. First of all, try deleting the </span></td> in all of the parameters. I don't know why those are showing, but they shouldn't be there.

    If that doesn't work, I'm afraid we are going to need help from someone who is more experienced with Javascript to tell us why that is happening. 

    The </span></td> shouldn't be showing anywhere at all, I have no idea where it is coming from.
     
    #14
  15. RyanBram

    RyanBram Veteran Veteran

    Messages:
    184
    Likes Received:
    144
    First Language:
    Indonesian
    Primarily Uses:
    RMMV
    Probably you rename the original .js file.

    AFAIK some plugin will stop working if we don't use original name.

    The original name of this plugin is SimpleLandVehicle.js .
     
    Last edited by a moderator: Oct 28, 2015
    #15
  16. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    RyanBram is correct in that you need the original file name. Do not rename it.

    I would recommend deleting the current file you have and downloading it again.

    Go to the link, click on "Raw", then right-click and save as. Again, don't rename it and save it as is inside your project's plugin folder.
     
    #16
  17. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,039
    Likes Received:
    200
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Thank you very much for your help guys, it's works beautifully now :)
     
    #17
  18. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    First Language:
    Spanish
    No problem, I'm glad we could figure it out and make it work for you :)

    Thank you @RyanBram for your help as well ^^
     
    #18
    RyanBram likes this.
  19. WCouillard

    WCouillard Veteran Veteran

    Messages:
    42
    Likes Received:
    13
    First Language:
    English
    Well you just saved me the trouble of converting my Land Vehicle Ace script. Kudos! Works like a charm!
     
    #19
    Karberus likes this.
  20. PotionDose

    PotionDose Veteran Veteran

    Messages:
    48
    Likes Received:
    1
    First Language:
    English
    hello, i'm so glad someone made this plug in! I am really new to RPGMV so, i was curious, if the plugins isn't in a download file but put into code like yours how would i put it in my game? Copy it to notepad and save it as a .js or what? thanks!

    Edit: I figured it out. but the only problem is the region ID thingy isn't working. I put the region ID as 1 but the vehicle still drives over the parts i put for it to forbid.
     
    Last edited by a moderator: Nov 7, 2015
    #20

Share This Page