Axe Software Forums
  Quest Developer Forum
  Warning Error: Not Found Object 'toast'


Author Topic:   Warning Error: Not Found Object 'toast'
Russell posted 12-12-2001 16:26 GMT     
I almost had my game done. (Well close to it anyway.) And decided to open an asl.log file for it. Warning Error: Not Found Object 'toast' was what I kept getting. A Bug? Here is the code for a test game that produces the same error.
' "Test Objects"
' Created with QDK 3.02

define game <Test Objects>
asl-version <300>
start <test room>
game author <ME>
game version <1>
game info <Created with QDK 3.02>
command <reveal#toast#> {
show <toast>
reveal <toast>
}
end define

define synonyms
end define

define room <test room>
prefix <a>

define object <toast>
look msg <Nice and brown.>
take
speak msg <I am a piece of toast.>
examine msg <Extra Crispy.>
prefix <a piece of>
hidden
invisible
end define

define object <jam>
look msg <red>
take
speak msg <Jam I am.>
examine msg <sticky>
prefix <a smear of>
end define

indescription <You are in:>
end define

define text <intro>

end define

define text <win>

end define

define text <lose>

end define
Notice it produces the error for toast (which is initially unavailable and invisible, but not jam which is both available and visible.) Thanks in advance for your consideration.

Computer Whizz posted 12-12-2001 22:36 GMT          
Well, it shouldn't do ANYTHING with Jam - as the code you wrote specifies "Toast" and not "#toast#".
If you put reveal <#toast#> then it would refer to the variable earlier on and so reveal whatever we had typed in!

Computer Whizz

Alex posted 12-12-2001 22:56 GMT          
You're right CW but Russell is correct in that there's a bug at work. It seems that if you reveal an object that is hidden, you get a warning error telling you that it doesn't exist, even though the object reveals itself properly. Not sure what that's all about. I'll take a look into it...
Computer Whizz posted 12-12-2001 23:14 GMT          
Yes... I just tried it out and it seems REALLY weird!!
It works - but reports a bug... !?!?

Computer Whizz

carlii posted 31-12-2001 08:52 GMT          
Will we be seeing your game anytime soon Russell?