This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-13 17:13:43

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

What's a bad header error?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2013-01-13 17:37:42

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: What's a bad header error?

A project has two parts: the header and the contents (I'm not sure if those are the official names, but that's what I call them).
The header contains stuff like the version of Scratch it was made in, the project notes, and a bunch of other stuff.

When opening a file, it looks at the header first, so if it's an invalid file or is corrupt, it will see the bad header first and throw an error on it. This error usually only occurs on corrupt projects.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#3 2013-01-13 17:41:04

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: What's a bad header error?

jvvg wrote:

A project has two parts: the header and the contents (I'm not sure if those are the official names, but that's what I call them).
The header contains stuff like the version of Scratch it was made in, the project notes, and a bunch of other stuff.

When opening a file, it looks at the header first, so if it's an invalid file or is corrupt, it will see the bad header first and throw an error on it. This error usually only occurs on corrupt projects.

Such as the #include <iostram> or #include <stdio.h> in C++ and C?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#4 2013-01-13 17:51:17

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: What's a bad header error?

Firedrake969 wrote:

jvvg wrote:

A project has two parts: the header and the contents (I'm not sure if those are the official names, but that's what I call them).
The header contains stuff like the version of Scratch it was made in, the project notes, and a bunch of other stuff.

When opening a file, it looks at the header first, so if it's an invalid file or is corrupt, it will see the bad header first and throw an error on it. This error usually only occurs on corrupt projects.

Such as the #include <iostram> or #include <stdio.h> in C++ and C?

No. Remember that a Scratch file is not like a C file, it's more like a word document.
In a word document, you have a header with info like who wrote it, any password protection, what version of Word it was written in, etc...
Likewise, in Scratch, the header contains info like the project notes, the version of Scratch that wrote it (that's why if you open a 1.4 project in an earlier version, it will trigger a bad header error), the save history, and a bunch of other stuff.
The body contains stuff like the costumes and scripts.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#5 2013-01-13 17:57:36

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: What's a bad header error?

jvvg wrote:

Firedrake969 wrote:

jvvg wrote:

A project has two parts: the header and the contents (I'm not sure if those are the official names, but that's what I call them).
The header contains stuff like the version of Scratch it was made in, the project notes, and a bunch of other stuff.

When opening a file, it looks at the header first, so if it's an invalid file or is corrupt, it will see the bad header first and throw an error on it. This error usually only occurs on corrupt projects.

Such as the #include <iostream> or #include <stdio.h> in C++ and C?

No. Remember that a Scratch file is not like a C file, it's more like a word document.
In a word document, you have a header with info like who wrote it, any password protection, what version of Word it was written in, etc...
Likewise, in Scratch, the header contains info like the project notes, the version of Scratch that wrote it (that's why if you open a 1.4 project in an earlier version, it will trigger a bad header error), the save history, and a bunch of other stuff.
The body contains stuff like the costumes and scripts.

Ah, ok.  Thanks.  I've never made a mod.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

Board footer