Menu

#226 [Skyrim] Leveled List error when more than 255 items are in a merged lists.

Current
open
nobody
5
2012-11-15
2012-07-21
Anonymous
No

When creating a fresh bashed patch for Skyrim I'm getting the following output in a wxPython stdout/stderr window with the message

ubyte format requires 0 <= number <= 255
<bash.brec.modwriter instance="" at="" 0x12330760=""> LLCT B (276,)</bash.brec.modwriter>

The file that is produced seems to be functional however.

I tried running with the debug batch file and the logging showed only one other warning about an extended colors string not starting at the right location, but that does not really seem related at first glance.

Discussion

  • Nobody/Anonymous

    debug log

     
  • Arthmoor

    Arthmoor - 2012-08-10

    Summary tag changed based on the output in the attached file.

    Appears to be a corrupt strings file being distributed with a mod.

     
  • Jacob Lojewski

    Jacob Lojewski - 2012-11-15

    Acutally, that first message is just a warning about a corrupt strings file with that mod.

    The actual error happens in the LLCT handler for leveled lists.

    This is something I've mentioned before - since Skyrim has a LLCT subrecord that says how many entries are on the list, and that subrecord is a max of 1 byte, that means you run into the issue when a merged list has more than 255 items in it (that's the error in this debug log).

    The only solution I can see is to have Bash automatically split such lists into the original list, plus a nested sublist for the extra items that go over this limit. This will be a bit more tricky than it seems at first, we'll probably have to add an extra step just prior to writing the Bashed Patch, where and extra lists are created, assigned FormIDs, and filled out, then the source lists will have to be updated to point at those lists.

    This wasn't a problem for Oblivion, since there was no LLCT subrecord to worry about.

     
  • Jacob Lojewski

    Jacob Lojewski - 2012-11-15
    • summary: [Skyrim] Strings file error when building bashed patch --> [Skyrim] Leveled List error when more than 255 items are in a merged lists.
    • milestone: --> Current
     

Log in to post a comment.

MongoDB Logo MongoDB