AllPoland / ArcViewer

Open source, overengineered 3D Beat Saber map previewer and replay viewer
https://allpoland.github.io/ArcViewer/
GNU General Public License v3.0
60 stars 15 forks source link

Can't reproduce working WebGL build #63

Closed GG3Hahn closed 3 months ago

GG3Hahn commented 3 months ago

Describe the bug

I built ArcViewer for WebGL, but opening any map fails with "Unable to load Info.dat".

How to Reproduce:

Steps to reproduce the behavior:

This only occurs on my own build, while https://allpoland.github.io/ArcViewer works as expected with the same maps and browser. Maybe my build settings are wrong? (Maybe you could add more detailed build instructions? 🙏) My build for Windows also works as expected.

Expected behavior:

The map loads and plays fine.

Build Info:

Additional context:

My Build Settings

Build Settings (Player Settings are unchanged, issue happens both with and without Development Build ticked)

Browser Console Output

Console Screenshot This is from trying to load a BeatSaver ID, but interestingly ArcViewer also logs the line

Loaded info for Indila, Bennett - Dernière danse

when loading the same map from a local zip (so it definitely isn't derived from BeatSaver metadata and instead has to be from Info.dat, right?)

Full Log

AllPoland commented 3 months ago

This is an issue with the IL2CPP Code Generation setting Faster Runtime. When set to this, some generic methods don't work (i.e. json parsing). Set this to Faster (smaller) Builds in the build settings.

GG3Hahn commented 3 months ago

That did indeed do the trick, thanks!