Jump to content

Search the Community

Showing results for tags 'entity'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Hot Lava
    • [Hot Lava] - General Discussion
    • [Hot Lava] - Suggestions and Feedback
    • [Hot Lava] - Bug Tracker
    • [Hot Lava] - Strats and Records
    • [Hot Lava] - Developer Log
    • Hot Lava Latest Update
  • Griftlands
    • [Griftlands] - General Discussion
    • [Griftlands] - Suggestions and Feedback
    • [Griftlands] - Mods and Tools
    • [Griftlands] - Localization
    • [Griftlands] - Bug Tracker
    • [Griftlands] - Developer log
  • Oxygen Not Included
    • Oxygen Not Included FAQ
    • [Oxygen Not Included] - Developer log
    • [Oxygen Not Included] - General Discussion
    • [Oxygen Not Included] - Bug Tracker
    • [Oxygen Not Included: Spaced Out!] - Bug Tracker
    • [Oxygen Not Included] - Mods and Tools
    • [Oxygen Not Included] - Suggestions and Feedback
    • [Oxygen Not Included] Art, Music & Lore
    • Community Challenges
    • [Oxygen Not Included] - Latest Content Update
    • [Oxygen Not Included] - Latest Animated Short
    • Oxygen Not Included DLC Alpha
  • Don't Starve Together
    • Don't Starve Together FAQ
    • [Don't Starve Together] Developer log
    • [Don't Starve Together] General Discussion
    • [Don't Starve Together] Beta Branch
    • [Don't Starve Together] PlayStation
    • [Don't Starve Together] Xbox One
    • [Don't Starve Together] Nintendo Switch
    • [Don't Starve Together] Bug Tracker
    • [Don't Starve Together] Trading
    • [Don't Starve Together] Server Bulletin
    • [Don't Starve Together] Dedicated Server Discussion
    • [Don't Starve Together] Mods and Tools
    • [Don't Starve Together] Tales of Life and Death
    • [DS + DST] Art, Music and Lore
    • [Don't Starve Together] Suggestions and Feedback
    • [Don't Starve Together] The Forge
    • [Don't Starve Together] The Gorge
    • [Archived Bugs]
  • Don't Starve
    • Don't Starve FAQ
    • [Don't Starve: Pocket Edition] iOS / Android
    • [Don't Starve] General Discussion
    • [Don't Starve] Mods and tools
    • [Don't Starve] Art, Music & Lore
    • [Don't Starve] Suggestions and Feedback
    • [Don't Starve] Videos
    • [Don't Starve] Bug Tracker
    • [Don't Starve] Trading
    • [Don't Starve] Testing Discussion (archive)
  • Klei Entertainment Games
    • Eets Munchies
    • [Invisible, Inc.] General Discussion and Strategies
    • Mark of the Ninja
    • Shank
  • Other Stuff
    • Other Klei Services

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Don't Starve: Hamlet
  • Don't Starve: Hamlet Early Access
  • Don't Starve Together
  • Don't Starve Together: Beta Branch
  • [Don't Starve Together] Nintendo Switch
  • [Don't Starve Together] PlayStation
  • Don't Starve Together: Return of Them
  • Don't Starve Together: The Gorge
  • Don't Starve Together: The Forge
  • Don't Starve Together: The Forge (Archive)
  • [Don't Starve Together] Xbox One
  • Don't Starve: Shipwrecked
  • Don't Starve: Shipwrecked [archive]
  • [Don't Starve Together] PS4 (archive)
  • [iOS] Don't Starve: Shipwrecked
  • Don't Starve: Hamlet Closed Beta (ARCHIVE)

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Hot Lava
  • Don't Starve Together
  • [Nintendo Switch] Don't Starve Together
  • [PlayStation] Don't Starve Together
  • [Xbox One] Don't Starve Together
  • Don't Starve: Hamlet
  • Don't Starve: Shipwrecked

Categories

  • Hot Lava - Bug Reports

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Biography


Location


Interests


Occupation


Favorite Game


Modder


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Klei Featured Artist


Early Supporter


Early Supporter


Don't Starve


Don't Starve Together


Oxygen Not Included

Found 3 results

  1. Do c_gonext() find the prefab if it is in some inventory, say a backpack on a player or ground, chest on the ground, lureplant inventory etc.? I understand it doesn't look for entities in other shards so I should try it in each of them separately.
  2. Hello, I am basically finished with my mod, but will occasionally receive an error in the entityscript.lua with an attempt to index local 'v' (a number value) screenshotted below. The crash happens at seemingly random times as well. I'm not sure what is causing this since I haven't touched the scripts in the game, but my character is able to craft pets so maybe that code is somehow interfering: character.lua local function OnDespawn(inst) if inst.components.leader and inst.components.leader.followers then --inst.components.sanity.penalty=inst.components.leader.numfollowers*5 local shadowpet={} local i=0 for k,v in pairs(inst.components.leader.followers) do i=i+1 if k:HasTag("shadowpet") then --table.insert(shadowpet, k.prefab)--:GetSaveRecord()) shadowpet[i] = k:GetSaveRecord() k:Remove() end end inst.shadowpet = shadowpet end end local function OnSave(inst, data) if not inst.shadowpet and inst.components.leader.numfollowers > 0 then local shadowpet={} local i=0 for k,v in pairs(inst.components.leader.followers) do --print(k) i=i+1 if k:HasTag("shadowpet") then --table.insert(shadowpet, k.prefab)--:GetSaveRecord()) shadowpet[i] = k:GetSaveRecord() --print(k.prefab.." removed") --k:Remove() end end if shadowpet then data.shadowpet = shadowpet --inst:DoTaskInTime(0,function(inst) print("loadtaskintime") inst.OnLoad(inst,inst) inst.shadowpet=nil end) end end if inst.shadowpet then data.shadowpet = inst.shadowpet end end local function OnLoad(inst, data) local shadowpet = data.shadowpet if shadowpet then local pos = Vector3(inst.Transform:GetWorldPosition()) local radius = 10 local offset = Vector3(radius,0,0) for k, v in pairs(shadowpet) do local unit = SpawnSaveRecord(v) inst.components.leader:AddFollower(unit) unit.persists = false end end if data ~= nil and data.wisteriadarkenergy ~= nil then inst.components.darkenergy:GainAmount(data.wisteriadarkenergy) end end Any ideas? Thank you!
  3. What is the difference? What are standard ranges?
×
×
  • Create New...