Echo Hollow

Because Pr0n is the Highest Form of Art.

User Tools

Site Tools


tweegoeclipse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tweegoeclipse [2018/03/20 17:26] – [Step 3: Enable Word-Wrap by Default (Optional but Highly Recommended)] leetweegoeclipse [2018/03/20 17:38] lee
Line 7: Line 7:
 It is also extremely difficult to use external Javascript libraries in Twine. It is also extremely difficult to use external Javascript libraries in Twine.
  
-Additionally, Twine saves the whole project in one huge file.  This makes it extremely difficult to use version control and simultaneously collaborate on Twine projects.+Additionally, Twine saves the whole project in one huge file.  This makes it extremely difficult to use version control to collaborate on Twine projects.
  
 The solution to these problems is a commandline Tweecode compiler called Tweego.  Think "Twine without the graphical user interface." The solution to these problems is a commandline Tweecode compiler called Tweego.  Think "Twine without the graphical user interface."
Line 83: Line 83:
 Download Tweego //and// the story formats package from https://www.motoslave.net/tweego/. Download Tweego //and// the story formats package from https://www.motoslave.net/tweego/.
  
-At the time of this writing, Tweego and the story formats are only available as a .zip file.  There is no automated installer.  I like to install them to a path that is easy to find and remember (such as C:\Tweego\), because we'll need to manually set some paths and environment variables in eclipse later, when we set up autobuilding.+At the time of this writing, Tweego and the story formats are only available as a .zip file.  There is no automated installer.  I like to install them to a path that is easy to find and remember (such as C:\Tweego\), because we'll need to manually set some paths and environment variables in Eclipse later, when we set up autobuilding.
  
 ==== Step 5: Create Your Project ==== ==== Step 5: Create Your Project ====
Line 89: Line 89:
 Go back to eclipse, and right click somewhere inside of the "Project Explorer" pane on the left. Go back to eclipse, and right click somewhere inside of the "Project Explorer" pane on the left.
  
-Select New->Project from the context menu.  Select "JavaScript Project" from the rolldown in the next screen (**important**), and click Next.+Select New->Project from the context menu.  Select "JavaScript Project" from the rolldown on the next screen (**important** make sure you create a JavaScript project, not something else), and click Next.
  
 In the next window, fill in the Project Name at the top (required), and uncheck the "Include Web Browser Library" box below. In the next window, fill in the Project Name at the top (required), and uncheck the "Include Web Browser Library" box below.
Line 176: Line 176:
 You'll see an error (from Tweego) in the console pane saying "Special passage "StoryTitle" not found."  So, following the documentation at https://www.motoslave.net/tweego/docs/#twee-notation, add a StoryTitle passage to your .twee file.  You'll also need to add an ifid, which tweego will also warn you about, and generate one in the Console pane, which you can copy and paste into your .twee file. You'll see an error (from Tweego) in the console pane saying "Special passage "StoryTitle" not found."  So, following the documentation at https://www.motoslave.net/tweego/docs/#twee-notation, add a StoryTitle passage to your .twee file.  You'll also need to add an ifid, which tweego will also warn you about, and generate one in the Console pane, which you can copy and paste into your .twee file.
  
-Once you get all that taken care of, you're screen will look something like this.  Notice that an .html file has appeared in the "build/" directory.  Now every time you save anything in "src/", that html file will be updated.+Once you get all that taken care of, your screen will look something like this.  Notice that an .html file has appeared in the "build/" directory.  Now every time you save anything in "src/", that html file will be updated. 
 + 
 +{{ ::final.jpg?direct&600 |}}
  
 You can open that html file in your web browser, and bookmark it to your toolbar.  As you work on and bugfix passages, you can tab out to the browser and reload the page to immediately pull in changes without having to start the game all over again.  It's really VERY handy, far nicer than trying to fight with the Twine program. You can open that html file in your web browser, and bookmark it to your toolbar.  As you work on and bugfix passages, you can tab out to the browser and reload the page to immediately pull in changes without having to start the game all over again.  It's really VERY handy, far nicer than trying to fight with the Twine program.
tweegoeclipse.txt · Last modified: 2018/03/20 19:03 by lee