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

2013/5/13

Need some help with lost world/locked scenario

Barra84 Barra84

2013/5/13

#
Hey so i made a huge mistake at college today and deleted the world from one of the games im making for my course the game isn't anything major however i have lost my full world which contained alot of my code :(. Sadly i haven't backed up my game recently other than an export to a .jar I have managed to open the game again in greenfoot via the jar file but i cant view or edit any of the code im guessing i haven't unclicked lock scenario. Does anyone know of a way to get past this so i can retrieve my code or am i going to have to rewrite everything. link to my uploaded game incase it helps http://www.greenfoot.org/scenarios/8326
davmac davmac

2013/5/13

#
It's nothing to do withing having locked or unlocked your scenario (that just controls whether the speed slider is visible and whether actors can be moved around when the scenario is paused); if you export to a jar file, your source code is simply not exported - only the compiled version is put in the jar file. So, unfortunately, your source code is gone. The only option for getting it back is decompilation, which I've little experience in - someone else might be able to suggest something.
Barra84 Barra84

2013/5/13

#
NP thank you for the reply i guess it may be a weekend of recoding it :(
Barra84 Barra84

2013/5/14

#
Hey davmac thanks for the advice i managed to find a decompiler from http://java.decompiler.free.fr/ which allowed me to retrieve all my source code :) figured i would post it here incase others had the same problem.
You need to login to post a reply.