Jump to content

Recommended Posts

Please remember that all mods are to be used at your own risk. Klei will not be able to help you with any issues you may have with your game as a result of using a mod. Please remember that player made mods in Don't Starve are new and could cause issues with your current saved games. It is advised that you do not install game mods unless you are completely comfortable doing so.

thanks some guy, but i just want spiders to roam the day as they do the night. any hup would be mucho appreciated

A really quick and dirty way to do this is to comment out the GoHomeAction in spiderbrain.lua, like so:

spiderbrain.lua

function SpiderBrain:OnStart()    local clock = TheGlobalInstance.components.clock    local daynode =         WhileNode(function() return clock and clock:IsDay() end, "IsDay",            PriorityNode            {                --DoAction(self.inst, function() return GoHomeAction(self.inst) end ),            }        )

This will make any spiders that come out of their nest stay active during daytime.

A really quick and dirty way to do this is to comment out the GoHomeAction in spiderbrain.lua, like so:

spiderbrain.lua

function SpiderBrain:OnStart()    local clock = TheGlobalInstance.components.clock    local daynode =         WhileNode(function() return clock and clock:IsDay() end, "IsDay",            PriorityNode            {                --DoAction(self.inst, function() return GoHomeAction(self.inst) end ),            }        )

This will make any spiders that come out of their nest stay active during daytime.

Awesome thanks! So you get 1 day to prep, then even a strawroll won't save you. Now just need Sliver's mod to add 4x the amount of spider dens to the world, not to lag anymore then I'll be so so so happy.

Well, just a quick correction. It would actually be better to comment out the call to daynode.

local root =        PriorityNode(        {            WhileNode( function() return self.inst.components.health.takingfiredamage end, "OnFire", Panic(self.inst)),            AttackWall(self.inst),            ChaseAndAttack(self.inst, MAX_CHASE_TIME),            DoAction(self.inst, function() return EatFoodAction(self.inst) end ),            Follow(self.inst, function() return self.inst.components.follower.leader end, MIN_FOLLOW_DIST, TARGET_FOLLOW_DIST, MAX_FOLLOW_DIST),           [B] --daynode,[/B]            Wander(self.inst, function() return self.inst.components.knownlocations:GetLocation("home") end, MAX_WANDER_DIST)                    },1)

I don't think it will really matter either way, but since it sounds like you're planning to have a lot of spiders I would do it this way.

Edited by clockwork

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