Error in Picavoxel Code when attempting to build in Release

0
ragnabolt posted this 16 December 2017

I am having a serious issue with the game not being able to build due to errors in the contained Picavoxel Code files, I have shared some screenshots of the problems I am having, this issue is important because I am trying to publish the game on the google play store (for a university course) and I am required to have built it in Release.

Here are some screenshots of the code problems I am having:

these two are a sample of the Many errors I receive

https://gyazo.com/0c20e901507baf92a505c5fc7578e585

https://gyazo.com/e2267fa757c82a0c129d8d32ccd134b9

This last image is the same code but the only thing I have changed is from "Release" to "Debug" on the top left. i was not having any issues when developing in Debug mode, all of the errors have come from the Unedited Picavoxel code itself

https://gyazo.com/ceeadb4554bdb0f68fb7ce2b654fcdaa

I tried adding #if UNITY_EDITOR but there are so many problems after that and I am not sure if I am doing something wrong trying to build in a release.

please get back to me as the deadline for release was midnight Friday "15th December"

5 Comments
Order By: Standard | Newest | Votes
0
GarethIW posted this 16 December 2017

Hey,

So I’m afraid I’m not near a pc for another 12 hours or so. (You’re kinda lucky that I’m even replying, if I was at home I’d be asleep by now!) But I’ll look at it as soon as I get home. Out of interest, what happens if you just completely remove the editor scripts folder? I’m pretty sure no runtime scripts should rely on anything in there.

I’ve never actually tried a Release build on any unity games before, but looking at your errors, maybe the compiler simply doesn’t include UnityEditor when in release?

0
GarethIW posted this 16 December 2017

Okay, I haven't been able to reproduce this. A blank project with a PicaVoxel test scene, set to Android platform builds just fine. I also tried setting the build configuration to Release in visual studio, and it still built the solution just fine. Maybe a MonoDevelop specific problem?

0
ragnabolt posted this 16 December 2017

Thanks for getting back to me, I'll try building it in Visual studio when I get back home, if that doesn't work I'll try editing out all the code in picavoxel

0
GarethIW posted this 16 December 2017

Just remove the PicaVoxel/Scripts/Editor folder, not all of the PicaVoxel scripts!

0
ragnabolt posted this 19 December 2017

thanks it worked perfectly!


Our 125 members have posted 459 times in 111 discussions