Increase how much tiles are visible at a time

Hello everyone.

I wanted to know if someone could provide a plugin that can increase the tiles that are visible by the camera of the game. As you know, the camera only "sees" 17x13 tiles at a time. For reasons too complicated (?) to explain, I need the camera of the game to be able to "see" around 20x16 tiles at a time.

I tried to use Yanfly's screen resolution plugin but it didn't work as intended.

Thanks for your time!
What didn't work as intended? It would help if you tell us what your problem was.

What you're talking about is increasing the screen size, and yanfly's plugins usually do that perfectly.
You can only have a single screen size in your game - if you want the viewpoint limited to a smaller area, that needs to be done by a picture blocking what is visible outside the intended area. Variable screen size is difficult to program...
If Yanfly's plugin didn't do as you expected, what did you expect to happen, and what actually happened?

I know when I used my Change Tile Size plugin so I could use my Ace resources in MV, it increased the number of tiles visible on the screen, without changing the size of the window.

I thought just increasing the window size would let you see more tiles.


Also, when you post links, please post the link to the thread or blog that introduces the plugin, rather than the .js itself. It's far more useful to us to be able to see the creator's comments, screenshots, description/instructions and any feedback they've received, rather than just the script, as we then have to guess at what it does and how it does it, or read through the script and try and figure it all out without any hints. There just isn't enough time to do that when we could get the overview straight from the designer.
20*48 x 16*48
is
960 x 768

I feel like a dork suggesting this, because I already assume that you did your math.

I use 1344 x 1008 in one of my unfinished projects myself.
If Yanfly's plugin didn't do as you expected, what did you expect to happen, and what actually happened?

I expected the camera to show 20x16 tiles at the same time, instead of the default 17x13. And when I run the game with the (configured) plugin, I didn't really see a difference.

I attached an image of a project with the plugin with some tiles as reference


Also, when you post links, please post the link to the thread or blog that introduces the plugin, rather than the .js itself. It's far more useful to us to be able to see the creator's comments, screenshots, description/instructions and any feedback they've received, rather than just the script, as we then have to guess at what it does and how it does it, or read through the script and try and figure it all out without any hints. There just isn't enough time to do that when we could get the overview straight from the designer.


Sorry, this is the link that introduces the plugin: http://yanfly.moe/yep/
(just scroll down to the botton of the page)


20*48 x 16*48
is
960 x 768

I feel like a dork suggesting this, because I already assume that you did your math.

I use 1344 x 1008 in one of my unfinished projects myself.


Yes, I put that exact same resolution. And don't feel like a dork. Most of the time are those little things that are causing us the problem. And I'm sure this time is one of them.

Thanks for the replies!
If you entered those numbers and it didn't change the resolution any, then that means there is some conflict and the plug-in is not working. Do you have any other plug-ins? Did you start a new game to check the changes? Do you have any other core plug-ins that might disable this one?

Edit: I checked his webpage, and I'm not sure what plug-in this is you are referring to. Do you mean Yanfly Core Engine? That's the one that most use to change the resolution. Link is here:

http://yanfly.moe/2015/10/09/yep-1-core-engine/
If you entered those numbers and it didn't change the resolution any, then that means there is some conflict and the plug-in is not working. Do you have any other plug-ins? Did you start a new game to check the changes? Do you have any other core plug-ins that might disable this one?

I was using a plugin to start the game in fullscreen, but I tested Yanfly's resolution plugin with and without the resolution plugin and it's the same.


Edit: I checked his webpage, and I'm not sure what plug-in this is you are referring to. Do you mean Yanfly Core Engine? That's the one that most use to change the resolution. Link is here:

http://yanfly.moe/2015/10/09/yep-1-core-engine/

To find the plugin I'm talking about just go to the link I posted and ctrl+f "resolution" and you'll find it. I don't use the core engine because I get an error. Whenever I start a new game with it, I get the error in the attached image. I don't know why, but if you happen to know please tell me. You'll prevent me to start a new thread.
What's in the console is more revealing than what's on the screen. When you get the error, hit F8 to open the developer tools, then go to the console tab and grab a screenshot. It'll show script names and lines and more info about the error message. Yanfly's errors are usually pretty self-explanatory. The most obvious one would be that your project is not using the right version of the scripts for the plugin to work - in that case, there would be an error message in the console saying you don't have the right version of MV or MV's core scripts or something like that. Another common issue is that the order of plugins is not correct, but that's only be if you used several plugins that rely on others being there too. We can help you, if you add the core engine back in and give us the console screenshot. Note, though, this particular plugin does not require Yanfly's core, so unless you need it for something else, don't add it just for this one.

When you downloaded and saved that plugin, did you call it ScreenResolution.js or did you change the name? If you don't have the name exactly right, it won't run at all. This includes changing the case - screenresolution.js is not the same as ScreenResolution.js

If you can't figure it out, please open up your Plugin Manager, scroll down to this plugin, and take a screenshot. Then open up the plugin parameters and take another screenshot.
This is the error I get when I try to start RM MV with Yanfly's Core Engine. I tested it with the default config to see what happens, and the error is the same.

I named the plugin "Core Engine."


TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 1 is non-finite.
at TypeError (native)
at Bitmap.getPixel (file:///C:/Users/User/Documents/Games/Project1/js/rpg_core.js:906:30)
at Window_TitleCommand.Window_Base.textColor (file:///C:/Users/User/Documents/Games/Project1/js/rpg_windows.js:176:28)
at Window_TitleCommand.Window_Base.normalColor (file:///C:/Users/User/Documents/Games/Project1/js/plugins/Core%20Engine.js:1815:15)
at Window_TitleCommand.Window_Base.resetTextColor (file:///C:/Users/User/Documents/Games/Project1/js/rpg_windows.js:106:31)
at Window_TitleCommand.Window_Base.resetFontSettings (file:///C:/Users/User/Documents/Games/Project1/js/rpg_windows.js:102:10)
at Window_TitleCommand.Window_Base.createContents (file:///C:/Users/User/Documents/Games/Project1/js/rpg_windows.js:96:10)
at Window_TitleCommand.Window_Base.initialize (file:///C:/Users/User/Documents/Games/Project1/js/rpg_windows.js:24:10)
at Window_TitleCommand.Window_Selectable.initialize (file:///C:/Users/User/Documents/Games/Project1/js/rpg_windows.js:718:38)
at Window_TitleCommand.Window_Command.initialize (file:///C:/Users/User/Documents/Games/Project1/js/rpg_windows.js:1298:44)
I named the plugin "Core Engine."
You MUST NOT - and under no circumstances - rename the javascript files, that will always cause them to fail.

The core engine file needs to be named
YEP_CoreEngine.js

no other name is allowed.

Additionally, you must never (in no file at all) contain spaces, all files have to conform to networking rules or they can't be loaded - which means that all non-latin letters, spaces and symbols are forbidden.
plugins/Core%20Engine.js
This is what the engine does if a file contains spaces, and it can't be loaded correctly as a result
Thanks, Andar. It worked!!! I knew that plugins should have a specific name because of Shaz, but I couldn't find the true name of the core engine; I really thought it was "Core Engine." I will pay more attention from now on.

Btw, now I can see 20x16 tiles as I initially wanted.

Thanks everyone and I'm sorry if I made you lose your time. I'll try to triple-check everything from now on.


Edit: Problem solved.

Original thread: https://forums.rpgmakerweb.com/threads/increase-how-much-tiles-are-visible-at-a-time.74865/