Txt File Limits
Moderator: Nizari
Txt File Limits
There have been a number of posts on this, but they always fall below the horizon sooner or later. I thought I would create this sticky, if anybody knows new or changed limits this list can be updated. The previous threads I found were here and here.) And Kraj pointed out this thread as well.
armor.txt - 1024 rows * (armor stands are limited)
misc txt - most likely 32768 rows
weapons.txt - 1024 rows * (weapons racks are limited)
These three files are a single file internally, their sum total of records must never exceed 65536 (and to be safe 32768)
automagic.txt - at least 4096 (Currently have 2905 in my Mod - Talon)
itemstatcost.txt - 512 rows
gems.txt - 256 rows
itemtypes.txt - 65536 rows
levels.txt - 133 rows * // 1024 rows with afj's extended levels plugin
lvlprest.txt - 1091 rows // 32767 in v1.11+ (and afj's extended levels plugin in v1.10)
magicprefix.txt - 2048 rows
magicsuffix.txt - 2048 rows
missiles.txt - most likely 32768 rows
monprop.txt - probably 32768 not 1024 rows
monstats.txt - 32768 rows (if you encounter problems, check your chains!)
monstats2.txt - probably 32768 not 1024 rows
objects.txt - 574 rows * // 32768 rows with afj's extended objects solution
objType.txt - 574 rows * // 32768 rows with afj's extended objects solution
rareprefix - 256 rows
raresuffix - 256 rows
runes.txt - 4096 rows
setitems.txt - 32768 rows
sets.txt - 4096 rows (32768 in file load)
skills.txt - 32768 rows (512 rows if skills on items or edit ItemStatCost)
skilldesc.txt - 32768 rows (512 rows if skills on items or edit ItemStatCost)
states.txt - 256 rows
superuniques.txt - 512 rows (code rather restricted, real functional limit lower)
uniqueitems - 4096 rows
* cannot be expanded without code editing
armor.txt - 1024 rows * (armor stands are limited)
misc txt - most likely 32768 rows
weapons.txt - 1024 rows * (weapons racks are limited)
These three files are a single file internally, their sum total of records must never exceed 65536 (and to be safe 32768)
automagic.txt - at least 4096 (Currently have 2905 in my Mod - Talon)
itemstatcost.txt - 512 rows
gems.txt - 256 rows
itemtypes.txt - 65536 rows
levels.txt - 133 rows * // 1024 rows with afj's extended levels plugin
lvlprest.txt - 1091 rows // 32767 in v1.11+ (and afj's extended levels plugin in v1.10)
magicprefix.txt - 2048 rows
magicsuffix.txt - 2048 rows
missiles.txt - most likely 32768 rows
monprop.txt - probably 32768 not 1024 rows
monstats.txt - 32768 rows (if you encounter problems, check your chains!)
monstats2.txt - probably 32768 not 1024 rows
objects.txt - 574 rows * // 32768 rows with afj's extended objects solution
objType.txt - 574 rows * // 32768 rows with afj's extended objects solution
rareprefix - 256 rows
raresuffix - 256 rows
runes.txt - 4096 rows
setitems.txt - 32768 rows
sets.txt - 4096 rows (32768 in file load)
skills.txt - 32768 rows (512 rows if skills on items or edit ItemStatCost)
skilldesc.txt - 32768 rows (512 rows if skills on items or edit ItemStatCost)
states.txt - 256 rows
superuniques.txt - 512 rows (code rather restricted, real functional limit lower)
uniqueitems - 4096 rows
* cannot be expanded without code editing
Last edited by Myhrginoc on Tue Nov 20, 2007 5:47 am, edited 4 times in total.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
- Brother Laz
- Dominion
- Posts: 6715
- Joined: Mon Jun 03, 2002 10:06 am
- Location: Fallen Like Lightning
- Contact:
Re: Txt File Limits
Overlays.txt probably 65535 or 32767 (I'm using +300 rows currently so, it's at least not limited to 256 )
Missiles.txt 65535 or 32767
Missiles.txt 65535 or 32767
overlay seems to have a 32767 limits, same for missiles.
"How much suffering, mortal, does it take before you lose your grace?"
Shadow Empire (coming soon) | forum
Shadow Empire (coming soon) | forum
Re: Txt File Limits
Not exactly a txt file but maby worth mentioning
animdata seems to be limited to 5000 lines, this might be just a tool limit in animdata_edit but still prevents us from packing a file with more than 5000 rows
animdata seems to be limited to 5000 lines, this might be just a tool limit in animdata_edit but still prevents us from packing a file with more than 5000 rows
- Doombreed-x
- Arch-Angel
- Posts: 1304
- Joined: Thu Jul 15, 2004 6:40 pm
- Location: No more flag. :(
Re: Txt File Limits
cubemain.txt? Please don't say it's 512.... or lower
I swear I had a thread that compiled all the known text file limits, but I can't find it. I'll keep looking. In the meantime, I don't think anyone has found a limit to cubemain yet, either logical or real. The MoAII alpha has more than 46,000 working recipies - IIRC Zy-El has more than that.
EDIT: A-Ha! Foudn it:
viewtopic.php?t=28105&postdays=0&postorder=asc&start=0
As far as I know this thread has every limit known so far. I don't think I was updating the list I created as people posted so you may need to check through both pages of the thread.
EDIT: A-Ha! Foudn it:
viewtopic.php?t=28105&postdays=0&postorder=asc&start=0
As far as I know this thread has every limit known so far. I don't think I was updating the list I created as people posted so you may need to check through both pages of the thread.
Last edited by Kraj on Tue Feb 08, 2005 10:28 pm, edited 1 time in total.
- Doombreed-x
- Arch-Angel
- Posts: 1304
- Joined: Thu Jul 15, 2004 6:40 pm
- Location: No more flag. :(
Re: Txt File Limits
Awesomepants, thanks! I was suddenly worried when I hit the 512 mark and was getting some errors with recipes.
Re: Txt File Limits
Zy-El was up near 150,000 cube recipes...but of course that was v1.09x.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
- Paul Siramy
- Principality
- Posts: 2828
- Joined: Sat May 25, 2002 2:39 pm
- Location: La Garenne Colombes (near Paris)
- Contact:
Re: Txt File Limits
It is indeed a tool limit.Volf";p="211243" wrote:Not exactly a txt file but maby worth mentioning
animdata seems to be limited to 5000 lines, this might be just a tool limit in animdata_edit but still prevents us from packing a file with more than 5000 rows
The original AnimData.d2 contain 3559 entries. At the time I created the tool, I tought 5000 was wel enough. Not the first time I implement limits in a tool only to discover some months later that my users ask for more I'll rewrite the tool, normally today. I'll try to remove the limits, and to sort the result by filenames while I'm on it.animdata_edit.c" wrote:#define MAX_RECORDS 5000
DT1 Tools - DS1 Editor - MPQ list file - Extracting D2 Animation - Adding ANY Monsters and ANY Objects to a DS1 - New monster color variations from scratch
In development since 16 Feb 2012 : MergeDCC v2
In development since 16 Feb 2012 : MergeDCC v2
- Brother Laz
- Dominion
- Posts: 6715
- Joined: Mon Jun 03, 2002 10:06 am
- Location: Fallen Like Lightning
- Contact:
Heh, wasn't 640k of memory enough for anybody...?Paul Siramy" wrote:I tought 5000 was wel enough. Not the first time I implement limits in a tool only to discover some months later that my users ask for more
......
I'm still seeing phantom limits in certain txt files - new lines being ignored after a certain point, which is not a power of 2. Am I seeing things, or is there something else like say 256 new missiles, or 1024 missiles minus the hardcoded ones, or...?
I'm positive there is 'something' out there, until there is a scientific explanation.
19.may.2007 | Adun Tori Laz.
Median XL released!
Flesyht sa ruobhgien yht etah.
y dont u play the game the way its supposta be played? -SlothNathan
Median XL released!
Flesyht sa ruobhgien yht etah.
y dont u play the game the way its supposta be played? -SlothNathan
Re: Txt File Limits
One thing to remember is that both skills/skilldesc and missiles needs unique names. If you have duplicated name it will use wrong rows (duplicated row is just ignored and it uses previous row or something's like that).I'm still seeing phantom limits in certain txt files - new lines being ignored after a certain point, which is not a power of 2. Am I seeing things, or is there something else like say 256 new missiles, or 1024 missiles minus the hardcoded ones, or...?
maybe it is that in files where rows can refer to each other, the row referred to may not be further away than some limit...?
[color=FF0000]d2:elements FINAL v1.0 download[/color] - - [color=FF0000]d2:elements FINAL update v1.01 download[/color] - - [color=FF9900]d2:elements website[/color] - - [color=FF9900]d2:elements forum[/color] - - [color=FF9900]Forum TOS[/color]
Avatar image is taken from the Wishmaster cover by the band Nightwish
Avatar image is taken from the Wishmaster cover by the band Nightwish
- Brother Laz
- Dominion
- Posts: 6715
- Joined: Mon Jun 03, 2002 10:06 am
- Location: Fallen Like Lightning
- Contact:
Re: Txt File Limits
All columns that are readed as Index requires unique_name. Missiles.txt are one of those, states.txt are another oneDo duplicate names matter in nonlinked files, such as missiles.txt and states.txt?
You just need to think, how would the game know I'm on row #100?
I learned my first assembly dialect on a PDP8 with 32KB, these people with MB and GB of RAM don't know the meaning of programs with small footprint.Brother Laz" wrote:Heh, wasn't 640k of memory enough for anybody...?
(I don't want to go back either...)
Some people see these phantom limits, some don't, and they don't ever seem to be in the same row. That certainly implies questionable content, rather than special record pointers. Nonetheless, there are true limits which don't appear in the data loading code: weapon racks and armor stands allow much less than weapons.txt and armor.txt can hold, there is no reason a 32-bit monster index can't exceed 1023 without an imposed limit, and what about nine bits for ItemStatCost IDs?I'm still seeing phantom limits in certain txt files - new lines being ignored after a certain point, which is not a power of 2. Am I seeing things, or is there something else like say 256 new missiles, or 1024 missiles minus the hardcoded ones, or...?
I'm positive there is 'something' out there, until there is a scientific explanation.
d2common.10600 and friends? The game does a lot of business using record index numbers.kingpin" wrote:You just need to think, how would the game know I'm on row #100?
Last edited by Myhrginoc on Thu Feb 10, 2005 5:42 am, edited 1 time in total.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
Question - in one of the linked posts SVR says:
"The Set/Unique ID is 12 bits so your limit is 4096 there."
I'm wondering if this could be discussed in more detail. Are we talking a hard limit of 4096 uniques or is there a way to fudge that? I'm looking to create a special series of cube recipies that output a unique based on a variety of inputs for all 514 vanilla base items. So I'm looking to be able to generate a lot (50,000 or more) of uniques. Can I get anywhere near that? What about the limit of 32,767 meantioned in another thread?
"The Set/Unique ID is 12 bits so your limit is 4096 there."
I'm wondering if this could be discussed in more detail. Are we talking a hard limit of 4096 uniques or is there a way to fudge that? I'm looking to create a special series of cube recipies that output a unique based on a variety of inputs for all 514 vanilla base items. So I'm looking to be able to generate a lot (50,000 or more) of uniques. Can I get anywhere near that? What about the limit of 32,767 meantioned in another thread?
Re: Txt File Limits
This is probably one of the easiest limits to remove. Othervise I could add a new textfile to handle it.I'm wondering if this could be discussed in more detail. Are we talking a hard limit of 4096 uniques or is there a way to fudge that? I'm looking to create a special series of cube recipies that output a unique based on a variety of inputs for all 514 vanilla base items. So I'm looking to be able to generate a lot (50,000 or more) of uniques. Can I get anywhere near that? What about the limit of 32,767 meantioned in another thread?
Re: Txt File Limits
I read somewhere that in v1.09 , that Gambling.txt limit was around 400-500 (not sure which). Does this still apply for v1.10 or has it been increased?
- Nefarius
- Cherub
- Posts: 11607
- Joined: Sat Jun 15, 2002 8:13 pm
- Location: Where the blood forever rains
- Contact:
Re: Txt File Limits
Dunno if this is worth adding to the list (its not an actual file limit, but more a logical limit)
The total number of possible unique 3-letter item codes is 16777216 (considering you could technically use all 256 chars in a char set)
The total number of possible alpha-numeric combos is 238328 (taking into account that it is case sensitive)
The total number of possible unique 3-letter item codes is 16777216 (considering you could technically use all 256 chars in a char set)
The total number of possible alpha-numeric combos is 238328 (taking into account that it is case sensitive)
''(...) The game can basically be considered unhackable. '' - Blizzard Entertainment (30th May 2000)
Black Omen Productions | MetalStorm: Progress Report | Screenshots
Black Omen Productions | MetalStorm: Progress Report | Screenshots
Re: Txt File Limits
There are itemCodes that cannot be used at all also, e98 and e99 cannot be used of some reason.The total number of possible unique 3-letter item codes is 16777216 (considering you could technically use all 256 chars in a char set)
- Nefarius
- Cherub
- Posts: 11607
- Joined: Sat Jun 15, 2002 8:13 pm
- Location: Where the blood forever rains
- Contact:
Re: Txt File Limits
Nice to know. Are there others or are these the only ones?
''(...) The game can basically be considered unhackable. '' - Blizzard Entertainment (30th May 2000)
Black Omen Productions | MetalStorm: Progress Report | Screenshots
Black Omen Productions | MetalStorm: Progress Report | Screenshots
Re: Txt File Limits
Those are the only I have come across so far, have used all tokens between a00 to m00 and those 2 have been the only that haven't worked.Nice to know. Are there others or are these the only ones?
- Brother Laz
- Dominion
- Posts: 6715
- Joined: Mon Jun 03, 2002 10:06 am
- Location: Fallen Like Lightning
- Contact: