Ive posted so much in one day I hope I dont get booted;;
I’m using CSIDE on a windows laptop
ok, so I’ve encounted a sort of screen freeze as I do a play run through of my story to make sure I don’t encounter errors and lo and behold, I have run into an error except this doesn’t have a red popup. the entire screen freezes, I can’t get the app to close out, it just gets stuck on this one particular screen
because this was a test run, the punctuation is not perfect but the text reads as:
"she doesn’t want to go.
my code looks like this:
"${He} @{plural don't|doesn't want to go.
the run through was running perfectly and had " next chapter"d over this screen before. now I’ve gotten this freeze 3 times. what do I do?
The game freezes because you are missing a “*finish” command in your gendertest2.txt file. You are relying on the scene list for navigation and it’s expecting you to give that command I guess (This is the reason why the “Next Chapter” buttons appear without you giving any explicit command).
ok, done and done. it goes in the place below ifs and nothing but regular text is on the top of the page. thank you for taking the time to look through my code and telling me where it went wrong. I deeply appreciate it😊
Where does it freeze specifically? I noticed that some of the files in the demo you posted don’t have *finish at the end. This is probably a long shot, but try adding it at the end of every chapter?
EDIT:
This may or may not be related to the freeze problem but here goes. If I understand the code correctly, are you trying to use the male_name label to direct the player to a list of names based on gender? If so, you don’t have to use a label for this purpose; you can nest it under the *if for each gender to make it simpler. For example:
What is your first name?
*if (gender="male")
*fake_choice
#Alain
*set firstname "Alain"
#Gerard
*set firstname "Gerald"
#Constantin
*set firstname "Constantin
#Neither of these are my name.
*input_text firstname
*if (gender="female")
*fake_choice
#Elaine
*set firstname "Elaine"
#Jane
*set firstname "Jane"
#Neither of these are my name.
*input_text firstname
*if (gender="nonbinary")
[same code as above]
I deleted my previous link accidentally thinking it was the duplicate I had. nope, i messed up. whoops this is the updated version. I genuinely hope it works😭
There’s a few indents and *fake_choice you missed in nametest. You should delete the fake_choice in the second line, it might cause errors. And I think you should switch the label and goto commands in case they result in a loop. E.g.:
What is your first name?
*fake_choice <- delete this
*if (gender="male")
*goto male_name
*label male_name
*fake_choice <- needs a fake_choice to work
#Alain
*set firstname "Alain"
#Gerard
*set firstname "Gerard"
#Constantin
*set firstname "Constantin"
#Neither of these are my name.
*input_text firstname
*if (gender="female")
*goto female_name
*label female_name
*fake_choice <- put fake_choice here, right before #Choice
#Elaine
*set firstname "Elaine"
#Angele
*set firstname "Angele"
#Josephine
*set firstname "Josephine"
#Neither of these are my name.
*input_text firstname
*if (gender="nonbinary")
*goto nonbinary_name
*label nonbinary_name
*fake_choice
#Claude
*set firstname "Claude"
#Fauste
*set firstname "Fauste"
#Leonide
*set firstname "Leonide"
#Neither of these are my name.
*input_text firstname
*finish
when I test run the game, it no longer freeze/crashes!! I defs need to clean up my code tho💀 as the saying goes “trial and error” well this was most definitely a trial and an error, but its technically up and running again!! thank you so much, I know going thru other people’s codes cant be easy or much fun, but I wholeheartedly thank you for sticking around and helping me out. you didnt have to, but you did so thank you💕
No problem at all! The code isn’t very long so it wasn’t difficult to look into.
And don’t worry, many of the writers on this forum (like me, lol) are writers before they’re coders, so it’s a lot of trial-and-error for us. Keep practicing your coding skills and look at examples from existing games if you find something confusing. Best of luck with your project!