Icendoan Posted March 16, 2008 Share Posted March 16, 2008 I have googled it, looked at it through ConTEXT highlighters, checked the Readme and then I have done a site search here. Here is my TP2 for my NPC I am making. The problem is that WeiDU detects no syntax errors, and nor does ConTEXT, but fails to load I#shldm.itm for copying to the override. BACKUP ~I#Mystykyl/backup~ AUTHOR ~Mystykyl@hotmail.co.uk~ BEGIN ~Mystykyl - An NPC~ ACTION_IF FILE_EXISTS_IN_GAME ~bodhi.cre~ THEN BEGIN COPY ~I#Mystykyl/Creatures/Myst1.cre~ ~override/I#myst1.cre~ SAY NAME1 ~Mystykyl~ SAY NAME2 ~Mystykyl~ SAY BIO ~When you ask Mystykyl about his past, he replies; Do you want to be stood here for the rest of your life? That is my life condensed, you cannot comprehend it.~ /*Voice strings*/ SAY MORALE ~I have never been as hard pressed in all my millenia of years!~ SAY HAPPY ~Perfect. Things are in equilibrium.~ SAY UNHAPPY_ANNOYED ~Why do you follow the extremes? It will destroy the universe~ SAY UNHAPPY_SERIOUS ~This is getting out of hand! Desist, and rebalance the scales!~ SAY UNHAPPY_BREAKING ~The powers will punish you for breaking the balance.~ SAY LEADER ~Let us travel, gain knowledge and wisdom.~ SAY TIRED ~The party's endurance surely cannot last much longer.~ SAY BORED ~Must I waste more time?~ SAY BATTLE_CRY1 ~See the balance on my blade! While symbolic, it will aid your death!~ SAY BATTLE_CRY2 ~I have mastery of both blade and spell, nothing has ended me!~ SAY BATTLE_CRY3 ~Hah, perhaps I should shut up and kill something!~ SAY BATTLE_CRY4 ~Vita , mortalitas , pondera , si vos intereo , alius mos ago.~ SAY DAMAGE ~A wound?~ SAY DYING ~NO! Not after what I have fought!~ SAY HURT ~I require aid!~ SAY AREA_FOREST ~I like forests, they are timeless and serene, but I am older than them~ SAY AREA_CITY ~What strange arcitechture your civilization has...~ SAY AREA_DUNGEON ~We're in a dungeon.~ SAY AREA_DAY ~Daytime, when all living things scurry around, in urgence.~ SAY AREA_NIGHT ~So day and night are in imbalance, how odd~ SAY SELECT_COMMON1 ~Hmm?~ SAY SELECT_COMMON2 ~What do you need?~ SAY SELECT_COMMON3 ~Yes?~ SAY SELECT_COMMON4 ~What?~ SAY SELECT_COMMON5 ~May I lend my experience?~ SAY SELECT_COMMON6 ~I'm listening.~ SAY SELECT_ACTION1 ~Uh huh.~ SAY SELECT_ACTION2 ~Sure.~ SAY SELECT_ACTION3 ~I'm on it.~ SAY SELECT_ACTION4 ~Fine.~ SAY SELECT_ACTION5 ~Not hard at all~ SAY SELECT_ACTION6 ~Yep~ SAY SELECT_ACTION7 ~Okay~ SAY SELECT_RARE1 ~What needless task have you in your mind now?~ SAY SELECT_RARE2 ~Ha, it is beneath me.~ SAY CRITICAL_HIT ~Hah!~ SAY CRITICAL_MISS ~Damn!~ SAY TARGET_IMMUNE ~This one is beyond my skills or equipment!~ SAY INVENTORY_FULL ~I cannot bear such a load!~ /*Dialogue*/ COPY ~I#Mystykyl\I#Myst.D~ ~override~ /*Items*/ COPY ~I#Mystykyl\I#shldm.itm~ ~override~ SAY NAME1 ~~ SAY NAME2 ~Mystykyl's Gem~ SAY UNIDENTIFIED_DESC ~~ SAY DESC ~This gem looks almost exactly like the one you had to fetch from Mekrath for Raelis. Mystykyl insists it is his and locks him to the plane of his choice, so he must never remove it from his person, or he will randomly teleport through thr planes.~ COPY ~I#Mystykyl\I#sw1hm.itm~ ~override~ SAY NAME1 ~~ SAY NAME2 ~Mystykyl's Sword~ SAY UNIDENTIFIED_DESC ~~ SAY DESC ~Mystykyl will never say quite where he got this, and it's power seems to be formidable. However, it is very draining on the user. Some (apparently) ancient magic binds it to him, similar to a Moonblade but not from this plane. STATISTICS Sets APR to 10. Usuable by: Mystykyl~ COPY_EXISTING ~I#Myst1.cre~ ~override~ ADD_CRE_ITEM ~I#sw1hm~ #0 #0 #0 ~WEAPON1~ ~IDENTIFIED~ EQUIP ADD_CRE_ITEM ~I#shldm~ #0 #0 #0 ~SHIELD~ ~IDENTIFIED~ COMPILE ~I#Myst.D~ /*Area scripting, to spawn*/ EXTEND_TOP ~AR0520.bcs~ ~I#Mystykyl/Scripts/AR0520.baf~ /*I have absolutely no idea what this does.*/ APPEND ~pdialog.2da~ ~I#Myst I#MystP I#MystJ I#MystD I#Mys25P I#Mys25J I#Mys25D I#Myst25~ UNLESS ~I#Myst~ APPEND ~interdia.2da~ ~I#Myst I#MystB I#MysB25~ UNLESS ~I#Myst~ END I cannot see anything wrong with the code to do with I#shldm.itm, as that is all it is complaining about at the moment. Can anyone else see if anything is wrong? I have loaded the item and checked it in DLTCEP, and that reported nothing. Thanks for your time. Also, how on earth do you code a quest? Again, I have googled it, siphoned through the endless cheatsites and I find no tutorial on it. If anyone has written any, they have been buried. Links are awesome. Icen Link to comment
Isaya Posted March 16, 2008 Share Posted March 16, 2008 You may want to get rid of this line COPY ~I#Mystykyl\I#Myst.D~ ~override~ immediately before the line copying the item. This is obviously a mistake (you shall compile a .d file). Who knows if WeiDU is not complaining on the following line? This is a very common thing with other kind of compilers (C++, ...). Link to comment
Icendoan Posted March 16, 2008 Author Share Posted March 16, 2008 I though you copied and compiled. I shall try it, at least. Didn't work, it still says it failed to load I#shldm.itm Icen Link to comment
Guest Guest Posted March 17, 2008 Share Posted March 17, 2008 check the name of the file Link to comment
Icendoan Posted March 17, 2008 Author Share Posted March 17, 2008 I have, I even copy/pasted the file name and path. I'll double check, though. Icen Link to comment
jastey Posted March 17, 2008 Share Posted March 17, 2008 Check the path name, the itm name, and whether the item is really there.. If all seems OK, lend a second pair of eyes to look at your mod folder. That's all I come up with. A "quest" can be very different, depending on what you have in mind. Basically it can be everything: a timer that gets set in the NPC's script, to define when the first quest-related intervention should start, an NPC that appears and brings a message, enemies that spawn in a special area, etc. For how to bring a non-joinable (quest) NPC into the game, berelinde wrote a tutorial here: Getting a non-joinable NPC in the game. It comes all down to: What should happen in your quest? Link to comment
Taimon Posted March 17, 2008 Share Posted March 17, 2008 What is the exact error message you are getting? Link to comment
Icendoan Posted March 17, 2008 Author Share Posted March 17, 2008 I shall post my DEBUG file. I am not currently at my home folder, otherwise I would gladly do all that is suggested. Icen Link to comment
Icendoan Posted March 17, 2008 Author Share Posted March 17, 2008 YAY! The items now install! (I was an idiot, I put the / the wrong way round >_<) Then it said it could not find my dialogue, but putting in the directory helped >_< It then complained about my dialogue, which is OK because I tried (ignorantly) to put INITDLG in the first block of the dialogue. I removed and... ...it complains even more. Here is my dialogue. I have debugged it as far as I could. It says there is a problem with line 40, column 1-2, near the text "IF". Now, what is wrong with that? BEGIN I#Myst /*DIALOGUE ONE*/ IF ~NumTimesTalkedTo(0)~ THEN BEGIN Dia1 SAY ~/*This ominous man seems to be brooding over a small flame cantrip, and struggling to keep it alight.*/~ IF ~Class(LastTalkedToBy,Mage)~ THEN REPLY ~Here, let me help you with that /*You begin supporting his spell*/~ GOTO react_g1 IF ~~ THEN REPLY ~Hello, are you all right?~ GOTO react_g2 IF ~~ THEN REPLY ~Ha, fool cannot even get a cantrip going, what are you, mageling?~ GOTO react_b1 IF ~~ THEN REPLY ~I am sorry if I intruded, I will take my leave~ EXIT END IF ~~ THEN BEGIN react_g1 SAY ~Ahh, that is better. Sorry, but this is a strange place for me.~ IF ~~ THEN REPLY ~I am glad to have helped you. Is there anything more I can do?~ GOTO react_g1.1 IF ~~ THEN REPLY ~No problem. See you around.~ EXIT IF ~~ THEN REPLY ~That was only to prove I am a better Mage!~ GOTO react_b1 END IF ~~ THEN BEGIN react_g1.1 SAY ~I wish to be more acquainted with this plane and its magicks, could I follow you for a while? I am quite apt with a blade, as well as my own spells, which I can guarantee you have never seen before.~ IF ~~ THEN REPLY ~Fine, we are always looking for another party member.~ DO ~SetGlobal("MystJoined","LOCALS",1)JoinParty()~ EXIT IF ~~ THEN REPLY ~Not at this time, but we may come back for you.~ EXIT IF ~~ THEN REPLY ~You? Never! I have helped you but I would do that for every citizen in Athkatla.~ GOTO leave_end END IF ~~ THEN BEGIN react_b1 SAY ~Here I am, trapped in the greatest fortress in the planes, and you can still laugh at me? I suppose you are trapped as well, you will soon see how far these amusements last.~ IF ~~ THEN REPLY ~Fine. I am not trapped. Nothing yet has held me. Goodbye.~ EXIT IF ~~ THEN REPLY ~Heh, rot here for all I care.~ GOTO leave_end END /*DIALOGUE 2 - Returning after letting Myst go*/ IF ~NumTimesTalkedToGT(0)~ THEN BEGIN Dial2 SAY ~Ah, so you have returned, and about time, I am really sick of the pustules and those thralls. Will you have me?~ IF ~PartyHasItem("KEY03") /*OR(1) Global(*/~ THEN REPLY ~No, but I have destroyed the Warden, and soon there will be a portal out of here. You can follow me and I will meet you at Delosar's Inn in Athkatla Bridge district.~ DO ~EscapeAreaMove(AR0515,1,1)~ IF ~~ THEN REPLY ~Ok, come with me then~ DO ~SetGlobal("MystJoined","LOCALS",1)JoinParty()~ IF ~AreaCheck("AR0515")~ THEN REPLY ~No, I do not need you at this time.~ EXIT END /*LEAVING DIALOGUE*/ IF ~Global("MystJoined","LOCALS",1)~ THEN BEGIN MystLeaves SAY ~You are letting me wander alone, then. It was nice to walk and talk with others for more than a few minutes, though, in comparison, this time is a pittance.~ IF ~~ THEN REPLY ~What! Sorry, I really want you to stay with us.~ DO ~SetGlobal("MystJoined","LOCALS",1)JoinParty()~ /*ENDING DIALOGUE*/ IF ~~ THEN BEGIN leave_end SAY ~Then leave me to my misery for the rest of eternity, fool.~ IF ~~ THEN DO ~EscapeArea()~ END And, for other reference, here is my .DEBUG. WeiDU v 20400 Log C:\Program Files\Black Isle\BGII - SoA\Setup-CQ#Mystykyl.exe [./CHITIN.KEY] loaded, 590551 bytes [./CHITIN.KEY] 182 BIFFs, 41793 resources [dialog.tlk] loaded, 9874026 bytes [dialog.tlk] 81795 string entries [./Autorun.ini] loaded, 1452 bytes [./baldur.ini] loaded, 4134 bytes Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\English\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD1\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD2\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\English\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD2\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\English\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD3\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\English\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD4\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD5\] [./Keymap.ini] loaded, 5615 bytes [./Mplaynow.ini] loaded, 230 bytes [C:\Program Files\Black Isle\BGII - SoA\Setup-CQ#Mystykyl.exe] Using scripting style "BG" [dialog.tlk] claims to be writeable. [dialog.tlk] claims to be a regular file. BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 0 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 1 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 2 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 3 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 100 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 101 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 102 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 103 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 104 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 106 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 107 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 108 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 109 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 110 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 111 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 112 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 113 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 114 Installed Install Component [Mystykyl - An NPC]? [I]nstall, or [N]ot Install or [Q]uit? Installing [Mystykyl - An NPC] [./override/bodhi.cre] loaded, 1216 bytes Copying and patching 1 file ... [CQ#Mystykyl/Creatures/Myst1.cre] loaded, 1616 bytes Copied [CQ#Mystykyl/Creatures/Myst1.cre] to [override/CQ#myst1.cre] Copying and patching 1 file ... [CQ#Mystykyl/CQ#shldm.itm] loaded, 114 bytes Copied [CQ#Mystykyl/CQ#shldm.itm] to [override/CQ#shld.itm] Copying and patching 1 file ... [CQ#Mystykyl/CQ#sw1m.itm] loaded, 314 bytes Copied [CQ#Mystykyl/CQ#sw1m.itm] to [override/CQ#sw1hm.itm] Copying and patching 1 file ... [./override/CQ#Myst1.cre] loaded, 1616 bytes Copied [CQ#Myst1.cre] to [override/CQ#Myst1.cre] Compiling 1 dialogue file ... [./override/TRIGGER.IDS] loaded, 7905 bytes [./override/OBJECT.IDS] loaded, 1735 bytes BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD5\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD4\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\English\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD3\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\English\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD2\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\English\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD2\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD1\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\English\/DATA/DEFAULT.BIF] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\/DATA/DEFAULT.BIF] [C:\Program Files\Black Isle\BGII - SoA\/DATA/DEFAULT.BIF] 5847739 bytes, 444 files, 0 tilesets [./override/ACTION.IDS] loaded, 13104 bytes [action list near line 39, column 222 of CQ#Mystykyl/CQ#myst.D] PARSE WARNING at line 39 column 218-218 Near Text: ) Type mismatch in "Area" argument of [EscapeAreaMove]. Expecting type "string". Recovering. [action list near line 39, column 222 of CQ#Mystykyl/CQ#myst.D] PARSE WARNING at line 39 column 218-218 Near Text: ) Not enough arguments to [EscapeAreaMove]. Recovering. [CQ#Mystykyl/CQ#myst.D] PARSE ERROR at line 40 column 1-2 Near Text: IF syntax error [CQ#Mystykyl/CQ#myst.D] ERROR at line 40 column 1-2 Near Text: IF Parsing.Parse_error ERROR: parsing [CQ#Mystykyl/CQ#myst.D]: Parsing.Parse_error ERROR: compiling [CQ#Mystykyl/CQ#myst.D]! Stopping installation because of error. Stopping installation because of error. ERROR Installing [Mystykyl - An NPC], rolling back to previous state [CQ#Mystykyl/backup/0/UNSETSTR.0] SET_STRING uninstall info not found Will uninstall 3 files for [SETUP-CQ#MYSTYKYL.TP2] component 0. [./override/bodhi.cre] loaded, 1216 bytes Uninstalled 3 files for [SETUP-CQ#MYSTYKYL.TP2] component 0. BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 0 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 1 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 2 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 3 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 100 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 101 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 102 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 103 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 104 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 106 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 107 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 108 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 109 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 110 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 111 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 112 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 113 Installed BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 114 Installed ERROR: Parsing.Parse_error PLEASE email the file SETUP-CQ#MYSTYKYL.DEBUG to Mystykyl@hotmail.co.uk Install Component [Mystykyl - An NPC]? [I]nstall, or [N]ot Install or [Q]uit? Icen Link to comment
igi Posted March 17, 2008 Share Posted March 17, 2008 EscapeAreaMove(AR0515,1,1) -> EscapeAreaMove("AR0515",1,1) Link to comment
Icendoan Posted March 17, 2008 Author Share Posted March 17, 2008 Thank you, igi. Icen Link to comment
Taimon Posted March 17, 2008 Share Posted March 17, 2008 About your first issue: Are you saying that converting the backslashes into slashes solved the problem? Link to comment
Icendoan Posted March 17, 2008 Author Share Posted March 17, 2008 Pretty much, yeah. I also renamed everything to CQ#_____, as I registered that over at BWL earlier. Icen Link to comment
Taimon Posted March 18, 2008 Share Posted March 18, 2008 Well, that's interesting, because on Windows, it should make no difference if you use backslash or slash and on Mac or Linux the backslashes are converted by WeiDU. Link to comment
Icendoan Posted March 18, 2008 Author Share Posted March 18, 2008 I don't know, but I also changed some capital letter typos, buit I though WeiDU ignored them for file/directory names... Icen Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.