LaneDibello / Kotor-Randomizer

The Kotor Randomizer. A randomizer for Star Wars: Knights of the Old Republic. Intended for challenge runs and general fun.
4 stars 1 forks source link

Exception caught in Other - Party randomization #35

Closed glasnonck closed 3 years ago

glasnonck commented 3 years ago

Some seeds encounter an exception during party randomization. Two of the possible UTC files selected to replace party members have missing GFF fields that are expected by the procedure: c_drdg (index 5) and c_sebulba (index 31). Both of these are missing the following three fields (by label): NoPermDeath, ScriptEndDialogu, and ScriptOnBlocked. These two files can be simply skipped if that index is randomly generated.

Another consideration to make as we're looking at this feature: why is the number 155 used as the random index limit when there are 205 UTC files to sort through? This is, of course, separate from the exception issue, but it's something to think about.