Page 1 of 1

Infinite speed from boots of speed

Posted: Wed Oct 06, 2010 3:48 pm
by Leffe
Removing boots of speed grants infinite movement speed.

It appears the player's movement_speed is left at 0 after removing the boots, and the following code doesn't like that:

Code: Select all

class/interface/Combat.lua:

function _M:combatMovementSpeed()
    return self.movement_speed or 1
end

Re: Infinite speed from boots of speed

Posted: Wed Oct 06, 2010 4:03 pm
by darkgod
Oh my ...
Ok fixed

Re: Infinite speed from boots of speed

Posted: Sat Oct 09, 2010 10:11 pm
by Fela
Any workaround for that or quick code line to fix?

My little hobbit SB just switched to frost treads and is now affected.

It's very annoying and btw. also disables autorun.

Re: Infinite speed from boots of speed

Posted: Sat Oct 09, 2010 10:25 pm
by darkgod
Well you can replace the return in the function mentionned by just "return 1", this will disable the effect of the boots

Re: Infinite speed from boots of speed

Posted: Sat Oct 09, 2010 10:43 pm
by Fela
darkgod wrote:Well you can replace the return in the function mentionned by just "return 1", this will disable the effect of the boots
Isn't the bug in the boots setting speed to 0 when removing them, and not in synchronizing combat movement and self movement? When putting the boots back on, self.movement_speed seems to be fixed again - or at least so it seems.

Re: Infinite speed from boots of speed

Posted: Tue Oct 12, 2010 1:08 pm
by PowerWyrm
Here's the workaround for the boots of speed to work (until DG fixes the movement_speed = 1 instead of 0 when removing the boots):

Code: Select all

--- Computes movement speed
function _M:combatMovementSpeed()
	if self.movement_speed then
		return self.movement_speed
	end
	return 1
end
No boots, movement_speed = 1 (uses 100 energy to move)
Boots on, movement_speed = 0,8 (uses 80 energy to move)
Boots off, movement_speed = 0 (uses 100 energy to move)

Re: Infinite speed from boots of speed

Posted: Tue Oct 12, 2010 1:29 pm
by Fela
Wearing the boots should be movement_speed = 0.8*movement_speed, btw.

Right now it's hardcoded to 0.8, so it doesn't combine with other speed enhancing effects, sometimes in effect might even partially negate them. Not sure with essence of speed though, since that seems to work completely different - from the boots and from its own description :).

Re: Infinite speed from boots of speed

Posted: Wed Oct 20, 2010 9:13 pm
by Final Master
Glad I found this before I removed my boots of speed for the artifact boots. I changed it and saved before removing them. Going to see if it lets my game function properly now.

Edit: Seems it broke the save. I'll try to edit the code back to how it was and see if it lets me open it.

Edit: :( Damn it...

Re: Infinite speed from boots of speed

Posted: Sat Oct 23, 2010 4:57 am
by Grompus
heh I was wondering what the hell was happening, giving my berserker a waaay unfair advantage (but I am having a hellova lot of fun I gotta say!)

Re: Infinite speed from boots of speed

Posted: Wed Oct 27, 2010 8:30 am
by STKAS
Wow, I'm realizing the benefits of infinite speed on my berserker as well.
I guess I have to wear the boots of speed for the rest of the game.

Re: Infinite speed from boots of speed

Posted: Mon Nov 01, 2010 2:47 pm
by Hakko
Arrgh, just got this bug after picking up Frost Treads. Oddly enough, I also don't seem to get any experience for kills made under this condition.