Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup #7

Open
jeremy-coleman opened this issue May 5, 2021 · 5 comments
Open

setup #7

jeremy-coleman opened this issue May 5, 2021 · 5 comments

Comments

@jeremy-coleman
Copy link

jeremy-coleman commented May 5, 2021

little more friendly setup here: https://github.com/jeremy-coleman/simmo
basically just:
copy/pasted/flattened
added express for static files
added cross origin isolated headers
added a package.json
added script to get going with npm install and npm run start
removed mjs, "type":"module" in package.json is better (but also not needed bc sucrase ftw)

update: latest commit i added electron nightly just so i can use the webgpu api without having to use chrome canary. can also mess around with using the vulkan backend for angle and figure out how to use a native udp client

@makc
Copy link

makc commented May 6, 2021

why not fork + pr

@jeremy-coleman
Copy link
Author

i like to get owner feedback before submitting a pr

@SomeDevWeb
Copy link

This is great, Jeremy. I managed to install it too, but now I get an error about websocket;
WebSocket connection to 'ws://server_ip:5000/socket.io/?EIO=4&transport=websocket' failed:
Any idea what to do to overcome this? I have it on a VPS and I also tried it on localhost and it gives the same error.
Thanks a lot for any ideas!

@jeremy-coleman
Copy link
Author

@SomeDevWeb . Im just on my phone, but it looks like start-web.js needs to import src/server/index.js to start the websocket server (see start-desktop.js for example). i’ll update it later but that should unblock you.

@SomeDevWeb
Copy link

Sorry for the late reply. Thanks for your help!
That's great. It fixed it and it works now UP to a point...
Which is after login, it doesn't load the terrain and I get the error:
SyntaxError: import declarations may only appear at top level of a module [terrain-builder-threaded-worker.js:1] (/src/terrain-builder-threaded-worker.js)
If you want to have a look, the server is: http://142.132.170.228:5000

And actually, related to that, I have an audacious game project in mind for which I will create a new post.
Kindly please read it and let me know if you are interested.
#15

Thanks a lot again for your time.
Andy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants