Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-03-15 23:18:35

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

[Extend] Desirialiser

I'm using an outdated desirialiser and i need help fixing it, could someone assist me in this endeavor.

public static void Read(PlayerIOClient.Message m, uint c)
		{
			while (c < m.Count && !(m[c].ToString().StartsWith("PW") || m[c].ToString().StartsWith("BW")))
			{
				if (m[c].ToString() != "we")
				{
					int bid = m.GetInt(c);
					for (int n = 0; n < m.GetByteArray(c + 2).Length; n += 2)
					{
						int x = m.GetByteArray(c + 2)[n] << 8 | m.GetByteArray(c + 2)[n + 1];
						int y = m.GetByteArray(c + 3)[n] << 8 | m.GetByteArray(c + 3)[n + 1];
						block[x, y].BlockID = bid;
					}
					c += 4;
				}
				else
				{
					break;
				}
			}
		}

signature.png

Offline

#2 2015-03-16 11:12:49

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [Extend] Desirialiser

Since this is a total duplicate of http://forums.everybodyedits.com/viewtopic.php?id=26529, i recommend you to go there.


http://i.imgur.com/bjvgH5L.png?1

Offline

#3 2015-03-16 15:43:52

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Extend] Desirialiser

I actually didn't notice they were similar... Thanks.


signature.png

Offline

ParadoxInTheVoid1426517032483605

Board footer

Powered by FluxBB

[ Started around 1732499670.1569 - Generated in 0.040 seconds, 12 queries executed - Memory usage: 1.38 MiB (Peak: 1.48 MiB) ]