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 2016-01-02 06:36:34, last edited by SirJosh3917 (2016-01-02 20:43:45)

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

[Request] Not some fancy code, just numbers.

Not 00110001 00110000 (thats the string "10" in binary - minus the quotation marks of course), but rather this.

So, some blocks in everybody edits are invisible to the map, Such as gravity blocks and all decoration blocks. My goal is to record all of their IDs onto a List<int> (which you don't have to worry about).
If you require a reason, then

really big spoiler

Anyways, all you guys have to worry about is putting the IDs of ALL DECORATION BLOCKS, NO OTHER BLOCKS in a post. Here's what I have done so far:

		public static void DefineInvisBLocks()
		{
			InvisibleBlocks.Clear();
			InvisibleBlocks.Add(1);
			InvisibleBlocks.Add(2);
			InvisibleBlocks.Add(3);
			InvisibleBlocks.Add(4);
			InvisibleBlocks.Add(460);
			InvisibleBlocks.Add(459);
			InvisibleBlocks.Add(411);
			InvisibleBlocks.Add(412);
			InvisibleBlocks.Add(413);
			InvisibleBlocks.Add(414);
			InvisibleBlocks.Add(98);
			InvisibleBlocks.Add(99);
			InvisibleBlocks.Add(118);
			InvisibleBlocks.Add(120);
			InvisibleBlocks.Add(114);
			InvisibleBlocks.Add(115);
			InvisibleBlocks.Add(116);
			InvisibleBlocks.Add(117);
			InvisibleBlocks.Add(417);
			InvisibleBlocks.Add(418);
			InvisibleBlocks.Add(419);
			InvisibleBlocks.Add(453);
			InvisibleBlocks.Add(420);
			InvisibleBlocks.Add(421);
			InvisibleBlocks.Add(461);
			InvisibleBlocks.Add(100);
			InvisibleBlocks.Add(101);
			InvisibleBlocks.Add(5);
			InvisibleBlocks.Add(369);
			InvisibleBlocks.Add(119);
			InvisibleBlocks.Add(431);
			InvisibleBlocks.Add(432);
			InvisibleBlocks.Add(433);
			InvisibleBlocks.Add(434);
			InvisibleBlocks.Add(227);
			InvisibleBlocks.Add(375);
			InvisibleBlocks.Add(376);
			InvisibleBlocks.Add(379);
			InvisibleBlocks.Add(380);
			InvisibleBlocks.Add(377);
			InvisibleBlocks.Add(378);
			InvisibleBlocks.Add(438);
			InvisibleBlocks.Add(439);
			InvisibleBlocks.Add(261);
			InvisibleBlocks.Add(270);
			InvisibleBlocks.Add(269);
			InvisibleBlocks.Add(268);
			InvisibleBlocks.Add(267);
			InvisibleBlocks.Add(266);
			InvisibleBlocks.Add(265);
			InvisibleBlocks.Add(264);
			InvisibleBlocks.Add(263);
			InvisibleBlocks.Add(262);
			InvisibleBlocks.Add(271);
			InvisibleBlocks.Add(272);
			//InvisibleBlocks.Add();
		}

You'll notice some of them aren't decorational blocks. Don't worry about that, I know what I'm doing.

Anyways, feel free to help.

Offline

#2 2016-01-02 13:05:59

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Request] Not some fancy code, just numbers.

Search for 0 on this pastebin and get the id, http://pastebin.com/CNn1GePn

Offline

#3 2016-01-02 13:27:47

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [Request] Not some fancy code, just numbers.

capasha wrote:

Search for 0 on this pastebin and get the id, http://pastebin.com/CNn1GePn

" 0"


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#4 2016-01-02 13:29:39

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Request] Not some fancy code, just numbers.

Koya wrote:
capasha wrote:

Search for 0 on this pastebin and get the id, http://pastebin.com/CNn1GePn

" 0"

I thought he would understand that it needs a space.

Offline

#5 2016-01-02 13:32:23

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [Request] Not some fancy code, just numbers.

capasha wrote:
Koya wrote:
capasha wrote:

Search for 0 on this pastebin and get the id, http://pastebin.com/CNn1GePn

" 0"

I thought he would understand that it needs a space.

I did not.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#6 2016-01-02 19:10:39

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Request] Not some fancy code, just numbers.

ninjasupeatsninja wrote:

Not 00110001 00110000 (thats 10 in binary)

Correction, it's "10" (the string 10). The number 10 = 1010 (with some leading 0's, depending on value-type).
#binarynazi?

Offline

Wooted by:

#7 2016-01-02 19:37:23

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Request] Not some fancy code, just numbers.

den3107 wrote:
ninjasupeatsninja wrote:

Not 00110001 00110000 (thats 10 in binary)

Correction, it's "10" (the string 10). The number 10 = 1010 (with some leading 0's, depending on value-type).
#binarynazi?

He was saying that that is 10...
TITNHuZ.png


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by:

#8 2016-01-02 20:31:31

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Request] Not some fancy code, just numbers.

^I think that's apparent. But let's be real. As programmers, screwing up data types messes with what we do.
You don't multiply strings... you don't use them as numbers. BUT........................... integers, yes!
so like
00000000000000000000000000001010

Offline

Wooted by:

#9 2016-01-02 21:16:48, last edited by Zumza (2016-01-02 21:18:33)

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: [Request] Not some fancy code, just numbers.

A list occupies more space. Use an array:

uint[] invisibleBlocks = new uint[] {
      1, 2, 3
};

Everybody edits, but some edit more than others

Offline

Wooted by:

#10 2016-01-02 21:29:21

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Request] Not some fancy code, just numbers.

Zumza wrote:

A list occupies more space. Use an array:

uint[] invisibleBlocks = new uint[] {
      1, 2, 3
};

An array occupies space. Use a pencil and a piece of paper.

Offline

Wooted by:

#11 2016-01-02 22:54:59

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [Request] Not some fancy code, just numbers.

anyways, I've achieved what I desired.

Offline

#12 2016-01-03 01:25:50

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Request] Not some fancy code, just numbers.

hummerz5 wrote:
Zumza wrote:

A list occupies more space. Use an array:

uint[] invisibleBlocks = new uint[] {
      1, 2, 3
};

An array occupies space. Use a pencil and a piece of paper.

When you'd have enough arrays, it'd require less space to hold those arrays than to hold all the pencils and pieces of paper to write them down.
Have no idea exactly what that limit would be, but I don't think it's very high.

Offline

den31071451780750572903

Board footer

Powered by FluxBB

[ Started around 1732759452.4217 - Generated in 0.082 seconds, 12 queries executed - Memory usage: 1.63 MiB (Peak: 1.82 MiB) ]