Comments (8)
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.
@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:
- Login as "pi" and from /home/pi run "npm install pm2 -g" to install "Process Manager 2" (https://pm2.keymetrics.io/)
- Change directory to /home/pi/LD-ToyPad-Emulator and run "pm2 start index.js" and the process will start
- Open the web browser and see if it's working (should be)
- 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
- Finally run "pm2 save" to save the running application to auto start from the new service with pm2 ressurect
- 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 :-)
from ld-toypad-emulator.
@cort1237 @Berny23 not sure if you have seen my pm2 setup for this, makes the setup auto start at boot
from ld-toypad-emulator.
I did see that and it sounds interesting. I might try it out for my personal pi.
from ld-toypad-emulator.
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.
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.
from ld-toypad-emulator.
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)
- Npm install fails every time on Raspberry Pi Zero W HOT 5
- Lego Reader doesn't appear in vhui64 HOT 1
- permission denied HOT 2
- Cannot copy code HOT 1
- that was an issue related to the project HOT 2
- help after batman cutscene
- not working on cemu anymore HOT 3
- Fix code scanning alert - Inclusion of functionality from an untrusted source
- node index.js HOT 1
- I need a video HOT 6
- Offline Version For Debian v11.8.0
- node index.js step returns syntax error HOT 1
- Help!!
- Help!! HOT 17
- ERR_CONNECTION_REFUSED under http://debian/ HOT 1
- USBclient does not recognise Lego Reader 2.10 HOT 1
- Placing a figure to the left side of the red box will cause the page to break
- i installed debian to play in rpcs3 but it didn't work, i installed debian again but I get an error when installing debian
- Connecting Issue for Cemu
- RPCS3 and ToyPad emulator not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ld-toypad-emulator.