Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 18 10:35
    tvortsa opened #17
  • Aug 12 15:54

    bilou84 on master

    (compare)

  • Aug 12 13:51

    bilou84 on master

    Fix onEntriesReceived being cal… (compare)

  • Jul 26 12:23
    LeandroStanger opened #70
  • Jul 12 11:52

    bilou84 on master

    Fix typescript errors not faili… (compare)

  • Jun 03 15:03

    bilou84 on master

    Bump three to v0.88 to get the … (compare)

  • May 22 18:50

    bilou84 on master

    Add controls (Page Up/Down) to … (compare)

  • Apr 24 15:19

    bilou84 on master

    Improve search asset popup by i… (compare)

  • Apr 19 00:15
    waxapi opened #167
  • Apr 12 09:06
    mikeroyal opened #69
  • Mar 18 15:11

    elisee on master

    Remove any slash at the end of … (compare)

  • Mar 18 14:48

    elisee on v4.0.0

    (compare)

  • Mar 18 14:48

    elisee on gh-pages

    Update for Superpowers v6.0 rel… (compare)

  • Mar 18 14:47

    elisee on master

    Update to use Pug and for Super… (compare)

  • Mar 18 14:46

    elisee on master

    .travis.yml: Update encrypted O… Update for latest changes in Su… (compare)

  • Mar 18 14:38

    elisee on v4.0.0

    (compare)

  • Mar 18 14:06

    elisee on deps-update

    (compare)

  • Mar 18 14:05

    elisee on v6.0.0

    (compare)

  • Mar 18 14:05

    elisee on v6.0.0

    (compare)

  • Mar 18 14:05

    elisee on master

    Fix favorite server passwords n… Add TODO about dropdownbox for … Fix special cases with hostname… (compare)

Benjamin Stanley
@HeadClot
I think I know why :)
Thomas
@tmathews
Hello
Benjamin Stanley
@HeadClot
Hello @tmathews :)
Elisée Maurer
@elisee
@thePixelrobin_twitter I'm around to help with plugin dev if needed
Michael Savchuk
@thePixelrobin_twitter
@elisee Thanks for offering to help! Let me pull the latest dev version.
In other words, see you in a hour :3
Michael Savchuk
@thePixelrobin_twitter
@elisee umm, will the newest repository also use my appdata folder? I don't want the dev and stable versions to conflict.
Michael Savchuk
@thePixelrobin_twitter
@elisee I'm getting some errors trying to build the latest core. Is my Node version too new?
0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' ] 2 info using npm@2.14.12 3 info using node@v4.2.6 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info prebuild superpowers@1.0.0 6 info build superpowers@1.0.0 7 verbose unsafe-perm in lifecycle true 8 info superpowers@1.0.0 Failed to exec build script 9 verbose stack Error: superpowers@1.0.0 build:node scripts/build.js9 verbose stack Exit status 1 9 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at EventEmitter.emit (events.js:172:7) 9 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at ChildProcess.emit (events.js:172:7) 9 verbose stack at maybeClose (internal/child_process.js:821:16) 9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 10 verbose pkgid superpowers@1.0.0 11 verbose cwd C:\Users\Michael\Documents\Programs\Superpowers\core 12 error Windows_NT 10.0.10586 13 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" 14 error node v4.2.6 15 error npm v2.14.12 16 error code ELIFECYCLE 17 error superpowers@1.0.0 build:node scripts/build.js17 error Exit status 1 18 error Failed at the superpowers@1.0.0 build script 'node scripts/build.js'. 18 error This is most likely a problem with the superpowers package, 18 error not with npm itself. 18 error Tell the author that this fails on your system: 18 error node scripts/build.js 18 error You can get their info via: 18 error npm owner ls superpowers 18 error There is likely additional logging output above. 19 verbose exit [ 1, true ]
umm
this is getting out of hand
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@2.14.12
3 info using node@v4.2.6
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info prebuild superpowers@1.0.0
6 info build superpowers@1.0.0
7 verbose unsafe-perm in lifecycle true
8 info superpowers@1.0.0 Failed to exec build script
9 verbose stack Error: superpowers@1.0.0 build: node scripts/build.js
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:821:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid superpowers@1.0.0
11 verbose cwd C:\Users\Michael\Documents\Programs\Superpowers\core
12 error Windows_NT 10.0.10586
13 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
14 error node v4.2.6
15 error npm v2.14.12
16 error code ELIFECYCLE
17 error superpowers@1.0.0 build: node scripts/build.js
17 error Exit status 1
18 error Failed at the superpowers@1.0.0 build script 'node scripts/build.js'.
18 error This is most likely a problem with the superpowers package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node scripts/build.js
18 error You can get their info via:
18 error npm owner ls superpowers
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
there. Don't judge my file system pls.
Michael Savchuk
@thePixelrobin_twitter
Well, I need to go to bed :\
See you later! :)
Elisée Maurer
@elisee
Hmm actually your node version is 4.2 and npm is 2.14. You should upgrade to Node 6.x (5.x should work too) and npm 3.x
I know we run Node 5 and 6 successfully at least
Michael Savchuk
@thePixelrobin_twitter
@elisee is there a way I can isolate the dev and stable versions and keep them from both using appdata?
Elisée Maurer
@elisee
how do you run the dev version?
you should place things like so:
superpowers/
... app/ (github.com/superpowers/superpowers-app)
... core/ (github.com/superpowers/superpowers-core)
... ... systems/game (github.com/superpowers/superpowers-game)
and when you run superpowers/app with npm run start, it will load the core from ../core and store projects in ../core/projects
so your stable version will read from %APPDATA% and the dev version will read from ../core
Michael Savchuk
@thePixelrobin_twitter
ok so that didn't change. Thanks! :D
Michael Savchuk
@thePixelrobin_twitter
@elisee ok, so what is the general layout of a given plugin? I'm going to need everything - an asset, editor and component :p. This is my first-ish time using nodejs to do anything.
Where in the plugin do I define what I want it to do during room preview/runtime?
I'm making a particle plugin, do I create classes for the different parts (particle system, etc) and attach them to the asset classes, or are the asset classes supposed to be the main part?
I will do more digging into the provided plugins, but information like that would be super helpful.
Michael Savchuk
@thePixelrobin_twitter
Sorry, I said "room", I meant "scene". That's the gamemaker user in me :p
Michael Savchuk
@thePixelrobin_twitter
oh, I didn't see @florentpoujol's tutorials, those might come in handy.
Michael Savchuk
@thePixelrobin_twitter
yes, that's where I got the link from
Elisée Maurer
@elisee
ok
Michael Savchuk
@thePixelrobin_twitter
I'm no pro coder
Elisée Maurer
@elisee
honestly it's pretty complicated, there are lots of parts
Michael Savchuk
@thePixelrobin_twitter
I got that part ^^
So, from what I understand, you like to keep things in their separate folders with their own index.ts'?
Elisée Maurer
@elisee
it's required to create the various bundles which are loaded on-demand
Michael Savchuk
@thePixelrobin_twitter
I'm assuming all instances of index.ts are run, correct?
Elisée Maurer
@elisee
it's a bit more complicated than that
Michael Savchuk
@thePixelrobin_twitter
...oh
Elisée Maurer
@elisee
let's take for instance the sound plugin
data/index.js (compiled from data/index.ts) will be loaded on the server when it starts up: https://github.com/superpowers/superpowers-core/blob/2eeb775dfca22eaaeeca4a77a6a3a0e4d07e8c36/server/loadSystems.ts#L86
and it can also be loaded on the client via a bundle created in public/bundles/data.js
the public bundles are created when you run npm run build in your plugin folder, thanks to https://github.com/superpowers/superpowers-game/blob/29c52999492ff46f505edff1ecdfee816cb34e74/plugins/default/sound/package.json#L11
with this package.json file, npm run build will run scripts/pluginGulpfile.js from superpowers-core into your plugin's folder
and here is the line that creates the bundle for each directory in your plugin: https://github.com/superpowers/superpowers-core/blob/2eeb775dfca22eaaeeca4a77a6a3a0e4d07e8c36/scripts/pluginGulpfile.js#L78, if an index.js file is found
Michael Savchuk
@thePixelrobin_twitter
What is a "bundle"?
Elisée Maurer
@elisee
to be loaded on the client, all the JS files required from your index.js must be bundled (assembled) into a single file, because the browser / client cannot load dependencies dynamically