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

#26 2011-08-26 15:34:31

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

I meant the entire code...

Offline

 

#27 2011-08-26 15:38:06

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

OK, here's the entire startup method:

Code:

startup
    | t1 t2 t3 t4 |
    HostSystemMenus startUp.
    HostSystemMenus menuBarControler reviseHostMenus.
    ScriptableScratchMorph randomInit.
    ScratchTranslator detectRenderPlugin.
    ScratchTranslator importLanguagesList.
    self processSettingsFile.
    self readDefaultNotes.
    self updateProjectName.
    shuffledCostumeNames _ nil.
    author _ ''.
    loginName _ ''.
    loginPassword _ ''.
    fileIOPreference _ nil.
    customBlockPreference _ false.
    justSaved _ true.
    t4 _ false.
    "NewsDialog new getNews; getUserResponse."
    t1 _ InputSensor startupFileNames asOrderedCollection.
    2 to: 10 do: 
        [:t5 | 
        t3 _ Smalltalk getSystemAttribute: t5.
        (t3 notNil and: [t3 size > 0])
            ifTrue: [t1 addLast: (ScratchPlugin primShortToLongPath: t3)]].
    t1 do: 
        [:t6 | 
        t6 asLowercase = 'presentation' ifTrue: [t4 _ true].
        t6 asLowercase = 'fullscreen' ifTrue: [TakeOverScreen _ true]].
    TakeOverScreen
        ifTrue: 
            [Smalltalk fullScreenMode: true.
            World restoreDisplay].
    self enterQuarterModeIfSmallScreen.
    t2 _ t1
                detect: [:t7 | (t7 asLowercase endsWith: '.sb')
                        or: [t7 asLowercase endsWith: '.pt']]
                ifNone: [].
    t2
        ifNotNil: 
            [t4 ifTrue: [Display fillColor: Color black].
            self openScratchProjectNamed: t2.
            t4 ifTrue: [self enterPresentationMode; shoutGo].
            ^ self].
    viewerPane currentCategory: 'motion'.
    self setDefaultSprite.
    self newScratchProject.
    t2 _ t1 detect: [:t7 | t7 asLowercase endsWith: '.sprite']
                ifNone: [^ self].
    workPane submorphs do: [:t8 | (t8 isKindOf: ScratchSpriteMorph)
            ifTrue: [t8 deleteSprite]].
    self importSpriteOrProject: t2.

It was so bad I even tried adding a line of code to the end to make it open a project, and even that didn't work!!!

Offline

 

#28 2011-08-26 16:18:36

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

Try this and tell me if it doesn't work!  smile

Code:

startup
    | t1 t2 t3 t4 |
    HostSystemMenus startUp.
    HostSystemMenus menuBarControler reviseHostMenus.
    ScriptableScratchMorph randomInit.
    ScratchTranslator detectRenderPlugin.
    ScratchTranslator importLanguagesList.
    self processSettingsFile.
    self readDefaultNotes.
    self updateProjectName.
    shuffledCostumeNames _ nil.
    author _ ''.
    loginName _ ''.
    loginPassword _ ''.
    fileIOPreference _ nil.
    customBlockPreference _ false.
    justSaved _ true.
    t4 _ false.
    "NewsDialog new getNews; getUserResponse."
    t1 _ InputSensor startupFileNames asOrderedCollection.
    2 to: 10 do: 
        [:t5 | 
        t3 _ Smalltalk getSystemAttribute: t5.
        (t3 notNil and: [t3 size > 0])
            ifTrue: [t1 addLast: (ScratchPlugin primShortToLongPath: t3)]].

        t4 _ true.
        TakeOverScreen _ true.
    TakeOverScreen
        ifTrue: 
            [Smalltalk fullScreenMode: true.
            World restoreDisplay].
    self enterQuarterModeIfSmallScreen.
    t2 _ t1
                detect: [:t7 | (t7 asLowercase endsWith: '.sb')
                        or: [t7 asLowercase endsWith: '.pt']]
                ifNone: [].
    t2
        ifNotNil: 
            [t4 ifTrue: [Display fillColor: Color black].
            self openScratchProjectNamed: t2.
            t4 ifTrue: [self enterPresentationMode; shoutGo].
            ^ self].
    viewerPane currentCategory: 'motion'.

Offline

 

#29 2011-08-27 17:35:18

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

Sorry I didn't get online to see your post yesterday LS97.  I'll test that out.  What did you change in it?

EDIT:  LS97, your code didn't fix the issue.  It didn't open the default project, but it didn't open my project either.  In addition, it put it in fullscreen mode (not presentation mode; fullscreen mode meaning no X in the top right corner).  I couldn't get out of it so I had to use Task Manager.

Any other ideas?

EDIT2:  I opened a workspace and ran this code:

Code:

  t1 _ InputSensor startupFileNames asOrderedCollection.

It returned an OrderedCollection with nothing in it!  I don't have Scratch on this computer, so can you run that on a Scratch workspace and tell me what happens?  That might be our trouble...
EDIT3:  Nope, a Scratch workspace returns the same...

Last edited by Greenatic (2011-08-30 18:24:07)

Offline

 

#30 2011-08-27 17:50:56

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

NO! It wasn't grey boxes they disappeared completely! Non showed in the sprites toolbar whatsoever, even when I ran the game or right-clicked on each sprite on screen they never showed up! Restarting panther didn't help, after 4 times I decided to restart my computer and they finally came back. But I repeat, not grey boxes, it was completely empty, not even the names or icons in the sprites toolbar.


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#31 2011-08-27 17:56:44

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

Borrego6165 wrote:

NO! It wasn't grey boxes they disappeared completely! Non showed in the sprites toolbar whatsoever, even when I ran the game or right-clicked on each sprite on screen they never showed up! Restarting panther didn't help, after 4 times I decided to restart my computer and they finally came back. But I repeat, not grey boxes, it was completely empty, not even the names or icons in the sprites toolbar.

Hmmm.  I have no idea.  I would ask a Panther dev.

Offline

 

#32 2011-08-28 13:56:26

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

bump!

Offline

 

#33 2011-08-29 16:31:12

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

bump!

Offline

 

#34 2011-08-30 03:26:44

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

if your using windows, try this... open notepad and type the following:

Code:

Panther.exe Panther.image presentation %1

save it as run.bat in the place you installed Panther. now right click a Panther project file and select open with and find your run.bat file.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#35 2011-08-30 18:23:05

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

nathanprocks wrote:

if your using windows, try this... open notepad and type the following:

Code:

Panther.exe Panther.image presentation %1

save it as run.bat in the place you installed Panther. now right click a Panther project file and select open with and find your run.bat file.

I don't think that will fix it, because the problem is that Panther isn't recognizing the fact that you're opening a file with it.  I'll try it when I get a chance though.

Offline

 

#36 2011-09-10 16:46:08

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Panther Help Needed Very Badly!!!

Greenatic wrote:

nathanprocks wrote:

if your using windows, try this... open notepad and type the following:

Code:

Panther.exe Panther.image presentation %1

save it as run.bat in the place you installed Panther. now right click a Panther project file and select open with and find your run.bat file.

I don't think that will fix it, because the problem is that Panther isn't recognizing the fact that you're opening a file with it.  I'll try it when I get a chance though.

Not working on .sb's, and it won't let me "Open with..." .pt's for some reason.  It just does nothing...

Bumpity bump bump.

Offline

 

Board footer