This site requires JavaScript, please enable it in your browser!
Greenfoot back
JetLennit
JetLennit wrote ...

2019/12/1

Old Programs

JetLennit JetLennit

2019/12/1

#
Hey everybody! Its been a while. I'm sorry I'm a bit out of the loop but is there a way to still run my old games in browser? Or even in something else? I know I could run the ones that I can download the code for in an old version of Greenfoot, but what about the ones I didn't make open source? I know I can run most of them if I can get Java running but it seems like random features are broken. Thanks, Jet
danpost danpost

2019/12/1

#
JetLennit wrote...
is there a way to still run my old games in browser? Or even in something else? I know I could run the ones that I can download the code for in an old version of Greenfoot, but what about the ones I didn't make open source?
If you do not have a copy of them stored somewhere, then you may have to just re-write them from scratch :( PS welcome back. :)
JetLennit JetLennit

2019/12/1

#
danpost wrote...
If you do not have a copy of them stored somewhere, then you may have to just re-write them from scratch :(
That's too bad! Is this something that Java did or did the Greenfoot devs drop support for legacy features?
danpost wrote...
PS welcome back. :)
Thanks! Glad to see you're still here
danpost danpost

2019/12/1

#
JetLennit wrote...
Is this something that Java did or did the Greenfoot devs drop support for legacy features?
I do not think so, as there is a link to run in legacy on scenario pages. There has been quite a few changes if you are to re-write in a later version of greenfoot. Just to name a couple, you can no longer use anything in the java.awt or in the javax.swing packages -- at least to run on the site (or probably any webpage). Greenfoot has incorporated their own Color and Font classes which are used in GreenfootImage ops.
nccb nccb

2019/12/2

#
As Danpost says, old Greenfoot scenarios used java.awt.Color. We've now moved to greenfoot.Color and added support for translation to Javascript, which means old scenarios won't run in newer Greenfoot, and won't run online, unless you can change the code to use greenfoot.Color. If you have old scenarios without source code, your two options are to run them locally in an old Greenfoot, or you might manage to decompile them and adjust the source. It's outside what we can help with, but if you search for Java decompiler, you can feed the JARs (available to download from us if you inspect HTML source code on the legacy version page) to the decompiler and I imagine it will do a reasonable job, especially if all you want is to change some imports. You'll need a decompiler that can handle the Java version you compiled in though -- some don't go up to Java 8 or Java 9.
You need to login to post a reply.