Hi guys, I m trying to upload my game on itchio. I m getting an error. Here is the error and my build settings. I also tried my game on CrazyGames, its a platform that you can play browser games. And the game works perfectly on that platform.
I also tried compression format Gzip, Brotli and disabled, I tried all of them.
You have a NullReferenceException. This is nothing special, you just need to figure out where it occurs and why.
Where: enable full stacktrace in Player Settings. Expand the entry in the log to see the stacktrace.
Why: that may require some logging. Typically, if it works in the editor but not in a build, some code works differently.
Some examples include:
awaited calls may await longer on the web whereas they may be instantaneous on desktop
platform specific conditionals cause logic to take different code paths
using the crazygames SDK may mean it’s not available / initializing when run on itch.io
Are you sure that it allows uploading of files? I know you can to put files up, but when the file is uploaded, are you sure it uploaded? was in the place you expected? could be moved to say a web area you access? Often web areas are not writable to to help prevent hijacking…
Ok thank you very much I solved it. At the beginning of the game some objects disappear and give a null exception but it still does not prevent the game because it destroys in a controlled manner. Naturally this does not open the game because it gives a null error as soon as the game is loaded.