Author Topic: Tutu Conversion Progress  (Read 17776 times)

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Tutu Conversion Progress
« on: May 13, 2006, 01:01:23 PM »
This is just for me to keep up with what's done, what's not, etc.

  • Ice Island Level Two Restoration
  • The Mysterious Vial
  • Additional Elminster Encounter
  • Angelo Notices Shar-teel
  • Finishable Kagain Caravan Quest
  • Coran and the Wyverns
  • Kivan and Tazok
  • Branwen and Tranzig
  • Safana the Flirt
  • Appropriate Albert and Rufie Reward
  • Place Entar Silvershield in His Home
  • Scar and the Sashenstars' Daughter
  • Quoningar, the Cleric
  • Shilo Chen and the Ogre-Magi
  • Edie, the Merchant League Applicant
  • Flaming Fist Mercenary Reinforcements
  • Creature Corrections
  • Creature Restorations
  • Creature Name Restorations
  • Minor Dialog Restorations
  • Audio Restorations
  • Store, Tavern and Inn Fixes and Restorations
  • Item Corrections and Restorations
  • Area Corrections and Restorations
  • Permanent Corpses
  • Sarevok's Diary Corrections
Color Code:
BLUE = Requires importing .cre file from BG1
« Last Edit: May 23, 2006, 08:49:51 PM by icelus »
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #1 on: May 13, 2006, 01:02:27 PM »
Determine which FORBID_COMPONENT commands to use for Shar-teel, Kagain, Coran, Kivan, and Branwen
« Last Edit: May 23, 2006, 08:52:21 PM by icelus »
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #2 on: May 13, 2006, 01:41:00 PM »
.cre files to carry over from BG1

  • Entar (entar.cre)
  • Halfling Enforcer (halfen.cre)
  • Bartender (bart8.cre)
  • Bartender (bart9.cre)
  • Merchant (mercha.cre)
« Last Edit: May 23, 2006, 08:38:40 PM by icelus »
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #3 on: May 13, 2006, 01:45:24 PM »
Need to recode this (Scar component)

Code: [Select]
see below
« Last Edit: May 23, 2006, 08:52:54 PM by icelus »
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #4 on: May 13, 2006, 01:48:59 PM »
Give mad props to WinMerge in the Tutu readme.
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #5 on: May 13, 2006, 04:38:50 PM »
Edit readme to reflect removal of TOS Music stuff component for Tutu.
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #6 on: May 13, 2006, 04:38:58 PM »
Remove elf stuff from Tutu readme.  It's in Tutufix (thank god).
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #7 on: May 21, 2006, 10:06:10 AM »
Need to recode this (Scar component)

Code: [Select]
COPY_EXISTING AR0224.ARE OVERRIDE // Sewers
WRITE_ASCII 0x28c0 ~MISC79~       // Replace Male Body with Female Body in Container 1
BUT_ONLY_IF_IT_CHANGES

COPY_EXISTING AR0226.ARE OVERRIDE // Sewers
WRITE_ASCII 0x239c ~UBFEBODY~     // Replace Male Body with the Sashenstar's daughter in Container 1 (with ruby ring)
WRITE_ASCII 0x2450 ~MISC79~       // Replace Male Body with Female Body in Container 4
BUT_ONLY_IF_IT_CHANGES

Code: [Select]
COPY_EXISTING FW0224.ARE OVERRIDE // Sewers
WRITE_ASCII 0x28c0 ~_MISC79~      // Replace Male Body with Female Body in Container 1
BUT_ONLY_IF_IT_CHANGES

COPY_EXISTING FW0226.ARE OVERRIDE // Sewers
WRITE_ASCII 0x239c ~UBFEBODY~     // Replace Male Body with the Sashenstar's daughter in Container 1 (with ruby ring)
WRITE_ASCII 0x2450 ~_MISC79~      // Replace Male Body with Female Body in Container 4
BUT_ONLY_IF_IT_CHANGES

Um... I'm not really sure how to do this unless I change ALL male bodies to female, rather than just one or two.  I was going to use this code:
Code: [Select]
COPY_EXISTING FW0224.ARE OVERRIDE // Sewers
  PATCH_IF (SOURCE_SIZE > 0x11c) BEGIN
    READ_LONG 0x54 actOff
    FOR (READ_SHORT 0x58 numAct; numAct; numAct -= 0x1) BEGIN
      READ_ASCII actOff + 0x80 actor
      READ_SHORT actOff + 0x20 xPos
      PATCH_IF (((xPos == 547) || (xPos == 1293)) &&
                !("%actor%" STRING_COMPARE_CASE "_READ3")) BEGIN
        WRITE_ASCII actOff + 0x80 _READ4 #8
      END
      actOff += 0x110
    END
  END
BUT_ONLY_IF_IT_CHANGES
and alter appropriately, but it's not going to work.  Ideas?
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline devSin

  • Moderator
  • Planewalker
  • *****
  • Posts: 1632
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #8 on: May 21, 2006, 02:49:58 PM »
I wanted to get this done, so: the following can replace the BG1UB code in a future version. For Tutu, you should be able to just replace AR0224 and AR0226 with FW (or whatever), make sure that the container name and coordinates are OK in the Tutu ARE files, and change the item references to whatever they are in Tutu. For fun, I decided to do a random replacement of a single body in the container in AR0226 that has two bodies. It should default to the second one (the one replaced now), but hopefully it will change if any mod that touches this area is installed. I checked to make sure the patch works on default BG area files, but you'll want to double-check and check the Tutu conversion. The patch will match a container by either name or exact coordinates (I don't know if FotD changes these areas or not), so it should be safe.
Code: [Select]
COPY_EXISTING AR0224.ARE OVERRIDE
PATCH_IF (SOURCE_SIZE > 0xd4) BEGIN
  READ_LONG 0x70 contOff  // Offset to containers
  READ_LONG 0x78 itmOff   // Offset to item list
  FOR (READ_SHORT 0x74 numCont; numCont; numCont -= 0x1) BEGIN
    READ_ASCII contOff contName (11)    // Container name
    READ_SHORT contOff + 0x20 contXloc  // Container X location
    READ_SHORT contOff + 0x22 contYloc  // Container Y location
    // Check by name and location, in case name is modified by FotD
    PATCH_IF (!("%contName%" STRING_COMPARE_CASE "CONTAINER 1") ||
              ((contXloc == 1924) && (contYloc == 1888))) BEGIN
      READ_LONG contOff + 0x40 itmIdx // Index of first item in list
      myItmOff = itmOff + (itmIdx * 0x14)
      FOR (READ_LONG contOff + 0x44 itmCnt; itmCnt; itmCnt -= 0x1) BEGIN
        READ_ASCII myItmOff itmRef // Item resource reference
        PATCH_IF !("%itmRef%" STRING_COMPARE_CASE "MISC80") BEGIN
          WRITE_ASCII myItmOff MISC79 #8 // Female body
        END
        myItmOff += 0x14
      END
    END
    contOff += 0xc0
  END
END
BUT_ONLY_IF_IT_CHANGES

COPY_EXISTING AR0226.ARE OVERRIDE
PATCH_IF (SOURCE_SIZE > 0xd4) BEGIN
  READ_LONG 0x70 contOff  // Offset to containers
  READ_LONG 0x78 itmOff   // Offset to item list
  FOR (READ_SHORT 0x74 numCont; numCont; numCont -= 0x1) BEGIN
    READ_ASCII contOff contName (11)   // Container name
    READ_SHORT contOff + 0x20 contXloc // Container X location
    READ_SHORT contOff + 0x22 contYloc // Container Y location
    // Check by name and location, in case name is modified by FotD
    PATCH_IF (!("%contName%" STRING_COMPARE_CASE "CONTAINER 1") ||
              ((contXloc == 827) && (contYloc == 1509))) BEGIN
      READ_LONG contOff + 0x40 itmIdx // Index of first item in list
      myItmOff = itmOff + (itmIdx * 0x14)
      FOR (READ_LONG contOff + 0x44 itmCnt; itmCnt; itmCnt -= 0x1) BEGIN
        READ_ASCII myItmOff itmRef // Item resource reference
        PATCH_IF !("%itmRef%" STRING_COMPARE_CASE "MISC80") BEGIN
          WRITE_ASCII myItmOff UBFEBODY
        END
        myItmOff += 0x14
      END
    END ELSE
    PATCH_IF (!("%contName%" STRING_COMPARE_CASE "CONTAINER 4") ||
              ((contXloc == 398) && (contYloc == 1414))) BEGIN
      READ_LONG contOff + 0x40 itmIdx // Index of first item in list
      READ_LONG contOff + 0x44 itmCnt // Number of items
      READ_SHORT 0x76 numItm  // Total number of items
      myItmOff = itmOff + (itmIdx * 0x14)
      PATCH_RANDOM_SEED myItmOff << (numItm / itmCnt)
      bodyCount = 0x0
      // Make sure there's more than one body before deciding which to replace
      FOR (i = itmCnt; i; i -= 0x1) BEGIN
        READ_ASCII myItmOff itmRef // Item resource reference
        PATCH_IF !("%itmRef%" STRING_COMPARE_CASE "MISC80") BEGIN
          bodyCount += 0x1 // Count those bodies!
        END
        myItmOff += 0x14
      END
      PATCH_IF (bodyCount) BEGIN
        PATCH_IF (bodyCount > 1) BEGIN
          theBody = RANDOM(1 bodyCount) // Random body replacement
        END ELSE theBody = 0x1
        myItmOff = itmOff + (itmIdx * 0x14)
        bodyCount = 0x1
        FOR (i = itmCnt; i; i -= 0x1) BEGIN
          READ_ASCII myItmOff itmRef // Item resource reference
          PATCH_IF !("%itmRef%" STRING_COMPARE_CASE "MISC80") BEGIN
            PATCH_IF (bodyCount == theBody) BEGIN
              WRITE_ASCII myItmOff MISC79 #8 // Female body
            END
            bodyCount += 0x1
          END
          myItmOff += 0x14
        END
      END
    END
    contOff += 0xc0
  END
END
BUT_ONLY_IF_IT_CHANGES
« Last Edit: May 21, 2006, 02:51:52 PM by devSin »

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #9 on: May 21, 2006, 03:59:11 PM »
Awesome, Mr. Sin, thank you.  :)
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #10 on: June 03, 2006, 01:54:21 PM »
re-sync Scar quest
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Tutu Conversion Progress
« Reply #11 on: June 03, 2006, 02:14:59 PM »
I'm still overwhelmed in fixing problems with the BG1 version, so I don't know when I'll resume work on the Tutu version.
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline cmorgan

  • Planewalker
  • *****
  • Posts: 1424
  • Gender: Male
  • Searcher of Bugs
Re: Tutu Conversion Progress
« Reply #12 on: June 03, 2006, 08:49:30 PM »
Hey, that actually is good news for me... I'm stuck still trying to track down BG1NPC stuff. Perhaps we coordinate mid July?

 

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