I meant the entire code...
Offline
OK, here's the entire startup method:
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
Try this and tell me if it doesn't work!
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
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:
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
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.
Offline
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
bump!

Offline
bump!

Offline
if your using windows, try this... open notepad and type the following:
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.
Offline
nathanprocks wrote:
if your using windows, try this... open notepad and type the following:
Code:
Panther.exe Panther.image presentation %1save 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
Greenatic wrote:
nathanprocks wrote:
if your using windows, try this... open notepad and type the following:
Code:
Panther.exe Panther.image presentation %1save 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