# What is compiling and how do I use it?

**URL:** <https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606>\
**Category:** ChoiceScript Help\
**Created:** [July 26, 2022, 2:36pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606 "2022-07-26T14:36:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![malinryden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/malinryden/32/272913_2.png) [@malinryden](https://forum.choiceofgames.com/u/malinryden)\
**Post date:** [July 26, 2022, 2:36pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/1 "2022-07-26T14:36:43Z")

</div>

Okay. I know this is probably obvious to everybody, but I have been searching the forum and online and I have drawn a blank.

So a few questions:

What is compiling?  
Why would I need to use it?  
How do I compile my game?  
How do I upload a compiled game on Dashingdon?

This is in reference with my problems with the softly save system, but I thought I might a well make a different topic.

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 26, 2022, 2:52pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/2 "2022-07-26T14:52:01Z")

</div>

1. Compiling: convert (a program) into a machine-code or lower-level form in which the program can be executed.  
So in essence, it packages all up into one independent executable.

2. To distribute your game outside the mediums that CoG/HG offer? (Though you need to do it for free, I recommend you to read the legal terms first). I don’t know of another use for it, and I’ve never used it myself other than to see what the game would look like when I was learning all this CoG stuff, but maybe there’s more uses for it I’m not aware of.

3. You can compile it placing your files into the corresponding folder ( /web/mygame/scenes) and then running the compile executable (compile.html) from here.  
[GitHub - dfabulich/choicescript: ChoiceScript is a language for developing multiple-choice games.](https://github.com/dfabulich/choicescript)

4. I’ve never used Dashingdon, I need to learn that soon, but I can’t help you with that yet.

---

<div class="post-metadata">

**Author:** ![malinryden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/malinryden/32/272913_2.png) [@malinryden](https://forum.choiceofgames.com/u/malinryden)\
**Post date:** [July 26, 2022, 2:59pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/3 "2022-07-26T14:59:48Z")

</div>

> [@Loudbeat](#):
>
> You can compile it placing your files into the corresponding folder ( /web/mygame/scenes) and then running the compile executable (compile.html) from here.  
> [GitHub - dfabulich/choicescript: ChoiceScript is a language for developing multiple-choice games.](https://github.com/dfabulich/choicescript)

How do I run it? Remember, I don’t know much computer speech.

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 26, 2022, 3:11pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/4 "2022-07-26T15:11:42Z")

</div>

1. Download the program  

2. Extract all the files on your preferred folder  
 ![image](https://global.discourse-cdn.com/choiceofgames/original/3X/1/a/1a8b9960f877c62c6debd06edcd932f89b4b23d6.png)

3. Go to the folder “web/mygame/scenes” and delete all the files there and put all your files instead.  
 ![image](https://global.discourse-cdn.com/choiceofgames/original/3X/5/8/581f2af41236f4f594fc1576770713c5be5da0d1.png)

4. Go back to the main folder and run “compile.html”  
 ![image](https://global.discourse-cdn.com/choiceofgames/original/3X/2/7/27602da62798b13fad0be1e53240d506dd776620.png)

5. If it ask you to choose a folder pick the main one in which all those files are (by default it’s named “choicescript-master”)

6. You should see this message  
 ![image](https://global.discourse-cdn.com/choiceofgames/original/3X/7/c/7cd09e46477511f9c551e950a35eb108f83cdb83.png)

Click “here” and download the compiled game. That’s all

---

<div class="post-metadata">

**Author:** ![malinryden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/malinryden/32/272913_2.png) [@malinryden](https://forum.choiceofgames.com/u/malinryden)\
**Post date:** [July 26, 2022, 3:13pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/5 "2022-07-26T15:13:21Z")

</div>

Thank you! I thought you meant that I could run it from the site, not just download it. Sorry, misunderstood.

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 26, 2022, 3:16pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/6 "2022-07-26T15:16:11Z")

</div>

Ohh sorry, I didn’t express myself clearly. I’m so used to get my hands on this things that I forgot some people doesn’t know. Hope it helps, if you need anything else just ask.

---

<div class="post-metadata">

**Author:** ![malinryden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/malinryden/32/272913_2.png) [@malinryden](https://forum.choiceofgames.com/u/malinryden)\
**Post date:** [July 26, 2022, 3:29pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/7 "2022-07-26T15:29:43Z")

</div>

No worries, thank you! Now that I did it, I remember doing it back in the days before Dashingdon, I had just forgotten. My brain is just overloaded by trying to resolve the save bug, so everything feels weird.

---

<div class="post-metadata">

**Author:** ![malinryden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/malinryden/32/272913_2.png) [@malinryden](https://forum.choiceofgames.com/u/malinryden)\
**Post date:** [July 26, 2022, 3:35pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/8 "2022-07-26T15:35:30Z")

</div>

This topic can be closed now, if the moderators wants to.

---

<div class="post-metadata">

**Author:** ![Zahr](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@Zahr](https://forum.choiceofgames.com/u/Zahr)\
**Post date:** [July 26, 2022, 5:31pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/9 "2022-07-26T17:31:29Z")

</div>

Also, something to keep in mind: compiling tool _only_ packages scenes that are in the \*scene\_list. If you have a couple stray text files that are called by \*goto\_scene and \*gosub\_scene and not in the startup list, then those will be missing and the game will throw errors at people.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/choiceofgames/original/3X/e/f/efe1497a762edecdb6d569a1c4abee87508bf002.png) [@system](https://forum.choiceofgames.com/u/system)\
**Post date:** [July 27, 2022, 5:31pm UTC](https://forum.choiceofgames.com/t/what-is-compiling-and-how-do-i-use-it/122606/10 "2022-07-27T17:31:39Z")

</div>

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.
