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.
Offline
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?
Offline
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.
Offline
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.
Offline