Echo Hollow

Digital Degeneracy! Yay!

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 revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
tweegoeclipse [2018/03/20 17:34]
lee [Step 7: Set up Auto Building]
tweegoeclipse [2018/03/20 19:03]
lee [Step 7: Set up Auto Building]
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 23: Line 23:
 Having to use the commandline to build the project after you save your work can be an issue for some.  Even for those who possess the technical literacy to develop software in this way, it can still be a time-sink to have to manually build the project every time you save something. ​ This isn't just a Tweego issue, it's something that affects programming in general. Having to use the commandline to build the project after you save your work can be an issue for some.  Even for those who possess the technical literacy to develop software in this way, it can still be a time-sink to have to manually build the project every time you save something. ​ This isn't just a Tweego issue, it's something that affects programming in general.
  
-The solution to commandline use and manual building ​it to use an Integrated Development Environment (or "​IDE"​). ​ An IDE automates and encapsulates many tools and tasks, making your workflow more efficient. ​ Typically file management, text editing, and in many cases even version control are all brought together into one graphical tool.+The solution to commandline use and manual building ​is to use an Integrated Development Environment (or "​IDE"​). ​ An IDE automates and encapsulates many tools and tasks, making your workflow more efficient. ​ Typically file management, text editing, and in many cases even version control are all brought together into one graphical tool.
  
 Additionally,​ most IDEs provide "​autobuild"​ functionality. ​ That is, whenever you save a file, the IDE detects this and rebuilds your project so that it is immediately available for testing, without having to tab out to a command prompt and build the project by hand. Additionally,​ most IDEs provide "​autobuild"​ functionality. ​ That is, whenever you save a file, the IDE detects this and rebuilds your project so that it is immediately available for testing, without having to tab out to a command prompt and build the project by hand.
Line 142: Line 142:
 Under "​Arguments",​ enter "-o build/​KinkyPr0nGame.html src"​. ​ You can change "​KinkyPr0nGame.html"​ to whatever you want your output .html to be, but make sure that you leave it as being put in the "​build/"​ directory. Under "​Arguments",​ enter "-o build/​KinkyPr0nGame.html src"​. ​ You can change "​KinkyPr0nGame.html"​ to whatever you want your output .html to be, but make sure that you leave it as being put in the "​build/"​ directory.
  
-{{ ::​main_tab.jpg?​direct&​600 ​|}}+{{ ::​main_tab.jpg?​direct |}}
  
 **Next we'll set up the "​Refresh"​ tab.** **Next we'll set up the "​Refresh"​ tab.**
Line 150: Line 150:
 Ensure that "The entire workspace"​ radio button is selected, and that "​Recursively include sub-folders"​ is checked. Ensure that "The entire workspace"​ radio button is selected, and that "​Recursively include sub-folders"​ is checked.
  
-{{ :​refresh_tab.jpg?​direct&​600 ​|}}+{{ :​refresh_tab.jpg?​direct |}}
  
 **Next we'll set up the "​Environment"​ tab.** **Next we'll set up the "​Environment"​ tab.**
Line 156: Line 156:
 Assuming that you'll be using the Sugarcube story format, there'​s only one environment variable we need to set up here.  Hit the "​New"​ button, and set "​TWEEGO_PATH"​ to whatever path you installed Tweego'​s story formats to.  In my case, it's "​D:/​Tweego/​story-formats"​. Assuming that you'll be using the Sugarcube story format, there'​s only one environment variable we need to set up here.  Hit the "​New"​ button, and set "​TWEEGO_PATH"​ to whatever path you installed Tweego'​s story formats to.  In my case, it's "​D:/​Tweego/​story-formats"​.
  
-{{ :​environment_tab.jpg?​direct&​600 ​|}}+{{ :​environment_tab.jpg?​direct |}}
  
 **Finally, we'll set up the "Build Options"​ tab.** **Finally, we'll set up the "Build Options"​ tab.**
Line 166: Line 166:
 Finally, check the "​Specify working set of relevant resources"​ box, and press the "​Specify Resources..."​ button. ​ In the window that pops up, roll open your project and check its "​src"​ folder. ​ Press "​Finish"​. Finally, check the "​Specify working set of relevant resources"​ box, and press the "​Specify Resources..."​ button. ​ In the window that pops up, roll open your project and check its "​src"​ folder. ​ Press "​Finish"​.
  
-{{ :​build_options_tab.jpg?​direct&​600 ​|}}+{{ :​build_options_tab.jpg?​direct |}}
  
 {{ :​working_set.jpg?​direct&​600 |}} {{ :​working_set.jpg?​direct&​600 |}}
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 |}} {{ ::​final.jpg?​direct&​600 |}}
tweegoeclipse.txt ยท Last modified: 2018/03/20 19:03 by lee