Author Topic: Altering NPCs in Ravenloft and Menzoberrenzan Games  (Read 699 times)

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Altering NPCs in Ravenloft and Menzoberrenzan Games
« on: November 25, 2016, 06:02:17 AM »
In Menzoberrenzan and the two Ravenloft games (Ravenloft 1 - Strahd's Possession and Ravenloft 2 - Stone Prophet) you start off with only 2 PCs, out of a possible 4.
In Ravenloft 1, Strahd's Possession, I found the NPCs available were not suited to my PCs, an Elven Fighter/Mage and a Half Elf Cleric/Mage.
So I went and altered Tatian from a Fighter to a Ranger/Cleric. While I was at it, I increased her Strength from 12 to 18.

I Googled UGE and found a site that has modules for the three games, look at post #4:
https://www.gog.com/forum/forgotten_realms_collection/universal_game_editor
« Last Edit: November 29, 2016, 08:37:26 PM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #1 on: November 26, 2016, 08:35:00 PM »
For an understanding of the game files in RL2, see Decrypting Game Files topic:
http://ua.reonis.com/index.php?topic=1460.0

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #2 on: November 30, 2016, 06:21:05 AM »
I can't get UGE to run on my Windows 10 PC.
However, UGE modules may be accompanied by two useful files: the lst file and the Readme. These enable you to understand what the sav file is all about.

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2183
    • Nol Drek's Web Site
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #3 on: November 30, 2016, 11:44:37 PM »
UGE doesn't work with Windows 10 for me either. I use HxD for my hex editing now instead.
"Into the Drachensgrab Mountains!"

http://www.noldrek.com

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #4 on: December 01, 2016, 02:25:37 AM »
I have managed to get it to work via DosBox. I don't know if all functions work or not.

For those who are not familiar with DosBox: the configuration file is called "dosbox-0.74.conf", omit quotes.
It is found at a place like this:
C:\Users\[LoginName]\AppData\Local\DOSBox\

This text is put at the very end of the file:
MOUNT C C:\OldGames
C:
cd C:\UGE10
UGE

(Create a folder called OldGames and put the UGE folder there. I assume the use of UGE 10 for the UGE folder name.)

When looking through folders for save games, "Ravenl~1" is RL2 and vice versa...

HxD is good, I use it too.

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #5 on: December 05, 2016, 08:49:13 PM »
A module was developed by Gotcha from the Gog forums:
http://avatar.home.xs4all.nl/crap/RL1RL2MENZO_UGE.rar
Typically the modules miss the three items between rings and spells, Necklace, Quiver   and Bracers/Gauntlets. Ditto the party's location offsets.

RL1: around certain areas the monsters are life-draining undead yet there are no sources of cure for level drain! Unlike other games there are no temples or Scrolls of Restoration.
Only prevention is Protection from Negative Plane spell, which is removed when such an undead scores a hit. UGE comes in handy when a PC is level drained.
« Last Edit: December 30, 2016, 01:54:32 AM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #6 on: December 30, 2016, 02:17:07 AM »
These variables can be added to your mdl file if you want:

For RL1:
Save Game Name 1         0          16          letters     TEXT
Save Game Name 2        16          16          letters     TEXT
Map Number              82           1          byte        0 thru 255
Free Move Y             86           2          bytes       0 thru 65,535
Square Move Y           88           1          byte        0 thru 65,535
Free Move X             90           2          bytes       0 thru 65,535
Square Move X           92           1          byte        0 thru 65,535
Angle of view           94           2          bytes       0 thru 65,535

For RL2 and Menzo:
Save Game Name 1          0         16          letters     TEXT
Save Game Name 2         16         16          letters     TEXT
Map Number              106          1          byte        0 thru 255
Free Move X             110          2          bytes       0 thru 65,535
Square Move X           112          2          bytes       0 thru 65,535
Free Move Y             114          2          bytes       0 thru 65,535
Square Move Y           116          2          bytes       0 thru 65,535
Angle of view           118          2          bytes       0 thru 65,535

Necklace, Quiver and Bracers can be inserted via the Cluster function. This data below is for RL1 only:
Char #1 Body Armor      215          2          bytes       +/- 32,767
Char #1 Head Armor      217          2          bytes       +/- 32,767
Char #1 Necklace        219          2          bytes       +/- 32,767
Char #1 Quiver          221          2          bytes       +/- 32,767
Char #1 Bracers         223          2          bytes       +/- 32,767
Char #1 Armor Spells    225          1          byte        0 thru 255
Char #1 Burn.Hands      226          1          byte        0 thru 255
« Last Edit: January 04, 2017, 12:41:21 AM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #7 on: January 04, 2017, 01:17:01 AM »
In RL2 water is a constant concern. Now where in the save.dat file would you find the entry for each PC's current water level?
I made a save where the party had about 2/3 of its maximum water levels. Then a Cleric cast Create Water and everyone received their maximum water levels. I promptly made a second save game.
Next step was to open the Command Prompt and do File Compare of the two save.dat files:
FC /B SAVE.DAT WSAVE.DAT
(As all save.dat files have the same name, regardless of which save game folder they are found in, I had to rename one of the files. So second save.dat file got renamed to "WSAVE.DAT".)
The printout gave me 73 numbers. The RL2 lst file is called Prophet.lst, it shows the first PC entry as:
   9  Char 1 Name               14122  12 letters        TEXT       
Hence any number less than 14,122 would not be relevant. Ditto any number over 18,329.
(Each of the four PC records has a length of 1,052 Bytes. 4*1,052 = 4,208.
14,121 + 4,208 = 18,329)
This left only eight possible numbers:

14929      32      48
15981      32      48
16478      17       1
16678       3       0
17033      32      48
18085      32      48
18334     213     158
18335      69      70


Immediately obvious is that four numbers had a 32 and 48 pattern. They were the correct answer.

Now what if all the numbers had been different?
As all four PC records has a length of 1,052 Bytes, you could check them for mod 1,052. For each PC the Water Level should occur at the same place in the PC record, it should have the same mod versus 1,052. Here the modulo figures have been added at the right:

14929     32      48     201
15981     32      48     201
16478     17       1     698
16678      3       0     898
17033     32      48     201
18085     32      48     201
18334    213     158     450
18335     69      70     451
« Last Edit: January 04, 2017, 01:22:16 AM by Ishad Nha »

Offline Kaz-Keith

  • Sr. Member
  • ****
  • Posts: 486
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #8 on: January 31, 2017, 06:13:11 PM »
Ishad thanks for posting this!

I've gone ahead and purchased the GOG versions of both games and the uge edits outside of Win10 via both Dosbox and a windows system command prompt  ;)  worked out great.


Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 945
Re: Altering NPCs in Ravenloft and Menzoberrenzan Games
« Reply #9 on: January 31, 2017, 10:44:42 PM »
Check the UGE - FRUA Hacking topic. A few things have been learned over the last few months.

Level draining is a major hassle in RL1. It is not explicitly labelled in the PC screen, unlike poisoning. Keep an eye on the XP each PC has, a drained PC can only be detected by having less XP than other PCs.

 

anything