Okay guys, I need some help, I need to be able to make it read the file and report the contents, but also write to the file.
What I have so far is:
checkWhenDownloaded
| t1 t2 |
t1 _ 'C:/Program Files/Rocket/Files/Memory/Menu.txt'.
t2 _ 1.
t2 _ t2 , Date today.
(self readFile: t1)
= ''
ifTrue:
[self writeText: t2 toFile: t1.
^ 1].
t2 _ self readLine: 1 ofFile: t1.
t2 _ t2 + 1.
t2 _ t2 , Date today.
self writeText: t2 toFile: t1.
^ self readLine: 1 ofFile: t1
I added all the file functions shown in that code to scratch frame, I will also make it so when Rocket opens, it will change the file.
Offline
xIIV wrote:
So, who holds the file now?
Me.
Offline
Pecola1 wrote:
Okay guys, I need some help, I need to be able to make it read the file and report the contents, but also write to the file.
What I have so far is:checkWhenDownloaded
| t1 t2 |
t1 _ 'C:/Program Files/Rocket/Files/Memory/Menu.txt'.
t2 _ 1.
t2 _ t2 , Date today.
(self readFile: t1)
= ''
ifTrue:
[self writeText: t2 toFile: t1.
^ 1].
t2 _ self readLine: 1 ofFile: t1.
t2 _ t2 + 1.
t2 _ t2 , Date today.
self writeText: t2 toFile: t1.
^ self readLine: 1 ofFile: t1I added all the file functions shown in that code to scratch frame, I will also make it so when Rocket opens, it will change the file.
The problem is, what about ME?? I have a mac, not a windows (windows suk btw
)
I included the panther exe, as it is the only squeak exe that I had
Offline
gbear605 wrote:
Pecola1 wrote:
Okay guys, I need some help, I need to be able to make it read the file and report the contents, but also write to the file.
What I have so far is:checkWhenDownloaded
| t1 t2 |
t1 _ 'C:/Program Files/Rocket/Files/Memory/Menu.txt'.
t2 _ 1.
t2 _ t2 , Date today.
(self readFile: t1)
= ''
ifTrue:
[self writeText: t2 toFile: t1.
^ 1].
t2 _ self readLine: 1 ofFile: t1.
t2 _ t2 + 1.
t2 _ t2 , Date today.
self writeText: t2 toFile: t1.
^ self readLine: 1 ofFile: t1I added all the file functions shown in that code to scratch frame, I will also make it so when Rocket opens, it will change the file.
The problem is, what about ME?? I have a mac, not a windows (macs suk btw
)
I included the panther exe, as it is the only squeak exe that I had![]()
LOL, if you click on the image, it will ask what exe you want to open with, it should have scratch on the list. (at least with windows.)
PS: I corrected your sentence.
You used the wrong name.
Offline
Pecola1 wrote:
gbear605 wrote:
Pecola1 wrote:
Okay guys, I need some help, I need to be able to make it read the file and report the contents, but also write to the file.
What I have so far is:
I added all the file functions shown in that code to scratch frame, I will also make it so when Rocket opens, it will change the file.The problem is, what about ME?? I have a mac, not a windows (macs suk btw
)
I included the panther exe, as it is the only squeak exe that I had![]()
LOL, if you click on the image, it will ask what exe you want to open with, it should have scratch on the list. (at least with windows.)
PS: I corrected your sentence.You used the wrong name.
grrrr
My dad's first job was at apple back in '89, so I have allgience to apple
Offline
gbear605 wrote:
Pecola1 wrote:
gbear605 wrote:
The problem is, what about ME?? I have a mac, not a windows (macs suk btw)
I included the panther exe, as it is the only squeak exe that I had![]()
LOL, if you click on the image, it will ask what exe you want to open with, it should have scratch on the list. (at least with windows.)
PS: I corrected your sentence.You used the wrong name.
grrrr
![]()
My dad's first job was at apple back in '89, so I have allgience to apple![]()
Don't worry I was just joking with ya'. Besides, I own 2 or 3 apple stocks!
Offline
Still want Mesh in source code.
Offline
thebuilderdd wrote:
Still want Mesh in source code.
Yes, we have mesh.
Offline
Pecola1 wrote:
thebuilderdd wrote:
Still want Mesh in source code.
Yes, we have mesh.
... I ment how to add it to source code? I am not releasing the next version of my mod until I find out! Please help!
Offline
thebuilderdd wrote:
Pecola1 wrote:
thebuilderdd wrote:
Still want Mesh in source code.
Yes, we have mesh.
... I ment how to add it to source code? I am not releasing the next version of my mod until I find out! Please help!
Here:
What the System Browser should look like after editing it to activate Mesh.
This requires editing of Scratch's System Browser.
Shift-click the R in the Scratch logo.
Select turn fill screen off.
A white area at the bottom and right side of the Scratch program will appear. Click on the white area and select open....
Select 'browser.
The System Browser will appear. Select Scratch-UI-Panes - ScratchFrameMorph - menu/button actions - addServerCommandsTo:.
Change the "t2 ← true" text in the code to "t2 ← false".
Right-click on the System Browser and select accept. (If you are on a Mac then you will need to hold the Control key and then click).
Enter in your initials and click accept.
Close the System Browser.
Shift-click the R again and select turn fill screen on.
If you wish to save the edits to the System Browser, Shift-click the R and select save image for end-user.
If Mesh has been saved but is not wanted anymore, the steps to enable Mesh can be reverted to remove it.
To get the ← symbol, press _ ( [Shift] + [-] ).
Last edited by Pecola1 (2011-05-15 20:19:19)
Offline
Pecola1 wrote:
thebuilderdd wrote:
Pecola1 wrote:
Yes, we have mesh.
... I ment how to add it to source code? I am not releasing the next version of my mod until I find out! Please help!
[url=http://wiki.scratch.mit.edu/wiki/Mesh]What the System Browser should look like after editing it to activate Mesh.
This requires editing of Scratch's System Browser.
Shift-click the R in the Scratch logo.
Select turn fill screen off.
A white area at the bottom and right side of the Scratch program will appear. Click on the white area and select open....
Select 'browser.
The System Browser will appear. Select Scratch-UI-Panes - ScratchFrameMorph - menu/button actions - addServerCommandsTo:.
Change the "t2 ← true" text in the code to "t2 ← false".
Right-click on the System Browser and select accept. (If you are on a Mac then you will need to hold the Control key and then click).
Enter in your initials and click accept.
Close the System Browser.
Shift-click the R again and select turn fill screen on.
If you wish to save the edits to the System Browser, Shift-click the R and select save image for end-user.
If Mesh has been saved but is not wanted anymore, the steps to enable Mesh can be reverted to remove it.
To get the ← symbol, press _ ( [Shift] + [-] ).[/url]
Yes. I ALREADY have Mesh. But I DO NOT have it in source code!
Offline
thebuilderdd wrote:
Pecola1 wrote:
thebuilderdd wrote:
... I ment how to add it to source code? I am not releasing the next version of my mod until I find out! Please help![url=http://wiki.scratch.mit.edu/wiki/Mesh]What the System Browser should look like after editing it to activate Mesh.
This requires editing of Scratch's System Browser.
Shift-click the R in the Scratch logo.
Select turn fill screen off.
A white area at the bottom and right side of the Scratch program will appear. Click on the white area and select open....
Select 'browser.
The System Browser will appear. Select Scratch-UI-Panes - ScratchFrameMorph - menu/button actions - addServerCommandsTo:.
Change the "t2 ← true" text in the code to "t2 ← false".
Right-click on the System Browser and select accept. (If you are on a Mac then you will need to hold the Control key and then click).
Enter in your initials and click accept.
Close the System Browser.
Shift-click the R again and select turn fill screen on.
If you wish to save the edits to the System Browser, Shift-click the R and select save image for end-user.
If Mesh has been saved but is not wanted anymore, the steps to enable Mesh can be reverted to remove it.
To get the ← symbol, press _ ( [Shift] + [-] ).[/url]Yes. I ALREADY have Mesh. But I DO NOT have it in source code!
I don't get what you mean, to have mesh you have to have it in the source code. Explain deeper.
Offline
Pecola1 wrote:
thebuilderdd wrote:
Pecola1 wrote:
[url=http://wiki.scratch.mit.edu/wiki/Mesh]What the System Browser should look like after editing it to activate Mesh.
This requires editing of Scratch's System Browser.
Shift-click the R in the Scratch logo.
Select turn fill screen off.
A white area at the bottom and right side of the Scratch program will appear. Click on the white area and select open....
Select 'browser.
The System Browser will appear. Select Scratch-UI-Panes - ScratchFrameMorph - menu/button actions - addServerCommandsTo:.
Change the "t2 ← true" text in the code to "t2 ← false".
Right-click on the System Browser and select accept. (If you are on a Mac then you will need to hold the Control key and then click).
Enter in your initials and click accept.
Close the System Browser.
Shift-click the R again and select turn fill screen on.
If you wish to save the edits to the System Browser, Shift-click the R and select save image for end-user.
If Mesh has been saved but is not wanted anymore, the steps to enable Mesh can be reverted to remove it.
To get the ← symbol, press _ ( [Shift] + [-] ).[/url]Yes. I ALREADY have Mesh. But I DO NOT have it in source code!
I don't get what you mean, to have mesh you have to have it in the source code. Explain deeper.
I want a Mesh menu in my Scratch Mod. I do not want people to Shift Click. (Oh, and when I mean Souce Code, I mean a Mod.)
Offline
Pecola1 wrote:
gbear605 wrote:
Pecola1 wrote:
Okay guys, I need some help, I need to be able to make it read the file and report the contents, but also write to the file.
What I have so far is:
I added all the file functions shown in that code to scratch frame, I will also make it so when Rocket opens, it will change the file.The problem is, what about ME?? I have a mac, not a windows (macs suk btw
)
I included the panther exe, as it is the only squeak exe that I had![]()
LOL, if you click on the image, it will ask what exe you want to open with, it should have scratch on the list. (at least with windows.)
PS: I corrected your sentence.You used the wrong name.
XD
I own Microsoft stock and use Vista- a pwnage OS.
[/offtopic]
But that is a problem, what to do for Macs. ^^
Offline
gbear605 wrote:
Pecola1 wrote:
Okay guys, I need some help, I need to be able to make it read the file and report the contents, but also write to the file.
What I have so far is:checkWhenDownloaded
| t1 t2 |
t1 _ 'C:/Program Files/Rocket/Files/Memory/Menu.txt'.
t2 _ 1.
t2 _ t2 , Date today.
(self readFile: t1)
= ''
ifTrue:
[self writeText: t2 toFile: t1.
^ 1].
t2 _ self readLine: 1 ofFile: t1.
t2 _ t2 + 1.
t2 _ t2 , Date today.
self writeText: t2 toFile: t1.
^ self readLine: 1 ofFile: t1I added all the file functions shown in that code to scratch frame, I will also make it so when Rocket opens, it will change the file.
The problem is, what about ME?? I have a mac, not a windows (windows suk btw
)
I included the panther exe, as it is the only squeak exe that I had![]()
... Why would that make a difference?
Offline
ssss wrote:
gbear605 wrote:
Pecola1 wrote:
Okay guys, I need some help, I need to be able to make it read the file and report the contents, but also write to the file.
What I have so far is:
I added all the file functions shown in that code to scratch frame, I will also make it so when Rocket opens, it will change the file.The problem is, what about ME?? I have a mac, not a windows (windows suk btw
)
I included the panther exe, as it is the only squeak exe that I had![]()
... Why would that make a difference?
As I DON'T HAVE a C: drive, or any other dirves, its called 'Macintosh HD', and it can be renamed to whatever.
Offline
gbear605 wrote:
ssss wrote:
gbear605 wrote:
The problem is, what about ME?? I have a mac, not a windows (windows suk btw)
I included the panther exe, as it is the only squeak exe that I had![]()
... Why would that make a difference?
As I DON'T HAVE a C: drive, or any other dirves, its called 'Macintosh HD', and it can be renamed to whatever.
After I get the code working I will make it work for either.
Offline
Pecola1 wrote:
gbear605 wrote:
ssss wrote:
... Why would that make a difference?As I DON'T HAVE a C: drive, or any other dirves, its called 'Macintosh HD', and it can be renamed to whatever.
After I get the code working I will make it work for either.
![]()
I suggest just saying on the thread that the person has a certain amount of time, instead of having a settime thing.
Offline
gbear605 wrote:
Pecola1 wrote:
gbear605 wrote:
As I DON'T HAVE a C: drive, or any other dirves, its called 'Macintosh HD', and it can be renamed to whatever.After I get the code working I will make it work for either.
![]()
I suggest just saying on the thread that the person has a certain amount of time, instead of having a settime thing.
I will make a dialog for that, but for now, I want the first code working.
Offline
ssss wrote:
Lol. Anything else you have added?
I added the default sprite, it wasn't made the default. I need help with that code, also, can I make a variable when it is first made set to nil? I did this with the old version, I think i'll start adding some blocks, only really needed ones for now.
Offline
Pecola1 wrote:
ssss wrote:
Lol. Anything else you have added?
I added the default sprite, it wasn't made the default. I need help with that code, also, can I make a variable when it is first made set to nil? I did this with the old version, I think i'll start adding some blocks, only really needed ones for now.
Remove the 'Next costume'. That can be done using the (costume) Boolean.
Offline
ssss wrote:
Pecola1 wrote:
ssss wrote:
Lol. Anything else you have added?
I added the default sprite, it wasn't made the default. I need help with that code, also, can I make a variable when it is first made set to nil? I did this with the old version, I think i'll start adding some blocks, only really needed ones for now.
Remove the 'Next costume'. That can be done using the (costume) Boolean.
What costume boolean? You must mean reporter.
Offline
should I remove any other blocks? *cough* turn left *cough* *wheeeeez*
Offline
Don't remove them. Put them as obsolete. This way your mod still works with Scratch, but the blocks can't be added.
Offline