GithubHelp home page GithubHelp logo

Comments (13)

cort1237 avatar cort1237 commented on July 28, 2024 2

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.

DaPiMan avatar DaPiMan commented on July 28, 2024 1

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.

  1. Connect RPi4B USB-C to PS4 via USB-C to USB-A cable (PS4 can power the RPI4B without issue)
  2. SSH and start "node index.js"
  3. Open Web Interface and attach one character
  4. Now open the Lego Dimensions game on the PS4 - Loading the game before steps 1-3 results in my issues mentioned above.
  5. 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

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

Berny23 avatar Berny23 commented on July 28, 2024 1

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.

cort1237 avatar cort1237 commented on July 28, 2024 1

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.

DaPiMan avatar DaPiMan commented on July 28, 2024 1

@cort1237 my kids now have a tablet in front of them switching and swapping characters - it's awesome!

from ld-toypad-emulator.

DaPiMan avatar DaPiMan commented on July 28, 2024 1

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.

Hey @cort1237 and @Berny23

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.

changes.txt

from ld-toypad-emulator.

cort1237 avatar cort1237 commented on July 28, 2024 1

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.

image

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.

DaPiMan avatar DaPiMan commented on July 28, 2024

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.

DaPiMan avatar DaPiMan commented on July 28, 2024

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.

DaPiMan avatar DaPiMan commented on July 28, 2024

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

cort1237 avatar cort1237 commented on July 28, 2024

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.

DaPiMan avatar DaPiMan commented on July 28, 2024

Thanks for the tip! I'll do that.

from ld-toypad-emulator.

DaPiMan avatar DaPiMan commented on July 28, 2024

Original issues are closed :-)

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.