Author Topic: A Beginner's Guide to NPC creation with WeiDU  (Read 314207 times)

Offline Madieron

  • Planewalker
  • *****
  • Posts: 14
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #225 on: August 29, 2006, 04:25:54 PM »
Vefiry the AR????.BCS got changed correctly with NearInfinity; if it did, you should have
IF
Global("J#VondoExists","AR1000",0)
THEN
RESPONSE #100
SetGlobal("J#VondoExists","AR1000",1)
CreateCreature("J#Vondo",[1137.2046],3)
END

That will be at the top of the script (bad form, really, EXTEND_BOTTOM  should be used, or OnCreation() put in the block and a Continue() added to the end.  As it stands, it would bust an OnCreation() scripting).

If that scripting is there, then you're good to go, just visit the area.  The only thing that would stop your NPC from showing would be
(1) using mismatched area variables - that is, putting the character in AR0400, but then making the script still try to use "AR1000"
(2) not having the CRE spelled right

I use Context as text editor and I don't see those lines. I just see strange lines like that :

SC
CR
CO
TR
16399 0 0 0 0 "AR1000Mad#MinuitExists" "" OB
0 0 0 0 0 0 0 0 0 0 0 0 ""OB
TR
CO
RS
RE
100AC
30OB
0 0 0 0 0 0 0 0 0 0 0 0 ""OB

So I don't know what to do.
Moreover my .CRE is called : Minui1.CRE ... is it good?

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #226 on: August 29, 2006, 04:46:03 PM »
Yeah, that's what a compiled script file (.bcs) looks like.  In order to read it normally you either need to decompile the file with WeiDU or view it using a program like Near Infinity or Infinity Explorer.
"You alone can make my song take flight..."

Offline Detherin

  • Planewalker
  • *****
  • Posts: 6
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #227 on: December 08, 2006, 11:38:20 PM »
Hey everyone, I have been trying my hand at making my own NPC and was wondering if anyone could help me out.

My problem occurs when trying to install the NPC.  I get the following error message:

ERROR: compiling [Rhythm\T#Rhythm.d]!

Really not sure what the problem is.  It gives no further information as to why the .d file has failed to compile, so I'm completely lost.  I've made sure that the file name is correct, and that the T#Rhythm.d file is indeed in my Rhythm folder in the BG2 main directory. 

Any help would be greatly appreciated.
Thanks in advance.

Offline berelinde

  • Planewalker
  • *****
  • Posts: 1188
  • Gender: Female
    • Gavin, cleric of Lathander, for Tutu
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #228 on: December 09, 2006, 06:45:06 AM »
Is the first line of T#Rhythm.d

BEGIN T#Rhythm

or

BEGIN ~T#Rhythm~

 ?

If not, the compiler doesn't know where to put it.

Edit: Doh! I knew that, but got careless typing--dangerous.
« Last Edit: December 09, 2006, 10:43:55 AM by berelinde/BGhead »

Offline Detherin

  • Planewalker
  • *****
  • Posts: 6
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #229 on: December 09, 2006, 07:16:36 AM »
I've tried the installing with both of "BEGING T#Rhythm.d" and "BEGIN ~T#Rhythm.d~", both produce the same problem when trying to install.

Any other suggestions as to what is causing my problems?

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #230 on: December 09, 2006, 07:19:25 AM »
You don't want the .d suffix on your BEGIN line:

Code: [Select]
BEGIN T#Rhythm
or

Code: [Select]
BEGIN ~T#Rhythm~
"You alone can make my song take flight..."

Offline Detherin

  • Planewalker
  • *****
  • Posts: 6
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #231 on: December 09, 2006, 07:31:52 AM »
Still doesn't solve my problem, unfortunately.

My original was "BEGIN T#Rhtyhm" and I have since tried it as "BEGIN ~T#Rhythm~" and both still give me my installation error...

Any more ideas?


Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #232 on: December 09, 2006, 10:15:18 AM »
There should be more to the error message than that, but I'm going to try this guess: Are you certain you're saving it as a text (.txt, plain text format) file? It will never, ever work if you save as .doc or .rtf or anything like that.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline Detherin

  • Planewalker
  • *****
  • Posts: 6
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #233 on: December 09, 2006, 12:21:19 PM »
I am fairly certain that I am saving it as the correct file type (it is a .txt document written in notepad).  And I have noticed that the error also reads

"ERROR: Sys_error("Rhythm\\T#Rhythm.d: No such file or directory")

This only confuses me further as both the file and directory are clearly there...is there something I am missuing here?  The only other notable thing I can see here is that there are two backslashes...but when I open the .tp2 folder I certainly haven't placed two backslashes (I think I'm right in guessing that the first "Rhythm" here will tell the installer what file my .d file is located in, and can therefore see why a second backslash would cause an error, but I can't for the life of me figure out how to solve this. 

Thanks a lot for your help so far though ^_^.
« Last Edit: December 09, 2006, 12:31:34 PM by Detherin »

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #234 on: December 09, 2006, 01:23:56 PM »
Are you sure you're consistently spelling rhythm in the same way? You have a typo in the message before this one, for instance.

You might just want to archive up your stuff at this point and put it somewhere that a helpful soul can download it and see what the trouble really is.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline Detherin

  • Planewalker
  • *****
  • Posts: 6
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #235 on: December 09, 2006, 02:35:12 PM »
I've proof read the tp2 file and the .d file a few times, I can't seem to find a typo concerning "rhythm".

Not sure how I would go about archiving my files for someone to download it :s...Yes, I'm a newbie ^_^.

Offline berelinde

  • Planewalker
  • *****
  • Posts: 1188
  • Gender: Female
    • Gavin, cleric of Lathander, for Tutu
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #236 on: December 09, 2006, 07:00:16 PM »
Maybe you could just copy and paste the relevant lines from the tp2, like

COMPILE ~T#RHYTHM.D~
etc.

One of the first rules of proofreading can frequently be found in my own posts: it is practically impossible to effectively proofread your own work. You will stare at it forever and see only what you think you should be seeing. If someone else sees it, or, as I have so often found, you see it posted somewhere public, the tiny little errors will jump out at you.

Sometimes, all it takes is a fresh pair of eyes.

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #237 on: December 09, 2006, 09:22:50 PM »
We need to see a file structure at this point, I think.

A tutorial on "how to post things online" is a bit outside the scope of this thread.

- Get a Yahoo account, if you don't have one already.
- Learn how to use Yahoo Briefcase and make things publicly accessible
- Tell us about it when you've done that.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline Detherin

  • Planewalker
  • *****
  • Posts: 6
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #238 on: December 10, 2006, 07:27:30 AM »
Maybe you could just copy and paste the relevant lines from the tp2, like

COMPILE ~T#RHYTHM.D~
etc.

One of the first rules of proofreading can frequently be found in my own posts: it is practically impossible to effectively proofread your own work. You will stare at it forever and see only what you think you should be seeing. If someone else sees it, or, as I have so often found, you see it posted somewhere public, the tiny little errors will jump out at you.

Sometimes, all it takes is a fresh pair of eyes.

Here is my .tp2 file, hope someone can see the problem ^_^.

BACKUP ~rhythm\backup~
AUTHOR ~BlackLotus (black.lotus@gmail.com)~
BEGIN ~Rhythm for BG2:SoA~

// The following is the copying of Rhythm's .cre file, as well as assigning his sound-set.  See the file sndslot.ids for a listening of sounds you can add.

COPY ~rhythm\Rhythm.cre~ ~override\Rhythm.cre~
SAY NAME1 ~Rhythm~
SAY NAME2 ~Rhythm~
SAY SELECT_COMMON4 ~Yes?.~ [Rhythm1]
SAY SELECT_COMMON5 ~Give the word.~ [Rhythm2]
SAY SELECT_COMMON6 ~Point the way.~ [Rhythm3]
SAY SELECT_ACTION1 ~I'm on the job.~ [Rhythm4]
SAY SELECT_ACTION2 ~As you wish.~ [Rhythm5]


// The following is telling WeiDU to compile the following .d files

COMPILE ~rhythm\T#Rhythm.d~

// This is adding our area file to the game

EXTEND_TOP ~Ar0406.bcs~ ~rhythm\ar0406.baf~

// Add this to the end

APPEND ~pdialog.2da~
~T#Rhythm T#RhytP T#RhytJ T#RhytD T#Rhy25P T#Rhy25J T#Rhy25D T#Rhyt25~
UNLESS ~T#Rhythm~
APPEND ~interdia.2da~
~T#Rhythm T#RhytB T#RhyB25~
UNLESS ~T#Rhythm~

*EDIT* I have set up a Yahoo account and loaded up my NPC's files on to briefcase...I'm unsure if it is against forum policy to post a link to my briefcase here though?  Could someone enlighten me, please?
« Last Edit: December 10, 2006, 09:46:19 AM by Detherin »

Offline blue_frost17

  • Planewalker
  • *****
  • Posts: 7
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #239 on: January 11, 2007, 08:44:51 PM »
Um... hi. I'm a big time noob when it comes to mods so... yeah.

Anyway, I've been having a little bit of a problem with getting the VondoTheNPC mod to work.

Ok I've done all the steps and have completed the tp2. file, but here's my problem; when I try to do the setup, the Weidu window says this:

** Error ** [VONDOTHENPC-SETUP.TP2] not found.
Make sure that you have unpacked the archive correctly and
that you are not trying to run this file from inside an archive.
[C:\Program Files\Black Isle\BGII - SoA\VondaTheNPC-setup.exe] Using scripting style "BG"


I'm not sure what the problem is because I've done everything the tutorial said.
(If it's some stupid mistake, please forgive me. My hair is naturally blond so I'm bound to do stupid things.)

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #240 on: January 12, 2007, 09:40:52 AM »
Ok I've done all the steps and have completed the tp2. file, but here's my problem; when I try to do the setup, the Weidu window says this:

Watch carefully:

Quote
** Error ** [VONDOTHENPC-SETUP.TP2] not found.

Your TP2 is called "vondothenpc-setup.tp2"...

Quote
[C:\Program Files\Black Isle\BGII - SoA\VondaTheNPC-setup.exe] Using scripting style "BG"

...but your WeiDU .exe is "vonda". The two names must match for the fancy TP2 recognition bit to work.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline blue_frost17

  • Planewalker
  • *****
  • Posts: 7
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #241 on: January 12, 2007, 02:58:14 PM »
(Slams fist into head) GRRRRRRR! Sorry, it was a typo on the last post.

The last part says:

[C:\Program Files\Black Isle\BGII - SoA\VondoTheNPC-setup.exe] Using scripting style "BG"

Sorry for the miss-print. As I said, I make stupid mistakes and typos is one of them.

I'm really sorry to bother you all, but I need help!

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #242 on: January 12, 2007, 03:31:52 PM »
It's complaining that it does not see both the .exe and the .tp2 in the same directory. Check that they are both in the same directory and with the same name.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline blue_frost17

  • Planewalker
  • *****
  • Posts: 7
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #243 on: January 12, 2007, 03:51:04 PM »
They're both in the same area of my BGII folder, but after looking at some of the other tp2 mods files I began to notice something.

When I look at the File Name for the tp2 file for say the Solaufien mod, it says: Solaufien-setup; and when I look at the File Type it says: TP2 File.

The File Name for Vondo is: VondoTheNPC.tp2; but the File Type says: Text document.

Now I saved the dialog file the way it says in the tutorial, and it saved as a DLG File; but I saved the tp2 file the way it says in the tutorial but it still says its a Text Document.

Could this be the problem?

(P.S. thank you for all your help :))

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #244 on: January 12, 2007, 04:04:54 PM »
Ugh. Yes, it is, and it's because you have Windows Explorer hiding file extensions, so the real end of that file is .tp2.txt .

Open a Windows Explorer window and do Tools/Folder Options, then in the resulting settings window go to the View tab, and uncheck "Hide extensions for known file types."

Then rename the file so it just ends in .tp2, not .tp2.txt.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline blue_frost17

  • Planewalker
  • *****
  • Posts: 7
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #245 on: January 14, 2007, 08:56:18 AM »
(Drops to knees) Hail jcompton! Hail jcompton! Hail jcompton!

Thank you! Thank you so much!  ;D

Offline blue_frost17

  • Planewalker
  • *****
  • Posts: 7
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #246 on: January 14, 2007, 01:12:52 PM »
(Sigh) Sorry to bug you all again, but I can't get Vondo to appear. I saw WizWom's post and checked to see if I had miss-printed in the BAF File. but it was correct, so I'm trying to figure out the CLUAconsole code, but I'm stumped ???.

Offline Rabain

  • Planewalker
  • *****
  • Posts: 281
  • Gender: Male
  • Luck o' the Irish!
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #247 on: January 15, 2007, 05:39:11 AM »
Hiya,

All about the CLUA is here: http://iesdp.gibberlings3.net/clua/bg2.htm

Also remember that it is case sensitive so everything must be exactly as it appears in the instruction.
Touchstone: Wild Elf Fighter
BG2CPM: Dialog Portraits for Everyone!
WTPFamiliars: A new version of the Find Familiar Spell
All at: Border Kingdoms

Offline berelinde

  • Planewalker
  • *****
  • Posts: 1188
  • Gender: Female
    • Gavin, cleric of Lathander, for Tutu
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #248 on: January 15, 2007, 05:55:54 AM »
Open up your game override folder and check to be sure your CRE is there, that it installed correctly.

Then type the following into the console:

CLUAConsole:CreateCreature("creature")

That should spawn him, if he installed.

Offline blue_frost17

  • Planewalker
  • *****
  • Posts: 7
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #249 on: January 15, 2007, 11:40:12 AM »
Ok, finally got Vondo to work with and without the CLUAconsole, but now...

(hangs head in shame) he won't initiate dialog. :'(

 

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)?: