Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

gmg

4
Posts
2
Topics
A member registered Feb 18, 2016

Recent community posts

(1 edit)

I have been able to build and run Superpowers Game on my Mac without any problems, but I can't seem to get it working on my MS Surface 3 running Windows 10. I have the latest node installed, the npm build script executes correctly. There are some warnings about graceful-fs and lodash that concern me.

However, when I launch it, firstly the server hub does not seem to be working properly. I get JavaScript errors creating new projects, and the project does not display in the list until I refresh. The errors -

  • SCRIPT5022: SyntaxError - index.js (2348,13)
  • SCRIPT5007: Unable to get property 'classList' of undefined or null reference - index.js (2260,9)

Then, when I try to edit a project, the tool bars display in red and it does not connect to the server, so I am unable to create assets. There is another JS error -

  • SCRIPT5022: SyntaxError - index.js (4767,9), seems related to tabstrip

Running in IE11 results in different errors. I haven't tried any other browsers yet, as I have read that they don't work so well on the Surface.

The errors seem to be related to the html elements and the tabstrip, both of which I know have been under development recently. I'm just wondering if the code on GitHub currently runs out of the box. I haven't tried to run a build on my Mac for a while, so all I know is the it worked fine on there a few weeks ago, following the instructions in the docs. The 0.19 build works fine, but I want to work with more up-to-date code, and I want to work on some of the plugin code.

Any ideas?

OK, now I feel foolish. I never even checked, I just assumed that the JS files would end up polluting my repo, so I was copying my changes over to a clean clone. I knew there had to be a better way. At least know I know how to deal with .DS_Store files. I learning so much from this.

I know this is more of a TypeScript / npm question, but it's bugging me and I can't find the answer online.

Basically, I have followed the instructions on the website to clone and build Superpowers Game. I've made a few modifications myself and have built them successfully. The only problem is, my source tree is polluted with all of the generated JS files that npm creates. My GitHub Desktop tells me that I have made all these changes, but they're just part of the build process and shouldn't be synced.

How can I clean up my source tree after running build, so that I can do commits and PRs without hassle?

Sounds like you are applying the rotation using global coordinates and angles. Perhaps try using the Local methods, rotateLocal and getLocalEulerAngles. There are so many of them, and they aren't well documented right now, but a bit of trial and error will get you there.