Problem 'Unknown command you in line 41'
Author | Topic: Problem 'Unknown command you in line 41' |
---|---|
Shock Trooper
Member # 3276
|
written Tuesday, June 22 2004 17:38
Profile
'Unknown command you in line 41' I counted the lines 15 times. Line 41 is blank. Is this a bug? I even checked the whole text doc. NO command starts with you. This makes no sense. Posts: 249 | Registered: Saturday, July 26 2003 07:00 |
Infiltrator
Member # 169
|
written Tuesday, June 22 2004 18:02
Profile
Search for that string. The line count is a bit buggy. (At least in Windows.) Posts: 422 | Registered: Tuesday, October 16 2001 07:00 |
Shock Trooper
Member # 3276
|
written Tuesday, June 22 2004 18:07
Profile
I have a Mac, and id say that it is buggy there too. I cant find any commands that start with you. The only sentances that contain the word You are the message_dialog["You blah",""] This is totally weird. Posts: 249 | Registered: Saturday, July 26 2003 07:00 |
Agent
Member # 2820
|
written Tuesday, June 22 2004 19:58
Profile
Could you post the script? And I hope those [] are () in your script. The line numbers are extremely messed up; but slowly combing the script would help. -------------------- Thuryl: I mean, most of us don't go around consuming our own bodily fluids, no matter how delicious they are. ==== Alorael: War and violence would end if we all had each other's babies! ==== Drakefyre: Those are hideous mangos. Posts: 1415 | Registered: Thursday, March 27 2003 08:00 |
Shock Trooper
Member # 3276
|
written Wednesday, June 23 2004 07:38
Profile
I did use () instead [], but for some reason last time I tried to posts something with ( ) in it it said HTML not enabled. Hopefully I can use UBB code correctly to post my script... I didn't see any problems the script, so maybe you could spot something. Posts: 249 | Registered: Saturday, July 26 2003 07:00 |
Shock Trooper
Member # 4000
|
written Wednesday, June 23 2004 07:54
Profile
Homepage
"You spot a small building, that has a very old label, that says old treasure chamber.""This looks like a good place to loot. After all, the box on the other end of the chamber readsgold." Try putting a "," in between the two quotation marks. That's one of the things I noticed. I actually can't see anything else wrong with it although there might be something else...hmm.-------------------- ♫ The truth is screaming BIG ♫ ♫ A light so bright ♫ ♫ Whether day or night ♫ ♫ It can't be hid ♫ § realitycorp@gmail.com § ►► Chance is back online! ◄◄ Posts: 245 | Registered: Tuesday, February 17 2004 08:00 |
Shock Trooper
Member # 3276
|
written Wednesday, June 23 2004 08:30
Profile
I did put the comma between the quotes, and you said nothing else is wrong. The computer thinks differently :eek: bad term in expression in line 77. EDIT= I did find an expression with an ill placed semi_colon next to line 77, but I fixed, reloaded, exited and re-entered town, and the problem persist. Btw it only shows that error message when a walk over to a lever I need to turn. [ Wednesday, June 23, 2004 08:33: Message edited by: GIFTSare2nice ] Posts: 249 | Registered: Saturday, July 26 2003 07:00 |
Off With Their Heads
Member # 4045
|
written Wednesday, June 23 2004 09:29
Profile
Homepage
If you're counting lines and you're on a Mac, I'm guessing you're using TextEdit. My first recommendation is to stop using that program. I used to use it, and it took me ten times as long to debug. Get BBEdit Lite. There's a link around here somewhere, and you can just do a search on it, too. Jeff uses BBEdit (the real version, not Lite) and the line numbers match with that. They DON'T match with things like Word, and as far as I know, TextEdit doesn't do line counts. To transfer a text document between TextEdit and BBEdit Lite, you may have to open it up in TextEdit, copy it, and then paste it into BBEdit Lite. Anyway, once you've done that, this looks like a problem with a quotation mark being missing somewhere. I'd look at line 41, and if it contains a string, make sure that the quotes that begin and end it are properly placed. If it doesn't contain a string, or if the quotes are correct, check if it contains the word "you." If it does, a string above it probably doesn't have proper end quotes. Check the strings nearby and above. Beyond that, I don't know. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Shock Trooper
Member # 3276
|
written Wednesday, June 23 2004 09:40
Profile
Thanks. Im downloading BBEdit Lite right now. Ill report if I still have problems. Posts: 249 | Registered: Saturday, July 26 2003 07:00 |
Shock Trooper
Member # 3276
|
written Wednesday, June 23 2004 10:15
Profile
Now it says bad term in expression in line 78, which is... I think the reason the line counting was a problem in text_edit was because the wider the window, the more or less lines are needed to fit text, changes the line numbers. BBEdit does not do that. Posts: 249 | Registered: Saturday, July 26 2003 07:00 |
Off With Their Heads
Member # 4045
|
written Wednesday, June 23 2004 10:30
Profile
Homepage
Should be if (choice == 1) and if (choice == 2) -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Shock Trooper
Member # 3276
|
written Wednesday, June 23 2004 10:38
Profile
I keep geting the stuff that uses either one or two equal signs mixed up. Thanks man. But it still shows errors, which I dont understand Bad Expression in line 44 (Forgive me, only second day at scripting stuff. I dont understand much.) Posts: 249 | Registered: Saturday, July 26 2003 07:00 |
Shock Trooper
Member # 4000
|
written Wednesday, June 23 2004 10:48
Profile
Homepage
Again, if testing equality, the format is if (i == 4) So change that in line 43 and line 44 should work. EDIT: Thought I should add this in- there is a difference between assigning a number (=) and checking the assigned variable for the number (==). Assigning a variable means to store a number/string/boolean in a variable. Consider the following code: So if you are assigning a number into a variable, use (=). If you are checking equality, use (==). [ Wednesday, June 23, 2004 11:05: Message edited by: Block ] -------------------- ♫ The truth is screaming BIG ♫ ♫ A light so bright ♫ ♫ Whether day or night ♫ ♫ It can't be hid ♫ § realitycorp@gmail.com § ►► Chance is back online! ◄◄ Posts: 245 | Registered: Tuesday, February 17 2004 08:00 |
Shock Trooper
Member # 3276
|
written Wednesday, June 23 2004 10:52
Profile
Thanks, my script has no errors anymore. EDIT: Now I understand. Thanks man. [ Wednesday, June 23, 2004 11:36: Message edited by: GIFTSare2nice ] Posts: 249 | Registered: Saturday, July 26 2003 07:00 |