Jump to content

Search the Community

Showing results for tags 'stategraph'.

  • 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

  • Don't Starve
    • Custom Characters
    • Game Modifications
    • Language Packs
    • Modding Tools, Tutorials & Examples
    • Custom Maps

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

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 6 results

  1. I made a new character and I'd like to override a specific state in its stategraph, but nobody else's (namely, I want to change its funnyidle animation to one of the emotes). I managed to override it for everyone,but I don't know how to override it just for him. I'd rather not copy Wilson's stategraph to a new file, make the modification and then assign that stategraph to him, since that would require updating when Wilson's stategraph changes. Thanks in advance. =)
  2. Ok. I have finally got my stuff to work after a several month long hiatus. On to what I need to know and where to possibly find it if you are willing to help. I am making a wilson bot that will eventually become an interact-able npc. One that will act and work with you. It's like having actual friends but not really. The actual ai I have planned is a bit far in the future for how complicated I want to make it. What I have so far: I have a wilson that stands around doing nothing and has a third arm holding an invisible tool. What I plan on: An AI that will walk around randomly and do tasks based off what he sees. What I need help with: First is sight range. I have no way of measuring units on the screen and I don't know how much "sight" to give wilson so it seems realistic. What is the range of sight that is given to a player? High hopes for my first don't starve mod yes but taking it a step at a time will eventually get me to my goal. BTW sorry if this is confusing but I am still at the beginning and there's not much to ask for but I still need help for each step along the way. I made this a general ask because, I will be coming back here to ask more questions about this topic. I did a previous ask article but it was archived due to my long hiatus. I fixed my previous problem of stategraph basics now I am here. Join me along the ride as I make a mod that somehow has over 300 steam subscribers despite me blatantly saying it doesn't work. Also if you haven't already noticed I am a noob coder. Gotta start somewhere right?
  3. Hello! o/ So i tried this, and worked fine: It triggers when the player's state is "idle". But then when I disable EnableMovementPrediction It doesn't trigger anymore. Is there a way to make it work with EnableMovementPrediction disabled? Thanks :3
  4. Hello, I'm currently running into the following error when attempting to switch my characters build, bank, and stategraph then attempt to move. [00:01:28]: [string "../mods/Whisper/scripts/stategraphs/SGmolep..."]:551: attempt to call method 'SetUnderPhysics' (a nil value) LUA ERROR stack traceback: ../mods/Whisper/scripts/stategraphs/SGmolep.lua:551 in (field) onenter (Lua) <550-557> scripts/stategraph.lua:501 in (method) GoToState (Lua) <450-511> ../mods/Whisper/scripts/stategraphs/SGmolep.lua:185 in (field) fn (Lua) <161-189> scripts/stategraph.lua:400 in (method) HandleEvents (Lua) <391-411> scripts/stategraph.lua:145 in (method) Update (Lua) <109-148> scripts/update.lua:218 in () ? (Lua) <149-228> The calls are being made from stategraph SGmolep.lua when I attempt to move after changing. The stategraph should be pulling from my characters prefab, but for whatever reason it's not, this only occurs when caves are on. local function SetUnderPhysics(inst) if inst.isunder ~= true then inst.isunder = true inst.Physics:SetCollisionGroup(COLLISION.CHARACTERS) inst.Physics:ClearCollisionMask() inst.Physics:CollidesWith(COLLISION.WORLD) inst.Physics:CollidesWith(COLLISION.OBSTACLES) end end If anyone could help with this it would be appreciated or if you know an easier way to swap my characters build with a mole and only perform it's walk animation it would be appreciated. Thank you, Red
  5. The idea is to change how the character runs, Animation is no problem, that is already handled. Now what I might, infact, I indeed need help with, is how to call the stategraph properly to modify it Whenever I tried to modify it by calling AddStategraphPostInit("wilson", function(sg) failed by the character no longer being able to move, mostly due to how many different states the run has. I know very little on the part of stategraphs so some help would be super appreciated. Before I have tried something like this AddStategraphPostInit("wilson", function(sg) local _run_start_onenter = sg.states.idle.onenter sg.states.run_start.onenter = function(inst) _run_start_onenter(inst) if inst:HasTag("xxx") and inst.AnimState:IsCurrentAnimation("run_pre") then inst.AnimState:PlayAnimation("xxxrun_pre") end end local _run_onenter = sg.states.idle.onenter sg.states.run.onenter = function(inst) _run_onenter(inst) if inst:HasTag("xxx") and inst.AnimState:IsCurrentAnimation("run_loop") then inst.AnimState:PlayAnimation("xxxrun_loop", true) end end local _run_stop_onenter = sg.states.idle.onenter sg.states.run_stop.onenter = function(inst) _run_stop_onenter(inst) if inst:HasTag("xxx") and inst.AnimState:IsCurrentAnimation("run_pst") then inst.AnimState:PlayAnimation("xxxrun_pst") end end end) it didn't work at all, as I mentioned before, character could no longer move. Again, any tips or help with be super appreciated!
  6. I'm trying to create a character that uses a build that doesn't share its prefab name. Normally, a character called "example" would default to using the anim file called "example.zip", unless instructed otherwise. I can't seem to convince it to use any build other than its own, however. I've read that the proper way to do this is to assign a new build using: inst.AnimState:SetBuild("differentbuild") however, it doesn't seem to work. The character defaults to the anim file with the same name, or simply becomes invisible if the anim with the same name is not provided. Here's the full prefab: local MakePlayerCharacter = require "prefabs/player_common" local assets = { Asset("ANIM", "anim/domo.zip"), Asset("ANIM", "anim/chanti.zip"), } local common_postinit = function(inst) end local master_postinit = function(inst) inst.AnimState:SetBuild("chanti") end return MakePlayerCharacter("domo", prefabs, assets, common_postinit, master_postinit) Both build files are standard character builds, compatible with the standard player stategraph. Can anyone fill me in on what I'm doing wrong, or anything I'm missing? Thank you so much!
×
×
  • Create New...