Jump to content

[string "scripts/json.lua"]:475: bad argument #1 to 'gsub' (string expected, got boolean)


StoneSplinter
  • Closed

降低冒险家受到的伤害。永远可以在绚丽之门复活。    
[00:00:46]:     K:     worldgen_id     V:     RELAXED    
[00:00:46]:     K:     worldgen_name     V:     轻松    
[00:00:46]: Loaded and applied level data override from ../leveldataoverride.lua    
[00:00:46]: Overwriting savedata with level data file.    
[00:00:46]: Not applying world gen overrides.    
[00:00:46]: [string "scripts/json.lua"]:475: bad argument #1 to 'gsub' (string expected, got boolean)
LUA ERROR stack traceback:
=[C]:-1 in (field) gsub (C) <-1--1>
scripts/json.lua:475 in (upvalue) encodeString (Lua) <474-482>
   s = true
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010EE5330
   vtype = table
   rval = table: 000000000F84C750
   bArray = false
   maxCount = nil
   i = true
   j = table: 0000000010EE5650
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010EE51A0
   vtype = table
   rval = table: 000000000F84C1B0
   bArray = false
   maxCount = nil
   i = options
   j = table: 0000000010EE5330
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010EE5600
   vtype = table
   rval = table: 000000000F84C200
   bArray = false
   maxCount = nil
   i = refresh_delay
   j = table: 0000000010EE51A0
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010EE5290
   vtype = table
   rval = table: 000000000F7DC910
   bArray = false
   maxCount = nil
   i = STRINGS
   j = table: 0000000010EE5600
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010EE5150
   vtype = table
   rval = table: 000000000F7DC780
   bArray = false
   maxCount = nil
   i = modinfo
   j = table: 0000000010EE5290
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010DD0AE0
   vtype = table
   rval = table: 0000000010F43F20
   bArray = false
   maxCount = nil
   i = workshop-2189004162
   j = table: 0000000010EE5150
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010DD0540
   vtype = table
   rval = table: 0000000010F44470
   bArray = false
   maxCount = nil
   i = known_mods
   j = table: 0000000010DD0AE0
scripts/json.lua:127 in (global) encode (Lua) <97-146>
   v = table: 0000000010DD1300
   vtype = table
   rval = table: 0000000010F43070
   bArray = false
   maxCount = nil
   i = savedata
   j = table: 0000000010DD0540
scripts/json.lua:127 in (field) encode (Lua) <97-146>
   v = table: 0000000010DD10D0
   vtype = table
   rval = table: 0000000010F43020
   bArray = false
   maxCount = nil
   i = index
   j = table: 0000000010DD1300
scripts/screens/worldgenscreen.lua:108 in (field) _ctor (Lua) <12-116>
   self =
      flavourtext = Text - 正在随机化 温蒂的辫子…
      log = true
      genparam = {"level_type":"SURVIVAL","profile_data":{"unlocked_worldgen":[],"collection_timestamp":1674596736,"skin_presets":{"wolfgang":[{"feet":"feet_wolfgang_ice","legs":"legs_wolfgang_wolfman","hand":"hand_wolfgang_ice","base":"wolfgang_victorian","body":"body_wolfgang_ice"}],"panda_fisherman":[{"legs":"legs_winona_frankenstein","feet":"feet_ridingboot_white_pure"}],"waxwell":[{"feet":"feet_waxwell_wizard","hand":"hand_waxwell_wizard","base":"waxwell_wizard","body":"body_waxwell_wizard"}],"woodie":[{"legs":"legs_winona_gladiator","base":"woodie_treeguard_d","feet":"feet_fleece_bootp_brown_sepia"},{"legs":"legs_winona_nature","base":"woodie_ice","feet":"feet_workboot_brown_walnut"},{"feet":"feet_woodie_ice","base":"woodie_ice","hand":"hand_woodie_ice","body":"body_woodie_ice"}]},"prodKU_2ze4fEa1entitlement_PACK_SPRING_BUNDLE":true,"prodKU_2ze4fEa1entitlement_PACK_ROG_GIFT":true,"steam_language_asked":true,"prodKU_2ze4fEa1entitlement_PACK_VICTORIAN_ALL":true,"install_id":1672921356,"saw_display_adjustment_popup":false, [**truncated**]
      callbacks = table: 0000000010DEC600
      cb = function - scripts/gamelogic.lua:1092
      nouns = table: 0000000017FE39E0
      hand1 = UIAnim
      enabled = true
      vignette = Image - images/bg_vignette.xml:vignette.tex
      inst = 100030 -  (valid:true)
      focus = false
      verbidx = 2
      handlers = table: 0000000010DEC6F0
      children = table: 0000000010DEC9C0
      total_time = 0
      focus_flow_args = table: 0000000010DECC40
      focus_target = false
      worldanim = UIAnim
      worldgentext = Text - 正在生成世界
      hand2 = UIAnim
      verbs = table: 0000000017FE3E40
      bottom_root = root
      can_
[00:00:46]: [string "scripts/json.lua"]:475: bad argument #1 to 'gsub' (string expected, got boolean)
LUA ERROR stack traceback:
    =[C]:-1 in (field) gsub (C) <-1--1>
    scripts/json.lua:475 in (upvalue) encodeString (Lua) <474-482>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (global) encode (Lua) <97-146>
    scripts/json.lua:127 in (field) encode (Lua) <97-146>
    scripts/screens/worldgenscreen.lua:108 in (field) _ctor (Lua) <12-116>
    
[00:00:46]: Check for write access: TRUE
[00:00:46]: Check for read access: TRUE
[00:00:46]: Available disk space for save files: 362060 MB
[00:00:46]: ModIndex: Load sequence finished successfully.    
[00:00:46]: Reset() returning


Steps to Reproduce

Triggered by entering any archive without loading any mod




User Feedback


This is being caused a mod you have subscribed to with an invalid modinfo file. Please check your subscribed mods to see if any have updated recently and unsubscribing to it until the mod author fixes the issue. This will be looked into later to help prevent this happening in the future to lower the odds of a mod creating errors like this in the future.

Changed Status to Closed

  • Like 1
  • Thanks 1

Share this comment


Link to comment
Share on other sites

2 hours ago, JesseB_Klei said:

This is being caused a mod you have subscribed to with an invalid modinfo file. Please check your subscribed mods to see if any have updated recently and unsubscribing to it until the mod author fixes the issue. This will be looked into later to help prevent this happening in the future to lower the odds of a mod creating errors like this in the future.

Changed Status to Closed

Thanks for the reply, I didn't know that mods without the checkbox enabled could also cause crashes, after deleting all mods the game can enter normally.

Share this comment


Link to comment
Share on other sites



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...