Big setback

I cannot switch back to blocks after inputting one line of code to java because it’s “too big” when it was just fine when my game was bigger

6 Likes

Yeah… this is a very common problem… I would “discard and go to blocks” and try finding a way to implement your Java code using blocks. I always make a copy of any projects before converting away from blocks because, well, exactly this reason. It’s definitely an issue that’s being worked on, but so far it looks like it’s gonna take a while to find and fix these sort of bugs/issues (I have actually noticed that things like this happen a lot less than they did when I started. Idk though, might just be me.) I think that translating code in one language (blocks/pygame) into the syntax of another (especially Java cause Java is just a weird language in general) is always going to be a difficult and buggy venture. Good luck with the rest of your project! If something isn’t working, such as the “discard and go to blocks” feature, I would try copy/pasting the Java code into a new project and trying again. Sometimes that works, sometimes it doesn’t. Good luck!

4 Likes

If you have any backups saved, you could revert to those, but I assume this is the only copy : ( :people_hugging:

2 Likes

I have almost everything for my game finished but I need to increase the resolution and that I can only do with java

2 Likes

I’ve think they’ve increased the limit before and are planning to remove the limit entirely soon - @richard is that true or did I just hallucinate some PR / issue :rofl:

4 Likes

Just so you know if there are any blocks that were not attached to anything and grey take up space. Also different blocks take up different amounts of space especially extensions. A common extension that takes up a lot of code space is the ray casting extension. Let’s say you have another project with more lines this project could take more space because of using more blocks that take up more space. Instead instead of less blocks that take up more space.

2 Likes

@UnsignedArduino yes, the limit is going away.

@Harmanuary give me a link to your game and i’ll send you back a version with the blocks restored

7 Likes

here you go

1 Like

did the link not send right?

1 Like

@Harmanuary ack, sorry! slipped my mind! here you go:

2 Likes