# GSP: GameShell-Phaser

**URL:** <https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391>\
**Category:** Developers\
**Created:** [August 15, 2018, 8:04pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391 "2018-08-15T20:04:12Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [August 19, 2018, 4:07pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/21 "2018-08-19T16:07:20Z")

</div>

Strange, everything seems fine I really dont understand what is going on. As a last resort try the following

edit GSPLauncher.sh, it should read:

```auto
/home/cpi/GSP/nwjs-sdk-v0.27.6-linux-arm/nw /home/cpi/GSP --use-gl=egl --ignore-gpu-blacklist --disable-accelerated-2d-canvas --num-raster-threads=2 --remote-debugging-port=9222

```

remove the part: `/home/cpi/GSP`

So it should be now:

```auto
/home/cpi/GSP/nwjs-sdk-v0.27.6-linux-arm/nw --use-gl=egl --ignore-gpu-blacklist --disable-accelerated-2d-canvas --num-raster-threads=2 --remote-debugging-port=9222

```

Try launching the GSPLauncher again, it should just load the default nwjs page. If this does not work then I am afraid I have no other ideas on what might be the problem.

---

<div class="post-metadata">

**Author:** ![lasvegas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lasvegas/32/769_2.png) [@lasvegas](https://forum.clockworkpi.com/u/lasvegas)\
**Post date:** [August 19, 2018, 4:18pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/22 "2018-08-19T16:18:59Z")

</div>

I understand your reasoning for setting the screen rectangle one pixel smaller than the screen to prevent the scrollbars, but the resulting white line is distracting! Is it possible to clear the screen to black before creating the smaller window? It’s not that important… Just aesthetics.

LasVegas

---

<div class="post-metadata">

**Author:** ![Nielsvd](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/nielsvd/32/967_2.png) [@Nielsvd](https://forum.clockworkpi.com/u/Nielsvd)\
**Post date:** [August 19, 2018, 4:52pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/23 "2018-08-19T16:52:03Z")

</div>

Meh, seems that also not a solution. Maybe I’ll try to reset the GS and try again.

---

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [August 19, 2018, 5:09pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/24 "2018-08-19T17:09:12Z")

</div>

Yeah you are right, I will check if it is feasible for the next update

---

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [August 19, 2018, 5:13pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/25 "2018-08-19T17:13:18Z")

</div>

Then you certainly have problem with nwjs (assuming GSPLauncher.sh points to the correct location). Are you sure that the .so libraries existing in the /lib folder of nwjs folder are also copied in ‘/usr/lib’?

---

<div class="post-metadata">

**Author:** ![lasvegas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lasvegas/32/769_2.png) [@lasvegas](https://forum.clockworkpi.com/u/lasvegas)\
**Post date:** [August 19, 2018, 5:28pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/26 "2018-08-19T17:28:48Z")

</div>

You might try executing the bash script from SSH:

> ~/apps/launcher/Menu/GameShell/GSPLauncher.sh

If everything is working, you should get the message: **Gtk- WARNING: cannot open display:** Anything else, you may have a syntax error somewhere.

LasVegas

---

<div class="post-metadata">

**Author:** ![Nielsvd](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/nielsvd/32/967_2.png) [@Nielsvd](https://forum.clockworkpi.com/u/Nielsvd)\
**Post date:** [August 19, 2018, 6:17pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/27 "2018-08-19T18:17:43Z")

</div>

Finally, it works 😃

My GS was missing libnss3.so.

Got this message when executed from terminal:

> /home/cpi/GSP/nwjs-sdk-v0.27.6-linux-arm/nw: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

After installing libnss3.so this the problem was solved.

> sudo apt-get update  
> sudo apt-get install libnss3-dev

Thanks for all the help elefas and LasVegas 😁.

---

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [August 19, 2018, 6:42pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/28 "2018-08-19T18:42:50Z")

</div>

Awwww snap how could I forget it! I should add it to the instructions! … or better in the installer script…

---

<div class="post-metadata">

**Author:** ![IndieImprint](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/indieimprint/32/1401_2.png) [@IndieImprint](https://forum.clockworkpi.com/u/IndieImprint)\
**Post date:** [December 26, 2018, 11:30pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/29 "2018-12-26T23:30:30Z")

</div>

Sorry for the necro, but that white line fix is being added to nw.js shortly (commit set with app background color fix is being merged right now), then we’ll be able to update the package.json to make everything black.

I’ve been able to make it nearly invisible on my game, but it still bugs me.

---

<div class="post-metadata">

**Author:** ![Micro007](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/micro007/32/745_2.png) [@Micro007](https://forum.clockworkpi.com/u/Micro007)\
**Post date:** [January 5, 2019, 8:42pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/30 "2019-01-05T20:42:14Z")

</div>

Just updated and it said something about removing pac man and Mario? Says everything is up to day but those games aren’t there!!

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 6, 2019, 6:19am UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/31 "2019-01-06T06:19:36Z")

</div>

mario and pac man may have copyright issue

---

<div class="post-metadata">

**Author:** ![Micro007](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/micro007/32/745_2.png) [@Micro007](https://forum.clockworkpi.com/u/Micro007)\
**Post date:** [January 6, 2019, 12:45pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/32 "2019-01-06T12:45:44Z")

</div>

Ahhh okay cool.

Well. Not cool, but you know lol

---

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [January 6, 2019, 12:53pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/33 "2019-01-06T12:53:25Z")

</div>

You can still download them from my GitHub repo if you want to have them

---

<div class="post-metadata">

**Author:** ![IndieImprint](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/indieimprint/32/1401_2.png) [@IndieImprint](https://forum.clockworkpi.com/u/IndieImprint)\
**Post date:** [January 10, 2019, 9:03pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/34 "2019-01-10T21:03:37Z")

</div>

I’m going to be dropping a phaser game for the GameJam - and I’d love to integrate it with your launcher.  
What’s the best way for me to distribute the game to work smoothly with it?

---

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [January 11, 2019, 7:36am UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/35 "2019-01-11T07:36:53Z")

</div>

Hi @IndieImprint! That’s great!  
Well I think the best way is to create a pull request to the forked repository of @guu at: [https://github.com/cuu/GSP/tree/master/GSPGames](https://github.com/cuu/GSP/tree/master/GSPGames) (if guu agrees, your game could come pre-installed in the clockworkpi image).

Else of course you can create a pull request to the original repository ([https://github.com/pleft/GSP/tree/master/GSPGames](https://github.com/pleft/GSP/tree/master/GSPGames)) and I will merge your PR to the master branch. You can find instructions about how to include your game in the launcher in the `README.md` file:

> <https://github.com/pleft/GSP/blob/master/GSPGames/README.md>

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 11, 2019, 8:04am UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/36 "2019-01-11T08:04:33Z")

</div>

I think PR to original is best  
my repo is only cut down two games for copyright issues now

I will follow the original repo’s update

and include more games as much as possible to clockworkpi os image ,but without copyright issue

🙂

---

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [January 11, 2019, 8:10am UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/37 "2019-01-11T08:10:46Z")

</div>

Hi @guu, sorry for driving the thread off topic but both games that you removed for copyright issues have license files that state the opposite (at least as I understand). However I confess I am no expert when it comes to such matters so if you understand that those games infringe copyright then it would be better if I remove them also form the original source code.

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 11, 2019, 8:43am UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/38 "2019-01-11T08:43:59Z")

</div>

no , you keep them is good,they are good games

I’ll do the job to remove files with potential copyright issues

If I can sure about the copyright issues later (I am no expert at laws,too )

I’ll just use your repo directly into clockworkos img

---

<div class="post-metadata">

**Author:** ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)\
**Post date:** [January 11, 2019, 11:20am UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/39 "2019-01-11T11:20:08Z")

</div>

Well @guu is right. For example just using Nintendo IPs is an enfreightment, you can’t claim any right on using them without a expressed agreement with them, which is not the case in Notch game nor the HTML port of it.  
The other one using Namco name is in a similar position, and guu is right to not include them in the official GS release (the one that may be included in the official GS image)

Theses games live in a gray area that would not stand if the copyright holder decided to strike, so it is better and safer for guu and Clockwork to not include such things in the default image.

---

<div class="post-metadata">

**Author:** ![elefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/elefas/32/859_2.png) [@elefas](https://forum.clockworkpi.com/u/elefas)\
**Post date:** [January 11, 2019, 1:35pm UTC](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391/40 "2019-01-11T13:35:08Z")

</div>

So it would be better to remove them also from my repository too…

[Previous page](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391.md?page=1)

[Next page](https://forum.clockworkpi.com/t/gsp-gameshell-phaser/1391.md?page=3)
