Jump to content


Photo

Parse error....


  • Please log in to reply
7 replies to this topic

#1 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3058 posts

Posted 08 August 2004 - 01:33 AM

Can anyone please tell me why

COMPILE ~dq/dialog/ysltor.d~
REPLACE ~999999~ @2

keeps throwing a parse error in the REPLACE line? The replacement strings are available in the tra file and if I comment out the REPLACE to allow Weidu to run, these strings are being correctly loaded into the dialog.tlk file.

This is part of a journal entry sequence using the Add/EraseJournalEntry(xxxx,yyy) commands and I was also wondering if anyone knew how to make the red (quest) and green (journal) entry 'headers'?

-Y- (currently working on his first ever mod)

#2 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 08 August 2004 - 01:47 AM

Try doing this:
COMPILE ~dq/dialog/ysltor.d~

COPY_EXISTING ~ysltor.dlg~ ~override/ysltor.dlg~
REPLACE ~999999~ @2

Just off the top of my head, I'd say that you're linking the compile and the replace action, which should be separate IIRC.

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


#3 Idobek

Idobek

    Pocket Plane Gibberling

  • Member
  • 429 posts

Posted 08 August 2004 - 02:49 AM

Why don't you use @2 instead of 999999 in the d itself?

#4 Grim Squeaker

Grim Squeaker

    Fallen

  • Member
  • 1018 posts

Posted 08 August 2004 - 02:51 AM

Why don't you use @2 instead of 999999 in the d itself?

Good point...
"You alone can make my song take flight..."

#5 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 08 August 2004 - 02:53 AM

Why don't you use @2 instead of 999999 in the d itself?

Good point that. ^_^

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


#6 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3058 posts

Posted 08 August 2004 - 05:15 AM

LOL!!!! Thanks guys - your help is appreciated. I particularly like the idea of using the @ placemarker directly, rather than running a substitution afterwards.

<goes away and gives it a try>

Well that fixed it!!!! Now, any takers on the red/green question please?

-Y-

#7 Kismet

Kismet

    Mild Thang

  • Member
  • 348 posts

Posted 10 August 2004 - 04:16 AM

This is part of a journal entry sequence using the Add/EraseJournalEntry(xxxx,yyy) commands and I was also wondering if anyone knew how to make the red (quest) and green (journal) entry 'headers'?

I believe you need to put at least 2 carriage returns between the header and the description, like so:

AddJournalEntry(%Rescue the kitten

I can't believe someone wants ME, a bhaalspawn, to rescue a kitten. Still, it pays good money.%,QUEST)

I've only ever added quest/solved quest entries, but I assume adding to the journal would work the same way.

#8 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3058 posts

Posted 12 August 2004 - 09:22 AM

Many thanks Kismet - and my apologies for the delayed reply. RealWorld™ got in the way.... :(

-Y-