Jump to content


Photo

Anger


  • Please log in to reply
14 replies to this topic

#1 Gothic Rose

Gothic Rose

    Sexkitten

  • Member
  • 231 posts

Posted 01 December 2004 - 03:06 AM

Hrmph.  I'm trying to put together a simple NPC, just to learn me how, but I cannot get it right, apparently, no matter what I do, WeiDU hates me.  I keep getting this message:

[GrimTheNPC\SW#Grim.d] PARSE ERROR at line 30 column 1-2
Near Text: IF
            syntax error

[GrimTheNPC\SW#Grim.d]  ERROR at line 30 column 1-2
Near Text: IF
                 Parsing.Parse_error
ERROR:  parsing [GrimTheNPC\SW#Grim.d]: Parsing.Parse_error

ERROR Installing [Grim the NPC for BG@:ToB], rolling back to previous state
Will uninstall 1 files for [SETUP-GRIMTHENPC.TP2] component 0.
Uninstalled    1 files for  [SETUP-GRIMTHENPC.TP2] component 0.
ERROR: Parsing.Parse_error




No matter what I do, it's there.  I've tried deleting that line.  I've tried rewriting it.  All that is there is:

IF ~~ THEN REPLY

So basically, what it comes down to is me, being an utter newb to anything and everything code-like, being stumped.  IF ~~ THEN REPLY ~Gosh, I could use some help here...maybe someone will reply, and make the pain go away?~ DO ~Cry~
Posted Image

#2 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 01 December 2004 - 04:50 AM

Parse errors are usually caused by missing tildes on previous lines. Perhaps you could post the lines above and below where you're getting the parse error.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#3 Gothic Rose

Gothic Rose

    Sexkitten

  • Member
  • 231 posts

Posted 01 December 2004 - 04:14 PM

Parse errors are usually caused by missing tildes on previous lines. Perhaps you could post the lines above and below where you're getting the parse error.

View Post



Here ya go.

IF ~~ THEN BEGIN Quest
SAY ~If I may be so bold as to ask, perchance are you on some sort of quest? Long have I sought my own business, with little words with others. Tell your tale, if you will, and I shall gladly listen.~
IF ~~ THEN REPLY ~ I guess you could say that I am on a quest, yes. My friends and I were kidnapped by a wizard, Irenicus, tortured, and barely escaped his dungeon, only to have Imoen, my childhood friend, taken away by the Cowled Wizards when she resisted Irenicus magically. I seek out Irenicus, for he knows things about myself that even I do not, and Imoen, because - well, she is my friend, and I will not allow her to suffer.~ GOTO WorthyQuest
IF ~~ THEN REPLY ~Yes, we are on a quest. I seek my friend, Imoen, who was captured by the Cowled Wizards when we escaped from the dungeon of an evil wizard, Irenicus, who tortured us until we managed to escape.~
IF ~~ THEN REPLY ~Aye. I seek the wizard, Irenicus - he kidnapped me, tortured me, and I want satisfaction in answers, as well as blood.

END


Edit: The last line, "Aye. I seek...." is line 32. And I just noticed the missing tilde after blood. But when I replaced the .d with one with the proper tilde, it still said parsing error. sigh.

Edited by Gothic Rose, 01 December 2004 - 04:21 PM.

Posted Image

#4 Sleeta

Sleeta
  • Member
  • 139 posts

Posted 01 December 2004 - 04:22 PM

Looks like you're missing a ~ at the very end there, right after "as well as blood". Those ~s are pains in the behind. Trust me, I know.

EDIT: Just saw YOUR edit. Whoops.

Edited by Sleeta, 01 December 2004 - 04:23 PM.

"It's always somethin' . . . 'Phenalope, check for traps.' 'Phenalope, open this here lock and get us the treasures.' 'Phenalope, my destiny's too hard, gimmie an ale and sing me a jaunty tune . . . ' "
Phenalope - When you just need a hug or a hamstring cut. A Baldur's Gate 2 NPC Friendship Mod. Because not everyone wants to get into your heroic britches.

"I was like a poor sinner who'd just found out he'd got to heaven after all."
~ Preacher

#5 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 01 December 2004 - 05:26 PM

IF ~~ THEN REPLY ~Yes, we are on a quest.  I seek my friend, Imoen, who was captured by the Cowled Wizards when we escaped from the dungeon of an evil wizard, Irenicus, who tortured us until we managed to escape.~
IF ~~ THEN REPLY ~Aye.  I seek the wizard, Irenicus - he kidnapped me, tortured me, and I want satisfaction in answers, as well as blood.~

END


These two transitions don't go anywhere--they need to have a GOTO, EXTERN or an EXIT.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#6 Sir BillyBob

Sir BillyBob
  • Modder
  • 5315 posts

Posted 01 December 2004 - 05:26 PM

This is why is is easier to build dialogs in DLTCEP and then export them using Weidu. It puts the tildes in the right place. However, it can't do chains, unless someone else knows a trick to this.

Tired of Bhaal? Try some classics mods instead:
Classic Adventures
Official Classic Adventures Website


#7 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 01 December 2004 - 05:43 PM

Actually I'd say why it's easier to build .d files with a text editor and highlighter file. Such as TextPad or Context. ;)

The great wolf Fenrir gapes ever at the dwelling of the gods.


#8 Caedwyr

Caedwyr

    Wraith Editor

  • Member
  • 962 posts

Posted 01 December 2004 - 06:17 PM

Yep, CONTEXT (with weidu highlighters) nicely highlights the correctly done sections of code. If the colour isn't right, then there is typically something missing.
"Knowledge is Power. Power Corrupts. Study Hard. Be Evil." - Ferret

PnP Celestials
Geomantic Sorcerer Kit

#9 Andyr

Andyr

    HERR RASENKOPF

  • Member
  • 2318 posts

Posted 02 December 2004 - 05:48 AM

I'd strongly agree with Hlid and Caedwyr here.
"We are the Gibberlings Three, as merry a band as you ever did see..." - Home of IE mods

< jcompton > Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"

#10 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 02 December 2004 - 06:26 AM

As do I. I've used ConTEXT for quite some time, and the highlighters haven't failed me yet. ;)

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#11 igi

igi

    IESDP Guardian

  • Administrator
  • 1059 posts

Posted 02 December 2004 - 09:39 AM

Pfft. Just use notepad.

Visit the IESDP


#12 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 02 December 2004 - 01:03 PM

igi - the famous believer in notepad, txt-readme's and no AT_INTERACTIVE_EXIT ~view readme~.


:P

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#13 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3058 posts

Posted 02 December 2004 - 01:41 PM

As do I. I've used ConTEXT for quite some time, and the highlighters haven't failed me yet. ;)

View Post


You would highlight the highlighter's hiding place for us, would you? I've got the BG2 script version but not that one.

-Y-

#14 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 02 December 2004 - 01:48 PM

Wes keeps a list of available highlighters on the WeiDU page; try taking a look here.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#15 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3058 posts

Posted 03 December 2004 - 11:39 AM

Wes keeps a list of available highlighters on the WeiDU page; try taking a look here.

View Post


Humph! Only the obvious place. :D :D

-Y-