<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Faldon Forums - Zerk/run bug]]></title>
		<link>https://www.faldon.org/topic/7591/</link>
		<description><![CDATA[The most recent posts in Zerk/run bug.]]></description>
		<lastBuildDate>Thu, 26 Sep 2024 02:12:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73365/#p73365</link>
			<description><![CDATA[<p>Also looking forward to see the changes. Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (travis)]]></author>
			<pubDate>Thu, 26 Sep 2024 02:12:44 +0000</pubDate>
			<guid>https://www.faldon.org/post/73365/#p73365</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73352/#p73352</link>
			<description><![CDATA[<div class="quotebox"><cite>Mister Rob wrote:</cite><blockquote><p>Yes this is expected behaviour. (It did this in the past too even with low Agility)</p><p>It will regen even 1 energy and use that to run with the run toggle is on. So thats why youre getting those small bursts.</p><p>It could also be that regen is not correctly syncing up again.</p></blockquote></div><p>I&#039;m sorry; its different than what it was on old client but still expected behaviour seeing how the logic correctly functions I guess.</p><p>Interested to see what the fix will be <img src="https://www.faldon.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Mister Rob)]]></author>
			<pubDate>Mon, 23 Sep 2024 10:52:27 +0000</pubDate>
			<guid>https://www.faldon.org/post/73352/#p73352</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73351/#p73351</link>
			<description><![CDATA[<p>Travis, that&#039;s actually how we did it before. I changed it so the run toggle no longer turns itself off.<br />This week&#039;s patch has a good solution I think folks will like.</p>]]></description>
			<author><![CDATA[dummy@example.com (James)]]></author>
			<pubDate>Mon, 23 Sep 2024 10:15:20 +0000</pubDate>
			<guid>https://www.faldon.org/post/73351/#p73351</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73337/#p73337</link>
			<description><![CDATA[<p>For whatever its worth, on OF we resolved this &quot;bug&quot; or a similar one by stepping up the rate of Health Mana Energy regen packets.</p>]]></description>
			<author><![CDATA[dummy@example.com (Catbert)]]></author>
			<pubDate>Sat, 21 Sep 2024 12:39:13 +0000</pubDate>
			<guid>https://www.faldon.org/post/73337/#p73337</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73315/#p73315</link>
			<description><![CDATA[<p>Yeah, I was pretty confident, but not 100% that what Rob was saying was what is going. It is just funky because it automagically runs again in new client, where I think in old client, if you hold shift, it wont run again until you release and press shift again(after depletion and regen). So it was more hidden before. </p><p>But the server probably sends out the regen and subtraction at the same time and does not null each other out, so regen probably sends after subtraction, or at the same time and doesn&#039;t handle both like that. And if server only sends regen amount to client every second, then you have a full second to use before it fixes that tiny amount. </p><p>But also, I dont have the code in front of my face, so this is all speculation : D</p><p>Im not sure this is so much a bug, but a fluidity of gameplay annoyance. But well worth noting and pushing a fix for. Maybe IF energy depleted, turn run toggle off.</p><p>Maybe something like this?<br /></p><div class="codebox"><pre><code>class Player {
private:
    bool isRunning;
    int runEnergy;

public:
    Player() : isRunning(false), runEnergy(100) {}

    void toggleRun() {
        isRunning = !isRunning;
        std::cout &lt;&lt; &quot;Run toggled &quot; &lt;&lt; (isRunning ? &quot;on&quot; : &quot;off&quot;) &lt;&lt; std::endl;
    }

    void updateRunEnergy() {
        if (isRunning) {
            runEnergy -= 1;
            if (runEnergy &lt;= 0) {
                runEnergy = 0;
                if (isRunning) {
                    toggleRun();
                    std::cout &lt;&lt; &quot;Run energy depleted. Run automatically turned off.&quot; &lt;&lt; std::endl;
                }
            }
        }
    }

    void displayStatus() {
        std::cout &lt;&lt; &quot;Running: &quot; &lt;&lt; (isRunning ? &quot;Yes&quot; : &quot;No&quot;) &lt;&lt; std::endl;
        std::cout &lt;&lt; &quot;Run Energy: &quot; &lt;&lt; runEnergy &lt;&lt; std::endl;
    }
};

int main() {
    Player player;
    
    // Simulate running until energy is depleted
    player.toggleRun();
    for (int i = 0; i &lt; 105; ++i) {
        player.updateRunEnergy();
        if (i % 10 == 0) {
            player.displayStatus();
        }
    }

    return 0;
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (travis)]]></author>
			<pubDate>Fri, 20 Sep 2024 19:18:44 +0000</pubDate>
			<guid>https://www.faldon.org/post/73315/#p73315</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73311/#p73311</link>
			<description><![CDATA[<p>Yes this is expected behaviour. (It did this in the past too even with low Agility)</p><p>It will regen even 1 energy and use that to run with the run toggle is on. So thats why youre getting those small bursts.</p><p>It could also be that regen is not correctly syncing up again.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mister Rob)]]></author>
			<pubDate>Fri, 20 Sep 2024 13:45:41 +0000</pubDate>
			<guid>https://www.faldon.org/post/73311/#p73311</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73310/#p73310</link>
			<description><![CDATA[<p>I had a few points of hysteresis before, which this most recent change took out. I&#039;ll add it back in. (I have a different plan long term.)</p>]]></description>
			<author><![CDATA[dummy@example.com (James)]]></author>
			<pubDate>Fri, 20 Sep 2024 10:58:12 +0000</pubDate>
			<guid>https://www.faldon.org/post/73310/#p73310</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73309/#p73309</link>
			<description><![CDATA[<p>What happens when you toggle off? <br />Also, I believe the regen and usage have never been synced up exactly, this could be why too.</p>]]></description>
			<author><![CDATA[dummy@example.com (travis)]]></author>
			<pubDate>Fri, 20 Sep 2024 10:32:58 +0000</pubDate>
			<guid>https://www.faldon.org/post/73309/#p73309</guid>
		</item>
		<item>
			<title><![CDATA[Zerk/run bug]]></title>
			<link>https://www.faldon.org/post/73307/#p73307</link>
			<description><![CDATA[<p>Since you changed it so the run toggle remains on, when you are berserking and out of energy, it will give you these weird little speed boosts every other second you are moving.&nbsp; I do not have enough Agility that it should be regenning at all - at least it never did in the past.&nbsp; It kinda of makes the rhythm of walking while zerked feel real odd.</p>]]></description>
			<author><![CDATA[dummy@example.com (pennywise)]]></author>
			<pubDate>Thu, 19 Sep 2024 21:42:53 +0000</pubDate>
			<guid>https://www.faldon.org/post/73307/#p73307</guid>
		</item>
	</channel>
</rss>
