View Single Post
Old 12-28-2007, 06:15 AM   #1
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 594
Question Mark Decrypting Save Game Files

Initial Part of File
I have not been successful at all here.
Places 37-60: PC in party? Seems to be one "1000" for each PC in the party, dead or alive.
Place 229 seems to be the number of records or PCs in party.
There is obviously a roster of PC names and statuses from places 233 thru 424.

There follows a lot of apparently encrypted stuff. I think it starts at place 425 but I am not sure.

PC Records
The records that I examined were found at the very end of the save game file, they were all 10,766 characters in length, in at least one save game.

Place 01: PC now in party?
Place 05: marching order, 0 to 5
Places 09 thru 24: name
Place 25: gender, 0 = male, 1 = female
Place 27: race, 0 thru 9
Place 29: current class, 0 thru 14
Places 31 thru 46: stats

Places 47 thru 110: ???!!!
A whole lot of zeroes
Places 243?
Places 245?
Place 247: current hp
Place 249: maximum hp

Place 255: how much the PC weighs.

Places 265 thru 268: PC’s money
Place 269: age of PC
Places 273 thru 276: Current XP
Places 277 thru 280: XP for the Next Level
Place 281: level in current class

Place 307: PC 2D portrait

Place 323:386, start of the skills listings, they are "short", two places are used to record each skill. Now a skill of 1 translates to a listing of around 100. Now the exact formula is not clear to me, it is roughly: each skill is around 1.5 times the previous skill, plus 100. Thus if level 5 equates to a listing of around "1,318", level 6 equates to roughly "2,075".

Places 401 thru 409, the traits, in a binary sum character format: sums of 1 thru 128

Places 473 thru 496: mana available for each of the six spell spheres: Spirit, Sun, Moon, Vine, Stone, Fiend

Place 497 thru 664: start of the spells known listings, arranged by sphere and then by spell level, binary sum followed by three empty places?!

Place 665: start of the item listings: each of 86 characters
6,708 = 78 * 86, this means 56 backpack listings and 18 equipped

Place 7,373: start of what follows the item listings

place 10,117: number of kills
place 10,129: number of assists
Place 10,133: start of guild levels listings, then three places of unknown meaning
Place 10,140: start of previous classes listings
Place 10,177: start of bank account balance, seems to be the same for all three towns.

Perceived pattern for item records:
Total number of characters per entry is 86.
Places 01,02: Item number, 2 characters
Places 03,04: Item strength, expressed as an absolute number,
Places 05,06: invoking of a power?
Places 07-10: quantity: number of charges or items in bundle
Places 11-32: Identified name, 22 characters
Places 33,34: spell powers
Places 35-46: damage done
Places 47,48: column 189 from D6Item.dat?
Placed 49,50: column 191?
Places 51–63: Resistance listings, 13 characters. (May include places 64, 65 and 66).
Places 67,68: Enchant
Places 69,70: to hit
Places 71,72: Parry
Places 73,74: number of multiples of AC base?
Places 75,76: regeneration
Places 77,78: toughness?
Places 79: ??
Places 81: ??
Places 83: ??
Places 85: ??

*Damage done to an item is subtracted from the figure in column 3.
Last four places are usually empty.
My understanding is that all other qualities of an item are read from the main file, D6Item.dat

List of traits, numbers 0 thru 65:
War Cry, Giant Strike, Ironmight, Fury, Spellfire, Guardian Ward, Sneak, Hawk's Brow, Trickery, Ancestral Guide, Noble Cause, Berserk, Spirit Shield, Lethal Fist, Mana Seed, Backstab, Enlightenment, Soul Bane, Firebrand, Mindspeak, Snakeskin, Invincible Will, Divine Aura, DoubleStrike, Mercury's Heel, Stunning Blow, Dodge, Fletchery, Ancient Lore, Blacksmith, Occultist, Cabalist, Healer, Scroll Lore, Merchant, Quick Learner, Soul Drain, Iron Lung, Grave Bind, Nature's Keeper, Faery Wings, Arm Of Argus, Boogreism, Vampirism, Crusade, Oath Of Swords, Oath Of Scrolls, Arcane Void, Bloodscent, Blood Realm, Regeneration, Night Vision, Lucky Charm, Gold Digger, Tiger Strike, Quickspeak, Deadfall, Heroic Legacy, Guardian Angel, Chi Master, Dragon Fire, Cloak Of Night, Evil Eye, Vampire Breath, Natural Leader, Musician

List of Skills, numbers 1 thru 32:
Sword, Axe, Mace, Pole&Staff, Dagger, Bow, Throwing, 2nd Weapon, Shield, Kung Fu, Sorcery, Spiritcraft, Suncraft, Mooncraft, Vinecraft, Stonecraft, Fiendcraft, Leadership, Athletics, Scout, Traps&Locks, Pickpocket, Stealth, Forge, Artifacts, Enchants, Blessings, Gallantry, Prowess, Deathstrike, Incantation, Music

List of Books of Spells:
Spirit, Sun, Moon, Vine, Stone, Fiend

List of item icons, numbers 0 thru 245:
i_lsword, i_katan3, i_ssworp, i_katan2, i_batax2, i_mace2, i_hammr2, i_mace1, i_bastrd, i_2hand, i_katan4, i_mavin, i_longax, i_pikewp, i_lance, i_dagger, i_throw, i_dart, i_star, i_stave, i_lngbow, i_shbow, i_sling, i_arow1, i_cbbolt, i_bullet, i_bucklr, i_smshld, i_mdshld, i_lgshld, i_wdshld, i_cvshld, i_rod01, i_wand01, i_potn01, i_potn02, i_potn03, i_amul01, i_amul02, i_scroll, i_powd01, i_powd02, i_powd03, i_bomb, i_ring, i_braclt, i_necklc, i_torch, i_torch2, i_lantrn, i_key01, i_key02, i_key03, i_crsbow, i_chnbts, i_chnglv, i_chnhlm, i_chnleg, i_chntop, i_dbtbts, i_dbtleg, i_dbttop, i_karleg, i_kartop, i_lthbts, i_lthleg, i_lthtop, i_lthglv, i_nnbbts, i_nnbhlm, i_nnbleg, i_nnbtop, i_nnrbts, i_nnrhlm, i_nnrleg, i_nnrtop, i_pltbts, i_pltglv, i_pltleg, i_plttop, i_pstrob, i_katan1, i_swdrap, i_barhlm, i_conhlm, i_fulhlm, i_grthlm, i_salhlm, i_plnrob, i_magrob, i_rod02, i_wand02, i_wand03, i_staf01, i_staf02, i_book01, i_book02, i_openpk, i_basich, i_dblax, i_genie, i_gldsck, i_gndlfh, i_axeogr, i_skull, i_jewelk, i_kerahs, i_koolie, i_lizskl, i_magich, i_priest, i_ratskl, i_robinh, i_samrih, i_sdeath, i_shellh, i_shellp, i_shovel, i_trtlsh, i_tridnt, i_lhrhlm, i_lktgld, i_wlfbne, i_ssword, i_box, i_openbx, i_pouch, i_openpo, i_bnbag1, i_bnbag2, i_wndskt, i_barbra, i_token, i_incnse, i_potmty, i_potblu, i_potred, i_potyel, i_cpoker, i_hpoker, i_monkey, i_csnake, i_spdreg, i_helmsk, i_sledge, i_pckaxe, i_metblb, i_cyngem, i_grngem, i_prpgem, i_redgem, i_vltgem, i_ylwgem, i_keymin, i_trylvr, i_evleye, i_ogrcsk, i_wddowl, i_ivybnd, i_jwlbnd, i_bigjwl, i_drgpc1, i_drgpc2, i_drgpc3, i_hndcrk, i_elbrim, i_elskcn, i_blkidl, i_mkypaw, i_tusk, i_throck, i_keyshr, i_ringva, i_ankh, i_keylch, i_sunkey, i_anakey, i_glyph1, i_glyph2, i_glyph3, i_angel1, i_angel2, i_anaurn, i_lghtob, i_push, i_lyhart, i_pierat, i_keyher, i_lokpih, i_necalg, i_scrol3, i_hide, i_arow2, i_arow3, i_arow4, i_axmagi, i_barbts, i_sprmag, i_batax3, i_hammer, i_book05, i_bowmag, i_club, i_dagmag, i_dart2, i_gauche, i_karbts, i_katan5, i_lsworm, i_batax, i_macema, i_maghm2, i_plthlm, i_potgre, i_potorg, i_potpur, i_sambts, i_samglv, i_samleg, i_samtop, i_samrob, i_shroud, i_swdbrd, i_swdflc, i_swdflm, i_rapegg, i_trseed, i_hatelf, i_hatinv, I_bbband, I_bigorn, I_bigred, I_grnbnd, I_ingot, I_hook, I_amul03, I_amul04, I_amul05, I_amul06, I_bracbr, I_bracebl, I_bracst, I_flute, I_lute, I_lyre, I_pipes.

Icons for terrain features that can be dragged, number 0 thru 37:
I_anablk, I_anaobl, I_anasta, I_anatal, I_anawid, I_barbrk, I_barl1, I_barl2, I_bucket, I_chest, I_chrcrb, I_chrcry, I_chregy, I_chror1, I_chror2, I_chrwod, I_chsteg, I_chstpi, I_coffin, I_cratbr, I_cratdw, I_crate, I_craten, I_crateo, I_cratet, I_drblok, I_foodca, I_logrud, I_ogrbar, I_pot1, I_sarcop, I_swheel, I_urnanb, I_urnans, I_urnceb, I_urnces, I_vasmar, I_vaswhi

0 = Human, 1 = Elf, 2 = Dwarf, 3 = Gnome, 4 = Pixie, 5 = Omphaaz, 6 = Whiskah, 7 = Gourk, 8 = Ratling, 9 = Lizzord

List of Classes, numbers 0 thru 14:
Warrior, Wizard, Priest, Rogue, Ranger, Bard, Samurai, Paladin, Barbarian, Monk, Ninja, Warlock, Assassin, Zenmaster, Valkyrie

List of the eight stats, numbers 0 thru 7:
Strength, Intellect, Spirituality, Dexterity, Agility, Fortitude, Will, Presence

Last edited by Shadow Stranger; 02-16-2008 at 06:43 PM. Reason: Grappling with initial part of file.
Shadow Stranger is offline   Reply With Quote