Too Many }

Miss Laura
11 Jan 2007, 17:23
Hello everyone, I searched on your forum but I could not find a similar problem to mine. This is my first time making a game, so I am only using the trial version to test it out. I got pretty far, but then strange things started to happen. The program began deleting bits of script, especially messages, and replacing groups of conditional commands with "internal procedure 32," for example. After frantically running around and redoing all of those groups, now it won't run the game at all. It says "unable to open the file... too many }"

:shock:

I don't even know where to start with these } things. Has anyone had this happen to them before or know what causes it?

Miss Laura
11 Jan 2007, 17:29
update: Now I can't even edit the game. In the error log it says "FATAL ERROR: Too many }"

I don't know what a } is but I wish it was never invented!

Elexxorine
11 Jan 2007, 18:59
Calm down. Orn up notepad, and open your game wth it... Copy it all here, I'll repost the fix version, th you copy it into notepad, go 'save as'and mak sure 'all file types' is set and save it as 'abc.asl' (replacin abc with the name you want. I'm not sure how QDK iself has done this error, as you're obviously not coding by hand.

Miss Laura
11 Jan 2007, 20:11
Thank you very much. I found the extra } and deleted it, but I still need help with the editor sabotaging my game! :lol: I'm not yet ready for using notepad to do all the coding, but maybe it's what I'll have to do.

paul_one
11 Jan 2007, 21:11
You might wanna make sure you destroyed the correct bracket.

.. or else you may end up with something a bit wrong, which could crash Quest.

I make myself available for people who wish to get their games checked over.
Email: old486whizz@hotmail.com

Miss Laura
11 Jan 2007, 21:50
I still can't run the game, now it says "Runtime error 326 - Resource with idenitifier 'version' not found." I'll post my define game code here, because that's where it sounds like the problem would be:

define game <Cowboy>
asl-version <350>
gametype singleplayer
start <Kitchen>
game author <Laura Aldridge>
game version <1.0>
game copyright <© 2007>
game info <Created with QDK 3.53 - UNREGISTERED EVALUATION VERSION.>
command <look at self> msg <You're totally hot: hat, boots, ice blue eyes, crooked grin, devil-may-care attitude.>
command <dance> msg <You kick your heels and do a jig, accomplishing nothing at all!>
command <tip hat> if ask <You have now won the game. But if you would like to keep playing anyway, please select "no."> then playerwin else msg <Play on, cowboy, play on.>
command <kiss #@object#> if property <#@object#; talk> then msg <#@object# slaps you. "Fresh!"> else msg <You could get a disease that way.>
error <defaultspeak; #quest.error.gender# is the strong, silent type.>
end define

If there's nothing suspect in there then I guess I could e-mail the whole game to you guys. PS: I'm not related to that David Aldridge guy who did the hungry goblin game. :)

Alex
11 Jan 2007, 23:39
I don't get a run-time error when I try that on my machine - could you please send me the entire ASL file and I will take a look into it.

witch wyzwurd
11 Jan 2007, 23:51
Hey Miss,

It would probably be a good idea for you to at least learn what the curly braces perform in ASL code, so you won't have to post a similar complaint again. The code you posted doesn't include any curly braces, so this portion of your game must not be the source of the error. If you look through your code, you'll discover that where certain blocks of code exist, there will be curly braces (an open-brace followed by a close-brace). See how they portion off if-then statements with more than one "then" statement? Consider the braces as a logical way to section off these blocks of code. So each open-brace needs a close-brace. If you have an unbalanced quantity of open or close braces, then Quest will find error when trying to read your code. Makes sense doesn't it?

Miss Laura
12 Jan 2007, 07:02
Hey guys - that "version" error fixed itself when I restarted this bloody computer!! Haha, you'd think I was on a vic-20 or something, jeez. :D

So the game is running again, and the bugs now are nothing I can't fix by myself. I appreciate the offers and advice, everyone, you're a good group. I'll share the game when I'm done - it's nothing too challenging, but it's a fun story. Thanks again!

roba4ever
12 Jan 2007, 07:34
hmmmm, confusing error, simple cure lol

Elexxorine
12 Jan 2007, 08:22
No problems, just to help you if you need help come to either me or Tron, as we're the most active really good programmers here, and I'm best with mutliplayer in the whole pool of people (not boasting, everyone told me this!!! :oops: ). If you need anythnig else sorting out jsut ask.

Cryophile
13 Jan 2007, 02:44
elexxorine wrote:No problems, just to help you if you need help come to either me or Tron, as we're the most active really good programmers here


What about me? :cry:

paul_one
13 Jan 2007, 03:42
It's alright mate - you've only just come back on the scene..

If you wanna help out I'm sure you're (WAY) more than capable!
*gulp*
.. I'd better step down from my pedestal... :shock:

Elexxorine
13 Jan 2007, 13:09
I am the master of mutliplayer, Tron said it himself!!!

steve the gaming guy
12 Feb 2007, 02:02
I've seen the problem myself when I have manually coded something and it was an easy fix.
I recently (today) had it happen because I am getting back into v3.5 to finish a game I started last year. When I attempted to finish it in v4.0, it screwed up the game so it wouldn't open.
Now that I got v3.5 up and running, it tells me "FATAL ERROR: too many }" So I'm going through the file in notepad pain stakingly... I thought I would come see if there was an easier way to find it. I don't think there is.

steve the gaming guy
12 Feb 2007, 02:16
I don't know how I found it so quick. But there were two instances... Hurray! One step back on track!

Alex
12 Feb 2007, 10:10
How did v4.0 "screw up" your v3.53 game? It certainly shouldn't.

I'm aware there are issues in v3.53 with it sometimes saving the wrong number of braces and so on - v4.0 should be much more reliable in this respect.

steve the gaming guy
12 Feb 2007, 15:01
I thought v4.0 was what caused it. Maybe it was a coincidence since it happened the moment I installed the new version. I'm not trying to be negative about v4.0. After I'm done with my current project, I want to give a new game in v4.0 a shot.