Skip to content
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

Clipboard interoperability with RPG Maker Editor #120

Open
Ghabry opened this issue Dec 17, 2018 · 8 comments
Open

Clipboard interoperability with RPG Maker Editor #120

Ghabry opened this issue Dec 17, 2018 · 8 comments
Milestone

Comments

@Ghabry
Copy link
Member

Ghabry commented Dec 17, 2018

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.

@CherryDT
Copy link

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
Copy link

Example:
image

@mateofio
Copy link
Contributor

Clipboard chunk description probably belongs in liblcf.

@CherryDT
Copy link

CherryDT commented Dec 17, 2018

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)

@Ghabry
Copy link
Member Author

Ghabry commented Dec 17, 2018

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

@Ghabry
Copy link
Member Author

Ghabry commented Dec 17, 2018

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

@MarianoGnu
Copy link
Member

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

@mateofio
Copy link
Contributor

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..

@Ghabry Ghabry changed the title Clipboard interoperability with RPG Maker Editor (Event script only) Clipboard interoperability with RPG Maker Editor Sep 21, 2020
@Ghabry Ghabry added this to the 0.1 milestone Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants