Comments (13)
Went ahead and cleaned up the current state of my build and published it. I dunno when I'll have time to really tinker at getting it polished. But I don't like sitting on these features when people could be using them. Check the version notes for details on what's added.
from ld-toypad-emulator.
I've figured it out, turns out RPI4B is working perfectly on PS4 emulating the toypad as follows:
! Ensure you have the latest RPI4 eeprom update installed for the USB OTG support and cooler running ! Use "sudo rpi-eeprom-update" to check.
- Connect RPi4B USB-C to PS4 via USB-C to USB-A cable (PS4 can power the RPI4B without issue)
- SSH and start "node index.js"
- Open Web Interface and attach one character
- Now open the Lego Dimensions game on the PS4 - Loading the game before steps 1-3 results in my issues mentioned above.
- On the console as the game loads you will see it request info from the emulated ToyPad
REQUEST (CMD_WAKE)
REQUEST (CMD_SEED): seed: 1543618439 conf 3369739285
EVENT: Event { pad: '2', index: '5', dir: 0, uid: '04EEFC6E43EF80' }
REQUEST (CMD_CHAL): conf: 980878415
REQUEST (CMD_READ): index: 5 page 38
REQUEST (CMD_READ): index: 5 page 26
REQUEST (CMD_MODEL): index: 5 conf: 1360909483
- Load your save or start a new game and the character you placed will pop onto the screen!
The only issue I have is I cannot drag and drop the characters/vehicles when accessing the web interface on my android phone or tablet using chrome. You just cannot move the icons? I have to use my real PC for this process.. So that is my only outstanding bug :)
Thank you for a great project Berny23 and look forward to the updates that come along!
from ld-toypad-emulator.
I'm glad you worked out the solution for your problem!
@cort1237 is already working on an improved frontend for the emulator, as far as I know. So, in some time mobile phones will probably be supported again.
from ld-toypad-emulator.
Yeah I am still working on it. I'm just swamped with school atm. In my build I have some color effects working (however they're slightly off color) and touch inputs working. So expect those in the next update.
from ld-toypad-emulator.
@cort1237 my kids now have a tablet in front of them switching and swapping characters - it's awesome!
from ld-toypad-emulator.
Yeah it's really just cosmetic. Trying to figure out the mobile layout was the main hold up. I really have no idea experience with mobile web design, so it takes time haha. But it is functional as is so I'm glad to get it out there.
I got the page to center and fit mobile screens without the need to pinch and zoom it in. I've tried to commit the change but never done this before.. so not sure if it worked?
What I changed and tried to commit is in attached changes.txt file the server/index.html file.
Feel free to test and add it if you desire.
from ld-toypad-emulator.
Nice. I threw it on mine and looks much better on mobile. I pushed those changes onto the repo.
For future reference on github and how it works for collaborating on others repos. To suggest a change you make a fork of the repo with this button, which basically makes a copy who the whole thing that you control.
You make whatever changes you want to in your fork and if you want to suggest those changes to the original repo owner, you make a "pull request" which basically means "I think you should merge my changes into your repo". Which they can then approve or deny on their end.
from ld-toypad-emulator.
Did a little more testing and the RPi4B shows as "LEGO READER 2.10" but if I refresh my USB list it changes name to "Port_#8.Hub_#3" in Windows. On the PS4 to get the RPi4B to work in LD and show the characters I have to attach the original toypad when asked for it on screen in the first USB slot to the left with the RPi4B powered on from the main menu before loading the game. Once I remove the original pad the RPi4B works and the characters will pop up that I select from the web interface.
I assume this is because the RPi4B might be doing whats happening on my PC and the name changes? I'm not too familiar with programming but i'll try and tinker a little to see if I can figure it out. Great work!! kids are loving this as I have a few of these sets but damned if we can find the little bases :(
from ld-toypad-emulator.
Awesome! Look forward to the update. I've been tinkering with draganddrop.js but not having much luck as I'm not sure if it works with socket.io
from ld-toypad-emulator.
@cort1237 Thanks for the update! working great with drag and drop on the mobile device now. The changing colours on the toypad is a great touch as well :)
The only issue I see is cosmetic on the mobile and that is the boxes are aligned left and not centred like the browser on the PC.
from ld-toypad-emulator.
Yeah it's really just cosmetic. Trying to figure out the mobile layout was the main hold up. I really have no idea experience with mobile web design, so it takes time haha. But it is functional as is so I'm glad to get it out there.
from ld-toypad-emulator.
Thanks for the tip! I'll do that.
from ld-toypad-emulator.
Original issues are closed :-)
from ld-toypad-emulator.
Related Issues (20)
- 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 3
- Missing Characters HOT 1
- refusal to connect
- Unable to get past "npm install" step
- How do i get the "LD-ToyPad-Emulator" to work on wiiu? HOT 2
- The pi zero 2 w seems to not be able to connect through usb to a PlayStation 5 HOT 6
- Package 'python' has no installation candidate?
- nsyshid::DeviceLibusb::open(): failed to open device;
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.