Guest Guest_Faelan_* Posted May 22, 2009 Share Posted May 22, 2009 Hello I'm completely new to modding business and I have done nothing in the like so I'm having a lot of trouble with Weidu. For some reason it's giving me a lot of errors, and if I try to fix it, it gives me another error. I did everything according to the tutorials, I tried every one I could find but it won't work. I hope you guys can help me. I might seem dumb, but I really can't comprehend these things and it got me a bit frustrated. This is my TP2 file: BACKUP ~Skygge/backup~ AUTHOR ~Tapetape (tapetape@live.be)~ BEGIN ~Skygge for BG2:SoA~ COPY ~Skygge/T#SKY.cre~ ~override/SKYGGE.cre~ SAY NAME1 ~Skygge~ SAY NAME2 ~Skygge~ SAY HAPPY ~It seems I made the right decision joining you.~ SAY UNHAPPY_ANNOYED ~I'm not sure if you're actions are rightful.~ SAY UNHAPPY_SERIOUS ~This is not what I had expected!~ SAY UNHAPPY_BREAKING ~That's it! No matter what mother says, I'm not staying with you for another second!~ SAY LEADER ~I'm of much more use in the rear, but I accept, seeing as I *AM* indeed most able of this position!~ SAY TIRED ~I demand we rest, right now!~ SAY BORED ~The road is long, we should be going soon.~ SAY BATTLE_CRY1 ~Attack!~ SAY BATTLE_CRY2 ~Feel the Dragon's fury!~ SAY BATTLE_CRY3 ~An arrow, served straight to the heart!~ SAY BATTLE_CRY4 ~Be prepared to meet you ancestors.~ SAY DAMAGE ~You will PAY for this!~ SAY DYING ~Heal me, now!~ SAY AREA_FOREST ~Being here brings back so much memories.~ SAY AREA_CITY ~I can feel the burning of their eyes, I insist we go soon.~ SAY AREA_DUNGEON ~Ah... Home sweet home!~ SAY AREA DAY ~The sun... No matter how it tries, it will never tan my skin. *sigh*~ SAY AREA_NIGHT ~This reminds me of the good old times.~ SAY SELECT_COMMON1 ~Say the word.~ SAY SELECT_COMMON2 ~Yes?~ SAY SELECT_COMMON3 ~I'm all ears.~ SAY SELECT_COMMON4 ~Yeaaaahh?~ SAY SELECT_COMMON5 ~Need an arrow or two?~ SAY SELECT_COMMON6 ~What is it now?~ SAY SELECT_ACTION1 ~Sure thing!~ SAY SELECT_ACTION2 ~I'm on it!~ SAY SELECT_ACTION3 ~Okay.~ SAY SELECT_ACTION4 ~My pleasure.~ SAY SELECT_ACTION5 ~Here I go.~ SAY SELECT_ACTION6 ~You sure?~ SAY SELECT_ACTION7 ~An easy task.~ SAY SELECT_RARE1 ~Ready for action!~ SAY SELECT_RARE2 ~The pleasure is all mine.~ SAY CRITICAL_HIT ~Hell yeah!~ SAY CRITICAL_MISS ~Impossible!~ SAY TARGET_IMMUNE ~It seems like I'm not doing any damage at all!~ SAY INVENTORY_FULL ~Nope! Can't carry it.~ COMPILE ~Skygge/T#Sky.d~ EXTEND_TOP ~AR0406.bcs~ ~Skygge/AR0406.baf~ APPEND ~pdialog.2da~ ~T#Sky T#SkyP T#SkyJ T#SkyD T#Sky25P T#Sky25J T#Sky25D T#Sky25~ UNLESS ~T#Sky~ APPEND ~interdia.2da~ ~T#Sky T#SkyB T#SkyB25~ UNLESS ~T#Sky~ and this is the error I get: WeiDU v 21000 Log G:\Program Files\Baldurs Gate\BG2-SOA\SETUP-SKYGGE.exe [./CHITIN.KEY] loaded, 590551 bytes [./CHITIN.KEY] 182 BIFFs, 41793 resources [dialog.tlk] loaded, 8692747 bytes [dialog.tlk] 74107 string entries [./Autorun.ini] loaded, 1452 bytes [./baldur.ini] loaded, 3669 bytes Possible HD/CD Path: [G:\Program Files\Baldurs Gate\BG2-SOA\] Possible HD/CD Path: [D:\CD1\] Possible HD/CD Path: [G:\Program Files\Baldurs Gate\BG2-SOA\CD2\] Possible HD/CD Path: [D:\CD2\] Possible HD/CD Path: [D:\CD3\] Possible HD/CD Path: [D:\CD4\] Possible HD/CD Path: [G:\Program Files\Baldurs Gate\BG2-SOA\CD5\] [./CharView.ini] loaded, 179 bytes [./Keymap.ini] loaded, 5615 bytes [./Mplaynow.ini] loaded, 230 bytes [./Setup.ini] loaded, 205 bytes [G:\Program Files\Baldurs Gate\BG2-SOA\SETUP-SKYGGE.exe] Using scripting style "BG2" [dialog.tlk] claims to be writeable. [dialog.tlk] claims to be a regular file. WARNING: parsing log [WeiDU.log]: Sys_error("WeiDU.log: No such file or directory") [sKYGGE/SETUP-SKYGGE.TP2] PARSE ERROR at line 27 column 1-28 Near Text: reminds GLR parse error [sKYGGE/SETUP-SKYGGE.TP2] ERROR at line 27 column 1-28 Near Text: reminds Parsing.Parse_error ERROR: parsing [sKYGGE/SETUP-SKYGGE.TP2]: Parsing.Parse_error ERROR: problem parsing TP file [sKYGGE/SETUP-SKYGGE.TP2]: Parsing.Parse_error FATAL ERROR: Parsing.Parse_error WeiDU Timings load TLK 0.000 Parsing TP2 files 0.000 loading files 0.140 unmarshal TLK 0.401 stuff not covered elsewhere 0.551 unmarshal KEY 1.642 TOTAL 2.734 So I tried to remove all of the 'Say' things and then I got this: WeiDU v 21000 Log G:\Program Files\Baldurs Gate\BG2-SOA\SETUP-SKYGGE.exe [./CHITIN.KEY] loaded, 590551 bytes [./CHITIN.KEY] 182 BIFFs, 41793 resources [dialog.tlk] loaded, 8692747 bytes [dialog.tlk] 74107 string entries [./Autorun.ini] loaded, 1452 bytes [./baldur.ini] loaded, 3669 bytes Possible HD/CD Path: [G:\Program Files\Baldurs Gate\BG2-SOA\] Possible HD/CD Path: [D:\CD1\] Possible HD/CD Path: [G:\Program Files\Baldurs Gate\BG2-SOA\CD2\] Possible HD/CD Path: [D:\CD2\] Possible HD/CD Path: [D:\CD3\] Possible HD/CD Path: [D:\CD4\] Possible HD/CD Path: [G:\Program Files\Baldurs Gate\BG2-SOA\CD5\] [./CharView.ini] loaded, 179 bytes [./Keymap.ini] loaded, 5615 bytes [./Mplaynow.ini] loaded, 230 bytes [./Setup.ini] loaded, 205 bytes [G:\Program Files\Baldurs Gate\BG2-SOA\SETUP-SKYGGE.exe] Using scripting style "BG2" [dialog.tlk] claims to be writeable. [dialog.tlk] claims to be a regular file. WARNING: parsing log [WeiDU.log]: Sys_error("WeiDU.log: No such file or directory") Install Component [skygge for BG2:SoA]? nstall, or [N]ot Install or [Q]uit? Installing [skygge for BG2:SoA] Copying and patching 1 file ... [skygge/T#SKY.cre] loaded, 3184 bytes Copied [skygge/T#SKY.cre] to [override/SKYGGE.cre] Compiling 1 dialogue file ... [./override/TRIGGER.IDS] loaded, 7725 bytes [skygge/T#Sky.d] PARSE ERROR at line 35 column 1-34 Near Text: DO syntax error [skygge/T#Sky.d] ERROR at line 35 column 1-34 Near Text: DO Parsing.Parse_error ERROR: parsing [skygge/T#Sky.d]: Parsing.Parse_error ERROR: compiling [skygge/T#Sky.d]! Stopping installation because of error. ERROR Installing [skygge for BG2:SoA], rolling back to previous state [skygge/backup/0/UNSETSTR.0] SET_STRING uninstall info not found Will uninstall 1 files for [sKYGGE/SETUP-SKYGGE.TP2] component 0. Uninstalled 1 files for [sKYGGE/SETUP-SKYGGE.TP2] component 0. ERROR: Parsing.Parse_error PLEASE email the file SETUP-SKYGGE.DEBUG to Tapetape (tapetape@live.be) Install Component [skygge for BG2:SoA]? nstall, or [N]ot Install or [Q]uit? Link to comment
Faelan Posted May 22, 2009 Share Posted May 22, 2009 ... I should have logged in to post that, lmao. Link to comment
Mike1072 Posted May 22, 2009 Share Posted May 22, 2009 [sKYGGE/SETUP-SKYGGE.TP2] PARSE ERROR at line 27 column 1-28Near Text: reminds GLR parse error Generally, a parsing error at a given line number refers to an error on that line or before that line. This error is probably referring to the line here: SAY AREA DAY ~The sun... No matter how it tries, it will never tan my skin. *sigh*~ There needs to be an underscore between AREA and DAY, so that it's AREA_DAY. Commenting out/removing the SAY commands was a good way to find out if that's where the error was located, but in doing so you exposed a different error that you have. [skygge/T#Sky.d] PARSE ERROR at line 35 column 1-34Near Text: DO syntax error This means that you have a typo somewhere in your T#Sky.d file that you'll have to track down and fix, too. Link to comment
Faelan Posted May 22, 2009 Share Posted May 22, 2009 Okay, that's solved. But of course, there's a new row of errors waiting. I added the _'s, now I get this: Install Component [skygge for BG2:SoA]? nstall, or [N]ot Install or [Q]uit? Installing [skygge for BG2:SoA] Copying 42 files ... [skygge/T#SKY.cre] loaded, 3184 bytes Copied [skygge/T#SKY.cre] to [override/SKYGGE.cre] ERROR: error loading [sAY_NAME1] Stopping installation because of error. ERROR Installing [skygge for BG2:SoA], rolling back to previous state [skygge/backup/0/UNSETSTR.0] SET_STRING uninstall info not found Will uninstall 1 files for [sKYGGE/SETUP-SKYGGE.TP2] component 0. Uninstalled 1 files for [sKYGGE/SETUP-SKYGGE.TP2] component 0. ERROR: Unix.Unix_error(20, "stat", "SAY_NAME1") and if I remove the say's... [sKYGGE/SETUP-SKYGGE.TP2] PARSE ERROR at line 5 column 1-10 Near Text: COMPILE GLR parse error [sKYGGE/SETUP-SKYGGE.TP2] ERROR at line 5 column 1-10 Near Text: COMPILE Parsing.Parse_error ERROR: parsing [sKYGGE/SETUP-SKYGGE.TP2]: Parsing.Parse_error ERROR: problem parsing TP file [sKYGGE/SETUP-SKYGGE.TP2]: Parsing.Parse_error FATAL ERROR: Parsing.Parse_error This is the compile line and the ones after it; anything wrong with them? I had to add the two '~~' else he wouldn't read it. ~~ COMPILE ~Skygge/T#SKY.D~ EXTEND_TOP ~AR0406.bcs~ ~Skygge/AR0406.baf~ APPEND ~pdialog.2da~ ~T#Sky T#SkyP T#SkyJ T#SkyD T#Sky25P T#Sky25J T#Sky25D T#Sky25~ UNLESS ~T#Sky~ APPEND ~interdia.2da~ ~T#Sky T#SkyB T#SkyB25~ UNLESS ~T#Sky~ Link to comment
Jarno Mikkola Posted May 22, 2009 Share Posted May 22, 2009 Okay, that's solved. But of course, there's a new row of errors waiting.I added the _'s, now I get this: Install Component [skygge for BG2:SoA]? nstall, or [N]ot Install or [Q]uit? Installing [skygge for BG2:SoA] Copying 42 files ... [skygge/T#SKY.cre] loaded, 3184 bytes Copied [skygge/T#SKY.cre] to [override/SKYGGE.cre] ERROR: error loading [sAY_NAME1] And what you should have done is to replace this:SAY AREA_DUNGEON ~Ah... Home sweet home!~ SAY AREA DAY ~The sun... No matter how it tries, it will never tan my skin. *sigh*~ SAY AREA_NIGHT ~This reminds me of the good old times.~ With this: SAY AREA_DUNGEON ~Ah... Home sweet home!~ SAY AREA_DAY ~The sun... No matter how it tries, it will never tan my skin. *sigh*~ SAY AREA_NIGHT ~This reminds me of the good old times.~ Notice the SAY AREA_DAY ~ ...-structure. And nothing else. Now, if you wish to know what error is reported on the d file, we need to see the file, or at least part of it. Link to comment
Faelan Posted May 22, 2009 Share Posted May 22, 2009 Oh, oops! Fixed that. Here is the whole thing. BEGIN T#SKY IF ~NumTimesTalkedTo (0)~ THEN BEGIN Talk1 SAY ~My humblest greetings to you, good adventurer, my name is Skygge~ IF ~~ THEN REPLY ~Well met, madam, the name's <CHARNAME>. May I ask you what you are doing around here, alone?~ GOTO sky1.0 IF ~~ THEN REPLY ~Good day and goodbye, I have no time to talk.~ GOTO sky1.1 IF ~~ THEN REPLY ~What is it you want?!~ GOTO sky1.2 IF ~~ THEN REPLY ~Speak up, woman!~ GOTO sky1.2 END IF ~~ THEN BEGIN sky1.0 SAY ~Seeking adventure, thrills... The usual stuff. Though I tire of this lonesome life and I would like to have some company once in a while. Do you mind?~ IF ~~ THEN REPLY ~I have no time for needless banter, get to the point.~ GOTO sky1.3 IF ~~ THEN REPLY ~Sure, speak your mind.~ GOTO sky1.3 END IF ~~ THEN BEGIN sky1.1 SAY ~Very well, goodbye.~ END IF ~~ THEN BEGIN sky1.2 SAY ~I apologize if I intrude. I am merely in search for adventurers, such as yourself, to join. Your company seems merry enough, maybe my bow and arrows could lighten things up.~ IF ~~ THEN REPLY ~Keep the sarcasm to yourself, Halfelf, I am in no need of another lackey. Leave.~ EXIT IF ~~ THEN REPLY ~You are in luck this time, Halfelf, we happen to be short of a ranger.~ GOTO skyjoin IF ~~ THEN REPLY ~You may join if you drop the temper.~ GOTO sky1.4 END IF ~~ THEN BEGIN 1.3 SAY ~There is no story to it, I am merely in search for adventurers, such as yourself, to join. My skills with the bow aren't to be compensated.~ IF ~~ THEN REPLY ~Very well, you are welcome to join us.~ GOTO skyjoin IF ~~ THEN REPLY ~I apologize, but we have no need for an archer at this time.~ GOTO skyleave END IF ~~ THEN BEGIN 1.4 SAY ~I understand, forgive me.~ DO ~SetGlobal ("SkyggeJoined","LOCALS",1)JoinParty()~ EXIT END IF ~~ THEN BEGIN skyjoin SAY ~I promise I won't disappoint.~ DO ~SetGlobal ("SkyggeJoined","LOCALS",1)JoinParty()~ EXIT END IF ~~ THEN BEGIN skyleave SAY ~I understand, I will be waiting here if you change your mind.~ EXIT END IF ~NumTimesTalkedToGT(0)~ THEN BEGIN ReturnDialogue SAY ~Ah, you have returned at last! Have you changed your mind?~ IF ~~ THEN REPLY ~Yes, get in the party.~ DO ~SetGlobal ("SkyggeJoined","LOCALS",1) JoinParty()~ EXIT IF ~~ THEN REPLY ~No, of course not!~ GOTO RefusedAgain END IF ~~ THEN BEGIN RefusedAgain SAY ~*Sigh* I will be waiting here, but my patience isn't everlasting. (At this rate, I'm getting nowhere!)~ IF ~~ THEN EXIT END BEGIN T#SkyP IF ~Global("SkyggeJoined","LOCALS",1)~ THEN BEGIN KickOut SAY ~What are you mumbling about, you want me to leave the party?~ IF ~~ THEN REPLY ~That's not what I was saying, stick with us, Skygge.~ DO ~SetGlobal("SkyggeJoined","LOCALS",1) JoinParty()~ EXIT IF ~~ THEN REPLY ~That's right, I don't want you around us anymore!~ DO ~SetGlobal ("SkyggeJoined","LOCALS",0)~ EXIT END IF ~Global("SkyggeJoined","LOCALS",0)~ THEN BEGIN Rejoin SAY ~What is it, can't you make up your mind?~ IF ~~ THEN REPLY ~Get back there, Skygge.~ DO ~SetGlobal("SkyggeJoined","LOCALS",1) JoinParty()~ EXIT IF ~~ THEN REPLY ~Fine then, stay here some longer!~ EXIT IF ~~ THEN REPLY ~I won't ever be needing you services anymore, begone!.~ DO ~EscapeArea()~ EXIT END Link to comment
Jarno Mikkola Posted May 22, 2009 Share Posted May 22, 2009 IF ~~ THEN BEGIN 1.4SAY ~I understand, forgive me.~ DO ~SetGlobal ("SkyggeJoined","LOCALS",1)JoinParty()~ EXIT END IF ~~ THEN BEGIN skyjoin SAY ~I promise I won't disappoint.~ DO ~SetGlobal ("SkyggeJoined","LOCALS",1)JoinParty()~ EXIT END It's probably the Do ~SetGlobal("... Thing, as the structure needs to be exactly: IF ~~ THEN BEGIN 1.4 SAY ~I understand, forgive me.~ DO ~SetGlobal("SkyggeJoined","LOCALS",1) JoinParty()~ EXIT END IF ~~ THEN BEGIN skyjoin SAY ~I promise I won't disappoint.~ DO ~SetGlobal("SkyggeJoined","LOCALS",1) JoinParty()~ EXIT END So it needs the space between the ..."LOCALS",1) and JoinPa... or the line brake between the DO ~SetGlobal and ("SkyggeJoined"... is not such a good thing. Link to comment
Taimon Posted May 22, 2009 Share Posted May 22, 2009 IF ~~ THEN BEGIN 1.4 SAY ~I understand, forgive me.~ DO ~SetGlobal ("SkyggeJoined","LOCALS",1)JoinParty()~ EXIT END IF ~~ THEN BEGIN skyjoin SAY ~I promise I won't disappoint.~ DO ~SetGlobal ("SkyggeJoined","LOCALS",1)JoinParty()~ EXIT END These two states have invalid transitions. Add IF ~~ THEN before the DO. Link to comment
Faelan Posted May 22, 2009 Share Posted May 22, 2009 Thanks, both, I'll check it out. Link to comment
Jarno Mikkola Posted May 22, 2009 Share Posted May 22, 2009 By the way, you also have this: IF ~~ THEN REPLY ~That's not what I was saying, stick with us, Skygge.~ DO ~SetGlobal("SkyggeJoined","LOCALS",1) JoinParty()~ EXIT IF ~~ THEN REPLY ~That's right, I don't want you around us anymore!~ DO ~SetGlobal ("SkyggeJoined","LOCALS",0)~ EXIT END The first line doesn't need alteration but the third and 4th line need to be: IF ~~ THEN REPLY ~That's right, I don't want you around us anymore!~ DO ~SetGlobal("SkyggeJoined","LOCALS",0)~ EXIT END You probably could blame the Notepad for all of that, but usually it's best to do all the mod coding without the automatic lining in the Notepad. Link to comment
Faelan Posted May 22, 2009 Share Posted May 22, 2009 It appears something is wrong with the 'Exits' and the 'Ends'? Oh, I'm trying out something now, just a sec. Link to comment
Jarno Mikkola Posted May 22, 2009 Share Posted May 22, 2009 It appears something is wrong with the 'Exits' and the 'Ends'? Then it was probably referring to these:IF ~~ THEN BEGIN sky1.1SAY ~Very well, goodbye.~ END ... IF ~~ THEN BEGIN RefusedAgain SAY ~*Sigh* I will be waiting here, but my patience isn't everlasting. (At this rate, I'm getting nowhere!)~ IF ~~ THEN EXIT END That they should be:IF ~~ THEN BEGIN sky1.1 SAY ~Very well, goodbye.~ EXIT END ... IF ~~ THEN BEGIN RefusedAgain SAY ~*Sigh* I will be waiting here, but my patience isn't everlasting. (At this rate, I'm getting nowhere!)~ EXIT END Link to comment
Faelan Posted May 22, 2009 Share Posted May 22, 2009 It works now! Thanks a lot, I got no more errors at the moment. Link to comment
Faelan Posted May 22, 2009 Share Posted May 22, 2009 I have a question about kicking out the npc out of your group. In one guide it is said like this: IF ~Global("VondoJoined","LOCALS",1)~ THEN BEGIN KickOut SAY ~You are now kicking me out.~ IF ~~ THEN REPLY ~Oops, I meant to boot that twit Anomen, not you. Sorry~ DO ~JoinParty()~ EXIT IF ~~ THEN REPLY ~That's right, I don't want you in the party.~ DO ~SetGlobal("VondoJoined","LOCALS",0)~ EXIT END While in the other it is formulated like this: IF ~Global("JohnJoined","LOCALS",1)~ THEN BEGIN LeaveGroup SAY ~What? You don't need me?~ IF ~~ THEN REPLY ~My mistake, please stay.~ DO ~JoinParty()~ EXIT IF ~~ THEN REPLY ~You suck. Bye.~ EXIT END Which one is right, or do they both work fine? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.