Editor icon indicating copy to clipboard operation
Editor copied to clipboard

Clipboard interoperability with RPG Maker Editor

Open Ghabry opened this issue 7 years ago • 8 comments

For everything makes no sense imo (lots of work) but for Script copy-paste there could be use-cases. Also makes japanese tools and Cherrys Evt Tools usable.

Need to figure out the format first, shouldn't be too difficult with a clipboard viewer.

Bonus points when copy-paste from/to editor in Wine works.

Maybe @CherryDT knows if there is a public doc on this somewhere. Only for event commands.

Ghabry avatar Dec 17 '18 16:12 Ghabry

Format is very simple. Ten years ago I made a list of clipboard format IDs, and the format is basically the same as in the files, plus a header with a length info.

CherryDT avatar Dec 17 '18 17:12 CherryDT

Example: image

CherryDT avatar Dec 17 '18 17:12 CherryDT

Clipboard chunk description probably belongs in liblcf.

mateofio avatar Dec 17 '18 17:12 mateofio

Ah for event commands, sorry, overlooked that. The format is even simpler there. image

~~However I realize now that the format is not exactly the same as in the files - the event commands have chunk IDs in the LMU/LDB, don't they? I'm a bit confused now because I was pretty sure it uses the same function to read from/write to stream, but in the clipboard the event commands are without chunk IDs (other things like the event data above is with IDs)~~ Seems like event commands never had chunk IDs, neither in LMU/LDB, so never mind.

For the event commands, it's just the following data for each event line, one after another, just like in LMU/LDB:

  • Command ID (BER)
  • Tree depth (BER)
  • String parameter (BER length + String data)
  • Amount of int parameters (BER)
  • Int parameters (BERs)

CherryDT avatar Dec 17 '18 17:12 CherryDT

Wut? Same as LCF-chunks? Oh, in that case we could support more xD.

Ghabry avatar Dec 17 '18 18:12 Ghabry

Oh and thanks for this InsideClipboard tool, I already searched for a clipboard reader and couldn't find one ^^

Ghabry avatar Dec 17 '18 20:12 Ghabry

i didn't even know you could copypaste event commands on RM xD

MarianoGnu avatar Dec 26 '18 16:12 MarianoGnu

Yes I checked in RE tools and RPG Maker editor just sends and receives the binary event stream.

RPG editor has 3 separate sets of functions: battle, common, and map. These are probably just member functions of the 3 widgets, but haven't dug too deeply.

For receiving, RPG editor receives the whole event stream, then checks and removes any event command id codes which are incompatible. So this is what prevents you from copy pasting battle event code into map events etc..

mateofio avatar Sep 19 '20 15:09 mateofio