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

#1 2011-04-05 17:21:13

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

I/O / Custom block warning problems.

Hey, I want to remove the I/O and Custom block warning windows from my personal copy of Panther as it's getting on my nerves, how do I do it? nXIII coded it in and I'm not sure how. The code for the windows exists under Scratch-UI-Dialogs >> CustomBlockWarner / FileIOAskerDialog. I tried deleting the entire class for both but was met with a red error when the custom block warning ought to have appeared. The project I ran could not connect to files on my computer using file I/O at all, it would appear both are set to "do not allow" before they are run... any help would be great!

Last edited by sparks (2011-04-05 17:21:23)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2011-04-05 17:32:34

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

replace the method 'askForFileIO' in ScriptableScratchMorph with just

Code:

askForFileIO
^ true

Offline

 

#3 2011-04-05 17:39:51

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

That worked, thanks! Now for the custom block warning!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2011-04-05 17:50:01

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

When does the custom block warning happen?

Offline

 

#5 2011-04-05 17:54:33

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

First thing when you open the project and more annoyingly whenever you import a sprite. I'm writing a project that import sprites from files using custom blocks so the warning whenever the sprite is imported is very annoying.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#6 2011-04-05 19:03:03

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

In ScratchStageMorph>>warnForCustomBlocks just delete all the code  smile

Offline

 

#7 2011-04-05 20:09:47

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: I/O / Custom block warning problems.

sparks wrote:

Hey, I want to remove the I/O and Custom block warning windows from my personal copy of Panther as it's getting on my nerves, how do I do it? nXIII coded it in and I'm not sure how. The code for the windows exists under Scratch-UI-Dialogs >> CustomBlockWarner / FileIOAskerDialog. I tried deleting the entire class for both but was met with a red error when the custom block warning ought to have appeared. The project I ran could not connect to files on my computer using file I/O at all, it would appear both are set to "do not allow" before they are run... any help would be great!

wait, didn't you help make panther?


http://i45.tinypic.com/35m4llw.gif

Offline

 

#8 2011-04-05 20:42:04

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: I/O / Custom block warning problems.

echs wrote:

sparks wrote:

Hey, I want to remove the I/O and Custom block warning windows from my personal copy of Panther as it's getting on my nerves, how do I do it? nXIII coded it in and I'm not sure how. The code for the windows exists under Scratch-UI-Dialogs >> CustomBlockWarner / FileIOAskerDialog. I tried deleting the entire class for both but was met with a red error when the custom block warning ought to have appeared. The project I ran could not connect to files on my computer using file I/O at all, it would appear both are set to "do not allow" before they are run... any help would be great!

wait, didn't you help make panther?

As he told me he didn't do much, if they lived near each-other he would most likely be the person why would

sparks wrote:

bring tea


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#9 2011-04-06 12:25:58

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: I/O / Custom block warning problems.

Can you please use the [/blocks] tag please?

Last edited by TheSuccessor (2011-04-06 12:26:10)


/* No comment */

Offline

 

#10 2011-04-06 13:09:48

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

TheSuccessor wrote:

Can you please use the [/blocks] tag please?

My post was fine... Do you know how to disable the custom block warning?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#11 2011-04-06 13:23:24

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: I/O / Custom block warning problems.

sparks wrote:

TheSuccessor wrote:

Can you please use the [/blocks] tag please?

My post was fine... Do you know how to disable the custom block warning?

I was kind of talking about echs' post...

Maybe it's just a glitch. As for the custom block warning, I'm not sure what you mean but I've found )[b][/b]) works when posting.


/* No comment */

Offline

 

#12 2011-04-06 13:30:22

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

TheSuccessor wrote:

sparks wrote:

TheSuccessor wrote:

Can you please use the [/blocks] tag please?

My post was fine... Do you know how to disable the custom block warning?

I was kind of talking about echs' post...

Maybe it's just a glitch. As for the custom block warning, I'm not sure what you mean but I've found )[b][/b]) works when posting.

I want it to stop appearing when custom blocks are detected in my copy of Panther.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#13 2011-04-06 15:45:40

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

wcfs96 wrote:

In ScratchStageMorph>>warnForCustomBlocks just delete all the code  smile

As I posted above that should stop the custom block warnings (from the small testing that I did)

Offline

 

#14 2011-04-06 16:22:54

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

oh, sorry, I didn't see it amongst all the irrelevant posts! I will try it out!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#15 2011-04-06 16:29:52

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

It worked! Thank you!

Any idea how to remove the green flag and stop buttons in presentation mode?
I can remove them by entering full-screen and dismissing them, but they come back when fullscreen is exited and re-entered. I didn't expect it to work but I thought I'd try.

Last edited by sparks (2011-04-06 17:24:43)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#16 2011-04-06 17:31:48

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

In ScratchPresenterMorph in the method initialize change the last line from

Code:

buttons do: [:b | self addMorph: b].

to

Code:

self addMorph: (buttons at: 1)

It isn't the best way but it'll work. If you don't want to have the exit button either just remove the last line completely.

Offline

 

#17 2011-04-06 18:00:53

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

amazing! Thank you!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#18 2011-04-06 18:49:04

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: I/O / Custom block warning problems.

sparks wrote:

amazing! Thank you!

I have a feeling you are making a exe converter. Are you? If you aren't this would be a great Idea! Deleting the out of presentation mode button would be good!


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#19 2011-04-06 19:31:52

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

I'm not making an exe converter  tongue  I'm working on a fullscreen-only version of Panther. it runs a normal Panther project, it just opens in full screen and closes when you exit full screen mode.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#20 2011-04-06 20:08:30

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

Pecola1 wrote:

sparks wrote:

amazing! Thank you!

I have a feeling you are making a exe converter. Are you? If you aren't this would be a great Idea! Deleting the out of presentation mode button would be good!

I was thinking about this, also to be able to have it windowed and have the stage have the entire screen (no black border around it). I might take a look into it.

Offline

 

#21 2011-04-07 05:06:05

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

That's what I'm aiming for. I managed to get it to open the first project it finds in the same folder as the VM and then open it in full-screen but I've found that whenever it opens a project I get a red error message.

Removing the black border would be great but wouldn't that cause pixelation? I want to keep the return button in the corner too as that can be your exit command (as well as esc) although another option would be to remove the back button, and then work out a way to use a block to cause the escape command to be triggered so that as well as allowing you to esc out of it, a programmer can provide an "exit" button of their own in the game that can close the application.

perhaps I should share what I have so far and see if we can finish it together? If it works I might be able to distribute it on the Panther site. I know that markyparky56 and the rest of us are having trouble converting Jens' scratch2EXE converter. The only difference between his and this one currently is that the project remains in the same folder as the project and can still be opened with a regular copy of Panther.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#22 2011-04-07 16:03:36

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

sparks wrote:

perhaps I should share what I have so far and see if we can finish it together? If it works I might be able to distribute it on the Panther site. I know that markyparky56 and the rest of us are having trouble converting Jens' scratch2EXE converter. The only difference between his and this one currently is that the project remains in the same folder as the project and can still be opened with a regular copy of Panther.

Yeah I could help if you want, just say what you want done and we can try and finish it.

Offline

 

#23 2011-04-07 16:33:58

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I/O / Custom block warning problems.

Right, I will share it then  smile  Here's the link to the zip:

http://dl.dropbox.com/u/22935223/PantherFullScreen.zip


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#24 2011-04-07 19:59:49

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: I/O / Custom block warning problems.

sparks wrote:

Right, I will share it then  smile  Here's the link to the zip:

Thanks for the link, so what exactly do you want to edit / make it do?

Offline

 

#25 2011-04-07 22:37:44

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: I/O / Custom block warning problems.

It won't work, it doesn't show the sprites and the names of the sprites is STRINGMORPH. After the first time the pellet button just disappears after clicking it.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer