Change Tile Size

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,704
Reaction score
13,986
First Language
English
Primarily Uses
RMMV
I've looked through this thread and nobody's discussed this issue, it looks like.
It's been discussed a couple of times in this thread, so you must have missed it. It's not an issue with the plugin, but an issue with Pixi. 96x96 results in an image larger than it will allow to be loaded. If you check the first post again, you will find a link to the solution.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,735
Reaction score
7,852
First Language
German
Primarily Uses
RMMV
my autotiles aren't working properly.
can you attach your autotile sheet?
Because I'm guessing that you did something wrong with the resizing of autotiles.
Autotiles are a very specific collection of quartertile-sized elements with specific requirements, and it is rather difficult to resize them correctly - you don't have to only follow one set of autotile rules, but the resized version has to do the same.

EDIT: ninja'd and forgot about the other possibility, shaz above is correct
 

MiscellaneousWorker

Always assume I don't know what I'm talking about.
Member
Joined
Dec 4, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
but an issue with Pixi
I saw that with Pixi and did exactly as Brogar said. I'm assuming this libs/pixi-tilemap.js is just the vanilla file, right? I modified it as Brogar described.


can you attach your autotile sheet?
It's literally just Outside_A2.png but doubled in size resolution, so from 768x576 to 1536x1152. Surely quarter tiles are not just tied to 24x24 tiles of the original MV tile resolution, right?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,735
Reaction score
7,852
First Language
German
Primarily Uses
RMMV
Surely quarter tiles are not just tied to 24x24 tiles of the original MV tile resolution, right?
no, "quarter" means a quarter of the grid used, no matter the size. But you didn't say that you resized default tiles, I assumed that you used custom tiles - and then it would have been questionable if the autotiles were constructed correctly. There are a lot of people out there who failed in their first attempt at autotiles.
 

MiscellaneousWorker

Always assume I don't know what I'm talking about.
Member
Joined
Dec 4, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
no, "quarter" means a quarter of the grid used, no matter the size. But you didn't say that you resized default tiles, I assumed that you used custom tiles - and then it would have been questionable if the autotiles were constructed correctly. There are a lot of people out there who failed in their first attempt at autotiles.
So for what reason wouldn't just the default tiles work as it is? I resized the entire Outside Autotile sheet, do you have to resize everything that's in the tileset folder? I don't know how the game exactly loads assets when you launch it.

Edit: Should reestablish that the very first few tiles in the Outside Autotile selector work in game normally, but then the next which are animated grab from the wrong spots entirely, and then the rest are just black ingame.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,735
Reaction score
7,852
First Language
German
Primarily Uses
RMMV
So for what reason wouldn't just the default tiles work as it is
that is because the original purpose for this script is exactly to enable different tilesets instead of the original ones.
if all you want to do is resize the display and still use the original tiles, a zoom script is much easier to use for that instead of having to handle a different grid size with the same tiles.
 

MiscellaneousWorker

Always assume I don't know what I'm talking about.
Member
Joined
Dec 4, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
instead of the original ones.
So if I create new tilesets entirely, it should function normally?

And I don't intend to use the default tilesets, I'm just testing stuff. I have my own auto tile slapped over one of the originals, which functioned as expected but not with the plugin active.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,735
Reaction score
7,852
First Language
German
Primarily Uses
RMMV
@MiscellaneousWorker
you completely misunderstood what I was pointing at.

If a tilesheet is done correctly, it will work correctly with this plugin.
if a tilesheet is done wrong, it will not work - independently of using this plugin or not.

So if you made a tile and it does not work, then there is a very high probability that what you did with the tile was wrong.
the only case where a correct tilesheet can fail with this plugin is if it is too large for your pixi setting and pixi fails to load it as a result.

And that was why I asked for your tilesheets above: to see if there is anything wrong with what you have done with your tilesheets. so you would need to place the tilesheets that fail here and not those that you got working.
 

MiscellaneousWorker

Always assume I don't know what I'm talking about.
Member
Joined
Dec 4, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
@MiscellaneousWorker
you completely misunderstood what I was pointing at.

I've only assumed it's a mistake I've made and not something of the plugin, that's what I'm asking help with.
This is the file, just doubled in size from 48x48 to 96x96, as I said. All I did was replace the second to the bottom left tiles, which shouldn't break anything...

And as for the Pixi thing, again, I only did exactly as Brogar said, searched for the numbers the message included and replaced it with new numbers. I'm not even pushing for 128x128.


If a tilesheet is done correctly, it will work correctly with this plugin.
if a tilesheet is done wrong, it will not work - independently of using this plugin or not.

So if you made a tile and it does not work, then there is a very high probability that what you did with the tile was wrong.
the only case where a correct tilesheet can fail with this plugin is if it is too large for your pixi setting and pixi fails to load it as a result.

And that was why I asked for your tilesheets above: to see if there is anything wrong with what you have done with your tilesheets. so you would need to place the tilesheets that fail here and not those that you got working.
 

Attachments

MiscellaneousWorker

Always assume I don't know what I'm talking about.
Member
Joined
Dec 4, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
Did you modify the file in your project, or the one in the MV install folder? Please show a screenshot of the file, where you did the mod, so we can see.
Okay, I reset so here's exactly what I did:

1) I installed Change Tile Size (MV).js1604545782810.png
2) I edited the pixi-tilemap.js in the js/libs/ folder of the game project directory.
1604546443422.png
3) Created a copy of the tilesets folder with the resized textures, and set the tile size to 96.1604547089767.png1604547131516.png1604547141708.png
And there's that.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,704
Reaction score
13,986
First Language
English
Primarily Uses
RMMV
No, what I'd like to see is the change you made based on Brogar's post.

However, you should rename your folders to remove the spaces. This would probably not cause an issue while you're testing, but if you deploy, it might cause issues.

Please leave these screenshots here though, in case I need to come back to them.
 

MiscellaneousWorker

Always assume I don't know what I'm talking about.
Member
Joined
Dec 4, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
I did exactly as Brogar's post said: I searched for values 2048 and replaced them with 4096, and searched for values 1024 and replaced them with 2048. 1604559034884.png1604559021322.pngHere you can see, at the bottom of the find window, how many counts there are for the values entered, in this case, 10 counts of 2048 and 6 counts of 4069. The process in replacing them was just find: (value), replace: (value).

I am very sure that I did it in the correct order of replacing the 2048 values before the 1024 values so I didn't just change the aforementioned values again. If the counts here are wrong, please let me know, thank you.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,704
Reaction score
13,986
First Language
English
Primarily Uses
RMMV
I am also seeing 2048 on lines 545 and 546, which may need to be changed to 4096.

I have 10 instances of 1024, and 6 instances of 2048, in that file. So if you've done it correctly, after changing, you should have 10 instances of 2048, and 6 instances of 4096.
 

MiscellaneousWorker

Always assume I don't know what I'm talking about.
Member
Joined
Dec 4, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
It worked. I must've done an "order lul" thing and either replaced the 1024 values first or something, though I don't understand how the amount of 2048 and 4069 values are the same. Regardless, thanks for your help sir, and for the plugin.
o/
 

Mint69420

Villager
Member
Joined
Nov 5, 2020
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Does this script work for MZ and if so then are the steps the same or what changes are there?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,704
Reaction score
13,986
First Language
English
Primarily Uses
RMMV
I have not tried it in MZ. You could give it a go - the worst that can happen is that it won't work.
 

IAmTheDude

Dude
Member
Joined
Jan 10, 2021
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMMV
I apologize if this is really obvious but I've spent a while trying to wrap my head around what I'm supposed to be doing and I just don't get it. So, I think I need to make a duplicate of the img file and put a slash somewhere? I can't put it on the file itself because it says I can't put / in the title. And then after I figure all that out will I be formatting my sprites in the same way as before or will I need to make a lot of blank space and put the 32-32 sprites in the corner of a 48-48 canvas in order to put more than one tile on the same tile sheet? It seems to be working though, it is shrinking the tiles to 32-32. I pretty much just don't understand anything. I watched this video and honestly It just made me more confused:
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,704
Reaction score
13,986
First Language
English
Primarily Uses
RMMV
The images in img/tilesets should be resized to 48x48 tiles.
You create a new folder inside img/tilesets, and copy the 32x32 tiles into it.
Then in the plugin parameters you put the name of this folder with / at the end.

You do not need to change the character images, but you might need to make the face images larger.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I'm posting a commission art soon! :kaoswt2:
So here's a fun/tragic fact about me: I have an awful memory. But to be correct, I have memory "leaks". My memory is actually amazing, my issue is I can't keep memories for long, in fact, I once forgot my name. :kaoswt2:
The neighbourhood cats brought me a kitten today. They sat him on the step and semi-circled him. He's adorable, but now I gotta find somewhere for him.
So basically, I added strings to my musics and BAM, it doesn't sound empty anymore.
Been a while. New jam coming up on RMN. Let's press Continue, my lovelies.

Forum statistics

Threads
107,439
Messages
1,029,712
Members
139,569
Latest member
r042896
Top