Simple Land Vehicle

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
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:
Joined
Apr 9, 2015
Messages
130
Reaction score
156
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!
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,078
Reaction score
223
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:

Ashouse

Resident Zombie
Veteran
Joined
Oct 25, 2015
Messages
245
Reaction score
91
First Language
English
Primarily Uses
N/A
Oops missread....
 
Last edited by a moderator:

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
First Language
Spanish
@Strange_Dragon_99 - Thanks, I'm glad it works for you :)

@Skurge -

how do I configure the parameters so that the vehicle can drive on walkable terrain of my choosing?
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
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,078
Reaction score
223
First Language
English
Primarily Uses
N/A
I don't understand why my boat vehicle refuses to move on any land.
 

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
First Language
Spanish
I don't understand why my boat vehicle refuses to move on any land.
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:

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,078
Reaction score
223
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:

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
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
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,078
Reaction score
223
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.

 
Last edited by a moderator:

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
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.
 

Hoppy

Veteran
Veteran
Joined
Oct 6, 2015
Messages
326
Reaction score
54
First Language
English
Nice now I can use the covered wagon and maybe one of the other vehicles.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,078
Reaction score
223
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.

 

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
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.
 

RyanBram

Veteran
Veteran
Joined
May 13, 2012
Messages
184
Reaction score
161
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:

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
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.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,078
Reaction score
223
First Language
English
Primarily Uses
N/A
Thank you very much for your help guys, it's works beautifully now :)
 

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
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 ^^
 

WCouillard

Veteran
Veteran
Joined
Nov 24, 2013
Messages
42
Reaction score
13
First Language
English
Primarily Uses
Well you just saved me the trouble of converting my Land Vehicle Ace script. Kudos! Works like a charm!
 

PotionDose

Veteran
Veteran
Joined
Nov 4, 2015
Messages
48
Reaction score
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:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

i watched the sonic movie it was pretty good i hope they make a sequel
tomorrow I'ma go on a cruise for the first time ever... lets hope I'll survive the experience!
Omg! 8 years in this forum :o
Ksi
Streaming the last of the RMN Valentiny event games so feel free to drop on by and watch me cry (whether that's from laughter, rage or sheer pain, who knows?)
Today I went to sleep without setting an alarm, so I could sleep more than 2 hours. I woke up after 2 hours.

Forum statistics

Threads
94,318
Messages
919,856
Members
124,064
Latest member
kt040
Top