Hello, I’m new here and have just finished writing a prolouge for my first choice script game. Every time I run it I run into problems, I have corrected most so far, but I have one I don’t understand yet:
Line 54: illegal mixing of spaces and tabs: this line has a space, but there were tabs on 53
I’ve also noticed that there are quite a few threads dedicated to single errors people encounter in their choice scripts, asking for help isolating them. I may be overstepping my bounds, being a very new person to this forum, but I felt that things would be a bit cleaner or smoother if we had a whole thread dedicated to asking help finding them.
Tried changing the text a few ways, but I couldn’t isolate the problem. Here’s the text:
“Sir!” you start, “I am called ${name}-”
Something blindsides you without warning, throwing you off your
feet. Your head swims as you put a hand to your head, (line 54)
pulling it back to find a bloodied paw. Looking up through bleary eyes,
you see the figure pull back a hand glad in dark steel.
None of the recruits look relaxed anymore.
“Wrong, you have no name other than the one we gave you when you arrived.
From now on, until I say otherwise, you are Recruit Fifty-eight. Pick
yourself up.” (line 60)
The (line ##) isn’t there when I run it, that’s for ease of identification.
@Yamamato: I had a similar problem. If you’re using Notepad ++, go to edit then Blank Operations and click on spaces to tab (all) or spaces to tab (leading). I think that’s it. :-?
Like DSeg said, you’re just mixing the usage of tab indents and space indents. If you’re using Notepad ++ just find Line 54 and erase the space or spaces and change that indent into a tab.
If you’re not using Notepad ++ to write a Choicescript game, I recommend switching to it now, as it’s invaluable when writing CS games. I’m sure there are alternative programs, but I haven’t heard anyone advocating them on the forums. (For computers that is. Mobile writers each have their own preferences.)
Also, the Choicescript Tester has a relative, who’s a bit more attractive, and capable of a bit more. The CSIDE is kind of a big deal.
As for using a single thread for errors, it’s a commendable idea, but I think most people will likely create their own discussion for their own problems. It’s not such a terrible issue, though, since most people do put their problems under the ChoiceScrip Help category.
@Caddmuss Well… I personally like TextWrangler more, it just looks better.
That and I’m on a Mac, Notepad ++ won’t work on Macs.
But yeah, anyways, if Notepad ++ can show the tabs spacing and all that, I’d highly recommend it so you can see if there are ever any spaces mixing with them.