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

#1 2012-11-05 17:01:50

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Remove save log

Each time you save, 31 bytes are added to the sb file in the form of a save log. For large games like spectrum and doodle fight, which may have over 400 saves, this can result in 12.4 KB extra. There seems to be no use for the log, so why not remove it?

inb4 "this won't be there in s2"


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#2 2012-11-07 11:29:00

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Remove save log

yikes
There should be a good way to remove those.

Anyone want to code one?

Offline

 

#3 2012-11-07 12:29:32

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Remove save log

m30w, duh  wink

just back up your sounds...

or even just a kurt three-liner:

Code:

project = kurt.ScratchProjectFile(path_to_file)
project.info["history"] = ""
project.save()

Last edited by roijac (2012-11-07 12:33:23)

Offline

 

Board footer