Rosedale Collision Altering Plugin [MV & MZ]

Hello all! sorry for the... long delay... again... I have been very hard at work on this plugin though! it has jumped several versions, I will try to respond to everyone as I can ^^;

What's the correct way to make an event chase the player? 👋

I have since added a script call to allow chasing a character! Lookig now though it seems i forgot to add it to the help file o_o; I apologize it's hard to keep track of this haha.. but in a move route, simply use...

JavaScript:
// chase event 11..
this.chaseTarget( $gameMap.event( 11 ) )

// OR to chase player.
this.chaseTarget( $gamePlayer );


HIME_EventTriggerLabels works when the mapTag <pixel> not presented, if it is, it doesn't trigger at all!
I place this plugin above and below it, but wont trigger as I use this one for below events.
Interesting I never heard of this plugin I will add this to my todo list ^^; apologies, but it'd be far easier if you could post the bug reports/feature requests/compatibility issues in the rosedale studios plugin suppor section, as it's far easier for me to keep track of them, currently i get them from several different places and sometimes i forget to write them down.. D: I don't mean to forget but, sometimes it happens( in this case it's arlready in my list though so your good! Just for future reference, if possible ^^; ).


I'm using two tiles for the event as a car, and the collision of the hitbox doesn't turn or face the direction of the event. Is there an option to do this so that when the event turns horizontal, the tiles follow? the collision stays vertical(same), although the car is turning left and right.

<hitbox: 0, 0, 48, 92>

The picture below belongs to Skurge. I'm using his picture as an example.

​


View attachment 314016
https://forums.rpgmakerweb.com/index.php?attachments/car-restructuring-png.281921/
Event Hitbox resizing is now possible via plugin command. 🙂 Sory it's not the per direction you asked for but it should allow you to get the job done ^.^ I hope if you still feel it's insuficient, please let me know ^^;( just realized from the below post this is broken sorry Q__Q it SHOULD be fixed soon!

EDIT: I cannot replicate this not working pming you for more info sorry D;


Hello!
I really love this plugin, as it is very inuitive.
Here are a few notes if you would like to read them.

Spoiler: Event colliders resizing
I'm unsure if it has been mentionned but it would seem the resizing of event colliders is not working.

View attachment 315423

Left is the player, right is the event.
I set the event to the same proportions as the player, and it does edit its hitbox to a circle instead of a square, however it does not resize it.

I haven't taken a look at how this is done in the plugin, but just in case you would be using a variable (for whatever reason) I did try to enable floating numbers before resizing it, which doesn't change the behavior.


If this is known, sorry ^^
Still a very nice tool nontheless!

Spoiler: Collision glitch
I also found a glitch (probably dued to how the game handles refreshing) where if the hitbox does not allow the player to go through tights spots, dashing will allow the player to do it anyways.
View attachment 315424
As you can see, the player barely cannot go through here, however, dashing allows the player to squeeze through.
I assume it's because the new position is updated based on player input, so if the player is dashing it would be incremented more than it should, meaning for the plugin the new value is beyond the collision and thus the player can move.

Spoiler: Suggestion
Also, may I suggest an offset functionnality for the Region ID restrictions? (Again, if it hasn't been done already)
As region ID's are not events, you can't resize them or offset their values, which lesser the control you have over it.
Say you want your character to be able to touch the water with her feet, or have her head show over water spots.

I'm aware there are workarounds, but I still think it would be a nice touch.

For your first issue, sorry I will have this fixed in the next version! I will try to have it out asap after this message is posted... so check for an update within an hour or so and it should be fixed >.<; sorry for the inconvenience!

For your second issue, this occurs because currently, I do not ray cast for collisions, while I COULD do this i wanted this plugin to be as performant as possible.. but I suppose, I can add an option to improve collision accuracy by using raycasts to prevent scenarios such as this, however, it will most probably be at a slight performance hit( not much though, but really, really, low end pc's may notice this ).

As for the third issue! This has been added!! I have added region restrictions to the plugin, but it will also be improved in the future 🙂 So keep an eye out if it's not suitable for your needs.


I purchased it from the Maker Store
https://plaza.komodo.jp/products/rosedale-コリジョン設定プラグイン

But the current version is 1.5.2.
I want 1.10.2, what should I do?

* So to update the plugin, you need to go to the Collision Tool, click the "About" button, then click "Check for Updates"
* It will restart the tool, after confirming the update.
* After restarted, (single click), on your project in the tool, then click "Update Project"

Your plugin version SHOULD now be 1.13.0! 😀


Also Here's the plugin's change log since my last post Q_Q sorry
Code:
* ● Version : 1.10.0
* ● Date : 30/07/2024
*   ★ Add - "<grid>" map note tag, see help file for more info.
*   ★ Add - "chaseTarget" function for events( ONLY events, see help file).
*   ★ Add - Ray cast functions now detect circles as well.
*   ✩ Fix - collision for Rectangle x Polygon( better accuracy & performance ).
*   ✩ Fix - issue with events being untriggerable if player is through.
*   ✩ Fix - followers distance greatly increases when running.

* ● Version : 1.10.1
* ● Date : 16/09/2024
*   ✩ Fix - issue with triggering events.

* ● Version : 1.10.2
* ● Date : 17/09/2024
*   ✩ Fix - bug with triggering through and below priority events.
*   ✩ Remove - unecessary console log used for debugging.

* ● Version : 1.10.3
* ● Date : 17/09/2024
*   ✩ Fix - nearby empty events stopping valid events from starting
*   ✩ Change - raycast for trigger check to 5 rays instead of 3.

* ● Version : 1.10.4
* ● Date : 17/09/2024
*   ✩ Fix - compatibility with MZPlusPrimeParallax.js.

* ● Version : 1.11.0
* ● Date : 18/09/2024
*   ★ Add - support for YEP_EventHitbox
*   ✩ Fix - raycast for event trigger now fires from center outward.
*   ✩ Fix - raycast for circles not working properly.
*   ✩ Fix - unboarding vehicles clipping.
*   ✩ Fix - cannot board vehicles.

* ● Version : 1.11.1
* ● Date : 19/09/2024
*   ✩ Fix - Player got stuck on events when through, via move route.
*   ✩ Fix - disabling mouse not working in MV.

* ● Version : 1.11.2
* ● Date : 19/09/2024
*   ✩ Fix - Placement for YEP_HitboxResize plugin placement missing.

* ● Version : 1.12.0
* ● Date : 20/09/2024
*   ★ Add - Vehicle 8 directional support via plugin parameters.
*   ★ Add - Multiple no jump regions.
*   ✩ Fix - 4 directional vehicles sprite handling for diagonal movement.
*   ✩ Fix - 4 directional characters being set to diagonal directions.
*   ✩ Fix - jumping onto a slippery region sent player flying.
*   ✩ Fix - no jump regions not working properly after 1.8.0..

* ● Version : 1.13.0
* ● Date : 21/09/2024
*   ★ Add - Split Traction( start speed ), and friction( stop speed )..
*   ★ Add - Support for MZPlusPrimeParallax plugin..
*   ✩ Fix - crash on character collisions in some situations.
For your first issue, sorry I will have this fixed in the next version! I will try to have it out asap after this message is posted... so check for an update within an hour or so and it should be fixed >.<; sorry for the inconvenience!

For your second issue, this occurs because currently, I do not ray cast for collisions, while I COULD do this i wanted this plugin to be as performant as possible.. but I suppose, I can add an option to improve collision accuracy by using raycasts to prevent scenarios such as this, however, it will most probably be at a slight performance hit( not much though, but really, really, low end pc's may notice this ).

As for the third issue! This has been added!! I have added region restrictions to the plugin, but it will also be improved in the future 🙂 So keep an eye out if it's not suitable for your needs.

The last one was a suggestion rather than an issue, but I'm glad it got added, this will pimp the ride fosho 😀

Thanks for the great work and plugin
Well, I come up with this method for this event instead. I hope it won't lag if I have more than one
event.
1727116318306.png
1727116305849.png
1727116125223.png
for the the double post. I don't know how to remove this post.
I'm assuming your using some kind of zoom plugin o__o; cause those hitboxes are super off xDD or is this a bug report?

EDIT: also for a more performant event... you could.. run another conditional branch around ALL of these other conditional branches, that checks if variable X is the direction of the event in question...
JavaScript:
$gameMap.event( ID ).direction() != $gameVariable.value( X )
then at the VERY end of this conditional branch, set variable x to the direction of event ID.
JavaScript:
$gameVariable.setValue( $gameMap.event( ID ).direction() )

and that will ONLY run the code, when the direction of the event changes!

But evenn without this, I beleive the code should be very fast already as it's not really doing a whole lot. ^^;
Minor request: Could you make the region restrictions also have a terrain tag restrictions option too?
also, slippery regions arent working still, neither HIME_TriggerLabels.
somehow, it is always true when on the event which is false.

when in front, it should work. as this has a very specific trigger event when in front.
if required, I can give you the setup for testing 🙂
also, slippery regions arent working still, neither HIME_TriggerLabels.
somehow, it is always true when on the event which is false.

when in front, it should work. as this has a very specific trigger event when in front.
if required, I can give you the setup for testing 🙂


I did not add support for Hime_TriggerLabels ^^; I simply added it to my todo list for now

As for slippery regions, hmm... are you using any other plugins which may overwrite this? may i see your setup in the plugin parameters?

Minor request: Could you make the region restrictions also have a terrain tag restrictions option too?

I can look into this ^^; it shouldn't be too difficult
I can look into this ^^; it shouldn't be too difficult
It shouldn't be, it's just a change of code from $gameMap.regionId to $gameMap.terrainTag
I edited Yanfly Region Restrictions to work with terrain tags that way.
It shouldn't be, it's just a change of code from $gameMap.regionId to $gameMap.terrainTag
I edited Yanfly Region Restrictions to work with terrain tags that way.
Yeah, sorry if that came out wrong, I was stating that it wouldn't be that hard, technically all i gotta do is copy the function that checks regions, and replace the region id check with the terrain tag check lol, it is indeed a simple task xD just it might take me a bit to get to, as my bug reports/feature requests/compatibility patch requests are quite large, but I did make some decent progress on it last week ^^;
Thank you! The update was successful!
By the way, I was told that it was compatible with TSR mirror, but when I installed it, it looked like it had split into two parts.
The current version of TSR mirror is 1.4.0, but is this not compatible?
(The TSR mirror is installed below.)
As for slippery regions, hmm... are you using any other plugins which may overwrite this? may i see your setup in the plugin parameters?

Here is the simple region setup
rgnSetup.jpg


Settings used at this point
testSettings.jpg

and Plugin List as not all is used in this map
tempList.jpg


there might be plugin removed, and added as most of my own.
SRD_SlipDamaged is also region based as I need this for my HUD so this one is
crucial, so there are plugins reguired, but noting to slippery so far I see it.
Thank you! The update was successful!
By the way, I was told that it was compatible with TSR mirror, but when I installed it, it looked like it had split into two parts.
The current version of TSR mirror is 1.4.0, but is this not compatible?
(The TSR mirror is installed below.)

So... I've done a lot of updates since then. and I'm sure TSR has as well ^^; I'll need to take another look into this again D: lol

@ShadowDragon

the values you are using seem a bit high... it'd be hard to notice any sliding at all with them.. try lowering the values( this is why i allow for 4 decimal places ^^; something like 0.02 may be a bit more noticable. if that still doesn't work I may need to ask you to pm me a demo project, as In all my testing it works for me 🙁

Also wait what version of the plugin are you using, the latest is 1.13.1(or 1.13.2 I dont remember exactly... sorry lol too many updates last few days D: ). There should be a traction AND a friction value not just a traction value.. this seems like a version before 1.12.X( I think, that's where i added the improved settinngs for slippery regions... )
Thank you. I'm looking forward to it.

I also have one more request about the collision tool.

1. I'd like to be able to work in a full-screen window.

2. I'm currently creating a 1920x1920 map with Parallax Mapping. If I try to set this with the collision tool, I have to set each 48x48 one by one.

If I could use the par tab (or create a new all tab?)
to display the entire image that's currently open and set the collision for that image, my work would be much more efficient.

I know you're busy, but I'd appreciate your consideration.
so... firstly, about this new request..

fullscreen is being worked on, and will be available in the next patch.

second... this ones not as easy. because of the way colliders are handled in the editor, they all need to be in a 48x48 cell... it's unfortunate... but for right now... this won't be added, I DO plan to add this in the future.... allowing to draw directly to a parallax map... but for right now... this is a HUUUGE undertaking...

I apologize....
Also wait what version of the plugin are you using, the latest is 1.13.1(or 1.13.2 I dont remember exactly...
using 1.13.2 as you can see in the plugin list.
but as the plugin allow 0 to 1, I though 0.4000 could work.
I try lower it 0.0200 to see what happens.

Edit:
I try with 0.0025 and friction of 0.0050
and 1 with , 0.0050 and 0.0025 for stopping, but there is a bug on it.

when walking and stopping works, but if you use 2 regions (maybe 1 too) and
you turn around, it shoots with high speed, specially with dashing (which I have on 2).
on Ice slippery that works awesome just speed up instead of slow down before walking
or slip to the opposite direction.

if you know Summon Night - Swordcraft Story 2, there is a slippery part, but this also
slide continues more, so I need more testing to get around the same effect of that.

but lower values definitely helps, specially below 100 to make it noticeble better and
make it work better 🙂
Thank you! I'm looking forward to future updates!

There's one more thing I'd like to request in the next update.
I'd like a dialog to warn me when I exit without saving.
All the collision I spent so much time setting up has disappeared...
@kakatototo consider it done Q.Q so sorry...

@ShadowDragon

About gaining traction to quickly, if I'm guessing from your screenshot you provided with the regions you setup, if the player reaches the end of the slippery region, his traction becomes normal again. in which case, when you turn around, and move back onto the traction modified region, you will have started the move with full speed, as you started on a normal tile, so when you enter the traction region, you will keep the momentum. if I am wrong here, let me know but I've quite thoroughly tested this and couldn't replicate it other than in the situation mentioned.
Is it just me or does the new chaseTarget function not work (in MV)? The event just doesn't move at all. I wanted to test it out.
1727290831459.png
hmm.... thanks for the report, I'll look into this I might have broken path finding... again... for like the hundredth time Q__Q sorry, I'll look into it asap, that should definitely be working, by chance, the event is not completely blocked off from the player right?

Original thread: https://forums.rpgmakerweb.com/threads/rosedale-collision-altering-plugin-mv-mz.159189/