Author Topic: help with weidu tutorial  (Read 2746 times)

enjolraskenobi

  • Guest
help with weidu tutorial
« on: September 14, 2002, 11:34:22 AM »
am starting down the slippery slope towards playing with modding. Not exactly helped by abject lack of techieness.

I'm starting off from Ghreyfain's "How To Make An NPC" tutorial. Have made a .d file, a .cre file, a .bcs file, and a .tp2 file.

Weidu readme says the next step I should take is to rename weidu.exe as *.exe, where * is the same as my *.tp2 file. Have done this but all I get is a list of weidu options then nothing.

Apologies for utter stupidity... any thoughts on what to do?  

JP

                   

enjolraskenobi

  • Guest
help with weidu tutorial
« Reply #1 on: September 14, 2002, 12:07:58 PM »
changed .exe file to include word "setup", which now goes a little further.

However, now have syntax error on line 2. That's originally

AUTHOR "enjolraskenobi@yahoo.com"

apologies again foor incompetence...

JP                    

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
help with weidu tutorial
« Reply #2 on: September 14, 2002, 02:06:08 PM »
You need to show us more of the .tp2.
                   
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

enjolraskenobi

  • Guest
help with weidu tutorial
« Reply #3 on: September 14, 2002, 02:22:35 PM »
The whole file as it stands currently... I'm using the latest download of Weidu and of the GUI. I'm attempting to make an NPC of Garrick, the bard from BG...

JP

BACKUP "GarrickNPC\backup
AUTHOR "enjolraskenobi@yahoo.com"
BEGIN "GarrickNPC For BG2:ToB"

COPY "GarrickNPC\Garrick.cre" "override\Garrick.cre"
SAY NAME1 "Garrick"
SAY NAME2 "Garrick"
SAY SELECT_COMMON1 "Yes, sir?" [garrickf]
SAY SELECT_ACTION1 "Of course." [garricki]

COMPILE "GarrickNPC\Garrick.d"
USING ""

COPY "GarrickNPC\JP#Garrick.bcs" "override\JP#Garrick.bcs"

EXTEND_BOTTOM "Ar0602.bcs" "GarrickNPC\JP#Garrick.bcs"

APPEND "pdialog.2da"
"JP#Garrick JP#GarrickP JP#GarrickJ JP#GarrickD"
UNLESS "JP#Garrick"
UNLESS "25POST"

APPEND "pdialog.2da"
"JP#Garrick JP#GarrickP JP#GarrickJ JP#GarrickD JP#Garr25P JP#Garr25J JP#Garr25D JP#Vond25"
UNLESS "JP#Garrick"
IF "25POST"
                   

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
help with weidu tutorial
« Reply #4 on: September 14, 2002, 02:37:54 PM »
Well, this is easy.

Quote
BACKUP "GarrickNPC\backup
AUTHOR "enjolraskenobi@yahoo.com"

You forgot to close the quotes around the backup field.

However, I strongly urge you switch to ~~ instead of "" and get in the habit. The advantage of ~~ is that you can use " marks inside them, which is helpful for things like item descriptions or quotations.

                   
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

enjolraskenobi

  • Guest
help with weidu tutorial
« Reply #5 on: September 14, 2002, 04:38:37 PM »
thanks for your help so far!

Stuck again though. Have AFAIK successfully completed the files needed, and when I run setup-garrick.exe it informs me that it's installed successfully. However, there is no sign of Garrick in the game.

i have tried to place him beside Jaheira's cage in the first dungeon (until I figure out what I'm doing, then will move him). The files I have made are as follows:

Setup-JP#Garrick.exe
JP#Garrick.cre


JP#garrick.tp2:

BACKUP ~GarrickNPC\backup~
AUTHOR ~enjolraskenobi@yahoo.com~
BEGIN ~GarrickNPC For BG2:ToB~

COPY ~GarrickNPC\JP#Garrick.cre~ ~override\JP#Garrick.cre~
SAY NAME1 ~Garrick~
SAY NAME2 ~Garrick~
SAY SELECT_COMMON1 ~Yes, sir?~ [garrickf]
SAY SELECT_ACTION1 ~Of course.~ [garricki]

COMPILE ~GarrickNPC\JP#Garrick.d~
USING ~~

COPY ~GarrickNPC\JP#Garrick.bcs~ ~override\JP#Garrick.bcs~

EXTEND_BOTTOM ~ar0602.bcs~ ~GarrickNPC\JP#Garrick.bcs~

APPEND ~pdialog.2da~
~JP#Garrick JP#GarrickP JP#GarrickJ JP#GarrickD~
UNLESS ~JP#Garrick~
UNLESS ~25POST~

APPEND ~pdialog.2da~
~JP#Garrick JP#GarrickP JP#GarrickJ JP#GarrickD JP#Garr25P JP#Garr25J JP#Garr25D JP#Vond25~
UNLESS ~JP#Garrick~
IF ~25POST~




JP#Garrick.bcs:

IF
Global(~JP#GarrickExists~,~AR0602~,0)
THEN
RESPONSE#100
CreateCreature(~JP#Garrick~,[3650.2753].12)
SetGlobal(~JP#GarrickExists~,~AR0602~,1)
END





JP#garrick.d:

BEGIN JP#Garrick
IF "NumTimesTalkedTo(0)" THEN BEGIN FirstMeeting
SAY "Greetings, good [SIRMAAM]! I have a pretty proposal for you..."
IF "" THEN REPLY "Garrick! Don't you remember me? We met in Beregost. You were with that bitch, Silke..." GOTO Greet
IF "" THEN REPLY "Not you and your whiny voice again. Go away!" GOTO GoAway
END

IF "" THEN BEGIN Greet
SAY "Yes! Oh, many the tale I've told of our glorious adventures together, [CHARNAME]. I suppose you're still in the business of making legends. Mind if I tag along?"
IF "" THEN REPLY "It'll be a pleasure to hear your songs again, Garrick. Onwards!" DO ~SetGlobal("GarrickJoined","LOCALS",1) JoinParty()~ EXIT // line 10
IF "" THEN REPLY "We're fine for tag-alongs at the moment, pal. Thanks all the same." EXIT
END

IF "" THEN BEGIN GoAway
SAY "If you're going to be like that about it, [SIRMAAM], then I'll just have to go and find myself someone else to sing about!"
IF "" THEN EXIT
END

BEGIN JP#GARRICKP

IF ~Global("GarrickJoined","LOCALS",0)~ THEN BEGIN KickOut
SAY "It can't be! Surely you want me to stay... There are so many songs still to be sung!"
IF "" THEN REPLY "You're right. We do have some music still to make. Stick around for a while longer." DO "JoinParty()" EXIT
IF "" THEN REPLY "Sorry, sweetcheeks. Thank you for the music, but it's time to pay the piper. Bye!" DO ~SetGlobal("GarrickJoined",LOCALS",0)~ EXIT
END

IF ~Global("GarrickJoined","Locals",0)~ THEN BEGIN Rejoin
SAY "You've come back! I knew you would! Do you need me to chronicle your latest fabulous deeds?"
IF "" THEN REPLY "Yes, Garrick. Your presence was missed, and there are a great many tales that still need to be told. Come!" DO ~SetGlobal("GarrickJoined","LOCALS",1)JoinParty()~ EXIT
IF "" THEN REPLY "I'm back, yes, but not for long. Where we're going, there'll be no need for songs. You'd probably get us killed." EXIT
END







Sorry to be such a nuisance. Your help is gratefully received 8-). Can you tell what I'm doing wrong...?

JP
                   

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
help with weidu tutorial
« Reply #6 on: September 14, 2002, 06:08:34 PM »
I think your primary problem is that you're using too many letters to name things.

All file resources in BG2 must be of the 8+3 filename format, so you cannot spawn "JP#Garrick", it's too long. Make it 8 letters. Same thing goes for the dialogue names you are creating. You'll need to do some editing and renaming.

Also, don't try to spawn Garrick right on top of Jaheira, put him somewhere else.


                   
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

enjolraskenobi

  • Guest
help with weidu tutorial
« Reply #7 on: September 14, 2002, 06:18:36 PM »
thanks again! will try that. Was spawning him outside Jaheira's cage anyway, so that should be fine.

Thanks!

JP                    

Offline weimer

  • Moderator
  • Planewalker
  • *****
  • Posts: 2222
  • Gender: Male
    • WeiDU and Weimer Mods
help with weidu tutorial
« Reply #8 on: September 14, 2002, 09:16:46 PM »
Note that (unless my memory is faulty) you must use "" inside a BAF file, not ~~.

That is, use:

CreateCreature("JP#GAR",[123.456])

instead of:

CreateCreature(~JP#GAR~,[123.456])

The ~s are a WeiDU convenience, BAF probably doesn't support them. They come in handy for things like this:

IF ~~ THEN REPLY ~Please use your powers to summon Garrick." DO ~CreateCreature("JP#Gark",[123.456])~ EXIT

Where you must have "" nested inside something.                    

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
help with weidu tutorial
« Reply #9 on: September 14, 2002, 09:56:32 PM »
Ah, right, I was a little careless when I told you to switch ALL quotation marks to tildes.

Quote marks are required for GAME code: those being things like Global("Blah","GLOBAL",1) .

But tildes are preferred for .tp2/.d code.

                   
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: