Help - Search - Members - Calendar
Full Version: RMXP Map structure
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Oburi
Hey, does anyone have infos about the rmxp map structure? I planned to write a alternative map editor and now I'll do research about the map structure. I googled for hours, but found nothing. I know that there are some different tools wich can read rmxp maps, nothing opensource to take a look... Would be very handy if someone could give me some infos about the format and the structure.
Thanks to everybody. smile.gif
Legacy
Everything you need to know about how the maps are structured can be found in the help file.

But, here is the RPG::Map code from the help file.

CODE
module RPG
  class Map
    def initialize(width, height)
      @tileset_id = 1
      @width = width
      @height = height
      @autoplay_bgm = false
      @bgm = RPG::AudioFile.new
      @autoplay_bgs = false
      @bgs = RPG::AudioFile.new("", 80)
      @encounter_list = []
      @encounter_step = 30
      @data = Table.new(width, height, 3)
      @events = {}
    end
    attr_accessor :tileset_id
    attr_accessor :width
    attr_accessor :height
    attr_accessor :autoplay_bgm
    attr_accessor :bgm
    attr_accessor :autoplay_bgs
    attr_accessor :bgs
    attr_accessor :encounter_list
    attr_accessor :encounter_step
    attr_accessor :data
    attr_accessor :events
  end
end


Hope that helps. ninja.gif
3rr3
You wanna to crete another mapping editor? Sounds good smile.gif
I saw the posted code but let me add some details:

1 - You wanna to create an external application?
In that case you'll have to work hard because you have to create a program that create rxdata and... personally I dunno how to do O.o;

2- You'll use Ruby? In that case things are different because you will working into RPG XP smile.gif

Let me know smile.gif
Thallion
Btw, writing to .rxdata is easy, especially in ruby. All you need to do is Marshal.dump an object to a file, that's all rmxp is doing.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.