Jump to content

Help me with (tell me) mod coding


Recommended Posts

HI i played don't starve together alone because i have no one to play with  but i stopped because it is so hard to play alone and i like to play the original don't starve and i tried to use (tell me) on it but it never worked every time i try to enable it crash so i tried to edit it using notepad++ i was able 

to enable it but i have a problem with specific part of the code the part is this 

local function cn(desc,val,txt,no_table)
	if no_table then
		return (desc=="" and "" or (desc.."\n"))..txt.." "..tostring(val)
	elseif MY_STRINGS[txt] then
		return (desc=="" and "" or (desc.."\n"))
			..(config<5 and(MY_STRINGS[txt].." ")or "")
			..tostring(val)
			..(config>4 and(" "..MY_STRINGS[txt])or "")
	else
		return (desc=="" and "" or (desc.."\n"))..val.." (bug?)"
	end
end

to be more specific with this part 

config<5 
config>4

and the result is 

and the log file 

Reset() returning
QueryServerComplete no callback
D:/Don't Starve/data/../mods/Tell Me/modmain.lua:46: attempt to concatenate field '?' (a table value)
LUA ERROR stack traceback:
D:/Don't Starve/data/../mods/Tell Me/modmain.lua:46 in (upvalue) cn (Lua) <41-52>
   desc = It's my trusty axe.
   val = 27.2
   txt = dmg
   no_table = nil
D:/Don't Starve/data/../mods/Tell Me/modmain.lua:152 in (method) GetDescription (Lua) <58-375>
   self =
      inst = 110155 - axe(LIMBO) (valid:true)
      GetDescription = function - @D:/Don't Starve/data/../mods/Tell Me/modmain.lua:58
   viewer = 100021 - wilson (valid:true)
   desc = It's my trusty axe.
   item = 110155 - axe(LIMBO) (valid:true)
   prefab = axe
   c = table: 1C4A5890
D:/Don't Starve/data/scripts/actions.lua:226 in (field) fn (Lua) <223-234>
   act = Examine 110155 - axe(LIMBO) (valid:true)
   targ = 110155 - axe(LIMBO) (valid:true)
D:/Don't Starve/data/scripts/bufferedaction.lua:19 in (method) Do (Lua) <16-32>
   self (valid:true) =
      target = 110155 - axe(LIMBO) (valid:true)
      options = table: 07334610
      action = table: 07685DE0
      doer = 100021 - wilson (valid:true)
      onsuccess = table: 07330920
      onfail = table: 07330510
      initialtargetowner = 100021 - wilson (valid:true)
D:/Don't Starve/data/scripts/entityscript.lua:866 in (method) PushBufferedAction (Lua) <834-878>
   self (valid:true) =
      DynamicShadow = DynamicShadow (1BE41EC8)
      Transform = Transform (1BE41E98)
      inlimbo = false
      event_listening = table: 07331348
      brain = --brain--
sleep time: 0.00
Priority - READY <FAILED> ()>0.00
   >Parallel - READY <FAILED> ()>0.00
   >   >Hold LMB - READY <FAILED> ()>0.00
   >   >ChaseAndAttack - READY <READY> ()>0.00
   >ChaseAndAttack - READY <FAILED> ()>0.00

      children = table: 1CB9CFF8
      age = 0
      event_listeners = table: 07331280
      brainfn = table: 0733C798
      entity = Entity (1BE41D30)
      AnimState = AnimState (1BE41EB0)
      prefab = wilson
      updatecomponents = table: 07331AF0
      name = Wilson
      CanExamine = function - @D:/Don't Starve/data/scripts/prefabs/player_common.lua:302
      sg = sg="wilson", state="idle", time=2.13, tags = "idle,canrotate,"
      Physics = Physics (1BE41F10)
      pendingtasks = table: 07335D30
      MiniMapEntity = MiniMapEntity (1BE41EF8)
      SoundEmitter = SoundEmitter (1BE41EE0)
      LightWatcher = LightWatcher (1BE41F28)
      profile = table: 07E03D30
      inherentactions = table: 0733C9A0
      spawntime = 0
      GUID = 100021
      persists = false
      components = table: 0732DA90
      HUD = HUD
   bufferedaction = Examine 110155 - axe(LIMBO) (valid:true)
   dupe = nil
   success = true
   reason = nil
D:/Don't Starve/data/scripts/components/locomotor.lua:238 in (method) PushAction (Lua) <220-249>
   self =
      slowmultiplier = 0.6
      wasoncreep = false
      throttle = 1
      triggerscreep = true
      isrunning = false
      fastmultiplier = 1.3
      inst = 100021 - wilson (valid:true)
      pathcaps = table: 0732F2F0
      groundspeedmultiplier = 1
      runspeed = 6
      arrive_step_dist = 0.15
      arrive_dist = 1
      bonusspeed = 0
      enablegroundspeedmultiplier = true
      creep_check_timeout = 0.4333333298564
      fasteronroad = true
      walkspeed = 4
   bufferedaction = Examine 110155 - axe(LIMBO) (valid:true)
   run = true
   try_instant = nil
   success = true
   reason = nil
D:/Don't Starve/data/scripts/widgets/itemslot.lua:45 in (method) Inspect (Lua) <43-47>
   self =
      shown = true
      top_align_tip = 42
      inst = 109982 -  (valid:true)
      focus = true
      children = table: 25CC68A8
      container = table: 07331140
      enabled = true
      focus_target = false
      tile = ItemTile
      owner = 100021 - wilson (valid:true)
      big = true
      focus_flow_args = table: 25CC6A88
      name = ItemSlot
      num = 3
      focus_flow = table: 25CC6A60
      parent = toprow
      callbacks = table: 25CC68D0
      bgimage = Image - images/hud.xml:inv_slot.tex
D:/Don't Starve/data/scripts/widgets/invslot.lua:23 in (method) OnControl (Lua) <17-52>

scripts/mainfunctions.lua(861,1) LUA ERROR stack traceback:
        D:/Don't Starve/data/scripts/mainfunctions.lua(861,1)	
scripts/mainfunctions.lua(862,1) D:/Don't Starve/data/../mods/Tell Me/modmain.lua:46: attempt to concatenate field '?' (a table value)
LUA ERROR stack traceback:
    D:/Don't Starve/data/../mods/Tell Me/modmain.lua:46 in (upvalue) cn (Lua) <41-52>
    D:/Don't Starve/data/../mods/Tell Me/modmain.lua:152 in (method) GetDescription (Lua) <58-375>
    D:/Don't Starve/data/scripts/actions.lua:226 in (field) fn (Lua) <223-234>
    D:/Don't Starve/data/scripts/bufferedaction.lua:19 in (method) Do (Lua) <16-32>
    D:/Don't Starve/data/scripts/entityscript.lua:866 in (method) PushBufferedAction (Lua) <834-878>
    D:/Don't Starve/data/scripts/components/locomotor.lua:238 in (method) PushAction (Lua) <220-249>
    D:/Don't Starve/data/scripts/widgets/itemslot.lua:45 in (method) Inspect (Lua) <43-47>
    D:/Don't Starve/data/scripts/widgets/invslot.lua:23 in (method) OnControl (Lua) <17-52>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (field) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/widgets/inventorybar.lua:500 in (method) OnControl (Lua) <499-539>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/widgets/widget.lua:112 in (field) OnControl (Lua) <106-116>
    D:/Don't Starve/data/scripts/screens/playerhud.lua:289 in (method) OnControl (Lua) <288-343>
    D:/Don't Starve/data/scripts/frontend.lua:236 in (method) OnControl (Lua) <223-274>
    D:/Don't Starve/data/scripts/input.lua:163 in (method) OnControl (Lua) <159-167>
    D:/Don't Starve/data/scripts/input.lua:346 in () ? (Lua) <345-347>
	
scripts/frontend.lua(723,1) SCRIPT ERROR! Showing error screen	
HttpClientWriteCallback (0x00791A0B, 1, 78, 0x011FFA5C)
HttpClientWriteCallback READ 78 (78 total)
QueryServerComplete no callback

the mod works fine when i inspect food but it have problem when i inspect any thing other than food i need help from some one expert in mod coding to  just fix the error 

and here is my work on the mod fell free to test it and fix the problem that i cant fix

and sorry for my bad English because English is not my mother language     

Untitled.png

Tell Me.zip

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...