You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make Mindcode more accessible to beginners (if it is at all needed, I have no idea). In version 3.0, Mindcode in the web app will do advanced optimization by default, meaning it will remove all code if it doesn't modify the Mindustry world actually. So, when this is detected, explanatory messages will be displayed instead of compiled code.
When the compilation produces no code, even prior optimizations:
Oops! Your program didn't generate any code.
It appears you haven't entered any statements
or expressions that actually do something.
Maybe you only have comments in your program,
or declarations that don't produce actual code,
such as constant declarations.
When the compilation produces no code, but there are unused functions present:
Oops! Your program didn't generate any code.
However, it looks like you defined some functions.
Maybe you just forgot to call them?
When the compilation produces some code, but it gets entirely removed by optimization:
Whoa! Your program generated some code,
but it was all removed by the optimizer.
Mindcode removes all unused parts of the program,
and those statements that to not have an effect
on the Mindustry world.
If your program computes some values, just add
a print() function to output the results of your
computations. For example:
a = 1;
b = 2;
c = a * a + b * b;
println(c); // <-- prints the result of the computation
Is it a good idea? Can the messages be improved somehow?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make Mindcode more accessible to beginners (if it is at all needed, I have no idea). In version 3.0, Mindcode in the web app will do advanced optimization by default, meaning it will remove all code if it doesn't modify the Mindustry world actually. So, when this is detected, explanatory messages will be displayed instead of compiled code.
When the compilation produces no code, even prior optimizations:
When the compilation produces no code, but there are unused functions present:
When the compilation produces some code, but it gets entirely removed by optimization:
Is it a good idea? Can the messages be improved somehow?
Beta Was this translation helpful? Give feedback.
All reactions