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

#1 2009-07-05 08:06:17

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Altering the source code: Questions Welcome!

Hello, fellow nerds!
If you are beginning to look into changing the actual source of scratch, to, for instance, make your own version, then I am certain you will run into some sort of problem.

If so, here is where you can post your question, and I will see if I can help.

Also, if you are Squeak-Savvy yourself, please add to it here, too!


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#2 2009-07-09 12:17:36

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: Altering the source code: Questions Welcome!

i know how to hackin the source code of 1.3 but what about 1.4?


Flat Out G

Offline

 

#3 2009-07-09 12:27:24

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Altering the source code: Questions Welcome!

Good point Pinochio.

Offline

 

#4 2009-07-09 12:28:59

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: Altering the source code: Questions Welcome!

why thank yah  smile


Flat Out G

Offline

 

#5 2009-07-09 19:35:49

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Altering the source code: Questions Welcome!

No problema! lol

Offline

 

#6 2009-07-10 15:45:33

scratchycat625625
Scratcher
Registered: 2009-06-05
Posts: 17

Re: Altering the source code: Questions Welcome!

pinochio wrote:

i know how to hackin the source code of 1.3 but what about 1.4?

Yh. hav asked jens


Plug 'n' play... How do they know my street name?

Offline

 

#7 2009-07-10 18:05:31

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Altering the source code: Questions Welcome!

If I am correct, you use Jens' method:
Find a bug, type Preferences enableProgrammerFacilities into the walkback, etc.
And, the problem in 1.4 is, you can't find any bugs, right!
Well, here's what I use:
In the default cat sprite, make another costume to be a single pixel (the colour doesn't matter).
Then, set the sprite to be 54000% in size.
Now, just switch to the cat costume...
You will see a red walkback window entitled 'space is low'
Be sure to delete that offending cat sprite and then set it to 100% soon; those errors are there for a reason.

If by chance it causes a squeak memory dump (denounced by an unflattering text-filled white rectangle in the top left corner) then try it again with a smaller size. (ie: 2000%, etc. 54000 is the largest it will allow for a single pixel)

Please do not advertise this method outside this forum, because if the scratch team gets wind of it, they will be sure to fix it. And we all know how precious these bugs can be.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#8 2009-07-25 20:10:23

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Altering the source code: Questions Welcome!

billyedward wrote:

If I am correct, you use Jens' method:
Find a bug, type Preferences enableProgrammerFacilities into the walkback, etc.
And, the problem in 1.4 is, you can't find any bugs, right!
Well, here's what I use:
In the default cat sprite, make another costume to be a single pixel (the colour doesn't matter).
Then, set the sprite to be 54000% in size.
Now, just switch to the cat costume...
You will see a red walkback window entitled 'space is low'
Be sure to delete that offending cat sprite and then set it to 100% soon; those errors are there for a reason.

If by chance it causes a squeak memory dump (denounced by an unflattering text-filled white rectangle in the top left corner) then try it again with a smaller size. (ie: 2000%, etc. 54000 is the largest it will allow for a single pixel)

Please do not advertise this method outside this forum, because if the scratch team gets wind of it, they will be sure to fix it. And we all know how precious these bugs can be.

that works. i gave the bug to JSO and he has already made an image with a developer menu.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#9 2009-07-26 04:55:41

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Altering the source code: Questions Welcome!

That's true but I recommend to wait until the Scratch team releases the official source.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#10 2009-07-28 22:56:21

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: Altering the source code: Questions Welcome!

JSO wrote:

That's true but I recommend to wait until the Scratch team releases the official source.

AAAAANNNNDDDD when will that be?


http://i.imgur.com/8LX1NrV.png

Offline

 

#11 2009-07-28 23:26:24

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Altering the source code: Questions Welcome!

I think that they should leave a couple back doors like this, I mean who would need a 54000^2 pixel character, that changes into a levithan cat

Offline

 

#12 2009-07-29 16:37:00

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Altering the source code: Questions Welcome!

illusionist wrote:

JSO wrote:

That's true but I recommend to wait until the Scratch team releases the official source.

AAAAANNNNDDDD when will that be?

From previous version, I am guessing about 2-3 months from the release. that would be anywhere from late September to October.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#13 2009-07-29 16:43:29

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Altering the source code: Questions Welcome!

songhead95 wrote:

I think that they should leave a couple back doors like this, I mean who would need a 54000^2 pixel character, that changes into a levithan cat

You are correct in the latter assumption... But the thing is, this can very well crash scratch. I have tried a number of other things like this, such as an uber-huge scrolling terrain in an RPG, and that brought up this walkback, too. On other occurrences, scratch has crashed. If the two were combined, then everything I'd done on the game since last save would be lost. And considering the relative ease of closing up this bug, I think that the scratch team will find it worthwhile to do so. Also, this is the only 1.4 bug that me, and many other scratchers are aware of... it may be the only one. And like any software developer, I can see why the scratch team would want a "Perfect Scratch."


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#14 2009-07-29 19:08:45

redware
Scratcher
Registered: 2007-05-21
Posts: 92

Re: Altering the source code: Questions Welcome!

Hi billyedward.

I just want to have a look at the scratch source code on a windows machine. I downloaded the source code image file and a copy of Squeak but the environment is totally alien to me and I could not find a way of opening up the source code files. It would be useful if you could tell us how to you open up the source files on Windows.

Thanks...

Offline

 

#15 2009-07-29 21:09:08

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Altering the source code: Questions Welcome!

redware wrote:

Hi billyedward.

I just want to have a look at the scratch source code on a windows machine. I downloaded the source code image file and a copy of Squeak but the environment is totally alien to me and I could not find a way of opening up the source code files. It would be useful if you could tell us how to you open up the source files on Windows.

Thanks...

To run the image, drag it onto a scratch executable.
To actually edit the source code, use the green 'browser' window.
I think that you are talking about the first one...
Reply if not.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#16 2009-08-09 14:47:04

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: Altering the source code: Questions Welcome!

How do you change the default sprite?


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#17 2009-08-09 22:17:17

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Altering the source code: Questions Welcome!

For awhile I have been attempting to write the coveted 'Hide list' and 'Show list' blocks. any ideas

Offline

 

#18 2009-08-10 04:16:42

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Altering the source code: Questions Welcome!

pinochio wrote:

i know how to hackin the source code of 1.3 but what about 1.4?

i know hacking 1.3 source 2 !

Offline

 

#19 2009-08-10 04:18:18

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Altering the source code: Questions Welcome!

songhead95 wrote:

For awhile I have been attempting to write the coveted 'Hide list' and 'Show list' blocks. any ideas

i can tell you a code 4 this !

Offline

 

#20 2009-08-10 04:31:39

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Altering the source code: Questions Welcome!

('hide list %L         -       hidelist:)
('show list %L         -      showlist:)

i think

Offline

 

#21 2009-08-10 04:48:03

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Altering the source code: Questions Welcome!

Where can I find tutorials for Squeak-Smalltalk?


Converting my Scratch projects to Python!

Offline

 

#22 2009-08-10 08:02:52

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Altering the source code: Questions Welcome!

dav09 wrote:

('hide list %L         -       hidelist:)
('show list %L         -      showlist:)

i think

Yes, but are hidelist and showlist already defined in the source code?


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#23 2009-08-10 09:24:33

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Altering the source code: Questions Welcome!

no they aren't, I know how to do THAT part. I was looking into defining a new method for show/hideList:

Offline

 

#24 2009-08-10 12:24:36

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Altering the source code: Questions Welcome!

songhead95 wrote:

no they aren't, I know how to do THAT part. I was looking into defining a new method for show/hideList:

that is the method !

Offline

 

#25 2009-08-11 11:14:59

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Altering the source code: Questions Welcome!

Hi, billyedward

Do you know some tutorials on Squeak Smalltalk (which you've used to learn it)?


Converting my Scratch projects to Python!

Offline

 

Board footer