IMPORTANT ANNOUNCEMENT: Discussion and information regarding this plugin has moved to the MZ Plugins forum now that compatibility has been determined as available without further action. You can still use the plugin with MV if you follow the provided instructions. Thank you for understanding.
Ready to Rumble: A Plugin for Controller Vibration
JS Plugin Releases (RMMV)Looks like a really cool feature!
Do you want designers who use this to credit both yourself and OS87 in their credits?
Do you want designers who use this to credit both yourself and OS87 in their credits?
Unfair not to.
THANK YOU BreakerZero! I was literally trying to get this commissioned for the longest time.
Seriously, thank you very much!
Seriously, thank you very much!
v1.0.1 out, please update if you're having issues. I encountered a few undetected irregularities that require a bugfix release.
Can I make a suggestion?
Adding the option for the player to turn it on or off in the options menu.
Because some people may not want it activated at some times.
Adding the option for the player to turn it on or off in the options menu.
Because some people may not want it activated at some times.
Already on the roadmap. Thing is that this is literally my first submission of this kind, so anything that involved is something I'll have to properly analyze first.
EDIT: I now have a baseline set for the switch function. It's a bit bare for now and you'll have to do some extra work to make a persistent status out of it (file system entries combined with a simple yes/no are the easiest option, and I'm adding a parameter to read the state off a control switch) but I have started to build this out in version 1.0.2 which is
EDIT 3: Obviously a global switch plugin may also work for this if you set the same switch for both purposes. Forgot to mention that earlier in case the file system method is not viable or functional.
1.0.3 is out. I was recently alerted to the possibility of a crash if a gamepad is disconnected during or prior to gameplay which I have addressed in addition to refinements that should hopefully prevent the use of values outside accepted range (such that any excess defaults to supported values instead of being ignored completely).
Hey BreakerZero, I don't understand, why is 0.1 the minimum? I mean, I understand it having to be higher than 0, but why 0.05 isn't acceptable for example?
Actually, the minimum is 0.2 as 0.1 doesn't do anything. I'm also enforcing a maximum time limit of 5000 milliseconds for the same reason.
@BreakerZero I hope you don't mind, I made an edit of your code... Your actual code is almost intact, though.
I mainly did two things: one, I aded the option of rumble in the Options menu, so I removed your switch.
It just makes more sense, and as you said you just didn't add it because you didn't know how...
And two, I added a check to see which gamepad was the last one used, save its index, and that is the one that will rumble.
I had to do it because... in your original code the gamepad to rumble is gamepad index 0. I use Switch Joycons as a gamepad through vjoy and a driver by fosse. That means my controller, the actual one with rumble working, is usually, but not always, index 3.
With my change the gamepad will be detected and saved every time a button is pressed or an analog stick moved, its index will be saved, and it is that index that will be used for the rumble.
Hope you don't mind. I added a few comments in case you want to see how I did it, but to be honest the options thing I learned from a couple Yanfly plugins anyway 😛
[Removed]
[EDIT] Oh by the way, I removed the bZero.PlayTime object. I have no idea why it is there in your code, since it is never used...
I mainly did two things: one, I aded the option of rumble in the Options menu, so I removed your switch.
It just makes more sense, and as you said you just didn't add it because you didn't know how...
And two, I added a check to see which gamepad was the last one used, save its index, and that is the one that will rumble.
I had to do it because... in your original code the gamepad to rumble is gamepad index 0. I use Switch Joycons as a gamepad through vjoy and a driver by fosse. That means my controller, the actual one with rumble working, is usually, but not always, index 3.
With my change the gamepad will be detected and saved every time a button is pressed or an analog stick moved, its index will be saved, and it is that index that will be used for the rumble.
Hope you don't mind. I added a few comments in case you want to see how I did it, but to be honest the options thing I learned from a couple Yanfly plugins anyway 😛
[Removed]
[EDIT] Oh by the way, I removed the bZero.PlayTime object. I have no idea why it is there in your code, since it is never used...
@Waterguy that was for development purposes which I ended up not having to use. As for the contribution, I will patch over to a new release later this morning.
EDIT: It's up! The option access change has been patched to official release bringing the version to 1.0.4. If you were using the control switch method from before it has been removed to allow for the updated control mechanism so update your projects accordingly.
EDIT 2: Change of plans. Temporary rollback initiated due to an unanticipated technical issue with the update.
EDIT 3: Reuploaded with a change to access detection so that it doesn't trigger when entering the options menu pending further analysis. In the event that detection is resolved this will be restored in a future version.
EDIT: It's up! The option access change has been patched to official release bringing the version to 1.0.4. If you were using the control switch method from before it has been removed to allow for the updated control mechanism so update your projects accordingly.
EDIT 2: Change of plans. Temporary rollback initiated due to an unanticipated technical issue with the update.
EDIT 3: Reuploaded with a change to access detection so that it doesn't trigger when entering the options menu pending further analysis. In the event that detection is resolved this will be restored in a future version.
Sorry, I forgot to add a function on the plugin. It didn't give an error to me because I already had it in another one.
Sorry for the mistake, hopefully it'll work fine now
The link I posted earlier should already point to a fixed version. You removed the problem function calls from yours so it's no problem anyway, but just to explain to people it was a function that is in the GamepadConfig plugin that is for free in the rpg makers dlc folder. It is just there to only shows the option if there is a gamepad connected.
Sorry for the mistake, hopefully it'll work fine now
The link I posted earlier should already point to a fixed version. You removed the problem function calls from yours so it's no problem anyway, but just to explain to people it was a function that is in the GamepadConfig plugin that is for free in the rpg makers dlc folder. It is just there to only shows the option if there is a gamepad connected.
Didn't have a chance to mention earlier, but 1.0.5 is up. This release includes the auto-detection mechanism and the latest contributions to the plugin structure.
EDIT: Due to rampant theft in the community I am joining other plugin creators in moving to a paid distribution model. Therefore, this provision has been redacted and no longer applies.
Minor description update to account for x64 distribution mandates that are now required for compliance with Apple software developer agreements beginning with macOS Catalina. Please note that functional testing may be required to verify WebGL fallback due to the absence of OpenGL on newer macOS systems.
Major change in the status of the plugin. Like other creators I am moving the plugin to a distribution structure that will require a paid download and so I have temporarily removed the download links. The reason of course is the same as for other plugin creators: there has been a lot of theft going on, and the research between me and @Waterguy that helped to make this possible is not worth the trouble of keeping the plugin open to all. This may initially come off as a jerk reaction, however as I have just finished reading Yanfly's transition statement/retirement note I am doing this in solidarity. Therefore as I plan for release 2.0 (which will replace the current script call mechanic with a full plugin command implementation) I must unfortunately request that everyone immediately stop circulation of this plugin on penalty of suit. I take this very seriously and regret going to such extreme measures, however owing to the fact that the community as a whole is moving in this direction in light of the incidence I have no other choice in this matter.
Again, this may come off as rush judgment to some of you, but I have literally just decided after reading the information from Yanfly and Olivia (among others) who have already taken the unfortunate decision to move their plugin development capacity to a for-pay model and I have decided that with all the work that went into this frequently-requested plugin that I will be making the transition as well.
EDIT: Decision finalized. Payment will be required for all versions of the plugin.
EDIT 2: The new download links are up. You can pay on either itch or Gumroad to update your license and download the required version of the plugin. This is not a negotiable matter - you must purchase a license for version 1.6 in order to legally use the plugin from now on (and that's not including existing downloads of 1.5 and earlier which beyond an immediate revocation of further recirculation rights are not subject to the new acquisition mandate). Again, this is not something that I do without reason but due to the work that went into this plugin I cannot reasonably support existing downloads without risking the possibility of exposing my work to any further intrusion upon the community.
Again, this may come off as rush judgment to some of you, but I have literally just decided after reading the information from Yanfly and Olivia (among others) who have already taken the unfortunate decision to move their plugin development capacity to a for-pay model and I have decided that with all the work that went into this frequently-requested plugin that I will be making the transition as well.
EDIT: Decision finalized. Payment will be required for all versions of the plugin.
EDIT 2: The new download links are up. You can pay on either itch or Gumroad to update your license and download the required version of the plugin. This is not a negotiable matter - you must purchase a license for version 1.6 in order to legally use the plugin from now on (and that's not including existing downloads of 1.5 and earlier which beyond an immediate revocation of further recirculation rights are not subject to the new acquisition mandate). Again, this is not something that I do without reason but due to the work that went into this plugin I cannot reasonably support existing downloads without risking the possibility of exposing my work to any further intrusion upon the community.
Small update on the status of the transition. Even if the plugin download says that a license upgrade is required, I have decided after further consultation that I will not be enforcing this. You will continue to be able to use existing downloads from before the license change and will not have to pay twice.
Forgot to update the announcement of the change in licensing to reflect that I have restored legal support for 1.5 and earlier on a restricted provisional condition. This has now been addressed to avoid confusion on the matter.
Original thread: https://forums.rpgmakerweb.com/threads/ready-to-rumble-a-plugin-for-controller-vibration.111254/