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

#201 2011-05-15 15:09:11

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

Re: Rocket (RKT) Development thread - A new start

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.


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

 

#202 2011-05-15 15:10:25

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

Re: Rocket (RKT) Development thread - A new start

xIIV wrote:

So, who holds the file now?

Me.


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

 

#203 2011-05-15 15:25:25

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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: 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.

The problem is, what about ME?? I have a mac, not a windows (windows suk btw  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#204 2011-05-15 15:38:06

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

Re: Rocket (RKT) Development thread - A new start

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: 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.

The problem is, what about ME?? I have a mac, not a windows (macs suk btw  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue

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.  wink  You used the wrong name.


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

 

#205 2011-05-15 16:55:01

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue

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.  wink  You used the wrong name.

grrrr  tongue

My dad's first job was at apple back in '89, so I have allgience to apple  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#206 2011-05-15 19:41:23

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

Re: Rocket (RKT) Development thread - A new start

gbear605 wrote:

Pecola1 wrote:

gbear605 wrote:


The problem is, what about ME?? I have a mac, not a windows (macs suk btw  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue

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.  wink  You used the wrong name.

grrrr  tongue

My dad's first job was at apple back in '89, so I have allgience to apple  tongue

Don't worry I was just joking with ya'. Besides, I own 2 or 3 apple stocks!  yikes


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

 

#207 2011-05-15 19:42:25

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

Still want Mesh in source code.

Offline

 

#208 2011-05-15 20:07:54

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

Re: Rocket (RKT) Development thread - A new start

thebuilderdd wrote:

Still want Mesh in source code.

Yes, we have mesh.


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

 

#209 2011-05-15 20:10:39

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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

 

#210 2011-05-15 20:16:22

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

Re: Rocket (RKT) Development thread - A new start

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)


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

 

#211 2011-05-15 20:19:12

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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

 

#212 2011-05-15 20:20:06

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

Re: Rocket (RKT) Development thread - A new start

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.


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

 

#213 2011-05-15 20:21:26

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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

 

#214 2011-05-16 00:32:01

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

Re: Rocket (RKT) Development thread - A new start

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  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue

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.  wink  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

 

#215 2011-05-16 03:32:07

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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: 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.

The problem is, what about ME?? I have a mac, not a windows (windows suk btw  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue

... Why would that make a difference?


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#216 2011-05-16 14:43:23

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue

... 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.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#217 2011-05-16 15:19:36

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

Re: Rocket (RKT) Development thread - A new start

gbear605 wrote:

ssss wrote:

gbear605 wrote:


The problem is, what about ME?? I have a mac, not a windows (windows suk btw  tongue )

I included the panther exe, as it is the only squeak exe that I had  tongue

... 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.  wink


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

 

#218 2011-05-16 15:24:11

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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.  wink

I suggest just saying on the thread that the person has a certain amount of time, instead of having a settime thing.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#219 2011-05-16 15:37:46

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

Re: Rocket (RKT) Development thread - A new start

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.  wink

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.


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

 

#220 2011-05-16 17:23:22

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

Lol.  Anything else you have added?


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#221 2011-05-16 17:30:15

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

Re: Rocket (RKT) Development thread - A new start

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.


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

 

#222 2011-05-16 17:37:00

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

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.


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#223 2011-05-16 18:22:12

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

Re: Rocket (RKT) Development thread - A new start

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.


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

 

#224 2011-05-16 18:37:57

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

Re: Rocket (RKT) Development thread - A new start

should I remove any other blocks? *cough* turn left *cough* *wheeeeez*


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

 

#225 2011-05-17 03:12:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Rocket (RKT) Development thread - A new start

Don't remove them. Put them as obsolete. This way your mod still works with Scratch, but the blocks can't be added.


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer