-
Notifications
You must be signed in to change notification settings - Fork 62
Description
I don't know if it belongs here or to the editor. However, since it have similarities to LCF data, I will post here.
RPG Maker editor uses a particular binary format when you copy event data. It seems these had some similarities to LCF files. (but obviously, with different headers, data layout and so on). It will be useful that liblcf handles these data in some sort of way (well, there's not files particulary but clipboard data, that can complicate the things, since each OS handle clipboard data in a different way). Maybe it can be abstracted in liblcf by just read/write data (leaving read/write to clipboard to the program that uses liblcf, for not saying Editor).
For analysis, I used CLCL (https://www.nakka.com/soft/clcl/index_eng.html ) for dumping/writing binary data to the clipboard. I'll attach some examples of the obtained clipboard data, from 2k3e:
2k3e_clipboard_data_sample.zip
Map and events:
- Empty map, copied from MapTree
- 4x4 map portion, from map
- Empty event, copied from Map
- Event with hello world message, copied from Map
- 2 Message eventCommands, copied from event
- Empty event page
- Party start position, from map
- Vehicle 1 starting position, from map
- Vehicle 2 starting position, from map
- Vehicle 3 starting position, from map
Database (all of these have normal and multicopy feature, when available).
- Actor from database
- Class from database
- Skill from database
- item from database
- enemy from database
- troop from database
- empty battle command page
- battle eventcommand (Message: "hello world")
- skill from database
- state from database
- animation from database
- animation frame from animation
- sprite from animation
- sprite from animation
- SE and flash timing from animation
- animation2 from database
- terrain from database
- tilesets from database
- empty common events from database
One special comment about Event Commands: In english releases, event commands copies more than just binary data, it also put the following in the clipboard, considering 2 Message event commands:
- Unicode text:
@> Text: Hello World @> Text: Bye World - Locale: (Binary, see evc-locale.bin in zip file).
- OEM text: (Same as unicode text, but in ANSI).
- Text: (Same as unicode text).
Then most programs will recognize EventCommand data and will paste it as text (perhaps it's a feature to allow share events in communities?).
I tried to see some of these commands (in a very vague way) and it have some similarities and differences between LCF files. Let me put an example with a Map copied to the clipboard, in conjuntion with it's lmu file:

- I saw there's no a LCF header.
- There's additional data that usually is not in lmu file, but in lmt.
- Others?
Also, as closing words; there's a tool made by Cherry called RMEventFactory (http://cherrytree.at/cms/lang/en/download/?did=11) that already handles clipboard event data, allowing batch replacing values, intended for making engines or override default values to make out-of-range commands. However, it is not "compatible" with 2k3e beacuse it recognizes as text instead a maker data (however, if you remove the text by using tools or by pasting it in a older editor and then copying it again, the program can recgonize it without trouble).