[solved] Different auto-tile specs within a group?

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Problem


Got a report on my map screenshot script and while I was testing things I noticed this





Thinking maybe it's just the way the tileset was created, I went and made them the same





It looks like some autotiles are rendered differently from other autotiles. And I'm not even looking at A1 vs A2; it's literally 2 adjacent auto-tile blocks in the same group.


So then I went and did this





And now it's pretty obvious there's something going on. The left-half don't seem to be applying alphas properly, and there are the ones on the right sticking out.


Has someone already written a tutorial on this?


Is this observed across other autotiles?


Solution


When you enable/disable the counter flag, it automatically changes the way those tiles are rendered.
 
Last edited by a moderator:

PK8

I sense there's something in the wind...
Veteran
Joined
Mar 17, 2012
Messages
1,220
Reaction score
152
Primarily Uses
What happens when you read the tile IDs?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
The tile ID's follow the same math that you provided.

It's just the way they are rendered is not as simple as "this is A1, this is A2, ..."

As it is apparent that if you put your table in the top-left corner of the left half, you're not going to get a very nice table, but if you put it in top-right corner of the right half, you'll at least get to see the table legs, and if you put it on the very right (except the one on the second row) you'll get a wider table which looks better.

Now, there are no extra ID's for the tables on the far-right with the irregular tile sizes. They will be the same as what you would expect if they weren't there.

Maybe someone else can repeat the experiment in case I'm not looking carefully.

I generated a 3x3 map using Map Creator (to make it simple) and then ran this script in a script call

class Game_Map def print table = data 0.upto(data.zsize-1) do |z| p "layer %d" %z 0.upto(data.xsize-1) do |x| 0.upto(data.ysize-1) do |y| p [x, y, table[x,y,z]] end end end endend
The non-zero ID in layer 1 is the table.
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Hime, this is just bizarre, so the engine finally beat you huh? 

Seriously though, how is that even a possibility? Also your map SS script, does just that, take a blasted SS lol(but instead of just on the screen, It's the entire map, however It's still just a SS). How can it look one way on everyone's PC, but if you take a SS with your script, it looks different?

Nevermind the fact like you said, every tile in a group, should be formatted exactly the same way.
 

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
That's strange.

I tried it here and the alignement is the same for all the tables.

A2-alignement.png
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Seriously though, how is that even a possibility? Also your map SS script, does just that, take a blasted SS lol(but instead of just on the screen, It's the entire map, however It's still just a SS). How can it look one way on everyone's PC, but if you take a SS with your script, it looks different?


Nevermind the fact like you said, every tile in a group, should be formatted exactly the same way.
My script doesn't take a screenshot. It goes through each tile, grab the ID's, and generates auto-tiles based on those ID's.
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
My script doesn't take a screenshot. It goes through each tile, grab the ID's, and generates auto-tiles based on those ID's.
Oh ok, I thought it went by the actual map file created, didn't realize it searched for each individual tile, to then reconstruct the map.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
That's strange.


I tried it here and the alignement is the same for all the tables.
Ok, I see what's going on now.


The issue was addressed in a previous update, so users that had bought the product afterwards or applied all updates don't have this problem.
 
Last edited by a moderator:
  • Like
Reactions: PK8

Tommy Gun

♩ ♪ ♫ ♬
Veteran
Joined
Jan 20, 2014
Messages
385
Reaction score
123
First Language
English
So you are still using an old version?
 

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
Ok, I see what's going on now.

The issue was addressed in a previous update, so users that had bought the product afterwards or applied all updates don't have this problem.
Are you talking about the RPG Maker version?

I still use the 1.01a right from the download, no patch applied.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
No, the really old version released in 2011 when it first came out.


The one where you had to know someone that could buy from japanese sites.
 
Last edited by a moderator:

seita

Donn_M
Veteran
Joined
Feb 6, 2013
Messages
2,254
Reaction score
611
First Language
English
Primarily Uses
Probably a stupid question, but did you remember to check if the tiles are labeled as Counters in the tileset database? It doesn't extend the table if it's not checked as a counter for the most current version I have (1.02a)
 

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
Ah OK. I guess you're right then, it must have been fixed meanwhile.

@Seita:

My 1.01a has the same effect with the Counter unchecked. The table gets shortened too. Good catch.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Probably a stupid question, but did you remember to check if the tiles are labeled as Counters in the tileset database? It doesn't extend the table if it's not checked as a counter for the most current version I have (1.02a)
No.


When I checked it, they are now aligned.


Ok I guess this is a counter issue and not a version issue.


So the counter flag automatically changes the tiles it seems, which makes it kind of annoying for the map screenshot since I'm not too sure how to draw it in this case...
 
Last edited by a moderator:
  • Like
Reactions: PK8

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
Counter seems to offset 8 pixels.

I tried editing the A2 tileset for a carpet and it gets cut at that mark.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Check the help file: RPG Maker VX Ace > Reference Material > Resource Standards > Tilesets > Group 2:

The size is fixed at 512 × 384. As shown in the above figure, the tiles are comprised of combination of two block patterns arranged in four vertical sets. For this group only, specifications will vary according to the settings made in Mode for Tileset in the Database.


When the counter attribute is applied to this group, it can be used as an auto tile for representing tables, and when placed on a map, the eight pixels at the bottom of the pattern are offset downward.
 

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top