-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read/write RPG Maker editor's clipboard data. #402
Comments
see also EasyRPG/Editor#120 |
Thanks for pointing that out. Replace (Yeah, I wasn't able to get my old code to compile properly with my current environment so I instead just binary-patched my own tool to fix this.)
Yes it is, I also wrote that in the helpfile and the changelog for v1.10:
|
This excellent HSP module by @fermiumbay allows to script event commands using HSP language for convenience. It allows converting from event commands to HSP script and vice-versa. It is useful for game developers, also helps to set values above/below limits with ease and without patching binaries. The module script source code self-documents how to parse the clipboard for all event commands. More information and download: It requires HSP3 to run. Please note some command parsing could fail on non-Japanese (English translation) event editors because some values are directly parsed from the event command human-readable output. To learn more about HSP: |
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:
Database (all of these have normal and multicopy feature, when available).
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:
@> Text: Hello World @> Text: Bye World
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:
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).
The text was updated successfully, but these errors were encountered: