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-04-11 07:41:07, last edited by madiik (2015-04-11 08:38:38)

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

[Question] processor's world deserializer failing with "reset"

yeah
i just tried it
i got an error with argumentoutofrange exception with 38 entries

case "reset":
                    try
                    {
                        DataChunk[] datachunk = InitParse.Parse(m);
                        foreach (var chunk in datachunk)
                        {
                            foreach (var pos in chunk.Locations)
                            {
                                World.Blocks[chunk.Layer, pos.X, pos.Y] = chunk.Type; //is exactly same as roomData
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.ToString()); //returns error
                    }
                    break;

i believe this is processor's fault for not making it work with "reset" properly


shh i have returned

Offline

#2 2015-04-11 08:41:03, last edited by realmaster42 (2015-04-11 08:42:54)

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

Re: [Question] processor's world deserializer failing with "reset"

this is an InitParse script, not a reset parse script, sorry, but you'll have to make your own...

EDIT: Also, why are you doing it in "reset"?
You can track all new blocks by going to "b" message and adding:

World.Blocks[m.GetInt(1), m.GetInt(2), m.GetInt(3)] = m.GetInt(4)

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

Offline

#3 2015-04-11 09:35:28

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Re: [Question] processor's world deserializer failing with "reset"

marcoantonimsantos wrote:

this is an InitParse script, not a reset parse script, sorry, but you'll have to make your own...

EDIT: Also, why are you doing it in "reset"?
You can track all new blocks by going to "b" message and adding:

World.Blocks[m.GetInt(1), m.GetInt(2), m.GetInt(3)] = m.GetInt(4)

I desire to InitParse on LoadLevel.

Also, why does InitParse have the "reset" message type on it then?
Not a succesful answer to my question.


shh i have returned

Offline

#4 2015-04-11 11:11:29

Processor
Member
Joined: 2015-02-15
Posts: 2,246

Re: [Question] processor's world deserializer failing with "reset"

madiik wrote:

i believe this is processor's fault for not making it work with "reset" properly

Then post it in the official thread. //forums.everybodyedits.com/img/smilies/tongue

Fixed. //forums.everybodyedits.com/img/smilies/big_smile


I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.

Offline

Processor1428747089493506

Board footer

Powered by FluxBB

[ Started around 1732805013.9199 - Generated in 0.044 seconds, 10 queries executed - Memory usage: 1.41 MiB (Peak: 1.52 MiB) ]