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

Confirm it works great on ps3 #10

Closed
lapieandalpie opened this issue Oct 3, 2021 · 8 comments
Closed

Confirm it works great on ps3 #10

lapieandalpie opened this issue Oct 3, 2021 · 8 comments
Labels
documentation Improvements or additions to documentation

Comments

@lapieandalpie
Copy link

We were about to mothball our ps3 when we found this project. Got it running on a pi 4B and hooked to our old first generation ps3.

@lapieandalpie
Copy link
Author

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)

@Berny23
Copy link
Owner

Berny23 commented Oct 3, 2021

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.

@DaPiMan
Copy link
Contributor

DaPiMan commented Oct 25, 2021

@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

@DaPiMan
Copy link
Contributor

DaPiMan commented Oct 27, 2021

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

@cort1237
Copy link
Collaborator

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

@Berny23 Berny23 closed this as completed Nov 6, 2021
@Berny23 Berny23 added the documentation Improvements or additions to documentation label Nov 6, 2021
@Ravandragp
Copy link

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?

@the-onechiel
Copy link

the-onechiel commented Dec 17, 2023 via email

@cort1237
Copy link
Collaborator

@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.

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

No branches or pull requests

6 participants