ZeroLuck wrote:
this topic is pointless.
You aren't able to edit a Scratch binary in Notepad.
Yup, but you can do it in some text editors (the ones that preserve exact byte values. I think notepad++ can do that).
It's useful for quick find and replace, which Scratch doesn't do!
Offline
ZeroLuck wrote:
this topic is pointless.
You aren't able to edit a Scratch binary in Notepad.
If you have a lot of time and a good knowledge of code points, it's probably possible. The problem with this topic's result is it reaches EOF before it runs out of fields to read.
Offline
MathWizz wrote:
I was able to change a costumes name in Notepad++. Just make sure the name you change it to is the same length as the original name.
or change the previous byte to the correct length (unless you have a string longer than 255 characters, in which case you'll need to change the two previous bytes)
Last edited by nXIII (2011-12-31 13:21:55)
Offline
nXIII wrote:
MathWizz wrote:
I was able to change a costumes name in Notepad++. Just make sure the name you change it to is the same length as the original name.
or change the previous byte to the correct length (unless you have a string longer than 255 characters, in which case you'll need to change the two previous bytes)
That's kinda hard to do in NP++.
Offline
Just downloaded NP++, and it didn't work for me.
Anyone willing to debug?
Offline
scimonster wrote:
Just downloaded NP++, and it didn't work for me.
Anyone willing to debug?
I never actually tried myself..
I just remember that NP++ keeps the original bytes (or at least did when I had it) so you're able to open any file and re-save it losslessly.
It worked for the guys above though, so I don't see why it shouldn't for you!
Offline
DigiTechs wrote:
you can also use SciTE, which is designed for things like this - really, a .db file (the files scratch uses) is just a big database, that is why it got the name db!
You mean the "scratchthums.db"?
I thought they are talking about editing Scratch projects in Notepad...
not about the database files.
Offline
PowerBook wrote:
[lots of information]
1) Open a new file in Notepad, preferably in a new window, not by pressing "New" in the file menu.
2) Copy and paste the entire contents of the flag.sb file into the new window.
3) Remove the bottom line of text:Code:
EventHatMorph Scratch-StartClicked
4) Save, as test.sb.
Make Sure It Is Called Test.sb, Not Test.txt!
5) Open in Scratch. If you did everything like me, you will get this notice:Could not read project; file may be damaged:
(Attempt to set the position of a PositionableStream out of bounds)
It seems it can't be edited on the Mac after all.
Epic failure.
Offline
i tried this once with a rhy project. i think notepad crashed
Offline
christian2000 wrote:
i tried this once with a rhy project. i think notepad crashed
Offline
cocolover76 wrote:
christian2000 wrote:
i tried this once with a rhy project. i think notepad crashed
RHY was too epic for a Microsoft product to sustain.
Offline
ZeroLuck wrote:
DigiTechs wrote:
you can also use SciTE, which is designed for things like this - really, a .db file (the files scratch uses) is just a big database, that is why it got the name db!
You mean the "scratchthums.db"?
I thought they are talking about editing Scratch projects in Notepad...
not about the database files.
I meant - .sb, not .db - fail
Offline
I looked at what I got when I tried opening a blank Scratch binary (without the Scratch cat). Here's what I got:
ScratchV02 RObjSStch c c c c c c c c c
c c c
c c history 12012-10-31 20:45:40 save blank wiz99903 wiz99903
platform Win32 language en
os-version NT scratch-version 1.4 of 30-Jun-09 thumbnail# x c c author wiz99903 âXéaÿ c c ?ÿÿÿObjSStch }c c c c c c c c ?ð c
d <c c ! àh ?ÿÿÿ Stage c c
¢c c c ¤c c d 2 background1"àh c ð ´ popmc € c + € õÿ Ta Õ½
rïS#<$› â«sñUÚ_Ä`³©i¨’±åÅGáAó&íGÑaJo}p#a
DÎêó*ɧj‘ý%˜îµ9Ýèâ:`Dvpyµh¢EØgäJµl’zÞ†kŸqÈŽü!0â]}yßäq7M©¶ç©¸O–Œ‰‘i®OÙõ\< _PoïiNV$
òqÅY£g“¶™x²øÚh £6ŽWkf)_¢F¼õòÈÊõ¢Î«Ä2êñÀ9«Q(VñI4+NÛ,º¾¨ì©¼ÑÝŒ¼.<K€YR'9]¬êÅq§)³ºÐö°¥?zQÈQÊ?k}ùçÖÓ¾¶¾UÕ¬õ¼*3‚Aõ@„/,òW՟ó¿õËtãœz z6‰?†8Ò$:Ãç’ο†ÀÏéQk%~: A8µ#–Sè/ÏVÂ*ÂêÑZêI"”5×<Ð5ì#J ZîGØËwË
Öfêo±’*30x+ª<ôódá¿×¸Öö߬ïÍ)\#¨H«¯óRæpߺàÛé3öÌ$ÛòJ„É|òäç5á
á†èzôg¡,_Œ^=þtòçêÊç–é„ïàøùÔJ’Ù 7ûyöô–õÝù×ÿŽ—
ŠUþa
Offline
wiz99903 wrote:
So don't try getting rid of this, or it won't be a proper Scratch file.
I would like to point out, that that would not be exactly the same for everyone, so all I would do would be to change somthing I know, like if I named the scratch cat "awesomeness", I would look for the string "awesomeness" and change that.
Offline
Maybe the length of the file is encoded in the file format, and removing things causes the actual file to be shorter. Try replacing the green flag code with an equal or greater amount of spaces.
Offline
LS97 wrote:
scimonster wrote:
LS97 wrote:
It works for the opening part, but saving doesn't.
This is because notepad is a text editor and saves whatever file in an ASCII format, regardless of the bytes in it. Some bytes are then obviously lost. I think Visual Studio should do the trickReally?
I'll have to get this Visual Studio.If you're willing to pay 600 pounds, go ahead.
Or you can register via Dreamspark, like I did. You get heaps of free stuff!
Uh VisualStudio is free.
Offline