<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Replication - what gets replicated when ..."]]></title>
		<link>https://www.disastrousconsequences.com/dcforum/posts/list/20.page</link>
		<description><![CDATA[Latest messages posted in the topic "Replication - what gets replicated when ..."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Replication - what gets replicated when ...</title>
				<description><![CDATA[ Reposted from <a href="http://disastrousconsequences.com/dcforum/posts/list/2608.page#22325" target="_new" rel="nofollow">:arrow: the Monster Points thread</a>

<p></p>

		<cite>BotFodder wrote:</cite><br>
		<blockquote>... (and we might want to debug that - it shouldn't be happening) ...&nbsp;
		</blockquote>
Okay I've learned a bit about what gets replicated and what we might want to start including in certain replication statements ...

MonsterPointsInv is an extension of Inventory, which in turn is an extension of Engine.Actor.  According to <a href='http://www4.ncsu.edu/~spcash/Unreal_Docs/' target='_new' rel="nofollow">http://www4.ncsu.edu/~spcash/Unreal_Docs/</a> (which I got lucky and found via google one day - haven't gotten around to making my own undoc repository), Actor has the following replication statement:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
unreliable if &#40; &#40;!bSkipActorPropertyReplication || bNetInitial&#41; && &#40;Role==ROLE_Authority&#41;
						&& bNetDirty && bNetOwner &#41;
			Owner, Inventory;</pre>
		</div>
Now, ignoring for the moment that the Unreal Wiki says that all variables are reliable, I think the key here is that we don't have a bNetOwner value for the replication in MonsterPointsInv:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
replication
{
	reliable if &#40;bNetDirty && Role == ROLE_Authority&#41;
		TotalMonsterPoints, UsedMonsterPoints;
	reliable if &#40;Role == ROLE_Authority&#41;
		RemoveInteraction;
}</pre>
		</div>
If I understand everything correctly (as I have observed the behavior), if you want something replicated to both spectators and the actual player, don't include bNetOwner.  If you want it available to only the player, include bNetOwner.

Now, that's just what I'm thinking.  Dru: Does that make sense to you?  Should we go through a quickie review of the replications in DruidsRPG and make adjustments?]]></description>
				<guid isPermaLink="true">https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22326</guid>
				<link>https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22326</link>
				<pubDate><![CDATA[Mon, 23 Oct 2006 19:08:33]]> GMT</pubDate>
				<author><![CDATA[ BotFodder]]></author>
			</item>
			<item>
				<title>Re:Replication - what gets replicated when ...</title>
				<description><![CDATA[ Went ahead and in the replication of variables sections in:

EngineerPointsInv.uc
MonsterPointsInv.uc

added a check for bNetOwner.

Changed:

EngineerInteraction.uc
MonsterMasterInteraction.uc

cleaned up the PostRender checks to remove uneeded (I hope) if/returns.

Didn't test, but did compile.]]></description>
				<guid isPermaLink="true">https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22330</guid>
				<link>https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22330</link>
				<pubDate><![CDATA[Tue, 24 Oct 2006 13:49:12]]> GMT</pubDate>
				<author><![CDATA[ BotFodder]]></author>
			</item>
			<item>
				<title>Re:Replication - what gets replicated when ...</title>
				<description><![CDATA[ Nice work. Can anyone verify that it's working more gooderest(sic)?]]></description>
				<guid isPermaLink="true">https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22338</guid>
				<link>https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22338</link>
				<pubDate><![CDATA[Tue, 24 Oct 2006 23:35:10]]> GMT</pubDate>
				<author><![CDATA[ TheDruidXpawX]]></author>
			</item>
			<item>
				<title>Re:Replication - what gets replicated when ...</title>
				<description><![CDATA[ BTW: I left all other replication alone ...

Going with "well, this gets replicated to be seen", the other replications I saw were for things like "freezing", "invulnerability", etc.  And I'm guessing that if it where bNetOwner, they wouldn't see certain effects if they were spectating a particular way.]]></description>
				<guid isPermaLink="true">https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22341</guid>
				<link>https://www.disastrousconsequences.com/dcforum/posts/list/2613.page#22341</link>
				<pubDate><![CDATA[Wed, 25 Oct 2006 04:22:56]]> GMT</pubDate>
				<author><![CDATA[ BotFodder]]></author>
			</item>
	</channel>
</rss>