Difference between revisions of "Adding new story"

From XStoryPlayer Wiki
Jump to: navigation, search
 
(11 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
<ol>
 
<ol>
<li>Place the <code>pack_abducted</code> directory from the '[[Tutorial resource pack]]' in the <code>./pack</code> directory of XStoryPlayer.</li>
+
<li>Place the <code>pack_abducted</code> directory from the '[[Tutorial resource pack]]' in the <code>./pack</code> directory of [[XStoryPlayer]].</li>
<li>Open XStoryPlayer and go to the [[story menu]]. You should see here the "Abducted" story. Start it.</li>
+
<li>Open [[XStoryPlayer]] and go to the [[story menu]]. You should see here the "Abducted" story. Start it.</li>
 
<li>You should be in a test room, with red boxes. Press F3 to close XStoryPlayer.</li>
 
<li>You should be in a test room, with red boxes. Press F3 to close XStoryPlayer.</li>
<li>Set <code>start_mode = SCENE;</code> because we will be starting directly in storymode again from now on.</li>
+
<li>Set <code>start_mode = SCENE;</code> because we will be starting directly in storymode from now on.</li>
 
<li>Open the <code>/pack_abducted/story.txt</code> file in an text editor. This file contains the information needed to add the new story to the story menu.<br>
 
<li>Open the <code>/pack_abducted/story.txt</code> file in an text editor. This file contains the information needed to add the new story to the story menu.<br>
Basically [[XStoryPlayer]] checks if there is a story.txt file in a <code>./pack/pack_[name][*.bin]</code> file or directory. If so it is added to either the [[fastsex menu]] or [[story menu]]. Because this story.txt file does not have <code>type = FAST</code> in it, it is added to the [[story menu]].</li>
+
Basically [[XStoryPlayer]] checks if there is a <code>[[story.txt]]</code> file in a <code>./pack/pack_[name][|.bin]</code> file or directory. If so, it is added to either the [[fastsex menu]] or [[story menu]].<br>
<li>Take a close look at the files in the <code>/pack_abducted/init/story</code> directory. These files</li>
+
Because this <code>[[story.txt]]</code> file does not have <code>type = FAST</code> in it, it is added to the [[story menu]].</li>
 +
<li>We have filled in some names and descriptions in the <code>[[story.txt]]</code> based on the story we are making. Try out different names and descriptions and see how they affect the story.</li>
 +
<li>The story images are still blanco and can be found in the <code>/pack_abducted/story_images</code> directory. Edit some of them if you like.</li>
 +
<li>A very important entry in the <code>[[story.txt]]</code> file is the <code>code = "init/story/init.dat";</code>. It means that the entry code for the story can be found in that file.</li>
 +
<li>But before we start coding, first a setting has to be created. We will do this in the next tutorial '[[Making new scene]]'.</li>
 
</ol>
 
</ol>

Latest revision as of 14:06, 9 January 2015

First we will add a new story to XStoryPlayer.

Again during all tutorials do not save!

  1. Place the pack_abducted directory from the 'Tutorial resource pack' in the ./pack directory of XStoryPlayer.
  2. Open XStoryPlayer and go to the story menu. You should see here the "Abducted" story. Start it.
  3. You should be in a test room, with red boxes. Press F3 to close XStoryPlayer.
  4. Set start_mode = SCENE; because we will be starting directly in storymode from now on.
  5. Open the /pack_abducted/story.txt file in an text editor. This file contains the information needed to add the new story to the story menu.
    Basically XStoryPlayer checks if there is a story.txt file in a ./pack/pack_[name][|.bin] file or directory. If so, it is added to either the fastsex menu or story menu.
    Because this story.txt file does not have type = FAST in it, it is added to the story menu.
  6. We have filled in some names and descriptions in the story.txt based on the story we are making. Try out different names and descriptions and see how they affect the story.
  7. The story images are still blanco and can be found in the /pack_abducted/story_images directory. Edit some of them if you like.
  8. A very important entry in the story.txt file is the code = "init/story/init.dat";. It means that the entry code for the story can be found in that file.
  9. But before we start coding, first a setting has to be created. We will do this in the next tutorial 'Making new scene'.