Giter VIP home page Giter VIP logo

Comments (8)

lapieandalpie avatar lapieandalpie commented on May 10, 2024 2

The PS3 didn't provide enough usb power to boot the pi 4, so we had to hook an external power supply feeding 5v into the "GPIO" power pins and SSH remotely over the wan via laptop terminal. Externally powered, the game recognized the toypad right away. About once every 40 minutes or so we lost the ability to remove characters from the pad. (app would show them removed but they wouldn't remove) and refreshing the app page just loaded a page with no characters visible. The solution was to reboot the pi... although inelegant. I wondered if there could be a "reboot server" button on the web interface and a way to set the pi to boot into toypad mode so we wouldn't have to ssh into the pi in order to boot/reboot. That said... DUDE!!!! WHOAH!!!! How freakin epic is this project!!!! Me and my son were giggling with glee the entire time we played, being able to access all the characters and levels we couldn't find/buy. Thank you SO much!!! (sent a coffee your way)

from ld-toypad-emulator.

DaPiMan avatar DaPiMan commented on May 10, 2024 2

@lapieandalpie - From your message I got tinkering and also got the RPi4B to work on my PS4 finally (see my other issue message). Like you, I want the RPI4B to auto load the application. I've done it as follows:

  1. Login as "pi" and from /home/pi run "npm install pm2 -g" to install "Process Manager 2" (https://pm2.keymetrics.io/)
  2. Change directory to /home/pi/LD-ToyPad-Emulator and run "pm2 start index.js" and the process will start

image

  1. Open the web browser and see if it's working (should be)
  2. To configure pm2 to start our application on boot run "pm2 startup" copy the sudo script line that is created and ensure you paste this as user "pi" in /home/pi to create the systemd service
  3. Finally run "pm2 save" to save the running application to auto start from the new service with pm2 ressurect
  4. Reboot. If you can open the web interface you're done :)

Some additional commands for pm2:

pm2 list - Will show the running application(s) and IDs
pm2 log ID - Will show you the logs of the running application ID (example below)

pm2 logs 0
[TAILING] Tailing last 15 lines for [0] process (change the value with --lines option)
/home/pi/.pm2/logs/index-error.log last 15 lines:
0|index | (node:1488) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
0|index | (Use node --trace-deprecation ... to show where the warning was created)

/home/pi/.pm2/logs/index-out.log last 15 lines:
0|index | REQUEST (CMD_READ): index: 2 page 26
0|index | REQUEST (CMD_MODEL): index: 2 conf: 13359372
0|index | Placing tag: 68
0|index | Placed character tag: 68
0|index | EVENT: Event { pad: '2', index: '1', dir: 0, uid: '04CDA73B659580' }
0|index | REQUEST (CMD_READ): index: 1 page 38
0|index | REQUEST (CMD_READ): index: 1 page 26
0|index | REQUEST (CMD_MODEL): index: 1 conf: 1598185597
0|index | Placing tag: 1006
0|index | Placed vehicle tag: 1006
0|index | EVENT: Event { pad: '3', index: '3', dir: 0, uid: '04FE7B16D0BC80' }
0|index | REQUEST (CMD_READ): index: 3 page 38
0|index | REQUEST (CMD_READ): index: 3 page 26
0|index | REQUEST (CMD_READ): index: 3 page 35
0|index | Server running on port 80

Hope that helps with your auto start question. As for rebooting, use pm2.io and link your new pm2 setup to that. You'll have a web interface for restarting the app :-)

image

from ld-toypad-emulator.

DaPiMan avatar DaPiMan commented on May 10, 2024 1

@cort1237 @Berny23 not sure if you have seen my pm2 setup for this, makes the setup auto start at boot

from ld-toypad-emulator.

cort1237 avatar cort1237 commented on May 10, 2024 1

I did see that and it sounds interesting. I might try it out for my personal pi.

from ld-toypad-emulator.

Berny23 avatar Berny23 commented on May 10, 2024

Thank you for the support and your infos about compatibility with the PS3!

@cort1237 recently updated the layout and added the ability to locally save changes to toy tags, as well as many other improvements.
To update the emulator, just view the "Update" section in the guide.

from ld-toypad-emulator.

Ravandragp avatar Ravandragp commented on May 10, 2024

hello i want to try it on my ps3 too but what do i have to do first if i want to play on ps3?

from ld-toypad-emulator.

the-onechiel avatar the-onechiel commented on May 10, 2024

from ld-toypad-emulator.

cort1237 avatar cort1237 commented on May 10, 2024

@Ravandragp

hello i want to try it on my ps3 too but what do i have to do first if i want to play on ps3?

You will need the game itself and then follow the Single-Board Computer (Raspberry Pi) method in the readme.

from ld-toypad-emulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.