Txt File Limits
Moderator: Nizari
Re: Txt File Limits
Thanks for the clarification, Aught!
Re: Txt File Limits
Additional notes on txt file limits:
Skills.txt supports only the first 1024 rows for ctc-skills, any past that will overroll.
Skills.txt supports only the first 4096 rows for hotkeys, any hotkeyed skills past that will lose their hotkeys when you start a new game.
Automagic.txt: 65536 rows, but realistically less since it seems that magicprefix.txt and magicsuffix.txt take off the top
Charstats.txt: 65536 rows
Properties.txt: At least 67291 rows, didn't test further than that
Skills.txt supports only the first 1024 rows for ctc-skills, any past that will overroll.
Skills.txt supports only the first 4096 rows for hotkeys, any hotkeyed skills past that will lose their hotkeys when you start a new game.
Automagic.txt: 65536 rows, but realistically less since it seems that magicprefix.txt and magicsuffix.txt take off the top
Charstats.txt: 65536 rows
Properties.txt: At least 67291 rows, didn't test further than that
-
- Posts: 38
- Joined: Wed Apr 05, 2023 7:35 pm
Re: Txt File Limits
Interesting finds, but what's the use of extra rows in CharStats.txt if it's impossible to add classes (which is what I've read)?
Re: Txt File Limits
That charstats.txt is almost useless to expand is exactly why it is so useful to expand. StrAllSkills displays even if the character does not exist, so you can use a stat like item_addclassskills to display any string you want. Or more likely, you'd make a new stat that uses the same descfunc=13, with minimum save bits (since the stat value is meaningless, it's just a descriptor) and 16 param bits so you can access every parameter value/row of charstats. I believe mods typically make use of misc.txt or monstats.txt to do the same, and the rows in those files are much more useful. But I suppose either way, it's unlikely anyone would run out of space in those txt files.
Re: Txt File Limits
Hmm... How would that work? descfunc=13 seems to be ' + (value) to (class) skills', if i modify this string in the tbl document, the original 'item_addclassskills' stat would also be changed...
anyway to bypass this in properties.txt? maybe similar as the 'elem skills' in modwork?
Re: Txt File Limits
Hi Nagahaku, Descfunc=13's true form is "+X (StrAllSkills)" or "(StrAllSkills) +X". Descval=0 doesn't work here unfortunately, so the value will always show.