inkle / inky

An editor for ink: inkle's narrative scripting language
http://www.inklestudios.com/ink
2.41k stars 295 forks source link

import ink JSON to inky / .ink format? #160

Open jeremydouglass opened 6 years ago

jeremydouglass commented 6 years ago

Is it possible to convert an existing ink JSON file into .ink format? (with inky, inklecate, or an external tool etc.)

For example, I see that there is a recent online converter for inklewriter JSON to ink, discussed in https://github.com/inkle/inky/issues/39 -- but that is for inklewriter JSON only, and I'm not sure if there is any path from ink JSON back into ink?

joningold commented 6 years ago

There isn’t. It’s quite heavily compressed. (Inklewriter json is totally different). It’s not unfeasible one could be made, but we’ve never had a use for it! On Fri, 24 Aug 2018 at 11:16 pm, Jeremy Douglass notifications@github.com wrote:

Is it possible to convert an existing ink JSON file into .ink format? (with inky, inklecate, or an external tool etc.)

For example, I see that there is a recent online converter for inklewriter JSON to ink https://www.inklestudios.com/inklewriter/to-ink/, discussed in #39 https://github.com/inkle/inky/issues/39 -- but that is for inklewriter JSON only, and I'm not sure if there is any path from ink JSON back into ink?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/inkle/inky/issues/160, or mute the thread https://github.com/notifications/unsubscribe-auth/AA40oyeeU8Hus_7Pz7b1zssgQ_HPP44aks5uUHsugaJpZM4WMERd .

tessaSAC commented 1 year ago

I'd be interested in this as well, as I thought "save as JSON" was simply "save as" and imagine I'm not the only one.... I tried popping the output into a JSON > JS converter to see if I could work backwards to restore the ink manually, but get a message saying the JSON is invalid 😢