Ultra Mode 7 [RMMV & RMMZ]

@EthanFox Alright, v1.6.1 is up. I overhauled the entire code handling positioning in looped maps and added special handling that will check for sprite visibility in order to determine which of the 3 (if one looping is turned on) or 9 (if both loopings are turned on) should actually be used. This should cover 95% of all edge cases where problems could occur.
I was hoping this solution would have resolved the same issue that Yanfly's Grid-Free Doodads has with doodads disappearing off the "left" side of the screen with looped maps... alas it does not (I did report about the issue a long while back ago to you).
@Espilonarge How big are your maps? Is it possible that they disappear because they have to become visible on the other side of the looped map? I didn't test the new code with Yanfly's Grid-Free Doodads, but the code governing positioning now uses the same new code as the other objects and sprites.
While your update does indeed work as intended with event sprites, it seems Yanfly's plugin is still relying off some form of "default" behavior once they reach the maximum player viewpoint (somewhere past 0 of X and/or Y outside the 17x13 range plus how big the doodad is) when a map uses the horizontal and/or vertical looping function.

To best describe it in better detail. If the map is looped horizontally and a doodad is 32 pixels wide, it takes at least 10 tiles after moving to the right for it to disappear (or "teleport" to the other side of the map). The larger the doodad, the more tiles it takes before it happens (eg = 160 pixels wide -> 12 tiles).
Yeah, I didn't include any handling of sprite size. This would have complicated the calculations a lot. But you are right, I am still using the default screenX and screenY implemetations of Yanfly's plugin. I guess I should change that code as well then to include more calculations then.

EDIT: I uploaded v1.6.2. Let me know if it works.
Great plugin!Request migration to MZ!
EDIT: I uploaded v1.6.2. Let me know if it works.
I ran in to two issues.

1) Doodads will appear/disappear incorrectly at the looping point of the map.

If you reach the looping point of a horizontal map, doodads from 0-to-X (X being the maps maximum tile space widge) will not be visible until you move past the loop point and you've reached the 10th tile along the X-Axis but doodads from X-to-0 (aka the right side of the map before the loop point) will vanish. If you move back to the 9th tile along the X-Axis, all doodads from X-to-0 (past the loop point) will be visible again but all doodads from 0-to-X will vanish.

The same happens with vertical looping maps where reaching the 6th/7th tiles along the Y-Axis will cause the doodads from the top/bottom side of the map to appear/disappear depending on which tile you're on.

2) If there are an excessive amount of doodads (1000+ onwards) on the map, you'll start to notice a FPS-hitching spike every 10-to-20 seconds (the more doodads on map, the longer the FPS spikes become). This is very much the same issue I reported about back ages ago but this also happens when you're not moving around.
I see... :/ Looks like I'll have to spend some more time on this to fix it properly. Do you think you can put together a demo that reflects these issues and send it to me via PM? It would help me a lot to speed up the process.
Do you think you can put together a demo that reflects these issues and send it to me via PM?
Done and done. Hopefully it can be fixed.
I'm sure I'll figure something out. No worries. 🙂

EDIT: Updated to v1.6.3 and fixed all issues.
EDIT: Updated to v1.6.3 and fixed all issues.
Much appreciated.

Had to update the plugins config to fix a minor issue (sprites were not "animating" correctly until that was done) and the sprites (including doodads) blend in flawlessly in to the distance (no plugin compatibility issues noted). 😀
Yeah, since I added a new option, you need to update the plugin config. xD
Hi, BBlizzard, Will there be a version to rotate the camera by 4 angles?
@Ezzio1 4 angles? What do you mean?
@bblizzard I mean a script or function with something like CTR_engine v2.4(if you haven´t seen it, you could check, please) so that you can rotate the camera like 4 times but I am using the new version of Ultra Mode 7 with this notes in part of editing the Orthogonal map:

<UltraMode7_Pitch:60>

<UltraMode7_Yaw:30>

<UltraMode7_FOV:0>

(I think this is there by default).

Then, I want to rotate the camera like 4 times as you see.

Link of CTR_engine v.2.4:

I'm still not sure what you mean by "4 times". xD You can change these parameters on the fly during a map (if that's what you're looking for). Just check the demo. There are a few examples in there.
Hello!
I've just discovered this plugin not too long ago and I really like it! I like this type of camera angle plugins and I can't really find any others like it.
However, I've encountered a problem while trying to use the plugin.
The plugin would always give me an error message, even when I'm trying out the demo
- I tried putting it into an already existing (albeit small) project of mine (with YEP plugins which were free), and I got this error
- I tried putting it into a new project (no other plugins) and got this error, which is the same error I got when I tried to run the demo.

Some other info-
- I have followed the instructions which said to put the <UltraMode7> into the notes of the map but as previously mentioned, it didn't work in the demo so it wouldn't have worked here either way.
- I have WebGL

I'd like to know, if possible, if there is a way to fix it when there are other plugins in play.
Also, if this had already been discussed and I'm just awfully ignorant to it, please link me to it 👋

Cheers!
Hello!
I've just discovered this plugin not too long ago and I really like it! I like this type of camera angle plugins and I can't really find any others like it.
However, I've encountered a problem while trying to use the plugin.
The plugin would always give me an error message, even when I'm trying out the demo
- I tried putting it into an already existing (albeit small) project of mine (with YEP plugins which were free), and I got this error
- I tried putting it into a new project (no other plugins) and got this error, which is the same error I got when I tried to run the demo.

Some other info-
- I have followed the instructions which said to put the <UltraMode7> into the notes of the map but as previously mentioned, it didn't work in the demo so it wouldn't have worked here either way.
- I have WebGL

I'd like to know, if possible, if there is a way to fix it when there are other plugins in play.
Also, if this had already been discussed and I'm just awfully ignorant to it, please link me to it 👋

Cheers!
In order to help you, please take a screen shot of the console (open 'play test' then click f8 or f12 to open it), it's hard to know what's the cost the problem without it.

One of your other plugins probably not compatible with UltraMode7, the best way to check which plugin cost the problem will be to turn 'off' all other plugins you may have except Ultra Mode7, then turn 'on' each of the other plugins one by one, and you do a 'play test' every time, then whatever you get the error you know Wich Plugin cost the problem. Then you could find an alternative or try to ask/fin solution for that specific plugin.
@Narwhales3 Yeah, that's actually my fault. ._.;;; I've been refactoring the code slightly and put "const" instead of "var" wherever possible, but I messed up in that place and put a "const" on a value that does get changed. ._.;;; I'll upload a fixed version in a few minutes.

EDIT: v.1.6.4 is up. The issue shouldn't happen anymore. I also noticed that it could possibly happen if you animate more than 1 parameter at once so I fixed that code as well just to be safe. Seems like JavaScript doesn't like multiple const declarations within the same functions even if they are inside of different scopes.
In order to help you, please take a screen shot of the console (open 'play test' then click f8 or f12 to open it), it's hard to know what's the cost the problem without it.

So I did what you said, (F8) and it opened
1599030163183.png
which should be it.

@Narwhales3 Yeah, that's actually my fault. ._.;;; I've been refactoring the code slightly and put "const" instead of "var" wherever possible, but I messed up in that place and put a "const" on a value that does get changed. ._.;;; I'll upload a fixed version in a few minutes.

EDIT: v.1.6.4 is up. The issue shouldn't happen anymore. I also noticed that it could possibly happen if you animate more than 1 parameter at once so I fixed that code as well just to be safe. Seems like JavaScript doesn't like multiple const declarations within the same functions even if they are inside of different scopes.

Thank you very much! I just downloaded the new version and it works wonderfully, the plugin also works with the other YEP plugins I have in here. Can't wait to see what I can make with it, 😉 I'll report back if I encounter anything new again.
Once again, tyvm!
Yeah, you already added a screenshot with a stacktrace before so it's fine. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/ultra-mode-7-rmmv-rmmz.94100/