<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Faldon Forums - Server lag]]></title>
	<link rel="self" href="https://www.faldon.org/feed/atom/topic/7569/"/>
	<updated>2024-09-14T16:55:31Z</updated>
	<generator>PunBB</generator>
	<id>https://www.faldon.org/topic/7569/</id>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73268/#p73268"/>
			<content type="html"><![CDATA[<p>Yeah, this was all Spy&#039;s fault! Let&#039;s get mad because the server vulnerability wasn&#039;t fixed within 24 hours! And why didn&#039;t the offenders get instant banned, and other imperfect ways this was handled!&nbsp; <img src="https://www.faldon.org/img/smilies/roll.png" width="15" height="15" alt="roll" /> </p><p><span class="postimg"><img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftv-fanatic-res.cloudinary.com%2Fiu%2Fs--02uNV0Fd--%2Ft_xlarge_l%2Ff_auto%2Cfl_lossy%2Cq_75%2Fv1490231460%2Fattachment%2Fgot-shame.gif&amp;f=1&amp;nofb=1&amp;ipt=f02b1e1d437ace6f6ba7120095d62ef8a2d1d3b8b4c9633fde34de35e65edad8&amp;ipo=images" alt="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftv-fanatic-res.cloudinary.com%2Fiu%2Fs--02uNV0Fd--%2Ft_xlarge_l%2Ff_auto%2Cfl_lossy%2Cq_75%2Fv1490231460%2Fattachment%2Fgot-shame.gif&amp;amp;f=1&amp;amp;nofb=1&amp;amp;ipt=f02b1e1d437ace6f6ba7120095d62ef8a2d1d3b8b4c9633fde34de35e65edad8&amp;amp;ipo=images" /></span></p>]]></content>
			<author>
				<name><![CDATA[Master Wu]]></name>
				<uri>https://www.faldon.org/user/4/</uri>
			</author>
			<updated>2024-09-14T16:55:31Z</updated>
			<id>https://www.faldon.org/post/73268/#p73268</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73267/#p73267"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Mr Spy wrote:</cite><blockquote><p>It does seem to be related to the automatic item pickup thingy people are using. I booted the ones using it/asked them to turn it off. Lag seems to be gone according to the players.</p></blockquote></div><br /><p>Why you say people when you know exactly who did it and make it look like all of us was causing it? <br />i even dmed you in discord about exactly what caused the lag and your reply was &quot;idc tell james&quot; no?</p>]]></content>
			<author>
				<name><![CDATA[Salazzar(HM)]]></name>
				<uri>https://www.faldon.org/user/7994/</uri>
			</author>
			<updated>2024-09-14T07:01:40Z</updated>
			<id>https://www.faldon.org/post/73267/#p73267</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73266/#p73266"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>James wrote:</cite><blockquote><p>Turns out 25 players use 20% server CPU.<br />1 player using the macro increases it to 50%. So, 3 players causes 100%, and then everyone gets lag.<br />The main problem is it sends a ton of packets for objects that aren&#039;t even there.</p><p>I am going to change the pick-up packet to use object ID instead of location next week. That will solve the problem permanently. This is great. I thought the problem would be more difficult to solve.</p><p>Thanks for finding the problem Mr Spy, and thanks for revealing the problem bullethead123. I want to make the server resilient to all kinds of packets, and clearly, object pick-up is an area that is very inefficient.</p></blockquote></div><p>It turns out everyone gets punished because 3 peoples mistakes</p>]]></content>
			<author>
				<name><![CDATA[Salazzar(HM)]]></name>
				<uri>https://www.faldon.org/user/7994/</uri>
			</author>
			<updated>2024-09-14T06:59:42Z</updated>
			<id>https://www.faldon.org/post/73266/#p73266</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73265/#p73265"/>
			<content type="html"><![CDATA[<p>who&#039;s online using it now?.</p><p>Nvm i know who it is. Keep an eye on anthonyrules, i believe it should not be an issue now but please do let me know if it is still causing problems. When other users restart they&#039;ll be moved onto same version anthonyrules is on.</p>]]></content>
			<author>
				<name><![CDATA[bullethead123]]></name>
				<uri>https://www.faldon.org/user/7992/</uri>
			</author>
			<updated>2024-09-13T16:29:01Z</updated>
			<id>https://www.faldon.org/post/73265/#p73265</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73264/#p73264"/>
			<content type="html"><![CDATA[<p>Ah, so it was only limited by the bandwidth of the player. I&#039;m surprised the effect was only 30% CPU per player. Radius of 3 will not work at any rate -- anything over 1 tile X and 1 tile Y from the player is ignored.</p><p>Judging by CPU usage, we have one person online using your macro, and the server bandwidth over 30 seconds is<br />RX to server: 9547362 bytes (318KB/s)<br />TX from server: 873424 bytes (29KB/s)<br />As it&#039;s typically 1KB/s both ways per player, I think it&#039;s safe to say the macro is DOSing the server. Enough packets per macroer for 200 players. This is doubly funny actually, because the server is only on a 10 megabit (1.25MB/s) line, so not only are you maxing the CPU but also probably running me out of bandwidth.</p><p>Thinking of it now, the best way to solve this is a general bandwidth limit per player. No wonder it was lagging.</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://www.faldon.org/user/2/</uri>
			</author>
			<updated>2024-09-13T16:19:22Z</updated>
			<id>https://www.faldon.org/post/73264/#p73264</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73263/#p73263"/>
			<content type="html"><![CDATA[<p>How many depends on the radius</p><p>for (int dx = -collectionRadius; dx &lt;= collectionRadius; ++dx) {<br />&nbsp; &nbsp; &nbsp; &nbsp; for (int dy = -collectionRadius; dy &lt;= collectionRadius; ++dy) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int targetX = currentX + dx;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int targetY = currentYDecoded + dy;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendCollectionPacket(targetX, targetY);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>IT was spamming the above function with no delay. SO probably like hundreds a second.</p>]]></content>
			<author>
				<name><![CDATA[bullethead123]]></name>
				<uri>https://www.faldon.org/user/7992/</uri>
			</author>
			<updated>2024-09-13T16:16:05Z</updated>
			<id>https://www.faldon.org/post/73263/#p73263</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73262/#p73262"/>
			<content type="html"><![CDATA[<p>ITs funny you ask, I was just looking over my code and i realised i made a mistake. It&#039;s supposed to be periodically sending collect packets out in a radius around the player, but I had called it from 2 different areas, 1 in a back-ground thread which spammed it continually with no delay. So not only was it sending them infinitely without delay but it was calling it an additional time every 1second.</p><p>I&#039;ve corrected it now, I think that should solve the issue. I also reduced the radius from 3 tiles to 1.</p>]]></content>
			<author>
				<name><![CDATA[bullethead123]]></name>
				<uri>https://www.faldon.org/user/7992/</uri>
			</author>
			<updated>2024-09-13T16:09:52Z</updated>
			<id>https://www.faldon.org/post/73262/#p73262</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73261/#p73261"/>
			<content type="html"><![CDATA[<p>Out of curiosity, though, how many pick-up packets per second are you sending? I imagine it&#039;s 9 at a time all around the player for starters.</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://www.faldon.org/user/2/</uri>
			</author>
			<updated>2024-09-13T16:00:32Z</updated>
			<id>https://www.faldon.org/post/73261/#p73261</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73260/#p73260"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>James wrote:</cite><blockquote><p>Turns out 25 players use 20% server CPU.<br />1 player using the macro increases it to 50%. So, 3 players causes 100%, and then everyone gets lag.<br />The main problem is it sends a ton of packets for objects that aren&#039;t even there.</p><p>I am going to change the pick-up packet to use object ID instead of location next week. That will solve the problem permanently. This is great. I thought the problem would be more difficult to solve.</p><p>Thanks for finding the problem Mr Spy, and thanks for revealing the problem bullethead123. I want to make the server resilient to all kinds of packets, and clearly, object pick-up is an area that is very inefficient.</p></blockquote></div><p>I love your mindset as a developer. Rather than crying about the problem (or people doing it) you look to implement a solution.</p>]]></content>
			<author>
				<name><![CDATA[bullethead123]]></name>
				<uri>https://www.faldon.org/user/7992/</uri>
			</author>
			<updated>2024-09-13T15:33:00Z</updated>
			<id>https://www.faldon.org/post/73260/#p73260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73259/#p73259"/>
			<content type="html"><![CDATA[<p>Turns out 25 players use 20% server CPU.<br />1 player using the macro increases it to 50%. So, 3 players causes 100%, and then everyone gets lag.<br />The main problem is it sends a ton of packets for objects that aren&#039;t even there.</p><p>I am going to change the pick-up packet to use object ID instead of location next week. That will solve the problem permanently. This is great. I thought the problem would be more difficult to solve.</p><p>Thanks for finding the problem Mr Spy, and thanks for revealing the problem bullethead123. I want to make the server resilient to all kinds of packets, and clearly, object pick-up is an area that is very inefficient.</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://www.faldon.org/user/2/</uri>
			</author>
			<updated>2024-09-13T14:56:31Z</updated>
			<id>https://www.faldon.org/post/73259/#p73259</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73258/#p73258"/>
			<content type="html"><![CDATA[<p>Hello,</p><p>Yes that is mine. I apologize it was not my intention to cause issues for players. I&#039;m disabling that feature for anyone using at this time.</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[bullethead123]]></name>
				<uri>https://www.faldon.org/user/7992/</uri>
			</author>
			<updated>2024-09-13T14:43:04Z</updated>
			<id>https://www.faldon.org/post/73258/#p73258</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73257/#p73257"/>
			<content type="html"><![CDATA[<p>It does seem to be related to the automatic item pickup thingy people are using. I booted the ones using it/asked them to turn it off. Lag seems to be gone according to the players.</p>]]></content>
			<author>
				<name><![CDATA[Mr Spy]]></name>
				<uri>https://www.faldon.org/user/431/</uri>
			</author>
			<updated>2024-09-13T14:33:09Z</updated>
			<id>https://www.faldon.org/post/73257/#p73257</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73256/#p73256"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Mister Rob wrote:</cite><blockquote><div class="quotebox"><cite>pennywise wrote:</cite><blockquote><p>They&#039;re injecting an old.dll hack called Maldon.&nbsp; It hooks on faldon and spams auto attack and auto pick up commands...looks like api calls, not packet editing.&nbsp; The commands should work seperate from one another, so I dunno why the auto pickup was on.&nbsp; It also only works on old client.</p></blockquote></div><p>Its not Maldon what theyre using but &#039;&#039;Faldron&#039;&#039; its been advertised on the game and discord. But its the same thing except the auto loot is probably always on.</p></blockquote></div><p>Well, i think there are only 2 ppl using that, and current lag is older than that program. Plus that is not the same as Maldon (almost a complete trash). James is right, people who use it crashes multiple times when injecting its dll, i&#039;ve seen that with my eyes too, but i dont think lag is related to that.</p>]]></content>
			<author>
				<name><![CDATA[Supla]]></name>
				<uri>https://www.faldon.org/user/7847/</uri>
			</author>
			<updated>2024-09-12T22:06:28Z</updated>
			<id>https://www.faldon.org/post/73256/#p73256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73255/#p73255"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>pennywise wrote:</cite><blockquote><p>They&#039;re injecting an old.dll hack called Maldon.&nbsp; It hooks on faldon and spams auto attack and auto pick up commands...looks like api calls, not packet editing.&nbsp; The commands should work seperate from one another, so I dunno why the auto pickup was on.&nbsp; It also only works on old client.</p></blockquote></div><p>Its not Maldon what theyre using but &#039;&#039;Faldron&#039;&#039; its been advertised on the game and discord. But its the same thing except the auto loot is probably always on.</p>]]></content>
			<author>
				<name><![CDATA[Mister Rob]]></name>
				<uri>https://www.faldon.org/user/3678/</uri>
			</author>
			<updated>2024-09-12T21:35:57Z</updated>
			<id>https://www.faldon.org/post/73255/#p73255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Server lag]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/73254/#p73254"/>
			<content type="html"><![CDATA[<p>The 2024/09/10 update did not change the server. It loaded art more slowly, which 2024/09/12 fixed.</p><p>Not a given that no one is using that type of program. I get crash reports from a guy using &quot;FaldonInject.dll&quot; all the time.<br />*That said*, the server needs to be tolerant of whatever comes its way.</p><p>2024/08/23 did also add script caching. It&#039;s possible that doesn&#039;t work as well as it should. I&#039;m going to try and figure out a way to run a profiler on the server code this coming week.</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://www.faldon.org/user/2/</uri>
			</author>
			<updated>2024-09-12T21:35:44Z</updated>
			<id>https://www.faldon.org/post/73254/#p73254</id>
		</entry>
</feed>
