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

2020/8/2

Help me as soon as possible

Roshan123 Roshan123

2020/8/2

#
I got a silly error in myWorld and after that some how the ups power goes off and the cpu shuts down. After then when the power comes, I opened greenfoot and when it opens the world throws errors something around 100 and the error is something like -'illegal character- \u0000' When i looked the size of the myWorld.java Its of 11 kb but when i open it its blank and gives me 100 errors('illegal character- \u0000') and the place where scenario runs it says "the world could not be constructed. the world subclass may not have a public constructor without parameters, or may not be public"
Roshan123 Roshan123

2020/8/2

#
plz tell me how will i restore the codes if you dont know then also kindly reply anything
danpost danpost

2020/8/2

#
Roshan123 wrote...
plz tell me how will i restore the codes if you dont know then also kindly reply anything
Copy/paste entire MyWorld class codes here, if you can.
Roshan123 Roshan123

2020/8/2

#
Their were a lots of codes and when i have done a mistake it give me 1 error and at that time only unfortunately the cpu shuts down and after opening it the all codes was erased and give me 100 erros
Roshan123 Roshan123

2020/8/2

#
I dont know why its giving me 100 errors Their is no more codes left only in MyWorld where i got only 1 error before the cpu shuts down Plz help me to restore the code
Roshan123 Roshan123

2020/8/2

#
I dont know why its giving me 100 errors Their is no more codes left only in MyWorld where i got only 1 error before the cpu shuts down Plz help me to restore the code
danpost danpost

2020/8/2

#
Roshan123 wrote...
I dont know why its giving me 100 errors Their is no more codes left only in MyWorld where i got only 1 error before the cpu shuts down Plz help me to restore the code
I would suffer to say you may have to start afresh.
danpost danpost

2020/8/2

#
Oh, and from now on, back-up your projects regularly (save updates under different names).
Roshan123 Roshan123

2020/8/2

#
I m not able to understand How will i save updates under diff names
Roshan123 Roshan123

2020/8/2

#
And aslo tell me whats is illegal froward reference in the most easiest way
Roshan123 Roshan123

2020/8/2

#
When i remove static from line 2,3,4, it gives me error illegal forward reference I want to remove static from line 2,3,4
Color mn=new Color(r,g,b);
static int r;
static int g;
static int b;
danpost danpost

2020/8/2

#
If you remove all "static", line 1 must be placed after line 4 (so "r", "g", and "b" are define for "mn".
danpost danpost

2020/8/2

#
Roshan123 wrote...
I m not able to understand How will i save updates under diff names
On main menu bar, use "Scenario">> "Save as...".
Roshan123 Roshan123

2020/8/2

#
 
 int r;
 int g;
 int b;
 Color mn=new Color(r,g,b);
Now is it correct???
danpost danpost

2020/8/2

#
Roshan123 wrote...
<< Code Omitted >> Now is it correct???
It should at least compile now.
You need to login to post a reply.