# Choicescript Unzipping and Files Guide

**URL:** <https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376>\
**Category:** ChoiceScript Help\
**Created:** [March 1, 2017, 2:22pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376 "2017-03-01T14:22:26Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [March 1, 2017, 2:22pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/1 "2017-03-01T14:22:26Z")

</div>

From: [https://www.choiceofgames.com/make-your-own-games/choicescript-intro/](https://www.choiceofgames.com/make-your-own-games/choicescript-intro/)

* * *

1. Download the ChoiceScript source from [GitHub](http://github.com/dfabulich/choicescript/zipball/master)

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/a/4/a4949687c6e5344d9650e9c0a952c35c1979a5f0.png)

* * *

1. Now you need to extract the files. In Windows 10 I go to where the files were downloaded, right click and select extract.

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/2/3/236b692d58396e3a4b69cf8de0df7a7c363c56e6.png)

* * *

1. Then I select the destination where I wish to extract the files.

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/4/1/41fdb147d1ab20e24fecda328e601388361744ec.png)

* * *

1. So now choicescript is downloaded what do I do next? I found it extremely overwhelming when I first downloaded choicescript. There were so many files and I didn’t have a clue what any of them did. It’s okay though, you can just ignore them all for now.

Ignore all of those confusing files and folders and browse to the web folder.

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/1/b/1b4cca8667d4c7fe2546d1f93b45f0f63e315ca2.png)

* * *

1. Now inside the web folder are a whole lot of other confusing files. (This is where the ‘web/index.html’ file is which the choicescript tutorial tells you to open. But I’m just going to ignore that too.)

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/e/3/e34c8d8361dafc99513faa94eebe058b9c09df3c.png)

1. There’s yet more files. We’ll skip by these as well for now and open up the scenes folder.

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/4/b/4b482b99eb0d14815406a36a4bf7536d0ab5263b.png)

1. Inside the scenes folder are a bunch of text files. This is the basics of your game. This is the folder you’ll spend most of your time in.

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/0/f/0fb4cb952ae61fa5011c15fca7836e8eb922297b.png)

The only two files in this folder you need are startup.txt and choicescript\_stats.txt You are free to delete all of the others if you want to.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [March 1, 2017, 2:22pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/2 "2017-03-01T14:22:51Z")

</div>

Stupid headache! This is half-finished. I’ll write the rest later.

> **[Structure of a ChoiceScript game](https://choicescriptdev.fandom.com/wiki/Structure_of_a_ChoiceScript_game)**
>
> This article describes the layout structure of the ChoiceScript game directory and highlights the folders and files of most importance to you as a game developer. The main ChoiceScript directory (for our purposes) is as...

---

<div class="post-metadata">

**Author:** ![poison\_mara](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/poison_mara/32/271676_2.png) [@poison\_mara](https://forum.choiceofgames.com/u/poison_mara)\
**Post date:** [March 1, 2017, 2:29pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/3 "2017-03-01T14:29:11Z")

</div>

Good job Feather friend. I find it useful if someday I decide use a computer to code … It looks so weird and complex for me use a computer to code Cog. I am weird.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 1, 2017, 2:43pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/4 "2017-03-01T14:43:41Z")

</div>

Ah! Can I continue the guide?

Feel free to resume your own anytime, though, and I’ll delete my own later to prevent confusion.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [March 1, 2017, 2:44pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/5 "2017-03-01T14:44:02Z")

</div>

Sure if you want to!

It’s meant as a supplement to the wiki. Particularly [http://choicescriptdev.wikia.com/wiki/A\_Basic\_Tutorial](http://choicescriptdev.wikia.com/wiki/A_Basic_Tutorial)  
and [http://choicescriptdev.wikia.com/wiki/Structure\_of\_a\_ChoiceScript\_game](http://choicescriptdev.wikia.com/wiki/Structure_of_a_ChoiceScript_game)

And to [https://www.choiceofgames.com/make-your-own-games/choicescript-intro/](https://www.choiceofgames.com/make-your-own-games/choicescript-intro/)

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 1, 2017, 2:58pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/6 "2017-03-01T14:58:18Z")

</div>

Ok, with the power granted by the Godfairy…

1. There’s 6 different .txt files based on pic number 8. However, the only 2 files you’ll absolutely need are **startup.txt** and **choicescript\_stats.txt**  
You may delete the rest of the .txt files ![](https://global.discourse-cdn.com/choiceofgames/original/3X/9/4/94eaf050a4c18d7216a4e9c578260134c17b1a4c.PNG)  
Now, open the startup.txt and take a look at it. I’ll open the file with [Notepad++](https://www.google.co.id/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwj-qYu6xrXSAhWGnJQKHWbRDBgQFggZMAA&url=https%3A%2F%2Fnotepad-plus-plus.org%2F&usg=AFQjCNExci2YY1gy2cZYcnKLKfl2A9jWCg&sig2=tRcH6DTRMsHdnZqwSspr3A&bvm=bv.148441817,d.dGo) program, but normal notepad works.

10)Oh, what are these codes?

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/9/3/9318f681a4f01084d6dcea1e5640c906d83f1b1b.PNG)  
Frankly speaking, these code is the one that “form” your game later. But for now, you can delete all of the code. Yes, press that Ctrl + A, and del keys.

11)Now you have a clean worksheet! You can begin to write your story, but first thing first, you’ve to type these commands (or just copypaste this code and adjust it by yourself later)

```
*title My story
*author Bejo and friends
*scene_list
	startup

```

Those lines are used as the “foundation” of your game and you can’t leave them empty. `*title` is for your story title, `*author` is your name, and `*scene_list` are the list of `scene.txt` files included in your game.

* * *

And that’s how it’s done. You can proceed to create game variables (`*create`), or write the intro of your story, or create a new independent scene file to mark an individual chapter of your game.

You can visit choicescript wiki links provided by @FairyGodfeather to begin writing your own story.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 1, 2017, 3:14pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/7 "2017-03-01T15:14:03Z")

</div>

1. To compile your game and try your newly created IF, go to the main folder of the ChoiceScript (default location “…\dfabulich-choicescript-[versionnumber]”)  

2. This screen is what you should see when you open the `compile.html`.  

Finally, to playtest your game, click the blue hyperlinked `here` text to “download” your game.

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/1/c/1c271ca61a5212f6effe02479015d111e84d74d4.PNG)  
FYI, you can choose either option. However, I personally choose the `Open with` option.

1. Ta-daaa  
 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/6/7/67c191ef4328ff745cdc62d8900fc264451db9de.PNG)  
Enjoy your game. Of course, there’s only 4 _ending_ options since the game contains nothing but `*title` and `*author`

However, as you begin to write your game, the game itself will begin to expand and will soon take form into a proper CS IF.

---

<div class="post-metadata">

**Author:** ![poison\_mara](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/poison_mara/32/271676_2.png) [@poison\_mara](https://forum.choiceofgames.com/u/poison_mara)\
**Post date:** [March 1, 2017, 3:21pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/8 "2017-03-01T15:21:49Z")

</div>

What advantage has compile over not compile? I have never compiled.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 1, 2017, 3:26pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/9 "2017-03-01T15:26:43Z")

</div>

Hmm… local alpha testing? Evaluating the typography of your story? Or maybe just getting the “feel” of being the player.

---

<div class="post-metadata">

**Author:** ![poison\_mara](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/poison_mara/32/271676_2.png) [@poison\_mara](https://forum.choiceofgames.com/u/poison_mara)\
**Post date:** [March 1, 2017, 3:29pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/10 "2017-03-01T15:29:12Z")

</div>

I just use index in my Firefox local browser offline same interface than player no need compile. I could say exactly same thing. I could use quick and random text. And all from my mobile . So What real advantage has compile over normal system?

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 1, 2017, 3:38pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/11 "2017-03-01T15:38:43Z")

</div>

> [@poison\_mara](#):
>
> I just use index in my Firefox local browser offline same interface than player no need compile.

Wew, I never thought you can use `index.html` for that 😆  
And surely it’s more beneficial to do that rather to “compile” since you don’t have to “download” the game every time.

Well then, the only pro of `compile.html` over `index.html` I can think of, is to create a copy of the compiled game and you can send it to your friends, or beta-tester, or maybe anyone. Rly.[quote=“poison\_mara, post:10, topic:24376”]  
I could use quick and random text.  
[/quote]  
About that one, I think it’s different from either compile/index. They serve different function.  
I can’t compare them, at least that’s what can I say about it.

And I don’t really code on mobile though, so I never use my phone for coding nor bugfixing my game.  
I’d rather plot the game and define the character when I’m on mobile.

---

<div class="post-metadata">

**Author:** ![poison\_mara](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/poison_mara/32/271676_2.png) [@poison\_mara](https://forum.choiceofgames.com/u/poison_mara)\
**Post date:** [March 1, 2017, 3:43pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/12 "2017-03-01T15:43:11Z")

</div>

I never coded on pc because when I started I haven’t one and now I don’t like it is too big and menacing. I have a pc phobia I barely use it. And like I could do everything possible in mobile phones and tablets why change? I probably could compile too but I never tried

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 1, 2017, 3:47pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/13 "2017-03-01T15:47:05Z")

</div>

I actually uses a notebook/laptop, personally.

PC that consisted of 4k screens, a glowing keyboard, a gaming mouse, and a custom built cpu is only for gaming.  
I don’t have such PC 😝

There’s no hurt in using a smartphone/tablet/notebook/desktop computer to write your game. Suit yourself the best.

Heck, use a server mainframe. Nobody will complain on you.  
Or maybe… everyone, if that’s the case.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [March 1, 2017, 4:01pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/14 "2017-03-01T16:01:57Z")

</div>

Yay! I don’t have to finish my tutorial now! 😛 I can just be lazy again.

Think you can explain the testing thingies too? With pictures?

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 1, 2017, 4:11pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/15 "2017-03-01T16:11:56Z")

</div>

😑  
I should’ve expected that.

Well, I don’t use random/quick tests that much, but I think I _may_ give it a try.  
I want to be lazy as well 😑

urgh… why me… suddenly gone very diligent 😩 ✊💨

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [March 1, 2017, 4:12pm UTC](https://forum.choiceofgames.com/t/choicescript-unzipping-and-files-guide/24376/16 "2017-03-01T16:12:19Z")

</div>

That’s what you get for volunteering to help. 😛
