# Bug Report for CS

**URL:** <https://forum.choiceofgames.com/t/bug-report-for-cs/10321>\
**Category:** ChoiceScript Help\
**Created:** [July 1, 2015, 12:53pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321 "2015-07-01T12:53:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [July 1, 2015, 12:53pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/1 "2015-07-01T12:53:08Z")

</div>

@dfabulich I think you might have broken the gosub feature used in the stats screen in the latest version of CS. I keep getting caught in an endless loop again. Using FF.

---

<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:** [July 1, 2015, 1:03pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/2 "2015-07-01T13:03:24Z")

</div>

I think the best way to contact Dan is actually via email.

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [July 1, 2015, 1:04pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/3 "2015-07-01T13:04:58Z")

</div>

Well I thought if others also had this problem they might want to see if it’s been fixed etc, so that’s why I chose to create a topic.

---

<div class="post-metadata">

**Author:** ![dfabulich](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dfabulich/32/198373_2.png) [@dfabulich](https://forum.choiceofgames.com/u/dfabulich)\
**Post date:** [July 1, 2015, 5:44pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/4 "2015-07-01T17:44:24Z")

</div>

Eh, I do my best to read threads where I’m mentioned.

@MutonElite, can you post a small snippet of code that reproduces the problem?

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [July 2, 2015, 6:52am UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/5 "2015-07-02T06:52:55Z")

</div>

Uhm well it seems just to be a normal gosub\_scene?

```
*choice
  #Help
    *gosub_scene help
    *goto top

```

And within the help scene I only use \*gotos and a return.

It worked fine on the last version I used.

---

<div class="post-metadata">

**Author:** ![Shawn\_Patrick\_Reed](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shawn_patrick_reed/32/20691_2.png) [@Shawn\_Patrick\_Reed](https://forum.choiceofgames.com/u/Shawn_Patrick_Reed)\
**Post date:** [July 2, 2015, 3:36pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/6 "2015-07-02T15:36:38Z")

</div>

@MutonElite

I’m not sure if it’s the same problem you’re having, but I tried creating a codex as a separate scene accessed from the stats screen and it didn’t work. I had to create the codex within the stats itself (which is possible, but a bit of work) - the reasoning, I figure, why it happens, is because the stats will always jump you back to the previous point outside the stats screen that you were in when you entered it. I had gotten caught in an endless loop of not being able to get back to the game proper that way, too- but I did alter my coding to eliminate having an out-of-stats codex and it worked. Not sure if that will help you, but it might?

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [July 3, 2015, 6:54am UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/7 "2015-07-03T06:54:40Z")

</div>

Did you use goto\_scene or gosub\_scene? Because gosub\_scene was fixed in earlier versions to be able to jump back and forth to the stats screen without overwriting the main game. In fact I made a post partially related to it;

> [@Grr...More restrictions found on the stats screen](https://forum.choiceofgames.com/t/grr-more-restrictions-found-on-the-stats-screen/2568/23):
>
> @dfabulich What are you saying exactly? It can’t be done? You’re stumped? I was kinda hoping a brain-thrust would form here and toss ideas around, as I’m woefully unfit myself. :-/ Having more options as coders is something that ought to interest everyone making a COG. But I suppose in terms of suggestions/ideas, noone knows more about the engine than you do, most of us are only driving the car, we have no idea what makes it go forward… This ipad stuff feels like an anvil around my neck, I don…

---

<div class="post-metadata">

**Author:** ![stainedofmind](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/stainedofmind/32/459_2.png) [@stainedofmind](https://forum.choiceofgames.com/u/stainedofmind)\
**Post date:** [July 3, 2015, 1:49pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/8 "2015-07-03T13:49:14Z")

</div>

I would have to agree that there’s something broken here. I’ve tested both the ability to gosub\_scene and set variables in the stats scene, and they both worked as expected. Yesterday while testing out an idea I had, not only do variable changes not keep anymore, but I got stuck in a loop where it thought my stats page was the main game.

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [July 10, 2015, 7:58am UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/9 "2015-07-10T07:58:48Z")

</div>

@dfabulich Any news on this issue, Dan?

---

<div class="post-metadata">

**Author:** ![dfabulich](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dfabulich/32/198373_2.png) [@dfabulich](https://forum.choiceofgames.com/u/dfabulich)\
**Post date:** [July 18, 2015, 12:05am UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/10 "2015-07-18T00:05:26Z")

</div>

I think this is fixed now in the latest version of ChoiceScript up on Github.

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [July 18, 2015, 10:29am UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/11 "2015-07-18T10:29:34Z")

</div>

Yep, looks like it. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Lordirish](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirish/32/238051_2.png) [@Lordirish](https://forum.choiceofgames.com/u/Lordirish)\
**Post date:** [July 26, 2017, 9:55pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/12 "2017-07-26T21:55:59Z")

</div>

I notice that if I type in \*image without a file name, example \*image filename.jpg. It does not give any kind of error. It simply goes on as if nothing is wrong. I kept wondering why I was not seeing an image. Any other time if I give an incomplete command I get an error such as \*set var it would stop the progress of the code as it does not know what to do with it. It took me some time to track down my error, is this something that may change, hopefully? I should add quicktest did not pick up on this as well.

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [July 26, 2017, 10:17pm UTC](https://forum.choiceofgames.com/t/bug-report-for-cs/10321/13 "2017-07-26T22:17:27Z")

</div>

Thanks. Just passed this to Dan. It’ll be a bit for a it’s patched.
