Note: This page has been moved to the new UESP-Wiki. The same content, just a different presentation.
This page very likely contains outdated information (last updated in 2005).
[the Unofficial Elder Scrolls Pages, 227x71, 4.2kb] UESP Main Page
Arena
Daggerfall
Battlespire
Redguard
Morrowind

Battlespire TXT.BSA Hacking

19 February 2011

The file TXT.BSA found in the GAMEDATA directory contains a ton of useful information. This page contains any useful information or formats gleaned from it. Feel free to contribute any new information or correct any errors found.

Magical Items List - 1 May 1998
Description of the magical item list found at the very beginning of the file.

Magical Items List - 1 May 1998

The start of the TXT.BSA file starts of with a long list of close to 300 magical items along with the spells and effects of each. The general format of each item is as follows:

		Name[0x09](string)[0x0D][0x0A]
		ID#[0x09](#)[0x0D][0x0A]
		Item[0x09](#)[0x0D][0x0A]
		Spell[0x09](#),(#),(#),(#),(#)[0x0D][0x0A]
		App[0x09](#),(#),...,(100)[0x0D][0x0A]
		Adv[0x09](#),....(100)[0x0D][0x0A]
		Uses[0x09](#)[0x0D][0x0A]
		Level[0x09](#)[0x0D][0x0A]
		[0x0D][0x0A](junk characters...ignore)[0x0D][0x0A]
The [0x09] is the ASCII character 9 which is a TAB. Similarily [0x0D] and [0x0A] are the Carriage Return and Line Feed characters. The (string) and (#) represent a variable text string or a decimal number. More detail on the description of each field follows. The item data starts at offset 4 and the last item begins at offset 0x6A08 (27144) and ends at 0x6A72 (27250). As you can see, item records are not fixed length so you'll have to read and parse line by line to get all the data.


Name Field
Well, this obvious contains the name of the item. There doesn't appear to be the same notation as in Daggerfall with the '%it' string (for those familiar with it) but the string contained is merely attached to the end of item name. So typical item names are 'of the Something', 'of Something Else'. There are a few items with complete names such as 'Battlespire Cape of Arcane Sight' which may possibly be identfied with their ID#. Not sure how long the names can become before causing problems in the game.


ID#
This number is unique for each item (I think) and is most likely used by the program for identifying it.


Item
This field usually takes on a value of 0-4 and I am unsure what exactly it does.


Spell
This field specifies which spell the item is enchanted with and is divided into five sections:

	[cast when equipped], [cast when used], [cast when strikes], [strength], [type]
The cast sections hold the spell number to be cast when the object is used, etc... A number of -1 means that there no spell contained. All the known items have only one spell effect so multiple spells (ie, casting when used and casting when strikes, etc...) may not be possibl. The known spells with their numbers follow.

Number Spell Name
-1 No Spell
1 Summon Monster
2 Detect Spell
3 Cure Health or
Detect Enemy?
5 Invisibilty
8 Slowfall
9 Continual Damage
10 Poison
11 Confusion
12 Vampiric Drain
13 Delayed Damage
14 Unknown
15 Spell Reflection
16 Spell Resistance
17 Spell Absorption
18 Damage Health Spell
19 Fire Shield
20 Cure Poison
21 Cure Health
22 Jump
24 Running
25 Teleport
26 Shield
27 Resistance to Elements
28 Unknown
39 Resistance to Elements
40 Unknown

The strength of the spell is a number ranging from 1 to 8, with 1-3 being a minor effect, 4-5 being moderate, 6-7 being major, and 8 being very potent (and rare). There are a number of discrepancies in the spell strength and strength listed in the various books, but one can assume that this is a typographical error (Major and Minor effects are often reversed). The strength has some different effect on different spells. For example, for summon monster the higher the strength the more powerful/smart the monster summoned is. For damage based the more damage it does, for healing the more damage it heals etc...

The type of spell relates to which element it belongs to.

Number Type
0 All/General?
1 Fire
2 Frost
3 Magic
4 Poison
5 Shock

Depending on the spell the type section has slightly different effects. For damage spells the type is never 0 while for resistance spells a type of 0 means resistance to all elements. Of course fpr some spells (like, Cure Health, etc...) this section has no meaning.


App Field
This field relates to what skills are effected and by how much. This is a variable length field which is of the form.

		App ([skill], [modifier]), 100
	Examples:
		App 100
		App 10, 20, 100
		App 10, 20, 11, 15, 12, 30, 100
In other words, there is a list of skills and modifiers terminated by the number 100. The modifier is the amount by which the skill is increased, or decreased (since negative values are allowed). The skill numbers are as follows:
Number Skill
1 Jumping
3 Stealth
4 Swimming
5 Backstabbing
7 Running
8 Destruction
9 Restoration
10 Illusion
11 Alteration
12 Thaumaturgy
13 Mysticism
14 Short Blade
15 Long Blade
16 Hand to Hand
17 Axe
18 Blunt Weapon
19 Missile


Adv Field
This is another variable length field of the form.

		Adv ([Ability])
	Examples:
		Adv -1
		Adv 10
		Adv 20, 12, 13
If there are no abilities enchanted into the item, a -1 value is found. Otherwise there is a list of one or most ability numbers:
Number Ability
10 Fire Immunity?
24 Athleticism

There are many more abilities which are unknown (numbers up to 50 have been observed) and these are all things like resistances, immunities, weaknesses etc... (as found in the character creation process).


Uses
Well, this contains the number of times a magical item can be used. For items without spells it would hold how durable the object is. Typical values here are 10 or 20 uses although a few items have values of 30 or even 50. Several 'special' quest related items have a value of -1 indicating that they cannot be used or destroyed (most likely).


Level Field
Most items have a level value of 0 although a few have a value of 1 or 2. Perhaps this relates to how powerful the item is, I'm not sure. Perhaps its not even used at all.


[Print] Display this document for printing (some pages may not display properly).

If you have any problems, suggestions or comments on this page or website, please feel free to use the Contact Form to send a message to the WebMaster.
This document was last modified on: Saturday, 19 February 2011, at 09:55:05 and has been accessed 5719 times ( /battle/txtbsa.shtml ).

Please note that this site is Completely Unofficial and is in no way connected to Bethesda softworks or Zenimax. Bethesda Softworks, Battlespire, XnGine, Morrowind, Redguard, Daggerfall, Arena and The Elder Scrolls are trademarks of Media Technology Limited, Copyright © 1994-2001 Media Technology Limited.