Don't Starve

Don't Starve

Artifical Wilson
66 Comments
FlameMast Jan 16, 2023 @ 8:03am 
lmao bro think he jeuse 💀
epiccoolgamer4127 Nov 13, 2022 @ 1:56pm 
possible to make the AI recognize water? almost lost a wilson to two spiders because he was trying to pull a christianity to get away from them
404_coffee.exe Nov 13, 2022 @ 6:53am 
holy heck this is cool
Thisboy Aug 30, 2022 @ 2:07pm 
crashes my game pls update
CINATITSMR Jul 23, 2022 @ 7:38pm 
spawned a bunch in winter, watched them all freeze to death as they fight over a single fire pit. Would recommend.
Dragonfly Sulng Jul 17, 2022 @ 11:04pm 
I ran this in SW, its just learning with new crafts and creatures in the whole thing, it sometimes stops to examine and test the items it cant use and hold to. This thing is smart.:steamthumbsup:
brunozombi6 Jun 4, 2022 @ 4:27pm 
great,im just waiting for friendly fire or artificial wilson counter
Mr T May 28, 2022 @ 11:30pm 
Fun mod! The only really thing I would add (Other than a smarter AI, they do make some very questionable decisions sometimes) would be an option to summon other AI Controlled characters, even if they don't know how their characters gimmick works or only working via console commands only.
Videogames121 Feb 11, 2022 @ 4:17am 
You should make him be able to kite any enemy so he actualy has a chance to survive. Otherwise very cool mod.
kotjanusz91 Jan 9, 2022 @ 4:32am 
How to use this mod?
jin2000_ren Jan 3, 2022 @ 9:47pm 
Without other mods.
jin2000_ren Jan 3, 2022 @ 9:47pm 
Hello!My wilson just close the cook pot and open the cook pot forever.Can U fix this?
Czahorb Dec 21, 2021 @ 3:32pm 
WHEN:crate:
KingofTown  [author] Dec 20, 2021 @ 12:47pm 
I really need to merge the DST changes into the DS version. It added a lot more complexity, though it still has its issues.
Josedot Dec 20, 2021 @ 8:34am 
question is this still in development I thought it was cool but it hasn't been updated since august, so if the developer sees this can answer if yhis is still on development
AAWW1010 Dec 16, 2021 @ 7:23am 
Can’t wait to see how the ai evolves
Thinkfast Dec 5, 2021 @ 5:16pm 
Human brain "I can use this torch to get charcoal"
Bot brain "HAHA i can do TORCH SPAM"
KingofTown  [author] Dec 5, 2021 @ 12:48pm 
MURDER

or

Hover your mouse over one and do: ​TheInput:GetWorldEntityUnderMouse():Remove()
deli1360 Dec 5, 2021 @ 12:46pm 
for me the bot doesnt want to do anything other than opening a crock pot
deli1360 Dec 5, 2021 @ 12:10pm 
how to remove clones
jontherobot Dec 4, 2021 @ 6:35pm 
Well, keep up the good work! I pretty much bought this game exclusively to watch this bot play. Very interested in AI and bots n stuff
Reboot Dec 2, 2021 @ 3:14pm 
i spawned in a bunch of clones and they spawned in a stack of every normal resource (logs, rocks, charcoal, twigs, fish, grass and a lot more)
KingofTown  [author] Dec 2, 2021 @ 12:01pm 
Yeah, this version of the bot reaches the end-game at the wormhole. It was supposed to be a "I've got nothing left to do....lets go explore somewhere else" type of thing. And it works sometimes. Until it has nothing to do on both sides of the wormhole. Then it just hops in, scans for something, then hops in again. Repeat until death.

Without the wormhole, he would have just stood there and died anyway. Maybe he would have ate enough to empty a spot in his inventory, then go get more food....but that also usually ends up with picking up non-food and giving up on life.
jontherobot Dec 1, 2021 @ 4:17pm 
The bot is miraculous in its ability to play the game, however as soon as it finds a wormhole it just keeps using it, often times several times at once. It's basically a bot-run killer, as the sanity will deplete to nothing in mere seconds
MrSharkey Nov 27, 2021 @ 2:29am 
is it hamlet compatible?
NerdCuddles Oct 9, 2021 @ 6:42pm 
can it complete the teleportato so I can skip to adventure mode
cube baby Sep 28, 2021 @ 6:58pm 
Robot oh my gosh! :dswilsonscared:
KingofTown  [author] Sep 20, 2021 @ 2:47pm 
Murder them :(
Trotzflocke Sep 20, 2021 @ 1:31pm 
How do I get the items from the "friends" ?
GangstaPichu Aug 19, 2021 @ 7:41pm 
That will definitely be a nice improvement if it works. I keep having it even getting stuck on firepits it puts down where it's using a science machine. Then just gets trapped there. Oh! I almost forgot to mention. I think there might be something wrong when it interfaces with the cook pot. Anytime it places it, it will just sit inside it forever. Unless I pull it out of it. Don't know what it's trying to do, doesn't give any response to it. Maybe something more behind the scene that's going on with it.
KingofTown  [author] Aug 19, 2021 @ 11:49am 
Yes, there are a lot of changes I've added to DST that need to get back ported to this one.

I've tried to extract all of the code differences between DS and DST to a single file so it should use the same code....but still requires me to test it.

I have a janky solution for the "get stuck on trees" that barely works.

He's supposed to figure out that he can't get to something, then add that thing to his "ignore" list. Also, if the pathfinder fails, I'm supposed to get a notification so I can cancel the action.

Not sure what happens sometimes. I think the pathfinder code sometimes thinks its a straight shot, so I don't get notified that it failed (it thinks it succeeded), and I must have missed the "im not running anywhere, abort" code for some of the actions.
GangstaPichu Aug 18, 2021 @ 10:35pm 
Is there a way to make it where it checks if your stuck in place or not? I keep having it getting hung up on trees or tries to go through tight gaps and dies from spiders or something. I've also had a case where I just kept wanting to go across water and would just sit there on the edge unless you move them far enough away the de-latch from whatever they were trying to do.
Biggyvodcaboi Aug 10, 2021 @ 7:01pm 
good job
chris_m2001 Aug 9, 2021 @ 10:09pm 
Right, behavior tree is the term that I mean I said rules but couldn't think of the way to say it. I have done a little bit with reinforcement learning and that looks like a really good candidate to try running experiments to see how effective it could be, especially if it could be combined with the behavior tree to limit the decisions made. That being said, I don't know if I have the hardware to run it fast enough to get useful results.
KingofTown  [author] Aug 9, 2021 @ 9:46pm 
Ha, no....nothing crazy.

The game already uses Behavior Trees for all of their mobs.
https://en.wikipedia.org/wiki/Behavior_tree_(artificial_intelligence,_robotics_and_control)

So I simply defined a bunch of behaviors for wilson. There are simple things like "DontBeOnFire()", and the more complex things like "FindTreeOrRock", "FindResourceToHarvest", "FindResourceOnGround", "ManageClothes", etc.

All you do is essentially define the order of behaviors. Any behavior at a higher "rank" will constantly enter the "VISIT" state where it asks "is there anything you need to do?". If yes, that behavior will enter the RUNNING state. At that point, only it, and all nodes higher priority will be able to run until that behavior is done.

Don't mean to make it sound simple either. There are 10k lines of code over 20 behaviors, and 3 new components. But there is no learning going on. He follows his rules and does nothing more, nothing less lol
chris_m2001 Aug 9, 2021 @ 9:24pm 
Just curious, what is behind the decision making of the bot? Is there a set of rules or is there some sort of reinforcement learning/neural network going on? I really want to know how you set up the AI.
KingofTown  [author] Aug 8, 2021 @ 1:40pm 
Not really an oversight. With a behavior, I can either have him sit in the behavior and do literally nothing (or find more trees to burn) and wait for them to burn completely, or just let the behavior return "SUCCESS" when he burns a tree.

Then I'll wait for the normal "FindSomethingToChop" behavior find it naturally.

The trees take a while to burn, so if he wanders too far away, he'll tend to not find the burnt trees later.

He will only burns trees if 1) he doesn't have 10 charcoal and 2) that tree isn't surrounded by anything else that is flammable

[SMD] Smidget Aug 8, 2021 @ 11:45am 
Is there an oversight in a script related to charcoal that's causing Wilson to constantly burn trees?That's my only idea.
KingofTown  [author] Aug 8, 2021 @ 11:00am 
LOL whoops. He now is indifferent to chester. Some day he'll learn how to use him...
dashoebrewing Aug 8, 2021 @ 10:07am 
The mod is good. but wilson hates chester and kills other wilsons.
KingofTown  [author] Aug 2, 2021 @ 12:50pm 
LOL, yes you can pick anyone, but he knows NOTHING about special powers. He will only force eat if hunger is <50%, otherwise he'll wait for cooked food or crockpot meals.

But with wolfgang, yeah....he's just going to be eating non stop lol
Mini blair Aug 2, 2021 @ 4:04am 
why do you guys keep saying wilson wilson you can chose anher charters but not rocmand wolfgand bc he fainds food and eats all then dies from starvishon also w78x finds gers and then eats it all:steamhappy:
Mini blair Jul 31, 2021 @ 12:14am 
i thing you need to add. like his 1 sicea machen it is his base and start adding stuff around it but 5 or 3 feet. also whene he found chester he didt add nofing like the chest:steambored::steambored::steambored::steambored::steambored:
󰀏Niko Jul 29, 2021 @ 10:54pm 
Could you add an option for the player bot to automatically respawn (Either at the original spawn or at a random place) when they die? and maybe same for the additional bots or at least to clear their corpses when they die, it makes it hard to keep track of all the bots when dead and alive look the same on the map. And sorry if I am asking to much but what about death messages? I would love to be able to see why the bots are dieing sometimes.
KingofTown  [author] Jul 29, 2021 @ 7:26am 
"cant", or "wont" lol

Yeah, when he gets stuck like that, I just click the brain and turn him off/on again and hope he doesn't get stuck.

Wonder what he was trying to make. I didn't tell him what ingredients were...he looks those all up himself. He generates a list of all possible things he could possibly make with his current inventory, sorts them by best in class, and makes either what he currently needs most (hunger, health, sanity), or just picks one at random if he doesn't need anything.

If you push the console button, it might show you what he was trying to do (if he's still doing it).
Bac5pac3 Jul 28, 2021 @ 9:35pm 
For me i had bug he try to cook with crockpot and kept saying "i can't"
KingofTown  [author] Jul 28, 2021 @ 6:45am 
LOL, I don't have Hamlet and have never tried it.

Thanks jbecl2000 - I'll take a look
Shiro Jul 28, 2021 @ 5:38am 
So further testing has yelled a funny bug that's probably unfixable, but I'll mention it anyways. In hamlet if you are to go into a store/house all other Wilsons are then considered to be in the night and will usually die. It was pretty funny just going into the store and coming out to a bunch of corpses.
jbecl - Gold Blance JIN Jul 28, 2021 @ 1:19am 
When my character want to burn a tree,then spider appears,and it crashes.
jbecl - Gold Blance JIN Jul 28, 2021 @ 1:18am 
I really like this though it can be even better!Can you let it more clever and less crashes?