fishgame-macroquad
fishgame-macroquad copied to clipboard
quick game with wasm build stuck on connecting screen
the pre-compiled web build that comes in the web folder works fine but when i generate my own HTML5 build and i click on "quick game" it doesnt connect
I followed all these steps
cargo build --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/fishgame.wasm web/fishgame.wasm
wasm-strip web/fishgame.wasm
then i run devserver --path web
perhaps something with "build.rs" file? i'm on Linux
any clue about this problem?
Same error here.
I added a metric boatload of println! to my local nakama-rs, and I've managed to deduce that the server is giving a 401 Error:
HttpError( UreqError( Status( 401, Response[status: 401, status_text: Unauthorized, url: http://not-doxxing-myself:7350/v2/account/authenticate/email?create=false&], ), ), )
This was for vanilla Windows
In the main.rs file, we can see that they have a default user already assumed to be existing for a quick game, and you have to create that user first. This is why it's unauthorized.