From rodger at cs.duke.edu Sat Nov 10 10:00:16 2018 From: rodger at cs.duke.edu (Susan Rodger) Date: Sat, 10 Nov 2018 10:00:16 -0500 Subject: alice-teacher How do you group objects in Alice 3? Message-ID: How do you group objects in the object tree in Alice 3? I have a lot of objects and want to put them in a folder. Susan From dslater at andrew.cmu.edu Sun Nov 11 15:33:30 2018 From: dslater at andrew.cmu.edu (Donald Slater) Date: Sun, 11 Nov 2018 15:33:30 -0500 Subject: alice-teacher How do you group objects in Alice 3? In-Reply-To: References: Message-ID: <4001FFC3-F738-4E74-9159-824A47CE8477@andrew.cmu.edu> Susan, This feature has not been fully implemented in Alice 3. For some menus, Alice will attempt to group some objects by their parent class in the class hierarchy, and it is not yet possible for users to arbitrarily group objects together in the object trees. All the best, Don Slater, Alice Project > On Nov 10, 2018, at 10:00 AM, Susan Rodger wrote: > > > How do you group objects in the object tree in Alice 3? I have a lot of > objects and want to put them in a folder. > > Susan > > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers From ewhitaker at sewickley.org Tue Nov 13 12:44:24 2018 From: ewhitaker at sewickley.org (Erin Whitaker) Date: Tue, 13 Nov 2018 12:44:24 -0500 Subject: alice-teacher Project Help Message-ID: I have a student project attached that it not running correctly. When you first open it, it seems to run fine, but after having it open for 5 minutes and running it a few times, it begins to run slower and slower to the point where the student can no longer run it or do any work in the coding and you have to close it out. If anyone has a few moments to see what might be causing the problem or has any suggestions, please let me know. I have opened it on several machines, mac and pc, to see if it was a computer issue, but it does the same thing on all devices. Thanks, Erin -- Erin Whitaker | Middle School Technology Coordinator Sewickley Academy | 315 Academy Ave. Sewickley, PA 15143 [phone] 412.741.2230 ext. 3389 <412.741.2230%20ext.%203388> [fax] 412.749.5678 web | blog | facebook | twitter | pinterest -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Project.a3p Type: application/octet-stream Size: 81771 bytes Desc: not available URL: From dslater at andrew.cmu.edu Tue Nov 13 18:53:50 2018 From: dslater at andrew.cmu.edu (Donald Slater) Date: Tue, 13 Nov 2018 18:53:50 -0500 Subject: alice-teacher Project Help In-Reply-To: References: Message-ID: <0E17EE31-2418-4772-B321-766C49CC3296@andrew.cmu.edu> Erin, Some quick suggestions after a first look: Have the student try to combine the different Scene Activated listeners into one Scene Activated listener. Using Scene procedures may help him organize his thoughts. I am just not quite sure how the different Scene Activated handlers all running affect the underlying system. Also, the one Scene Activated method in which he is counting down (Scare Activated?) he can accomplish the same behavior in a while loop. I am looking forward to other thoughts the community might have. I hope that you are well. All the best, Don Slater Alice Project > On Nov 13, 2018, at 12:44 PM, Erin Whitaker wrote: > > I have a student project attached that it not running correctly. When you first open it, it seems to run fine, but after having it open for 5 minutes and running it a few times, it begins to run slower and slower to the point where the student can no longer run it or do any work in the coding and you have to close it out. If anyone has a few moments to see what might be causing the problem or has any suggestions, please let me know. I have opened it on several machines, mac and pc, to see if it was a computer issue, but it does the same thing on all devices. > > Thanks, > > Erin > > -- > Erin Whitaker | Middle School Technology Coordinator > Sewickley Academy | 315 Academy Ave. Sewickley, PA 15143 > [phone] 412.741.2230 ext. 3389 [fax] 412.749.5678 web | blog | facebook | twitter | pinterest > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers -------------- next part -------------- An HTML attachment was scrubbed... URL: From kellyt at bishopireton.org Wed Nov 21 23:09:22 2018 From: kellyt at bishopireton.org (Kelly, Terri) Date: Wed, 21 Nov 2018 23:09:22 -0500 Subject: alice-teacher Trouble with Alice into Netbeaans using Plugin Message-ID: Anyone seen this lately? I was receiving this error a couple of years ago, i think - and it resolved with the new plugin or something. Now it has reared its ugly head again and I cannot find any resources about options to fix it. When trying to bring the a3p file into NetBeans, it starts the process, but does not finish - and it gives me the error that the Folder is not empty. The folder was empty, until the process started ... hmmmmm... I have removed and re-downloaded and installed the plug in - which did not fix the problem. Windows 10, Java 1.8, Alice 3.4 [image: image.png] [image: image.png] [image: image.png] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 16647 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 4915 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 18401 bytes Desc: not available URL: From wrigley.eileen at gmail.com Thu Nov 22 16:20:11 2018 From: wrigley.eileen at gmail.com (Eileen Wrigley) Date: Thu, 22 Nov 2018 15:20:11 -0600 Subject: alice-teacher Trouble with Alice into Netbeaans using Plugin In-Reply-To: References: Message-ID: We get this at CCAC on two of our projects but all of the rest of Alice projects convert just fine. The only thing unique about the projects is that we have written our own new methods in these two projects. Do you have new methods in your project too? Have not heard back from CMU yet about this. Eileen Wrigley Sent from my iPhone > On Nov 21, 2018, at 10:09 PM, Kelly, Terri wrote: > > > > Anyone seen this lately? I was receiving this error a couple of years ago, i think - and it resolved with the new plugin or something. Now it has reared its ugly head again and I cannot find any resources about options to fix it. > > When trying to bring the a3p file into NetBeans, it starts the process, but does not finish - and it gives me the error that the Folder is not empty. The folder was empty, until the process started ... hmmmmm... > > I have removed and re-downloaded and installed the plug in - which did not fix the problem. > > Windows 10, Java 1.8, Alice 3.4 > > > > > > > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers From dslater at andrew.cmu.edu Fri Nov 23 20:02:41 2018 From: dslater at andrew.cmu.edu (Donald Slater) Date: Fri, 23 Nov 2018 20:02:41 -0500 Subject: alice-teacher Trouble with Alice into Netbeaans using Plugin In-Reply-To: References: Message-ID: <606F07AA-CA54-45C8-B083-9C6F4D5BE5E0@andrew.cmu.edu> Eileen, Points of clarification? The two projects had this behavior on all machines and students, or only on two machines / students? The new methods belonged to the Scene class, or to some of the Gallery class models... I think one work around we tried was to save the project in a new location under a new name... And I think I did it with a project with new methods, but I will go back and retest again... Also, I am working on a MacBook Pro... Thank you, Don Slater Sent from my iPad > On Nov 22, 2018, at 4:20 PM, Eileen Wrigley wrote: > > We get this at CCAC on two of our projects but all of the rest of Alice projects convert just fine. The only thing unique about the projects is that we have written our own new methods in these two projects. Do you have new methods in your project too? Have not heard back from CMU yet about this. > > Eileen Wrigley > > > Sent from my iPhone > >> On Nov 21, 2018, at 10:09 PM, Kelly, Terri wrote: >> >> >> >> Anyone seen this lately? I was receiving this error a couple of years ago, i think - and it resolved with the new plugin or something. Now it has reared its ugly head again and I cannot find any resources about options to fix it. >> >> When trying to bring the a3p file into NetBeans, it starts the process, but does not finish - and it gives me the error that the Folder is not empty. The folder was empty, until the process started ... hmmmmm... >> >> I have removed and re-downloaded and installed the plug in - which did not fix the problem. >> >> Windows 10, Java 1.8, Alice 3.4 >> >> >> >> >> >> >> _______________________________________________ >> alice-teachers mailing list >> alice-teachers at lists.andrew.cmu.edu >> To change settings or unsubscribe visit: >> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers From dslater at andrew.cmu.edu Sun Nov 25 20:03:01 2018 From: dslater at andrew.cmu.edu (Donald Slater) Date: Sun, 25 Nov 2018 20:03:01 -0500 Subject: alice-teacher Trouble with Alice into Netbeaans using Plugin In-Reply-To: <606F07AA-CA54-45C8-B083-9C6F4D5BE5E0@andrew.cmu.edu> References: <606F07AA-CA54-45C8-B083-9C6F4D5BE5E0@andrew.cmu.edu> Message-ID: <38147E06-8975-49D9-B226-D8257BF831C7@andrew.cmu.edu> Terri and Eileen, I have been able to duplicate the problem, and the workaround I suggested does not work. Eileen is correct. The problem occurs when the Scene class has user-defined methods created for it. It is not a problem when other classes besides the Scene class has user-defined methods. Eileen, is this something you have seen before the latest release of Alice 3, with older plug-ins, or is this something introduced with the new plug-in? I am sure the dev team will look at this. Thank you for your patience. All the best, Don Slater Alice Project > On Nov 23, 2018, at 8:02 PM, Donald Slater wrote: > > Eileen, > Points of clarification? The two projects had this behavior on all machines and students, or only on two machines / students? > > The new methods belonged to the Scene class, or to some of the Gallery class models... > > I think one work around we tried was to save the project in a new location under a new name... And I think I did it with a project with new methods, but I will go back and retest again... Also, I am working on a MacBook Pro... > > Thank you, > Don Slater > > Sent from my iPad > >> On Nov 22, 2018, at 4:20 PM, Eileen Wrigley wrote: >> >> We get this at CCAC on two of our projects but all of the rest of Alice projects convert just fine. The only thing unique about the projects is that we have written our own new methods in these two projects. Do you have new methods in your project too? Have not heard back from CMU yet about this. >> >> Eileen Wrigley >> >> >> Sent from my iPhone >> >>> On Nov 21, 2018, at 10:09 PM, Kelly, Terri wrote: >>> >>> >>> >>> Anyone seen this lately? I was receiving this error a couple of years ago, i think - and it resolved with the new plugin or something. Now it has reared its ugly head again and I cannot find any resources about options to fix it. >>> >>> When trying to bring the a3p file into NetBeans, it starts the process, but does not finish - and it gives me the error that the Folder is not empty. The folder was empty, until the process started ... hmmmmm... >>> >>> I have removed and re-downloaded and installed the plug in - which did not fix the problem. >>> >>> Windows 10, Java 1.8, Alice 3.4 >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> alice-teachers mailing list >>> alice-teachers at lists.andrew.cmu.edu >>> To change settings or unsubscribe visit: >>> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers >> _______________________________________________ >> alice-teachers mailing list >> alice-teachers at lists.andrew.cmu.edu >> To change settings or unsubscribe visit: >> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers From wrigley.eileen at gmail.com Tue Nov 27 01:14:35 2018 From: wrigley.eileen at gmail.com (Eileen Wrigley) Date: Tue, 27 Nov 2018 01:14:35 -0500 Subject: alice-teacher Trouble with Alice into Netbeaans using Plugin In-Reply-To: <38147E06-8975-49D9-B226-D8257BF831C7@andrew.cmu.edu> References: <606F07AA-CA54-45C8-B083-9C6F4D5BE5E0@andrew.cmu.edu> <38147E06-8975-49D9-B226-D8257BF831C7@andrew.cmu.edu> Message-ID: Hello Don, I am sorry that I didn't respond faster to your email but I have been on vacation. We have trouble on ALL of the machines at CCAC and my home computer for 2 of our projects that I have attached -- HokeyPokey and CardGame. The HokeyPokey has user-defined methods for Tortoise class. The CardGame has user-defined methods for the Scene class. I am using Alice 3.4.0 at home and we are using Alice 3.3.0 on all machines at CCAC. All of our other Alice programs for this semester have converted fine. I was able to give students a NetBeans/Java version of both the HokeyPokey and CardGame but they were disappointed that they couldn't convert their own projects since they had spent a lot of time on scenery and objects. Both of these projects are used in multiple chapters and continued throughout the semester. I thought the problem was user-defined methods but some of our user-defined method projects have worked. NOTE: We began to have some conversion problems when we tried to switch from Alice 3.2.5.0.0 to Alice 3.3.0 so we delayed the switch for a year at CCAC and asked to have the Alice 3.2.5.0.0 archive kept on your site for that year. My internet students who downloaded newer versions were the first students to become aware of the issue. All of the Alice projects worked fine in Alice 3.2.5.0.0 but we were told that version wouldn't be available for much longer so we moved to newer version. Eileen Wrigley, Professor Computer Information Technology CCAC - South Campus West Mifflin, PA 15122 On Sun, Nov 25, 2018 at 8:03 PM Donald Slater wrote: > Terri and Eileen, > I have been able to duplicate the problem, and the workaround I suggested > does not work. > > Eileen is correct. The problem occurs when the Scene class has > user-defined methods created for it. It is not a problem when other classes > besides the Scene class has user-defined methods. > > Eileen, is this something you have seen before the latest release of Alice > 3, with older plug-ins, or is this something introduced with the new > plug-in? > > I am sure the dev team will look at this. > > Thank you for your patience. > > All the best, > Don Slater > > Alice Project > > > On Nov 23, 2018, at 8:02 PM, Donald Slater > wrote: > > > > Eileen, > > Points of clarification? The two projects had this behavior on all > machines and students, or only on two machines / students? > > > > The new methods belonged to the Scene class, or to some of the Gallery > class models... > > > > I think one work around we tried was to save the project in a new > location under a new name... And I think I did it with a project with new > methods, but I will go back and retest again... Also, I am working on a > MacBook Pro... > > > > Thank you, > > Don Slater > > > > Sent from my iPad > > > >> On Nov 22, 2018, at 4:20 PM, Eileen Wrigley > wrote: > >> > >> We get this at CCAC on two of our projects but all of the rest of Alice > projects convert just fine. The only thing unique about the projects is > that we have written our own new methods in these two projects. Do you > have new methods in your project too? Have not heard back from CMU yet > about this. > >> > >> Eileen Wrigley > >> > >> > >> Sent from my iPhone > >> > >>> On Nov 21, 2018, at 10:09 PM, Kelly, Terri > wrote: > >>> > >>> > >>> > >>> Anyone seen this lately? I was receiving this error a couple of years > ago, i think - and it resolved with the new plugin or something. Now it > has reared its ugly head again and I cannot find any resources about > options to fix it. > >>> > >>> When trying to bring the a3p file into NetBeans, it starts the > process, but does not finish - and it gives me the error that the Folder is > not empty. The folder was empty, until the process started ... hmmmmm... > >>> > >>> I have removed and re-downloaded and installed the plug in - which did > not fix the problem. > >>> > >>> Windows 10, Java 1.8, Alice 3.4 > >>> > >>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> alice-teachers mailing list > >>> alice-teachers at lists.andrew.cmu.edu > >>> To change settings or unsubscribe visit: > >>> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > >> _______________________________________________ > >> alice-teachers mailing list > >> alice-teachers at lists.andrew.cmu.edu > >> To change settings or unsubscribe visit: > >> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: HokeyPokey.a3p Type: application/octet-stream Size: 4039464 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CardGameChapter4Complete.a3p Type: application/octet-stream Size: 92258 bytes Desc: not available URL: From mviqueira at mariaregina.org Tue Nov 27 12:36:47 2018 From: mviqueira at mariaregina.org (Viqueira, Marcia) Date: Tue, 27 Nov 2018 12:36:47 -0500 Subject: alice-teacher Trouble with Alice into Netbeaans using Plugin In-Reply-To: <38147E06-8975-49D9-B226-D8257BF831C7@andrew.cmu.edu> References: <606F07AA-CA54-45C8-B083-9C6F4D5BE5E0@andrew.cmu.edu> <38147E06-8975-49D9-B226-D8257BF831C7@andrew.cmu.edu> Message-ID: Hi Don, My students are having the exact same problem. -Marcia On Sun, Nov 25, 2018 at 8:04 PM Donald Slater wrote: > Terri and Eileen, > I have been able to duplicate the problem, and the workaround I suggested > does not work. > > Eileen is correct. The problem occurs when the Scene class has > user-defined methods created for it. It is not a problem when other classes > besides the Scene class has user-defined methods. > > Eileen, is this something you have seen before the latest release of Alice > 3, with older plug-ins, or is this something introduced with the new > plug-in? > > I am sure the dev team will look at this. > > Thank you for your patience. > > All the best, > Don Slater > > Alice Project > > > On Nov 23, 2018, at 8:02 PM, Donald Slater > wrote: > > > > Eileen, > > Points of clarification? The two projects had this behavior on all > machines and students, or only on two machines / students? > > > > The new methods belonged to the Scene class, or to some of the Gallery > class models... > > > > I think one work around we tried was to save the project in a new > location under a new name... And I think I did it with a project with new > methods, but I will go back and retest again... Also, I am working on a > MacBook Pro... > > > > Thank you, > > Don Slater > > > > Sent from my iPad > > > >> On Nov 22, 2018, at 4:20 PM, Eileen Wrigley > wrote: > >> > >> We get this at CCAC on two of our projects but all of the rest of Alice > projects convert just fine. The only thing unique about the projects is > that we have written our own new methods in these two projects. Do you > have new methods in your project too? Have not heard back from CMU yet > about this. > >> > >> Eileen Wrigley > >> > >> > >> Sent from my iPhone > >> > >>> On Nov 21, 2018, at 10:09 PM, Kelly, Terri > wrote: > >>> > >>> > >>> > >>> Anyone seen this lately? I was receiving this error a couple of years > ago, i think - and it resolved with the new plugin or something. Now it > has reared its ugly head again and I cannot find any resources about > options to fix it. > >>> > >>> When trying to bring the a3p file into NetBeans, it starts the > process, but does not finish - and it gives me the error that the Folder is > not empty. The folder was empty, until the process started ... hmmmmm... > >>> > >>> I have removed and re-downloaded and installed the plug in - which did > not fix the problem. > >>> > >>> Windows 10, Java 1.8, Alice 3.4 > >>> > >>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> alice-teachers mailing list > >>> alice-teachers at lists.andrew.cmu.edu > >>> To change settings or unsubscribe visit: > >>> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > >> _______________________________________________ > >> alice-teachers mailing list > >> alice-teachers at lists.andrew.cmu.edu > >> To change settings or unsubscribe visit: > >> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > -- mviqueira at mariaregina.org Spanish & 3D Programming Teacher Moderator: City Slickers | P.A.W.S. | La Sociedad Honoraria Hisp?nica | Spanish Club ------------------------------------------ Maria Regina High School 500 West Hartsdale Avenue Hartsdale, NY 10530 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dabeshou at andrew.cmu.edu Thu Nov 29 11:56:27 2018 From: dabeshou at andrew.cmu.edu (Daniel Abeshouse) Date: Thu, 29 Nov 2018 11:56:27 -0500 Subject: alice-teacher Project Help In-Reply-To: <0E17EE31-2418-4772-B321-766C49CC3296@andrew.cmu.edu> References: <0E17EE31-2418-4772-B321-766C49CC3296@andrew.cmu.edu> Message-ID: Erin, Alice has an expectation that scene activation listeners will do some set up and then return. Whether this is a good expectation can be discussed, but it is good to keep in mind. The listeners are notified sequentially, so when this program is run, the first listener with a long running while loop blocks the others from being called. In light of this, combining the activation listeners is a good idea, in part because it gives the user control over the order things run. The tight while loops in the listeners present a further problem for the current Alice VM. There are insufficient checks in the VM and the threads it spins up, so these loops hang around, even after a user might think the program has finished. I am testing a fix for this. Thanks you for a program that makes that testing easy. Given the constraints (read bugs) of the current VM, the author of this world should be encouraged to use a more event driven approach. Instead of looping and checking a scareActivated, call a method activateScare() where the variable is set to true and stopScaring() for false. Similarly the repeated updating of enemyDistance could be removed and it could be updated when either one moves, or computed only when it is to be used. These are good practices generally, but especially so until the VM bugs are fixed. Thanks for highlighting these issues. - Daniel Abeshouse On Tue, Nov 13, 2018 at 6:56 PM Donald Slater wrote: > Erin, > Some quick suggestions after a first look: > > Have the student try to combine the different Scene Activated listeners > into one Scene Activated listener. Using Scene procedures may help him > organize his thoughts. > > I am just not quite sure how the different Scene Activated handlers all > running affect the underlying system. > > Also, the one Scene Activated method in which he is counting down (Scare > Activated?) he can accomplish the same behavior in a while loop. > > I am looking forward to other thoughts the community might have. > > I hope that you are well. > > All the best, > Don Slater > > Alice Project > > On Nov 13, 2018, at 12:44 PM, Erin Whitaker > wrote: > > I have a student project attached that it not running correctly. When you > first open it, it seems to run fine, but after having it open for 5 minutes > and running it a few times, it begins to run slower and slower to the point > where the student can no longer run it or do any work in the coding and you > have to close it out. If anyone has a few moments to see what might be > causing the problem or has any suggestions, please let me know. I have > opened it on several machines, mac and pc, to see if it was a computer > issue, but it does the same thing on all devices. > > Thanks, > > Erin > > -- > > Erin Whitaker | Middle School Technology Coordinator > Sewickley Academy | 315 Academy Ave. Sewickley, PA 15143 > [phone] 412.741.2230 ext. 3389 <412.741.2230%20ext.%203388> [fax] > 412.749.5678 > web | blog | facebook > | twitter | pinterest > > > > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > > > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers -- Daniel Abeshouse Alice Project Carnegie Mellon University -------------- next part -------------- An HTML attachment was scrubbed... URL: From ewhitaker at sewickley.org Thu Nov 29 13:52:24 2018 From: ewhitaker at sewickley.org (Erin Whitaker) Date: Thu, 29 Nov 2018 13:52:24 -0500 Subject: alice-teacher Project Help In-Reply-To: References: <0E17EE31-2418-4772-B321-766C49CC3296@andrew.cmu.edu> Message-ID: Hi Daniel, Thank you for looking into this in detail. I appreciate the response and will take a look at the suggestions you have provided and review this with my student. Thanks, Erin On Thu, Nov 29, 2018 at 1:28 PM Daniel Abeshouse wrote: > Erin, > > Alice has an expectation that scene activation listeners will do some set > up and then return. Whether this is a good expectation can be discussed, > but it is good to keep in mind. > The listeners are notified sequentially, so when this program is run, the > first listener with a long running while loop blocks the others from being > called. > In light of this, combining the activation listeners is a good idea, in > part because it gives the user control over the order things run. > > The tight while loops in the listeners present a further problem for the > current Alice VM. There are insufficient checks in the VM and the threads > it spins up, so these loops hang around, even after a user might think the > program has finished. > I am testing a fix for this. Thanks you for a program that makes that > testing easy. > > Given the constraints (read bugs) of the current VM, the author of this > world should be encouraged to use a more event driven approach. > Instead of looping and checking a scareActivated, call a method > activateScare() where the variable is set to true and stopScaring() for > false. > Similarly the repeated updating of enemyDistance could be removed and it > could be updated when either one moves, or computed only when it is to be > used. > These are good practices generally, but especially so until the VM bugs > are fixed. > > Thanks for highlighting these issues. > > - Daniel Abeshouse > > On Tue, Nov 13, 2018 at 6:56 PM Donald Slater > wrote: > >> Erin, >> Some quick suggestions after a first look: >> >> Have the student try to combine the different Scene Activated listeners >> into one Scene Activated listener. Using Scene procedures may help him >> organize his thoughts. >> >> I am just not quite sure how the different Scene Activated handlers all >> running affect the underlying system. >> >> Also, the one Scene Activated method in which he is counting down (Scare >> Activated?) he can accomplish the same behavior in a while loop. >> >> I am looking forward to other thoughts the community might have. >> >> I hope that you are well. >> >> All the best, >> Don Slater >> >> Alice Project >> >> On Nov 13, 2018, at 12:44 PM, Erin Whitaker >> wrote: >> >> I have a student project attached that it not running correctly. When you >> first open it, it seems to run fine, but after having it open for 5 minutes >> and running it a few times, it begins to run slower and slower to the point >> where the student can no longer run it or do any work in the coding and you >> have to close it out. If anyone has a few moments to see what might be >> causing the problem or has any suggestions, please let me know. I have >> opened it on several machines, mac and pc, to see if it was a computer >> issue, but it does the same thing on all devices. >> >> Thanks, >> >> Erin >> >> -- >> >> Erin Whitaker | Middle School Technology Coordinator >> Sewickley Academy | 315 Academy Ave. Sewickley, PA 15143 >> [phone] 412.741.2230 ext. 3389 <412.741.2230%20ext.%203388> [fax] >> 412.749.5678 >> web | blog | >> facebook | twitter | >> pinterest >> >> >> _______________________________________________ >> alice-teachers mailing list >> alice-teachers at lists.andrew.cmu.edu >> To change settings or unsubscribe visit: >> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers >> >> >> _______________________________________________ >> alice-teachers mailing list >> alice-teachers at lists.andrew.cmu.edu >> To change settings or unsubscribe visit: >> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers > > > > -- > > Daniel Abeshouse > > Alice Project > Carnegie Mellon University > _______________________________________________ > alice-teachers mailing list > alice-teachers at lists.andrew.cmu.edu > To change settings or unsubscribe visit: > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers -- Erin Whitaker | Middle School Technology Coordinator Sewickley Academy | 315 Academy Ave. Sewickley, PA 15143 [phone] 412.741.2230 ext. 3389 <412.741.2230%20ext.%203388> [fax] 412.749.5678 web | blog | facebook | twitter | pinterest -------------- next part -------------- An HTML attachment was scrubbed... URL: