Axe Software Forums
  Quest Developer Forum
  What stupid mistake have i made this time then?


Author Topic:   What stupid mistake have i made this time then?
Luridii posted 05-08-2001 11:59 GMT     
my battle sys is in a library. In it theres a setup procedure

!include <battle.lib> is at the top of my asl file

define procedure <setup>
...
end define

this is in the library (... represents loads of defineing variables etc!)

in the startscript of my asl file there is do <setup>

I run the game...and it tells me the procedure doesn't exist!
(It does the same with all the other procedures in the library)

...so whats my stupid mistake this time?

Alex posted 05-08-2001 13:15 GMT          
Doesn't seem to be any mistake to me - can you send me your ASL file and library please?
Computer Whizz posted 05-08-2001 14:58 GMT          
in the library, did you put !library on the first line?
Did you put !asl-version <284> in there?

Did you remember that define procedure's don't have to go into anything, eg:
!addto game
define variable <>
.....
end define
!end
==============
HERE'S WHERE THE PROCEDURE'S GO!!!
==============

Well, other then that I can't think of anything else!

Computer Whizz

Luridii posted 05-08-2001 16:53 GMT          
Ive remembered everything in cws list, i'll send the files now.
Luridii posted 07-08-2001 14:53 GMT          
Hey I fixed it! :eek:

In the library I put an extra end define after i'd defined the rooms, and it worked. Now it sees the procedures, but tells in the log me i have too many end defines.

However I have some strings set up with |cl |b etc in them, it can see that they're there in the strings debug menu, but it tells me they're not there in the log file. And if I put them at the start of the text i want to format it doesnt work...

Computer Whizz posted 07-08-2001 22:59 GMT          
aahhh, yes... the old "There's no variable 'name'" bug. I've had that. I've set up a string variable named 'name' in the startscript..... Then it only comes up with the log window saying "there's no variable defined!!".

Computer Whizz