Jump to content

Recommended Posts

One of the things I like to change in Don't Starve is the speed. I find that a speed of about 10 makes the game WAY more fun. This can be done by the host in Don't Starve Together, but not the other players.

 

In DST, if client players try to adjust speed, it simply results in skipping around on the screen. Speed boosting items appear to have this affect as well.

 

Is there a way to change the speed for all players on a Don't Starve Together server? Is it as simple as modifying a configuration file, or will a full mod be necessary?

Link to comment
https://forums.kleientertainment.com/forums/topic/49799-speed-boost-in-dst/
Share on other sites

@DocSaintly, Oh, yeah, because the client action prediction uses local values. A server-side-only solution could be done with a very small mod (you won't need to publish it or anything), that does something like this:

local function IncreaseSpeed(inst)    if inst.components.locomotor then        inst.components.locomotor:SetExternalSpeedMultiplier(inst, "Speedy server", 1.67)    endendif GLOBAL.TheNet:GetIsServer() then    AddPrefabPostInit("world", function(inst) --this is just to make sure it loads after other mods add characters        for k,v in pairs(DST_CHARACTERLIST) do            AddPrefabPostInit(v, IncreaseSpeed)        end        for k,v in pairs(MODCHARACTERLIST) do            AddPrefabPostInit(v, IncreaseSpeed)        end    end)end

That part should be networked to deal with action prediction properly. It was added pretty recently, so I'm just going off of what the devs have told me on that.

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