Jump to content

Can't read modindex after this update, but not sure worthy of fixing


Rickzzs
  • DLC VERSION - IMPORTANT!: Vanilla - NO DLC, Reign of Giants, Shipwrecked, Hamlet Pending

After this update, Insight will corrupt modindex with a closure in modindex. The modindex was designed not to execute any global functions except for loadstring. With this strange closure, there is an assert that will cause modindex fail to load.

However, even if there is no mod, ChooseTranslationTable is also there, which is unwanted. I think it is better not to add this function into modindex. If you really want to, please remove it when saving modindex.

Actually no mod in DS use this function. No mod except for Insight in both DS and DST use this function. So there will be no need for such support.


Steps to Reproduce

ENCODE_SAVES=false

open modindex

see ChooseTranslationTable=loadstring("\27LJ\2\0@@D:/Steam/steamapps/common/dont_starve/data/scripts/modindex.luaU\0\1\3\0\2\0\8\24襖1\0036\1\0\0009\1\1\1B\1\1\0028\2\1\0\14\0\2\0X\3\1€:\2\1\0L\2\2\0\18GetLocaleCode\8LOC\1\1\1\2\2\2\2\2tbl\0\0\9locale\0\4\5\0\0"),

AddConfigurationOptionStrings=closure {
          "\27LJ\2\0S@D:/Steam/steamapps/common/dont_starve/data/../mods/workshop-2081254154/modinfo.lua郳3\0\1\11\3\7\0B匼1橽1\0229\1\0\0-\2\0\0-\3\1\0008\3\1\0039\3\1\3B\2\2\2=\2\1\0-\2\0\0-\3\1\0008\3\1\0039\3\2\3B\2\2\2=\2\2\0-\2\2\0\18\3\0\0'\4\3\0B\2\3\2\15\0\2\0X\3\8€-\2\1\0008\2\1\2-\3\1\0008\3\1\0039\3\4\3\18\4\0\0B\3\2\2=\3\4\2)\2\1\0009\3\4\0\21\3\3\0)\4\1\0M\2!€9\6\4\0008\6\5\6-\7\1\0008\7\1\0079\7\4\0079\8\5\0068\7\8\0079\7\6\7\15\0\7\0X\8\5€-\8\0\0\18\9\7\0B\8\2\2\14\0\8\0X\9\1€+\8\0\0=\8\6\6-\8\1\0008\8\1\0089\8\4\0089\9\5\0068\8\9\0089\8\2\8\15\0\8\0X\9\5€-\9\0\0\18\
\8\0B\9\2\2\14\0\9\0X\
\1€+\9\0\0=\9\2\6O\2運127K\0\1\0\16繺6€\7€\16description\9data\12options\27dynamic_option_strings\
hover\
label\9name\1\4\4\4\4\4\4\6\6\6\6\6\6\8\8\8\8\8\8\9\9\9\9\9\9\9\9\12\12\12\12\12\13\13\15\15\15\15\15\15\16\16\16\16\16\16\16\16\16\19\19\19\19\19\19\20\20\20\20\20\20\20\20\20\12\22T\0STRINGS\0HasTag\0entry\0\0Cname\0\2A\1\30\"\2\0\"\3\0\"j\0\1 option\0\2\30dsc\0\6\24hvr\0\15\9\0\0",

  • Like 1



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...