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-10-10 23:36:30

soulrunner
Member
Joined: 2015-03-10
Posts: 185

What does World Deserializers do?

The question is in the Title. I'm just a noob at programming and would like to know.


l141.gif

Offline

#2 2015-10-10 23:59:13

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

Re: What does World Deserializers do?

Like, what is the exact process? Or why do you need them?
The latter is easier for me to explain, so...

"Deserialize" is a fancy way of saying there's data in a format. You want to take that data, and make it easier to use (I guess). Or, just change formats.

"World deserialize" is when the world data (block data, potions(?), backgrounds, custom blocks... text) is put in a format you don't easily understand... or need to convert. EE servers put the data in a certain format that they like. You have to "deserialize" based on the methods they choose.

There's also a similar setup in the database. Serializing also helps keep the data size (file size) small as possible. This way, you CAN actually cram all that ** in a 300x300. Also speeds up transmission.

Fun fact: Chris originally wrote EE to transmit every block (200*200 = 40,000) in the world upon joining.

tl;dr: de-serializing = optimization by agreeing on rules

Offline

#3 2015-10-11 12:22:10

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

Re: What does World Deserializers do?

Serialization is persisting an object from memory to a sequence of bits.
Aka: Convert variables (objects) into bits (zeros and ones).

Obviously deserialization is the opposite thing, reading the bits and converting them into objects (which you can put in variables).


World data (all the blocks (foreground and background) in a room (things like background color, potions active, people who have edit, etc. aren't in the world data) has been serialized so that it's readable by everyone and you don't need a library (dll) to extract the block objects.

In this case you have to read bit by bit to figure out what you're currently reading: a block on the foreground with id 385 containing the text "lol i'm a sign".
That data you can then put into your own object.

Offline

#4 2015-10-11 13:46:41

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

Re: What does World Deserializers do?

World Deserializers are glasses for bots. Basically bots can't see as you see the world.


Everybody edits, but some edit more than others

Offline

Zumza1444567601548457

Board footer

Powered by FluxBB

[ Started around 1715809026.2224 - Generated in 0.026 seconds, 13 queries executed - Memory usage: 1.38 MiB (Peak: 1.48 MiB) ]