Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> RMXP Map structure
Oburi
post Sep 20 2012, 05:03 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 8
Type: None
RM Skill: Advanced




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


__________________________
Go to the top of the page
 
+Quote Post
   
Legacy
post Sep 21 2012, 05:29 AM
Post #2


B★RS Coding Ninja
Group Icon

Group: Global Mod
Posts: 1,414
Type: Scripter
RM Skill: Advanced
Rev Points: 15




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


__________________________
Freelance Programmer (C#, C++, Ruby)
#onegameamonth


Have you seen the new Unity3D sections?..
Unity 3D Discussion
Unity Script Development
Unity Projects
Go to the top of the page
 
+Quote Post
   
3rr3
post Oct 2 2012, 09:26 AM
Post #3


Level 6
Group Icon

Group: Member
Posts: 77
Type: Developer
RM Skill: Skilled
Rev Points: 20




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


__________________________
Programming is not only a challenge in the IT world, but it is a challenge against our immagination!
Set our feelings free!

3rr3


Project I'm working on:


ATTENCTION! The project is in Italian.

Project in which I work as a Debugger:
Go to the top of the page
 
+Quote Post
   
Thallion
post Oct 6 2012, 05:33 PM
Post #4


Level 5
Group Icon

Group: Member
Posts: 68
Type: Scripter
RM Skill: Skilled
Rev Points: 10




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.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 08:56 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker