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

#1 2010-09-12 19:50:16

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

In need of assistance with tweaking the Scratch image a bit

I am almost finished with my Scratch EXE Creator. The creator is done, the interface is done, all the components are done. The only thing that stands in the way: Scratch itself.
I have already modified the image to run the normal exit code when the exit presentation arrow is clicked (oops, I forgot to mention that the project will be packed back into the EXE), but there are 2 issues:
-First, when I click the Save button in the "Save changes before quitting?" dialog, Scratch doesn't save the project to where it came from (namely, the temporary directory); instead, it opens the Save As dialog. Basically, when the Save button is clicked, I want it to save to project.sb in the temporary directory ("%temp%\project.sb" in Windows-environment-variable-speak).
-Second, when the project does save, Scratch doesn't automatically close. I need it to close after saving.
Any assistance with these issues would be greatly appreciated, and I will give credit.
Oh, I almost forgot: here's the Scratch image as I have modded it so far: http://concat.jcshome.org/stuff/Scratch.image


Yawn.

Offline

 

#2 2010-09-13 19:34:05

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: In need of assistance with tweaking the Scratch image a bit

Bumpeth!

Help, please?


Yawn.

Offline

 

#3 2010-09-13 19:37:57

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: In need of assistance with tweaking the Scratch image a bit

Ask NXIII.  tongue 


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#4 2010-09-13 19:49:04

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: In need of assistance with tweaking the Scratch image a bit

Why me?!

Okay, I think for closing after saving you could just modify SFrame's saveProjectNoDialog, and maybe call saveProjectNoDialog when saveProject: is called; although, I don't think Squeak likes writing to the temporary directories....


nXIII

Offline

 

#5 2010-09-13 20:26:29

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: In need of assistance with tweaking the Scratch image a bit

Also, make sure that you have all of the plugins for Scratch in the folder.

Offline

 

#6 2010-09-13 20:32:11

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: In need of assistance with tweaking the Scratch image a bit

@Billybob-Mario: I already do, I got over that a while ago; like I said, everything else is finished.

@nxIII: Thanks, now I've gotten it to quit after saving, but it never actually saves the project. Can anybody get it to save in the temporary directory (maybe have it save to a file path passed to it as a command line parameter)?


Yawn.

Offline

 

#7 2010-09-14 20:42:11

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: In need of assistance with tweaking the Scratch image a bit

Ah, I see it all now... The reason Scratch wouldn't automatically save the project is that it wasn't given a full path. If Scratch isn't given a full path to the project, it won't save the project to where it came from. Now my Scratch EXE Creator is nearly done, and it'll probably be released tomorrow!  big_smile


Yawn.

Offline

 

#8 2010-09-14 20:47:28

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: In need of assistance with tweaking the Scratch image a bit

Closed via request of owner.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer