Twine-Monogatari: edit your stories on Twine, execute them on Monogatari.

For discussion and support of other visual novel engines.
Post Reply
Message
Author
haroldoop
Newbie
Posts: 8
Joined: Sat Jul 25, 2009 12:12 pm
Contact:

Twine-Monogatari: edit your stories on Twine, execute them on Monogatari.

#1 Post by haroldoop » Fri Jul 12, 2019 9:24 pm

Hello,

This Twine 2 story format allows one to use Twine to create Visual Novels for the Monogatari engine.

Github: https://github.com/haroldo-ok/twine-monogatari/
History format: http://www.haroldo-ok.com/twine-monogat ... /format.js
Demo: http://www.haroldo-ok.com/twine-monogat ... /demo.html



Current version is 0.1.0.

2_an
Regular
Posts: 25
Joined: Sun Jul 22, 2018 5:54 pm
Location: Spain
Contact:

This is fascinating !!

#2 Post by 2_an » Sat Jul 20, 2019 5:48 am

Hello! ... This is fascinating !!,.. :P

I saw the message last night, and this morning I downloaded. At the moment, in my computer with Windows 10 operating system, it does not work in the chrome browser, not in edgle ... Not tested in firefox.

For this reason, I can,t rate your work. But I decided to write to ask you to do a new video tutorial more explanatory, step by step.

For example, start from the beginning. Supposedly you start in Twine, then you create a twine(with special passages). Next, where do you keep that twine, in what folder? ... as I observe there are up to four folders (dist, Monogatari, src, test)

My knowledge of JavaScript, Css and HTML, are limited but I can reach to understand some logics. You can facilitate me this understanding, explaining the code .. What script.js is responsible for the conversion of Twine format to Monogatari format??

Finally, I can´t help but wonder if you can create something similar in another Visual Novel engine, also built in JavaScript, called "JS-VINE" ... you can see and download these pages.

http://langintro.com/js-vine/
https://github.com/jdeisenberg/js-vine


If you are capable, this is very spectacular !! :D

PD: These addresses that you publish, do not lead to any page.
http://www.haroldo-ok.com/twine-monogat
.
. :?: :?:

haroldoop
Newbie
Posts: 8
Joined: Sat Jul 25, 2009 12:12 pm
Contact:

Re: This is fascinating !!

#3 Post by haroldoop » Sun Jul 21, 2019 8:18 pm

2_an wrote:
Sat Jul 20, 2019 5:48 am
Hello! ... This is fascinating !!,.. :P
Hello, 2_an, thanks for your interest! ;)
2_an wrote:
Sat Jul 20, 2019 5:48 am
I saw the message last night, and this morning I downloaded. At the moment, in my computer with Windows 10 operating system, it does not work in the chrome browser, not in edgle ... Not tested in firefox.
In theory, it should work on most modern browsers but, so far, I have only have had the time to test the engine on Chromium for Linux and on Chrome for Android, and it worked flawlessly on both of them. I intend to test the tool on other browsers eventually.

What have you tried to do, so far?

Were you able to open http://www.haroldo-ok.com/twine-monogat ... /demo.html ?
2_an wrote:
Sat Jul 20, 2019 5:48 am
For example, start from the beginning. Supposedly you start in Twine, then you create a twine(with special passages). Next, where do you keep that twine, in what folder? ... as I observe there are up to four folders (dist, Monogatari, src, test)
Well, if you just want to use the tool on Twine, you have to:

* Access http://twinery.org/2/#!/stories ;
* Click on "Formats";
* Click on the "Add new format" tab;
* Inform the path of "Twine-Monogatari" story format: http://www.haroldo-ok.com/twine-monogat ... /format.js ;
* Click on "Add";
* Now click on the "Story format" tab;
* Select "twine-monogatari 0.1.0";
* Close the tab.

This should be enough to start using it.

If you want an example on how to use the tool, you could save http://www.haroldo-ok.com/twine-monogat ... /demo.html to the local disk, and import it on Twine through the "Import from file" button.
2_an wrote:
Sat Jul 20, 2019 5:48 am
My knowledge of JavaScript, Css and HTML, are limited but I can reach to understand some logics. You can facilitate me this understanding, explaining the code .. What script.js is responsible for the conversion of Twine format to Monogatari format??
Both "twison.js" and "twine-monogatari.js" are responsible for the most complex part that is converting the Twine format into an object that Monogatari can use. Then, "script-twine.js", "storage-twine.js" and "options-twine.js" take care of picking up that object and declaring it to the Monogatari engine.
2_an wrote:
Sat Jul 20, 2019 5:48 am
Finally, I can´t help but wonder if you can create something similar in another Visual Novel engine, also built in JavaScript, called "JS-VINE" ... you can see and download these pages.

http://langintro.com/js-vine/
https://github.com/jdeisenberg/js-vine


If you are capable, this is very spectacular !! :D
I guess the same trick that was used for bridging Twine and Monogatari could also be used for js-vine, or other engines; I could take a look at this in the future, but there are a few things I want to implement first.
2_an wrote:
Sat Jul 20, 2019 5:48 am
PD: These addresses that you publish, do not lead to any page.
http://www.haroldo-ok.com/twine-monogat
.
. :?: :?:
Oh, that's because the forum software abbreviates the link descriptions... you could try moving the cursor over the links and right-clicking and then selecting "Copy link address..."; that should get the full link.

haroldoop
Newbie
Posts: 8
Joined: Sat Jul 25, 2009 12:12 pm
Contact:

Re: Twine-Monogatari: edit your stories on Twine, execute them on Monogatari.

#4 Post by haroldoop » Thu Jul 25, 2019 8:27 pm

Hello, again,

Version 0.2.0 has been released:

https://haroldo-ok-2.github.io/twine-mo ... /format.js

Implemented various syntax checking:

* Checks for passage names with whitespace;
* Checks if there exists at least one passage named "Start";
* Checks for JS syntax errors;
* Checks for YAML syntax errors;
* Logs a detailed error list on the browser console;
* Displays a simplified error list as a floating pop up for the user.

2_an
Regular
Posts: 25
Joined: Sun Jul 22, 2018 5:54 pm
Location: Spain
Contact:

FUSION: Twine AND Monogatari?

#5 Post by 2_an » Tue Oct 01, 2019 3:17 pm

Hi,
First, thanks for giving me explanations about the code.
Second, sorry that my reply is too late.

I'm not really using the monogatari engine much because it doesn't work in the Edge browser (I don't know the reason).
I am currently interested in the Edge browser (from Microsoft), although in the next few days I may end up in the Chrome browser, where Monogatari works.

I would like to ask you a question that you know these two games well, monogatari and Twine ..
Could a fusion of both be created?
I explain this. In your project, twine is used first, there are some passages created. Then you use some script to convert the twine format to Monogatari .. And it is very well planned and achieved !.

My idea is a bit inverse. In your project, after performing all the steps, it is finally used is the Monogatari engine, but is it possible to perform a reverse action?
Is it possible to use the twine engine, and the Monogatari interface(simultaneously)?
Is it possible to get the Twine engine separately, its full-featured code?
there is something like .. Twine.js??, and use it for another game? Benefiting from all the twine functions.

Basically, what I try is to be able to visualize twine, those black twine screens. but at the same time, have a text box on the screen, where text, options, character images appear .. Controlled by the Monogatari engine, o other.

I really like the Monogatari interface, with the options that appear in the area below the text box. It is very intuitive.

If you add the monogatari interface to the game twine, some functions could be added to control its visibility or invisibility with the keyboard keys ... Then you may be seeing a twine, but if you touch a key, the square appears

Well .. I wish you understood me .. A greeting !.

Post Reply

Who is online

Users browsing this forum: No registered users