Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Poking at the RPG Maker VXAce map format.
#1
(I had written a lot here but then firefox crashed :< )

Mapping in RPG Maker VXAce! The built-in editor is pretty rigid. It is easy to use, but is set it the ways tiles are placed on top of one another.

What determines what tile is what on a map is $game_map.map_data it's not exposed though, so if you want to make change to it you'll have to do it inside that class. The format of @map_data is @map_data[X, Y, layer] = tile_id. X and Y are the positions on the map, and layer is a layer from 0 to 2. Higher layers are drawn on top of lower layers.

If you know a tile's tile_id, you can use @map_data to change what tile is loaded. Not just the picture, RPG Maker VX Ace uses this value to load terrain data as well.

What tile_id number equals which tile is a little odd, so here is all I've learned.

A tile_id of 0 is usually used to represent nothing, and is the first tile on tileset B. (Yes, B. I think since A contains autotiles, its tile_ids are negative. This is how it was in RPG Maker XP too, so it makes sense.) The next seven tiles to the left are 1, 2, 3, 4, 5, 6, and 7. So the first 8 tiles, reading them left to right, are 0-8.

Simple enough yes? The next part is a little weird depending on if you are looking at the acutal tile bitmap or what RPG Maker VXACe shows you in the editor. The actual bitmap is double wide, so the next 8 tile_ids in the row are 128-136. What happens is RPG Maker VXAce cuts the image in half vertically, and pastes the right half under the left half; for the purpose of assigning tile_ids anyways. This is important to us if we are writing an external editor as we'd be using the bitmap directly.

The pattern continues with the next row, starting at 8. And so on and so forth. Of special note is the fact that each tileset has 256 tiles. That's tile_ids from 0-255. tile_id 256 is the first tile on Tileset C. You can find the tile_ids for that Tileset by following these rules, and adding 256 to the result.
Reply }


Messages In This Thread
Poking at the RPG Maker VXAce map format. - by MechanicalPen - 11-11-2013, 07:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   RPG Maker Unite and VRM models? JayRay 0 1,348 02-18-2023, 07:10 AM
Last Post: JayRay
   Small RPG Maker Games for Android Mike_Everley 0 1,530 12-23-2021, 10:56 AM
Last Post: Mike_Everley
   RPG Maker series + Rants kyonides 4 5,488 08-25-2020, 12:41 AM
Last Post: kyonides
   RPG Maker has gotten progressively worse since XP Son_Rukiri 19 22,608 07-22-2018, 03:22 AM
Last Post: DerVVulfman
Question  Easiest 2D Sprite maker software MrFunny 2 6,113 11-28-2017, 06:19 PM
Last Post: JayRay
   Is RPG Maker XP still a viable option? Zaphias 10 13,809 03-04-2017, 07:34 AM
Last Post: hanetzer
   RPG Maker MV Announced PK8 2 7,179 04-04-2016, 05:59 PM
Last Post: Starmage
   Are TCGs in RPG Maker realistic. BeJeremiah 9 15,409 06-11-2015, 03:01 AM
Last Post: JayRay
   [Kinda-Poll] Pattern Game for new maker hanetzer 4 7,830 01-29-2015, 11:06 PM
Last Post: JayRay
   RPG Maker VX Ace Lite - Free (but for how long?) Kain Nobel 20 32,759 03-26-2013, 07:21 PM
Last Post: yamina-chan



Users browsing this thread: