Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > Dungeon Craft - RPG Game Maker

Reply
 
Thread Tools Search this Thread
Old 05-20-2009, 02:48 AM   #1
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 594
Choc Decrypting FRUA Save Game Files

I am currently decrypting the FRUA save files. This may be useful in DC when start wholesale importing of FRUA designs along with save files provided by the authors.

I got a surprise when I looked in the folder: CSV files! (They are usually Microsoft Excel files, so you see the Excel icon in the save game folder. I don't know why SSI chose a "csv" extension for these files.)

Anyway, instead of 13 individual "dat", "sav" and "stf" files and up to 6 "sfx" files you have just one "csv" file. So where do the individual PC records start? This is hard to tell, fortunately the "cch" files are one per PC. When you create a PC the details are recorded in a "cch" file, which is never altered.

Quote:
Originally Posted by manikus View Post
You need to go to the Rosedragon repository and look through the stuff there. As there are multiple PC editors for FRUA, including trainers, I am sure that you will be able to find the notes for decrypting the save file.

Let me find the address in case you don't have it...
http://frua.rosedragon.org/index.htm

In computing, "csv" usually refers to "comma separated values/variables". I don't know about MS Excel using this as a file extension, but this is one of the oldest type of data file formats going back to the first mail merge files on Unix machines. But, it might also provide a hint as to the sturcture of the file - what that means after it's been encrypted is beyond me to say, but it might help an expert like you.
Some of those editors look home grown to the point of dodgy.
As for the FRUA csv files they seem to have no connection living or dead to anything Excel, they seem to be pure "dat" files. In Excel the csv files are the most basic possible spreadsheet, they are to spreadsheets what plain text is to MS Word documents.

Edit:
The FAQ part of RoseDragon had a Hacking part that showed a decryption of the CCH files.
http://frua.rosedragon.org/faq/

Edit:
If you want a character of level N but have doubts about the PC Editor:
set the level to N-1
set the xp to what is needed for level N
alter hp if desired
make any other changes needed like altering a Mage spellbook.
Start the game or reload the relevant save game, go train the PC, game will handle all the stuff you don't know about.

Last edited by Shadow Stranger; 05-20-2009 at 07:20 AM.
Shadow Stranger is offline   Reply With Quote
Old 05-20-2009, 09:28 PM   #2
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 594
Ironworks Forum Re: Decrypting FRUA Save Game Files

Today's notes:
"198~338: Memorized Spells (one byte per spell; will decode later)"
The bytes used for each spell seem to come from those given in Hacking Questions 6d: Spell Codes.
"339~354 Spell Book (one bit per spell; will decode later. Spells are designated by integer value from 1 to 126 if memorized, or 129 to 254 if not memorized. For Cleric, Paladin, or Ranger, spell book is automatically updated to include all due spells.)"
Spell Book is the list of all spells that a PC can memorize and cast. It is recorded in bitwise format using the same list of spells as for Memorized Spells. Thus for the first byte: 1 = C: Bless, 2 = C: Curse, 4 = C: Cure Light Wounds, 8 = C: Cause Light Wounds, 16 = C: Detect Magic, 32 = C: Protection from Evil, 64 = C: Protection from Good, 128 = C: Resist Cold. Each byte can record the absence or presence of 8 spells, there are 16 bytes so 8*16 = 128 possible spells.
Currently I don't understand what the author meant by the second sentence, "Spells are designated by integer value from 1 to 126 if memorized, or 129 to 254 if not memorized."

Edit:
In the actual save game file, the records for each PC are of variable length, records vary according to the number of items or special abilities that each PC has. So how does the game know where each record starts? I don't know, that is what I will be researching.

Last edited by Shadow Stranger; 05-21-2009 at 08:15 PM.
Shadow Stranger is offline   Reply With Quote
Old 05-22-2009, 10:04 AM   #3
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 594
Tacked Note Re: Decrypting FRUA Save Game Files

Daily update:
It seems that the first two numbers in a PC record are a short number that is equal to (N*398), where N is the marching order of the PC. The next two numbers are 97,97. These numbers only occur in the csv file, when the pc has already been added to the party, and has a marching order. They don't seem to occur for the sixth PC. There seems to be no table listing offsets that I can find. So I can only guess that the program looks for the four number sequence "(N*398),97,97". What it does for the sixth PC I don't understand.

Edit:
Immediately after the PC and NPC records comes 255 item records. Then comes a repetition of the PC/NPC records, this is just pure filler. The file is 10,285 bytes in length, as the number of PC/NPC items increases the filler decreases in length.
Edit:
The 97,97 may actually be 79,79.

Last edited by Shadow Stranger; 04-27-2010 at 12:01 AM.
Shadow Stranger is offline   Reply With Quote
Old 05-23-2009, 09:18 PM   #4
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 594
Tacked Note Re: Decrypting FRUA Save Game Files

The item records found in the csv file seem to be the same as for Item.dat.

Last edited by Shadow Stranger; 06-10-2009 at 08:14 AM.
Shadow Stranger is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Decrypting Save Game Files Shadow Stranger Wizards & Warriors Forum 12 01-28-2014 08:56 AM
Decrypting Save Game Files: SSI Gold Box Shadow Stranger Miscellaneous Games (RPG or not) 0 05-06-2009 09:47 PM
Editing Save Game Files Shadow Stranger Miscellaneous Games (RPG or not) 1 09-10-2008 10:09 AM
since im here, a ? about save game files Darc_Mind Baldurs Gate II: Shadows of Amn & Throne of Bhaal 3 03-08-2002 05:37 AM
Restoring my save game files??? frostg1ant Wizards & Warriors Forum 3 10-27-2001 05:28 PM


All times are GMT -4. The time now is 07:58 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved