none of my old programs are working now!

57 views
Skip to first unread message

g...@doonschool.com

unread,
Feb 16, 2023, 4:14:38 AM2/16/23
to Glowscript Users
Hi,
I'm getting the following error message when I run my old trinkets (attached).
When I viewed the code of the simulations which I had made using blocks in glowscript on trinket.io website, I noticed that it shows version 2.7 . But the version number 3.2 is displayed when I make new simulations.
Could it be that only new version simulations will work now and all old versions will no longer work?
How to make them work?
Please help, My students  have made simulations which suddenly no longer work. 
warm regards,
Gyaneshwaran

error.png

Paul Price

unread,
Feb 16, 2023, 10:47:19 AM2/16/23
to glowscri...@googlegroups.com
Gyaneshwaran,

Could you send a link to the full code.  I am certain Bruce will chime in but I have found there is sometimes a loss of some functionality between versions with certain keywords for periods of time.  What is line 89 trying to do?

Paul
_____________
Paul D. Price
Science Dept. Chair
Trinity Valley School



On Feb 16, 2023, at 3:14 AM, g...@doonschool.com <g...@doonschool.com> wrote:

Gyaneshwaran

Bruce Sherwood

unread,
Feb 16, 2023, 1:13:19 PM2/16/23
to glowscri...@googlegroups.com
Two comments:

1) I'm guessing that the program contains "rate(30,wait)" but should now be written as "rate(30)". Do search for "wait" and remove any references you find. I think the use of "wait" (and version 2.7) goes back many years.

2) I believe that trinket.io, like webvpython.org, maintains the capability to run programs at all previous version numbers including 2.7. So if for whatever reason you don't want to use version 3.2, why not simply change the first line to invoke version 2.7?

Bruce

Bruce Sherwood

unread,
Feb 16, 2023, 6:51:20 PM2/16/23
to Glowscript Users
The situation is more complex than I thought. The following program works at webvpython.org but not at trinket.io:

GlowScript 2.7 VPython
b = box()
while True:
    rate(100, wait)
    b.rotate(angle=.01, axis=vec(0,1,0))

The following program works both at webvpython.org and trinket.io:

GlowScript 3.2 VPython
b = box()
while True:
    rate(100)
    b.rotate(angle=.01, axis=vec(0,1,0))

It appears that trinket.io does not handle version 2.7.

Bruce

Mr. Gyaneshwaran

unread,
Feb 18, 2023, 12:06:34 PM2/18/23
to glowscri...@googlegroups.com
thank you! I thought so too. I made all my simulations using blocks in trinket. io.. It doesn't allow me to edit the first line of code to change the version no. if I copy paste the code from view code and change the first line, it gives some other error. 
is there any easy way out? all my simulations don't work any more.
warm regards
Gyaneshwaran

"No teacher is greater than one's own experience. "

--

---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glowscript-users/8591b3e5-4dca-49a0-90d9-70623002a39bn%40googlegroups.com.

Bruce Sherwood

unread,
Feb 18, 2023, 4:54:55 PM2/18/23
to Glowscript Users
Ah. So the issue is with the blocks version. I know nothing about the blocks version; you'll have to contact the Trinket people to solve your problem.

Bruce

Reply all
Reply to author
Forward
0 new messages