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: 9
Joined: Sat Jul 25, 2009 12:12 pm
Contact:

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

#1 Post by haroldoop »

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: 29
Joined: Sun Jul 22, 2018 5:54 pm
Location: Spain
Contact:

This is fascinating !!

#2 Post by 2_an »

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: 9
Joined: Sat Jul 25, 2009 12:12 pm
Contact:

Re: This is fascinating !!

#3 Post by haroldoop »

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: 9
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 »

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: 29
Joined: Sun Jul 22, 2018 5:54 pm
Location: Spain
Contact:

FUSION: Twine AND Monogatari?

#5 Post by 2_an »

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

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

encrypted code

#6 Post by 2_an »

Monogatari has changed to a new version. Apparently it is still very similar, except that they have encrypted the code.
I think the creators are mad at us because we are commenting on modifying their code.

User avatar
hyuchia
Newbie
Posts: 8
Joined: Mon Apr 29, 2013 6:28 pm
Organization: Hyuchia
Github: HyuchiaDiego
Location: Mexico
Contact:

Re: encrypted code

#7 Post by hyuchia »

2_an wrote: Fri Apr 10, 2020 5:58 am Monogatari has changed to a new version. Apparently it is still very similar, except that they have encrypted the code.
I think the creators are mad at us because we are commenting on modifying their code.
Hi! I'm the main developer of Monogatari, there seems to be a misunderstanding here, the code has not been encrypted (that's actually not possible) Monogatari is an Open Source project which means all the code is and always will be available in the repository: https://github.com/Monogatari/Monogatari

The newest version has indeed changed and the code has been minified, a common technique used in web development to reduce the size of the files the browser has to download in order to play the game. This does not mean in any way that you are not able to edit it anymore, instead it means we have added better ways of customizing your game that doesn't require people to modify the engine's code unless they really need to. If they do, then modifying the source code and rebuilding the engine is completely possible.

We encourage people to modify the code and get involved! That's why it's open source, we would never get mad because of that :wink:

Post Reply

Who is online

Users browsing this forum: No registered users