Macready Posted April 11, 2006 Share Posted April 11, 2006 Hello - Sorry if you already know about any/all of these. All of the errors should be pretty evident, except for the first one...I couldn't see what is wrong there (but then, I'm not a practiced scripter). I have corrected versions of the other files if anyone wants them. [bG1NPC/scripts/X#CORAN.BAF] loaded, 10944 bytes [bG1NPC/scripts/X#CORAN.BAF] ERROR at line 22 column 1-0 Near Text: Failure("lexing: empty token") ERROR: parsing [bG1NPC/scripts/X#CORAN.BAF]: Failure("lexing: empty token") Compiling 1 dialogue file ...WARNING: cannot verify trigger ~InParty("Jaheira") !Dead("Jaheira)~: Failure("lexing: empty token") WARNING: cannot verify trigger ~InParty("Jaheira") !Dead("Jaheira)~: Failure("lexing: empty token") WARNING: cannot verify trigger ~InParty("Jaheira") !Dead("Jaheira)~: Failure("lexing: empty token") [bG1NPC/Phase2/DLG/X#JAQU.d] parsed Compiling 1 dialogue file ...WARNING: cannot verify action ~SetGlobal("DynaheirRomanceInactive",GLOBAL",1)~: Failure("lexing: empty token") WARNING: cannot verify trigger ~Global("HeRashemi",GLOBAL",1)~: Failure("lexing: empty token") WARNING: cannot verify trigger ~Global("HeRashemi",GLOBAL",1)~: Failure("lexing: empty token") [bG1NPC/DYROM/DLG/X#DYRO.D] parsed Compiling 1 dialogue file ...WARNING: cannot verify trigger ~RandomNum(8,1) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found WARNING: cannot verify trigger ~RandomNum(8,2) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found WARNING: cannot verify trigger ~RandomNum(8,3) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found WARNING: cannot verify trigger ~RandomNum(8,4) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found WARNING: cannot verify trigger ~RandomNum(8,5) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found WARNING: cannot verify trigger ~RandomNum(8,6) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found WARNING: cannot verify trigger ~RandomNum(8,7) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found WARNING: cannot verify trigger ~RandomNum(8,8) InParty(Edwin) !Dead(Edwin) Global("ALED2","LOCALS",1)~: Not_found [bG1NPC/Phase2/DLG/X#PCINIT.d] parsed Link to comment
Sir BillyBob Posted April 16, 2006 Share Posted April 16, 2006 I found these also. It seems to be caused by the newer Weidu Setup.exe files. These errors never appeared in the older ones. Domi, I don't know if I was clear about this before but I found that the error went away if you break out the conditions to be one per line. The newer Weidu (188 and 189) seems to choke when looking at multiple conditions on one line of code. However, it doesn't break all the time, so I don't know which part the code is the real problem. I solved this in the BGT version by going through each of these BAF files and placing Hard Returns after each condition. A slow process but it does stop the error messages. Link to comment
Macready Posted April 16, 2006 Author Share Posted April 16, 2006 Hello - Well, there are clear syntax errors in many of those lines (unclosed quotes, no quotes in the case of edwin, and so forth), and fixing those errors eliminated the problems. The only one I couldn't figure out was the first one. Link to comment
cmorgan Posted April 16, 2006 Share Posted April 16, 2006 Domi is away on vacation, but some of these I know she has reported already addressed in the next version. Those of us learning coding, (i.e. me) would love to learn about this, though; by "hard return after every condition", do you mean IF ~RandomNum(8,3) InParty("Edwin") !Dead("Edwin") Global("ALED2","LOCALS",1)~ THEN instead of one line IF ~RandomNum(8,3) InParty("Edwin") !Dead("Edwin") Global("ALED2","LOCALS",1)~ THEN Link to comment
Sir BillyBob Posted April 16, 2006 Share Posted April 16, 2006 Edwin did need the quotes. The "empty token" problem seemed to only be fixed by changing the conditions as cmorgan has displayed (yes, that is exactly what I meant by hard returns). I also found that by using cut-and-paste on the BAF files, NI would except the 1 line conditions but DLTCEP would not. I guess because DLTCEP uses whatever Weidu file you give it and if that is a later version, you will get the compile problem. I am not sure how NI compiles BAF files. Link to comment
Macready Posted April 16, 2006 Author Share Posted April 16, 2006 Hello - Edwin did need the quotes. The "empty token" problem seemed to only be fixed by changing the conditions as cmorgan has displayed (yes, that is exactly what I meant by hard returns). I also found that by using cut-and-paste on the BAF files, NI would except the 1 line conditions but DLTCEP would not. I guess because DLTCEP uses whatever Weidu file you give it and if that is a later version, you will get the compile problem. I am not sure how NI compiles BAF files. <{POST_SNAPBACK}> OK, I imagine that fixes the first one then. In the case of #2, "Jaheira is missing a closing quotation. In the case of #3, GLOBAL" is missing an opening quotation. Link to comment
Andyr Posted April 18, 2006 Share Posted April 18, 2006 Can anyone confirm that WeiDU is really choking on multiple actions on the same input line, or are all these reports missing quotes? Link to comment
Macready Posted April 18, 2006 Author Share Posted April 18, 2006 Hello - Can anyone confirm that WeiDU is really choking on multiple actions on the same input line, or are all these reports missing quotes? <{POST_SNAPBACK}> In all but the first case, quotes were really missing, and fixing that made the errors go away. I have no idea what is wrong with the Coran file. Link to comment
Andyr Posted April 18, 2006 Share Posted April 18, 2006 Can someone post the offending script? Link to comment
Macready Posted April 18, 2006 Author Share Posted April 18, 2006 Hello - Can someone post the offending script? <{POST_SNAPBACK}> The filenames are in the original quotations. Link to comment
Andyr Posted April 18, 2006 Share Posted April 18, 2006 Yeah, I know, but I don't have it and can't get it at the moment here. Link to comment
Macready Posted April 18, 2006 Author Share Posted April 18, 2006 Hello - Yeah, I know, but I don't have it and can't get it at the moment here. <{POST_SNAPBACK}> Ah, sorry. I'll email you corrected version of those files. I'll include the Coran one, which I didn't touch, because I have no idea what to do to make weidu stop bitching about it. Link to comment
Andyr Posted April 18, 2006 Share Posted April 18, 2006 I wasn't expecting that. Thanks very much for the help! Link to comment
the bigg Posted April 18, 2006 Share Posted April 18, 2006 I got X#CORAN.baf to compile under WeiDU 192, sorry for the trouble (there were some internal errors). Link to comment
Andyr Posted April 18, 2006 Share Posted April 18, 2006 So was the Coran script a WeiDU error, or a script one? In other words, is there something we need to change? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.