[Vx Ace]Is there a way to iterate all events in all maps?

Hi... I tried to figure myself (reading core ruby scripts and searching in this forum) how I could I iterate all events in all maps, but I am unable to understand how to perform this task.


Now I will explain why I'd like to iterate all events, so it is clearer what I am trying to do.


My final target is to develop, from scratch, a system that allows you to have a multi-language game in RpgMaker VX Ace...


I know that there are already existing tools or scripts that does the same work, but I want try to develop mine for several reasons (first of all, to allow me to learn something about ruby).


Well... one of the functions I want to provide is an 'extract all messages' script function (to call from an event) that checks all events in all maps, searching for 'text...' instructions and collect all textes (that matches a regexp rule) in a file.


The global idea is to create a system that allows you to create a scratch .po file (wich can be used with translation tools like PoEdit) and a system that allows you to import the translated .po files into the game,


Well... now I am NOT asking to provide the complete code for this task, but only:


1) what kind of variables I should look at


2) how can I 'inspect' their properties to understand myself how to code this routine.


Thank a lot 🙂
Eventdata are stored in the Map<map-num>.rvdata2 file. Check out Help > Contents > RGSS Reference Manual > Game Library > RPGVXAce Data Structure


In-game their data is loaded into the Game_Event class.


To understand the process you might want to scan over the Scene_Map script which will lead you to every involved module and class.


It's anyway a good thing to understand the Game lib a bit, before writing code for it. Check out DiamondandPlatinum3's Tutorial. He can be confusing and very fast and is talking BS in some rare occasions, but I've learned most of the basics from him and it went very fast.


Edit: Ah yes, you can also check out Shaz's exporter that's part of her Ace to MV converter pack. The script that is exporting all Ace game data to MV.
Ah yes, you can also check out Shaz's exporter that's part of her Ace to MV converter pack. The script that is exporting all Ace game data to MV.

This is a very nice starting point for the extractor

Eventdata are stored in the Map<map-num>.rvdata2 file. Check out Help > Contents > RGSS Reference Manual > Game Library > RPGVXAce Data Structure

Yeah... I checked it so many time, but it is a bit hard to understand, mostly becouse it is somewhat "unconnected" with the rest of the code documentation


It seems a very nice tutorial. I watched some parts I could skip (since, even if I don't know ruby, I have a bit of experience on c++ and python) and I noticed it is very detailed... I like this approach on a tutorial, since nothing can be considered "obvious", expecially for beginners.


Now, at the moment, I'm still trying to figure how to write my own extractor, but you gave me nice starting points to look at, thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-is-there-a-way-to-iterate-all-events-in-all-maps.59683/