Author Topic: How does IWG....  (Read 6134 times)

Offline Ashara

  • Tired
  • Planewalker
  • *****
  • Posts: 784
How does IWG....
« on: March 25, 2006, 08:57:26 AM »
I know I can find it out by installing the IWG, but I am not really interested in replaying BG2, but in modding IWD2 itself, and so I have very specific questions. I hope, that maybe someone will be able to answer, w/o me having to handle a pretty heavy install.

1) What extension do the joinable NPCs files have? Is the assignment of the Death Variable, Override Script, Dialogue file straightforward (ie with NI)?

2) How does IWG handles the scripted joinable NPCs dialogue and the "random" banter dialogues? Does IWD2 engine recognise the INTERDIA.2DA and PDIALOGUE.2DA and able to handle the B and J files? Or does Weimer load every dialogue onto the initial NPC dialogue and sets them on (including the random banter) on timers and triggers and trigger them via override script? Or...?

3) Can IWG handle the "Dream Scripts"? If yes, how are they assigned to the joinable NPCs. If no, is there a mechanism that Weimer uses to trigger dialogues at rest, and what it is?

4) How does IWG handle the Main Character? Does IWG recognise <CHARNAME> tag and assigns <Player1> slot to the first created character, or does <Player1> "shifts" depending on which character occupies the first slot in the party?

Thank you in advance!
Hang in there. I'll try to make you glad you did.
—George R.R. Martin

There is nothing better than imagining other worlds [...] to forget the painful one we live in. At least so I thought then. I hadn't yet realized that, imagining other worlds, you end up changing this one.
-Umberto Eco, Baudolino

Three mods you shall make - one too bad and one to dread and one to love.

Offline FredSRichardson

  • Planewalker
  • *****
  • Posts: 190
  • Gender: Male
Re: How does IWG....
« Reply #1 on: April 27, 2006, 03:21:07 PM »
I haven't been around in a while, so I'm sorry for replying so late.  Someone else can correct me if I'm wrong, this this is what I remember.  Joinable NPC's never really worked correctly in IWG2 and dream sequences were highly problematic.  Random banter was another serious problem.  In short, the IWD2 engine was never designed to handle banter and joinable NPC's...

I can't remember any more detail than that.  The code in IWG2 for handling the conversion of the dream sequence scripts and banter dialogues is pretty complex.  I was ripping that out for my IWD1tutu project.

Offline Ashara

  • Tired
  • Planewalker
  • *****
  • Posts: 784
Re: How does IWG....
« Reply #2 on: May 02, 2006, 10:11:55 AM »
I know that in general the join-kick out sequences cannot be made work, so Weimer resorted to importing-exporting characters; which will work for what I plan. What I want to know is in details how he handled them afterwards. 

Could you share the work-around Weimer used for Dream Scripts? :)
Hang in there. I'll try to make you glad you did.
—George R.R. Martin

There is nothing better than imagining other worlds [...] to forget the painful one we live in. At least so I thought then. I hadn't yet realized that, imagining other worlds, you end up changing this one.
-Umberto Eco, Baudolino

Three mods you shall make - one too bad and one to dread and one to love.

Offline FredSRichardson

  • Planewalker
  • *****
  • Posts: 190
  • Gender: Male
Re: How does IWG....
« Reply #3 on: May 17, 2006, 07:26:04 PM »
Hi, sorry to take so long to get back to this.

I'm not exactly sure how Weimer got this to work (I have to admit that I was happy to be able to toss that code for the project I'm working on).

The code for doing all this stuff should be in the source code for WeiDU.  weimorph is compiled from iwg2.ml and a few other files.  I've found the code to be pretty tough going in parts.  I'm not sure I can be much help :(

-Fred

EDIT:  I'm not sure if you're still interested in this, but one thing you could do is to install iwg2 and look at the scripting that it generates for the dream sequences (they would all be in the override folder and should be brousable with NI).
« Last Edit: May 19, 2006, 04:42:30 PM by FredSRichardson »

Offline Ashara

  • Tired
  • Planewalker
  • *****
  • Posts: 784
Re: How does IWG....
« Reply #4 on: May 23, 2006, 04:21:07 PM »
Yeah, I think, in the end I will have to isntall IWG2 for studying override when I come to burning that bridge. Hopefully Wes did drop everything in Override, the same way TUTU does.
Hang in there. I'll try to make you glad you did.
—George R.R. Martin

There is nothing better than imagining other worlds [...] to forget the painful one we live in. At least so I thought then. I hadn't yet realized that, imagining other worlds, you end up changing this one.
-Umberto Eco, Baudolino

Three mods you shall make - one too bad and one to dread and one to love.

Offline Drew

  • Kind of a prick
  • Planewalker
  • *****
  • Posts: 851
  • Gender: Male
Re: How does IWG....
« Reply #5 on: May 23, 2006, 04:34:13 PM »
Even if he biffed it, you'd still see it in NI.
Poor baby. Couldn't find a fight anywhere else so you had to come here, huh. -Cybersquirt

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: How does IWG....
« Reply #6 on: May 23, 2006, 04:37:53 PM »
Even if he biffed it, you'd still see it in NI.
I don't think Wes was a biffing idiot affecionado anyway.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline FredSRichardson

  • Planewalker
  • *****
  • Posts: 190
  • Gender: Male
Re: How does IWG....
« Reply #7 on: May 23, 2006, 05:21:07 PM »
Yeah, I think, in the end I will have to isntall IWG2 for studying override when I come to burning that bridge. Hopefully Wes did drop everything in Override, the same way TUTU does.
Yes, it's all in the override with the exception of references to big binary files like the WED's and TIS from the source game.  iwg2 hacks the chitin.key so it references certain BIF's directly in the source game.  This all seems to work, and it's really only important if you want to convert whole areas over.  NI handles all this stuff just fine.

I've recently looked at a cut-scene from IWD1 to IWD2 and that was a pretty simple conversion.  I'm not sure if that's at all what you're looking for though.

Offline Ashara

  • Tired
  • Planewalker
  • *****
  • Posts: 784
Re: How does IWG....
« Reply #8 on: May 23, 2006, 07:02:15 PM »
Nah, nothing fancy. Just vanilla dialogues and scripts. Good thing it is in the override, it should not be too bad then.
Hang in there. I'll try to make you glad you did.
—George R.R. Martin

There is nothing better than imagining other worlds [...] to forget the painful one we live in. At least so I thought then. I hadn't yet realized that, imagining other worlds, you end up changing this one.
-Umberto Eco, Baudolino

Three mods you shall make - one too bad and one to dread and one to love.

Offline FredSRichardson

  • Planewalker
  • *****
  • Posts: 190
  • Gender: Male
Re: How does IWG....
« Reply #9 on: May 24, 2006, 02:56:17 PM »
Oops, I looked back at your original post.  I think what you're really asking is way over my head, so yes I think you might get a lot out of installing IWG2 and examining stuff with NI.

You might find this tool helpful: NIDigGen for examining the text version of various resources (aside from DLG/BCS which WeiDU handles well).

 

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