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

#1451 2010-04-15 08:24:42

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

SeptimusHeap wrote:

Sperry wrote:

SeptimusHeap wrote:

Hmm... My minifeed reader isn't working. It sometimes does, sometimes doesn't...

Do you want me to take a look to see if I can fix it? Imah guhd Panfer Programmuh!  big_smile

OK, but this is long:

set num to 297
repeat until <(letter num of (line 5 of file at URL http://pantherprogramming.weebly.com/3/feed)>
  change num by 1
change num by -1
set Recent Minifeed Post to (letters 297 - num of file at URL http://pantherprogramming.weebly.com/3/feed

(Can someone disable BBCode for this post?)

Could you post the Panther file on the site please? Then its easier for me to take a look and edit.


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#1452 2010-04-15 08:29:30

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

Sperry wrote:

SeptimusHeap wrote:

Sperry wrote:


Do you want me to take a look to see if I can fix it? Imah guhd Panfer Programmuh!  big_smile

OK, but this is long:

set num to 297
repeat until <(letter num of (line 5 of file at URL http://pantherprogramming.weebly.com/3/feed)>
  change num by 1
change num by -1
set Recent Minifeed Post to (letters 297 - num of file at URL http://pantherprogramming.weebly.com/3/feed

(Can someone disable BBCode for this post?)

Could you post the Panther file on the site please? Then its easier for me to take a look and edit.

Izz up. Dev developed.


http://i46.tinypic.com/dw7zft.png

Offline

 

#1453 2010-04-15 08:32:11

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

It's the little one at the top. The other downloads don't work...


http://i46.tinypic.com/dw7zft.png

Offline

 

#1454 2010-04-15 08:39:46

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

Re: Panther development thread

er, how can he look at the file? he does not have Panther!


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

Offline

 

#1455 2010-04-15 08:41:24

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

Oh XD
Can YOOOOU??


http://i46.tinypic.com/dw7zft.png

Offline

 

#1456 2010-04-15 08:41:51

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

sparks wrote:

er, how can he look at the file? he does not have Panther!

What made you think I havn't got Panther? I got it all right!

@Sep: Nothing wrong with it. It works fine 5/5 times for me.


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#1457 2010-04-15 08:44:53

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

Probably my computer. Sparks, I think you should implement it in your thing. It would be easier than updating a file loads of times.


http://i46.tinypic.com/dw7zft.png

Offline

 

#1458 2010-04-15 08:55:30

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

Re: Panther development thread

SeptimusHeap wrote:

Idea: Panther needs a TOS.

Panther is free to edit, but must be given credit. I don't want any of those 3 scary mods that just spawned up in the forums (That just steal blocks as their own) stealing Panther blocks.

Well, the ToS says we need to make it open-source, but we can stick the word Panther in a very hard-to-find place or if I get the DLLs to say Panther, that would be best...
Or in the about box we could have a link to the Panther site.

Anyway, I'm mostly done with the block creator, but there's a major problem: the security risk. You can put ANY smalltalk code you want in the block, including unrestricted file I/O, opening an internet browser window, and other nasty stuff. In order to deal with this, I am making a feature that warns you when you open a project if the project has custom blocks. Not some small little warning, a dialog that provides you with all of the custom block codes in one scrollable textbox. You read through the code and then click 'OK'. If you found something nasty, you don't press the green flag.


nXIII

Offline

 

#1459 2010-04-15 09:10:14

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

nXIII wrote:

SeptimusHeap wrote:

Idea: Panther needs a TOS.

Panther is free to edit, but must be given credit. I don't want any of those 3 scary mods that just spawned up in the forums (That just steal blocks as their own) stealing Panther blocks.

Well, the ToS says we need to make it open-source, but we can stick the word Panther in a very hard-to-find place or if I get the DLLs to say Panther, that would be best...
Or in the about box we could have a link to the Panther site.

Anyway, I'm mostly done with the block creator, but there's a major problem: the security risk. You can put ANY smalltalk code you want in the block, including unrestricted file I/O, opening an internet browser window, and other nasty stuff. In order to deal with this, I am making a feature that warns you when you open a project if the project has custom blocks. Not some small little warning, a dialog that provides you with all of the custom block codes in one scrollable textbox. You read through the code and then click 'OK'. If you found something nasty, you don't press the green flag.

Good idea, does the block creator allow for blocks to be created without typing in smaltalk?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#1460 2010-04-15 09:12:54

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

nXIII - can you add the two <var/list exists?> blocks to the latest image please?
And can you add this to the following instances: (i need it for my Panther Code compiler)

Code:

numericConstant: const
    'pi' = const ifTrue: [^ Float pi].
    'e' = const ifTrue: [^ Float e].
    'newline' = const ifTrue: [^ '
'].
    'tab' = const ifTrue: [^ '    ']

AND:

Code:

constantNames
    "Answer the names of supported constants"

    ^ #(
        'pi'
        'e'
        'newline'
        'tab')

I've added tab to the list and made it work


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#1461 2010-04-15 09:14:30

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

Sperry wrote:

nXIII - can you add the two <var/list exists?> blocks to the latest image please?
And can you add this to the following instances: (i need it for my Panther Code compiler)

Code:

numericConstant: const
    'pi' = const ifTrue: [^ Float pi].
    'e' = const ifTrue: [^ Float e].
    'newline' = const ifTrue: [^ '
'].
    'tab' = const ifTrue: [^ '    ']

AND:

Code:

constantNames
    "Answer the names of supported constants"

    ^ #(
        'pi'
        'e'
        'newline'
        'tab')

I've added tab to the list and made it work

This compiler is going to be interesting...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#1462 2010-04-15 09:16:55

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

markyparky56 wrote:

This compiler is going to be interesting...

Yup, it will be interesting.

It is currently 1s1s at the moment, but it might turn into something like 2s2s later when I add some more functionality to it.

It's coming along brilliantly! (the compiler)


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#1463 2010-04-15 09:23:46

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

Sperry wrote:

markyparky56 wrote:

This compiler is going to be interesting...

Yup, it will be interesting.

It is currently 1s1s at the moment, but it might turn into something like 2s2s later when I add some more functionality to it.

It's coming along brilliantly! (the compiler)

What will it be able to do? Perform mathmaticaly functions? Search the internet?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#1464 2010-04-15 09:30:03

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

Re: Panther development thread

markyparky56 wrote:

nXIII wrote:

SeptimusHeap wrote:

Idea: Panther needs a TOS.

Panther is free to edit, but must be given credit. I don't want any of those 3 scary mods that just spawned up in the forums (That just steal blocks as their own) stealing Panther blocks.

Well, the ToS says we need to make it open-source, but we can stick the word Panther in a very hard-to-find place or if I get the DLLs to say Panther, that would be best...
Or in the about box we could have a link to the Panther site.

Anyway, I'm mostly done with the block creator, but there's a major problem: the security risk. You can put ANY smalltalk code you want in the block, including unrestricted file I/O, opening an internet browser window, and other nasty stuff. In order to deal with this, I am making a feature that warns you when you open a project if the project has custom blocks. Not some small little warning, a dialog that provides you with all of the custom block codes in one scrollable textbox. You read through the code and then click 'OK'. If you found something nasty, you don't press the green flag.

Good idea, does the block creator allow for blocks to be created without typing in smaltalk?

Kind of. You still need to know basic syntax, like putting a . after each line, but a button allows you to insert any block's method. For example you click 'Add a block...'->'pen'->'clear' and it puts 'self clearPenTrails' in.


nXIII

Offline

 

#1465 2010-04-15 09:32:16

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

markyparky56 wrote:

Sperry wrote:

markyparky56 wrote:

This compiler is going to be interesting...

Yup, it will be interesting.

It is currently 1s1s at the moment, but it might turn into something like 2s2s later when I add some more functionality to it.

It's coming along brilliantly! (the compiler)

What will it be able to do? Perform mathmaticaly functions? Search the internet?

It will be able to do stuff like mathmatics, storing info, you know; like c++ but simpler and with less fuinctions etc.
Basicly I want it to be able to make a full on text-based RPG (I'm making one in C++ atm)
then I will move on to make it do graphics


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#1466 2010-04-15 09:35:17

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

Re: Panther development thread

Sperry wrote:

nXIII - can you add the two <var/list exists?> blocks to the latest image please?
And can you add this to the following instances: (i need it for my Panther Code compiler)

Code:

numericConstant: const
    'pi' = const ifTrue: [^ Float pi].
    'e' = const ifTrue: [^ Float e].
    'newline' = const ifTrue: [^ '
'].
    'tab' = const ifTrue: [^ '    ']

AND:

Code:

constantNames
    "Answer the names of supported constants"

    ^ #(
        'pi'
        'e'
        'newline'
        'tab')

I've added tab to the list and made it work

Why DO you keep calling them instances?  roll
An instance is an object with a class as its type
A message is the word you are looking for.
___________________________

I am changing the block insertion to surround all blocks in square brackets ('[' and ']') so that you can nest them but there will most likely not be an accidental combination of two messages.

EDIT: nvm, I'm making it put the arguments as ' () '

Last edited by nXIII (2010-04-15 10:51:02)


nXIII

Offline

 

#1467 2010-04-15 09:40:09

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

nXIII wrote:

Sperry wrote:

nXIII - can you add the two <var/list exists?> blocks to the latest image please?
And can you add this to the following instances: (i need it for my Panther Code compiler)

Code:

numericConstant: const
    'pi' = const ifTrue: [^ Float pi].
    'e' = const ifTrue: [^ Float e].
    'newline' = const ifTrue: [^ '
'].
    'tab' = const ifTrue: [^ '    ']

AND:

Code:

constantNames
    "Answer the names of supported constants"

    ^ #(
        'pi'
        'e'
        'newline'
        'tab')

I've added tab to the list and made it work

Why DO you keep calling them instances?  roll
An instance is an object with a class as its type

Well I'm sorry. I'm not a smalltalk whizz like you. To me anything on the instance side is an instance and on the class side, a class. I'll call them messages from now then.

Will you add what I wrote to Panther please? And the var/list exist blocks.

Could you write some tutorials on some advanced squeak programming tutorials please? I want to more than just the basics, otherwise I feel abit useless compared to you.


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#1468 2010-04-15 09:42:19

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

Sperry wrote:

markyparky56 wrote:

Sperry wrote:


Yup, it will be interesting.

It is currently 1s1s at the moment, but it might turn into something like 2s2s later when I add some more functionality to it.

It's coming along brilliantly! (the compiler)

What will it be able to do? Perform mathmaticaly functions? Search the internet?

It will be able to do stuff like mathmatics, storing info, you know; like c++ but simpler and with less fuinctions etc.
Basicly I want it to be able to make a full on text-based RPG (I'm making one in C++ atm)
then I will move on to make it do graphics

You would either need it to do rendering if you had graphics, or have a load of sprites ready to be used.

That gives me an idea, what about a [Load costume [ ] ] block, like the file blocks, but with grahics, and it saves them to the sprites costumes. (Im not sure if it would work with animated gifs though...)


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#1469 2010-04-15 10:05:20

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Panther development thread

markyparky56 wrote:

Sperry wrote:

markyparky56 wrote:


What will it be able to do? Perform mathmaticaly functions? Search the internet?

It will be able to do stuff like mathmatics, storing info, you know; like c++ but simpler and with less fuinctions etc.
Basicly I want it to be able to make a full on text-based RPG (I'm making one in C++ atm)
then I will move on to make it do graphics

You would either need it to do rendering if you had graphics, or have a load of sprites ready to be used.

That gives me an idea, what about a [Load costume [ ] ] block, like the file blocks, but with grahics, and it saves them to the sprites costumes. (Im not sure if it would work with animated gifs though...)

OH! I'll do that!


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#1470 2010-04-15 10:13:27

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

MathWizz wrote:

markyparky56 wrote:

Sperry wrote:


It will be able to do stuff like mathmatics, storing info, you know; like c++ but simpler and with less fuinctions etc.
Basicly I want it to be able to make a full on text-based RPG (I'm making one in C++ atm)
then I will move on to make it do graphics

You would either need it to do rendering if you had graphics, or have a load of sprites ready to be used.

That gives me an idea, what about a [Load costume [ ] ] block, like the file blocks, but with grahics, and it saves them to the sprites costumes. (Im not sure if it would work with animated gifs though...)

OH! I'll do that!

Plus, while your at it, try making a load sprite block, It might be helpful at some time aswell.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#1471 2010-04-15 10:52:22

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

Re: Panther development thread

markyparky56 wrote:

MathWizz wrote:

markyparky56 wrote:


You would either need it to do rendering if you had graphics, or have a load of sprites ready to be used.

That gives me an idea, what about a [Load costume [ ] ] block, like the file blocks, but with grahics, and it saves them to the sprites costumes. (Im not sure if it would work with animated gifs though...)

OH! I'll do that!

Plus, while your at it, try making a load sprite block, It might be helpful at some time aswell.

Um..... that's a bit odd, because you could load a sprite with custom blocks that weren't warned about-- oh nvm, I need to fix that anyway.


nXIII

Offline

 

#1472 2010-04-15 15:31:27

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

Re: Panther development thread

Whens it out?


You can now reach me on Twitter @johnnydean1_

Offline

 

#1473 2010-04-15 15:39:56

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

Re: Panther development thread

johnnydean1 wrote:

Whens it out?

Why, are you going to copy all my work and put it in "your" version?

Last edited by nXIII (2010-04-15 15:55:55)


nXIII

Offline

 

#1474 2010-04-15 15:55:42

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

Re: Panther development thread

Block maker demo
(It's not done yet, but these features exist)

Create a block by clicking the 'Add a block' button located in the variables panel.
Enter the name of the block, then choose whether the block is for all sprites, or for the selected sprite only:
http://i39.tinypic.com/2806otw.png
NOTE: You can still use a sprite's private block in another sprite by dragging it into that sprite's library icon; it just will not be accessible from those other sprites' viewer panes.

Next, edit the block's spec, type, and code in the block editor dialog:
http://i40.tinypic.com/157ojsw.png

Adding a Panther block to your custom block
To add a Panther block (one you can find in the viewer pane) to your custom block, first click the 'Add a block...' button below the code editor:
http://i43.tinypic.com/jzied0.png
Select the appropriate category, and select the desired block from the popup menu:
http://i41.tinypic.com/1z6utmp.png

Click OK in the block editor dialog. Your custom block is now accessible from the 'variables' category in the viewer pane.
http://i42.tinypic.com/2134r55.png

Block Security Warnings
Because custom blocks are written in Smalltalk, they can contain code harmful to your computer. In an attempt to deal with this feature, you are warned when you load a project with custom blocks. The warning contains information about custom blocks, and shows the code of all custom blocks contained in the project.
http://i44.tinypic.com/2hyxjpj.png

I am now working on a feature that lets Panther users disable custom blocks (they will not run), accessible from the (to-do) settings menu and the warning dialog.
EDIT: I am actually making the default to not run custom blocks, and the dialog will say 'Custom blocks are currently disabled. Click OK to continue, or click Allow to allow custom blocks to run in this project.'

Last edited by nXIII (2010-04-15 16:00:20)


nXIII

Offline

 

#1475 2010-04-15 16:09:22

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

We need to say that all Panther blocks need credit, though... I think that's important, because people (AKA johnnydean) will steal them.


http://i46.tinypic.com/dw7zft.png

Offline

 

Board footer