It’s from the Choice of script IDE
I’ve added you to a DM thread with guidance on working around this.
What is the solution
Hi @Hylix, welcome to the forum! I’ve moved your post here as it’s related to CSIDE - hopefully folks here will be able to help!
Hi! I hope I’m not being stupid here, but my title won’t seem to change on any of my projects despite me using the default *title command at the top? Happens on all my projects. Not sure if this is a CSIDE issue or a CS issue, could just use some wisdom!
Can you post a screen grab?
I’m pretty sure this is a CSIDE online (can’t vouch for the Mac/Windows versions) bug, as it happens to me on CSIDE web but not when I compile using my own copy of CS.
Other people have reported similar.
Thanks @Lan @BobTheFish, I confirm I see the behaviour. I’ve raised an issue: *title doesn't work in stable web · Issue #157 · ChoicescriptIDE/main · GitHub
Is this CSIDE related? More likely a bug in your code? May want to try posting in ChoiceScript Help.
guys…how did I mess up this bad sdkfjskdjf i get this error when i’m trying to test if my game runs on itch
Failed to read a named property 'cside' from 'Window': Blocked a frame with origin "https://html-classic.itch.zone" from accessing a cross-origin frame.
Hey guys, can someone tell me what’s wrong with my randomtests? It keeps getting stuck after Seed 6. Not in the way that it gives an error message that something is wrong in the code, just the test itself gets stuck. It won’t continue, it just sits there, I can close the testing window with no fuss, then next time it does the same. The first 5 seeds run fine, and then it freezes. I already restarted CSIDE, restarted my PC too. Updates are set to stable.
Probably hitting an infinite loop? Although I’d have hoped looplimit would detect that. You could try setting it lower than the default.
*comment top of file
*looplimit 100
Note that I believe looplimit is per file, so you might need to stick this at the top of every scene.
I tried the looplimit command in every scene file but it still does the same. Just now, I ran the files through the choicescript randomtest outside of cside, and that one gave me the loop error, so you are right that that’s what’s causing it. But the looplimit doesn’t seem to do anything and the tests still get stuck in CSIDE, I imagine because of a different loop error this time
Edit: I managed to solve the errors by running the files through the normal choicescript test (not in CSIDE). So I fixed the parts of the code that got stuck, and now the CSIDE random also works. But I couldn’t solve it within CSIDE because it never gave me the error, just got stuck.
That’s good feedback, thanks. That could indicate an issue with CSIDE. Would you be happy to share your code with me (pre-fix)? I’d like to understand and fix it if possible.
*if mc_gender = 3
"We've been so doom and gloom ever since we started off the trip."
*if ((aroace = true) or (highest_romance <= 1))
*label friendlyteasenb
(lots of text comes here blah blah blah and this is where it started looping)
*if (highest_romance = flirt_narmer) and (narmerattraction = false)
*goto friendlyteasenb
*if (highest_romance = flirt_narmer) and (narmerfeeling2 = "negative")
*goto friendlyteasenb
*if (highest_romance = flirt_qenna) and (qennaattraction = false)
*goto friendlyteasenb
The raw code looks kinda like this without the filler text. It got stuck at the end of the — *if ((aroace = true) or (highest_romance <= 1)) — section. I can see why. Anyway, I fixed it by placing a *goto command at the end of this section. (I guess I could’ve solved it also by replacing the other conditionals above the label but whatever, writing a *goto was faster). Then I had to repeat it two more times because I have different scenes but the same code structure for 2 other mc genders, so I had to run the choicescript test like 3 times to find each error in the code.
It’s weird that CSIDE didn’t detect it. I had loop errors before and those were displayed correctly. This was the first time that the test itself wouldn’t load further. Although… maybe this was the first time it was caused by variables for me. I think during other times, the loops were caused inside nested *choice structures.
The fixed version looks like this now:
Thanks for explaining. I’d likely need a zip of your whole project to reproduce it (I can’t just randomtest that snippet of code). If you’re happy to share it, put it on Google drive, Dropbox or similar and DM me a share link?
long time lurker here, and currently trying to make my own project, but I’m having some difficulty with the script since…I have no idea what I’m doing.
Basically, this is my code, and for some reason it’s not showing the second choice in the playtest:
"What do you identify as?
*choice
#Male
*set gender “male”
*set gname “Othar”
*set he “he”
*set him “him”
*set his “his”
*set sir “sir”
*set son “son”
*set man “man”
*set boy “boy”
*set Veena 100
*set Moreus 100
*set Xondia 100
*set Jontune 60
*set Vatar 85
*set Anera 30
*set surname "Anderson
*finish
*choice
#Female
*set gender “female”
*set gname “Xondia”
*set he “she”
*set hers “hers”
*set her “her”
*set miss “miss”
*set daughter “daughter”
*set woman “woman”
*set girl “girl”
*set Veena 100
*set Moreus 100
*set Othar 100
*set Anera 80
*set Vatar 65
*set Jontune 100
*set surname “Lee”
*finish
Would be amazing if I could get some help with this, as I’m absolutely hopeless.
Thanks in advance
You don’t need to use the *choice before every option at the end of that page, just to declare that next there will be a list of choices. Like this:
*choice
#Male
(some code)
#Female
(some other code)
Also a small hint: You can just use *fake_choice for choices that don’t use a *goto since then after the choice relevant code finishes up it’ll just continue with whatever is after all the choices in that block. In general fake_choice is just better to use aside from some very specific situations.
It’s supposed to be a *goto choice, but it wasn’t working for some reason
also, the female choice doesn’t appear