Author Topic: Stupid Problem but I'm sure there is a simple answer  (Read 997 times)

Offline theacefes

  • XTREME METAL ROCKER PUNK CHICK WITH ULTRA SURFBOARD
  • Planewalker
  • *****
  • Posts: 90
  • Gender: Female
  • Is this thing on?
Stupid Problem but I'm sure there is a simple answer
« on: October 05, 2005, 11:53:40 PM »
Okay, so I have my NPC.  She is supposed to appear in the copper coronet (0406) and she installed correctly but for some odd reason when i enter that area, the game crashes!

Here is my Tp2 and my baf file.

BACKUP ~AurenTheNPC\backup~
AUTHOR ~theacefes~
BEGIN ~AurenTheNPC for BG2:ToB~


COPY ~AurenTheNPC\Auren.cre~ ~override\Auren.cre~


COMPILE ~AurenTheNPC\K#Auren.d~





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

APPEND ~pdialog.2da~
~K#AurentheNPC K#AurenP K#AurenJ K#AurenD K#Aur25P K#Aur25J K#Aur25D K#Aure25~
UNLESS ~K#AurentheNPC~

APPEND ~interdia.2da~
~K#AurentheNPC K#AurenB K#AurB25~
UNLESS ~K#AurentheNPC~


And the baf:

IF
Global("AurenExists","AR0406",0)
THEN
RESPONSE #100
SetGlobal("AurenExists","AR0406",1)
CreateCreature("Auren",[1483.1934],3)
END

Ace

Offline Ghreyfain

  • Moderator
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Stupid Problem but I'm sure there is a simple answer
« Reply #1 on: October 06, 2005, 12:07:58 AM »
Can you CLUA her into the game without it crashing?
Earn Money Sleeping.

Offline theacefes

  • XTREME METAL ROCKER PUNK CHICK WITH ULTRA SURFBOARD
  • Planewalker
  • *****
  • Posts: 90
  • Gender: Female
  • Is this thing on?
Re: Stupid Problem but I'm sure there is a simple answer
« Reply #2 on: October 06, 2005, 12:16:03 AM »
how do i do that
Ace

Offline Ghreyfain

  • Moderator
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Stupid Problem but I'm sure there is a simple answer
« Reply #3 on: October 06, 2005, 12:21:10 AM »
I'm sure there's a tutorial around somewhere.

Until you find it:

baldur.ini should have the line "Cheats=1" under [Game Options]

Then in-game you hit ctrl+space.

Then you type CLUAConsole:CreateCreature("whateveryourcrefilenameis").
Earn Money Sleeping.

Offline theacefes

  • XTREME METAL ROCKER PUNK CHICK WITH ULTRA SURFBOARD
  • Planewalker
  • *****
  • Posts: 90
  • Gender: Female
  • Is this thing on?
Re: Stupid Problem but I'm sure there is a simple answer
« Reply #4 on: October 06, 2005, 12:25:59 AM »
heh...nope it crashed after I hit enter... :-\

I went back into my CRE and everything looked all right.  I do have the initdlg script on Default Script.  But I don't think that really matters..does it?
Ace

Offline Ghreyfain

  • Moderator
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Stupid Problem but I'm sure there is a simple answer
« Reply #5 on: October 06, 2005, 12:32:03 AM »
Nope.  Now all you have to do is re-create your .cre file step by step, testing each change to determine what's causing it.  Welcome to modding.

I recommend using an existing NPC's .cre file that matches yours as closely as possible, and using a different file-name for testing, as you change it to match the one you have now.
Earn Money Sleeping.

Offline theacefes

  • XTREME METAL ROCKER PUNK CHICK WITH ULTRA SURFBOARD
  • Planewalker
  • *****
  • Posts: 90
  • Gender: Female
  • Is this thing on?
Re: Stupid Problem but I'm sure there is a simple answer
« Reply #6 on: October 06, 2005, 12:33:46 AM »
Wonderful  ::) One last question...in the past (I have gotten one to work before) for some reason the NPC's name wasn't showing up on the dialog box.  Her CRE file will not let me edit the name so it says no such index.  I cant edit as a string.  What to do?
Ace

Offline Ghreyfain

  • Moderator
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Stupid Problem but I'm sure there is a simple answer
« Reply #7 on: October 06, 2005, 12:38:21 AM »
I'm not sure if this is explicitly mentioned in the tutorial, but the bit in your .tp2 like this is what adds the name:
Code: [Select]
///////////////
// Creatures //
///////////////

COPY ~sevalanpc/creatures/J#Sevala.cre~ ~override~
  SAY NAME1 ~Sevala~
  SAY NAME2 ~Sevala~
  SAY INITIAL_MEETING ~~ [J#sev01]
  SAY MORALE ~~
  // She never fails a morale check

Earn Money Sleeping.

 

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