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

2017/4/9

Is there a way to open another project via code?

Alex12 Alex12

2017/4/9

#
Question above. Maybe you could show me the code. :)
Super_Hippo Super_Hippo

2017/4/9

#
'via code'? What do you mean?
Alex12 Alex12

2017/4/9

#
I've got a greenfoot project where I want to insert a code that opens another file or greenfoot project. I hope thats understandable
Nosson1459 Nosson1459

2017/4/9

#
So you want to have two different scenarios running at the same time? I think you should just combine these two into one scenario.
Alex12 Alex12

2017/4/9

#
That was my intend at first. But it seems that my project is too large for greenfoot. So i have to split it up.
Nosson1459 Nosson1459

2017/4/9

#
Alex12 wrote...
That was my intend at first. But it seems that my project is too large for greenfoot. So i have to split it up.
Well, I don't think that's possible. What probably is possible is to fix your code up so that it's not so large.
Super_Hippo Super_Hippo

2017/4/9

#
There is a maximum file size for uploads here on the site, but I don't think that Greenfoot on your computer limits the size. And here on the site, it is (probably) impossible to interact with other scenarios.
Alex12 Alex12

2017/4/9

#
Greenfoot is actually limiting size. Java heab space error. Dont know what to do about it. I tried everything to minimize the size of it, still if I combine everything I get the error.
Nosson1459 Nosson1459

2017/4/9

#
A Java heap space error means that there is probably a (small) logical error in your code (which you didn't notice). It's nothing to do with Greenfoot. It can come if you have too many actors in your World at once or something like that.
Super_Hippo Super_Hippo

2017/4/9

#
Okay, that has nothing to with the size of your project. Maybe you are creating many images or huge images or you are creating tons of actors or... well you get the point.
Alex12 Alex12

2017/4/9

#
java.lang.OutOfMemoryError: Java heap space That only happens if i have f.e. too many pictures in my image folder. Even if there is just a black background, no actors etc.
Alex12 Alex12

2017/4/9

#
Thank you guys! Seems like I figured it out smh. Appreciate your help, its working now :D
You need to login to post a reply.