# Randomest failed error NOW FIXED!

**URL:** <https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302>\
**Category:** ChoiceScript Help\
**Created:** [August 12, 2015, 4:31pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302 "2015-08-12T16:31:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [August 12, 2015, 4:31pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302/1 "2015-08-12T16:31:42Z")

</div>

RANDOMTEST FAILED  
ERROR: couldn’t open web/mygame/scenes/.txt  
RANDOMTEST FAILED  
window is not defined

What is this??? It’s never happened before and I can play the game just fine. It just randomly did the error after a few choices that have been tested before and passed the test just fine before…Any ideas??

---

<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:** [August 12, 2015, 4:34pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302/2 "2015-08-12T16:34:22Z")

</div>

Did something get deleted and/or did you recently update? (Try downloading a fresh copy of CS, copying over your scene files and testing.)

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [August 12, 2015, 4:44pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302/3 "2015-08-12T16:44:30Z")

</div>

I don’t see how any files could have been deleted… I downloaded a new CS file and replaced the mygame folder with the old one and still doesn’t work… is that what you meant? or do I just copy over scene files?  
A while ago I got a new SSdrive in my comp and all my files and everything were moved over to it…could have some how affected it?  
I see all the files there and the game works so idk why it won’t pass the test… 😕

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [August 12, 2015, 4:57pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302/4 "2015-08-12T16:57:31Z")

</div>

I tried to copy and paste the text right into fresh files…but…when I clicked on save…it didn’t make changes to that notepad file, it just acted like I clicked on save as, trying to make a new file…\>.\< and it shouldn’t be doing that waaah… and I tried to just copy a new startup file but that messes it up so it doesn’t work. ugh idk what to do now… at a loss… 😕 I can keep working on my game but if I can’t use random test I’M DOOMED!!! DX I also checked the place where it keeps crashing and it’s TOTALLY fine… It stops at a \*goto command all in the same file and I checked the code and it’s all fine…so it shouldn’t be doing that DX lol sorry for being dramatic

---

<div class="post-metadata">

**Author:** ![seabean](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/seabean/32/96835_2.png) [@seabean](https://forum.choiceofgames.com/u/seabean)\
**Post date:** [August 12, 2015, 5:29pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302/5 "2015-08-12T17:29:54Z")

</div>

What is your text file called, and what is it defined as in startup’s scene\_list? It looks like the .txt file has no name in the error.

EDIT: Oh, hold on… you have two separate errors. Do you have a “`*goto window`” command? You need to make a label called “`*label window`”.

Perhaps you mispelled it?

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [August 12, 2015, 5:41pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302/6 "2015-08-12T17:41:23Z")

</div>

No I don’t have a \*goto window command or anything with the word window in it… and if that was the case it would say something like: error in such and such line blah blah. and the text file is called Justin\_one and same in the startup list.

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [August 12, 2015, 6:31pm UTC](https://forum.choiceofgames.com/t/randomest-failed-error-now-fixed/11302/7 "2015-08-12T18:31:40Z")

</div>

Ok I found the problem… I had a \*label called end\_scene but when I wrote in it I put only \*goto scene…and it thought I was trying to send it to another scene since it was incomplete. TADA!

Lesson learned… DON’T CALL A LABEL BY THE WORD SCENE AND MAKE SURE TO COMPLETE THE FULL LABEL NAME!! lol Cuz I do that a lot 😕
