Code Monkey home page Code Monkey logo

Comments (9)

adangert avatar adangert commented on May 24, 2024

Thanks for this! I'll test and fix this soon!

from joustmania.

mchirlin avatar mchirlin commented on May 24, 2024

I am making updates on my fork, how best do you like to collaborate on things like this? The updates I am making initially are:

  • Adding in a bunch of commenting so I can better understand what's going on (just for my own understand so I know what to work on)
  • Fixing the issue with controllers being dead/alive when charging from above, this required a bit of refactoring.
  • Adding a few more things to the webui showing active controllers and ready (trigger-pressed controllers) controllers
  • Adding a "Game over" sound effect after Joust ends and playing the "And the winner is X team". I don't have a good way of recreating these audio files to just say "And the winner is Green" instead of "And the winner is Green Team". How did these get created initially?
  • Using logging instead of print(

from joustmania.

adangert avatar adangert commented on May 24, 2024

Hey! Thanks for helping out! You can make a pull request and I'll test it before merging.

from joustmania.

mchirlin avatar mchirlin commented on May 24, 2024

I have really hefty update I've been making over the last 2 weeks to refactor all of the games to reuse code and just generally make everything more consistent, e.g. move to enums instead of magic numbers. I still have a couple games left to do (Tournament and Ninja Bomb)

I'll create a PR so you can take a look. Let me know your thoughts.

from joustmania.

adangert avatar adangert commented on May 24, 2024

That sounds great! I'll take a look at it an let you know!

from joustmania.

adangert avatar adangert commented on May 24, 2024

hi @mchirlin I finished fixing a few of the bugs for Joustmania (PS3 controller pairing/pi 5 issues), and have started to look at the work you've done!
I've been trying to reproduce the same issue not being able to start the game with a controller plugged in on the master branch. Currently I've tried plugging in one directly to the pi, that controller light goes out, then pressed the trigger button on all of the rest of the remaining controllers, the game (FFA) seems to start, and it prints out in the console:

we are removing controller: 00:06:f7:8f:fa:3c
we are removing controller: 00:06:f7:8f:fa:3c

which seems to be the Mac address of the controller plugged in, and the game seems to start without issues, I can't seem to trigger the same issue on my end, I've tried with both PS3/PS4 controllers, one and two plugged in and charging. Is there a specific way that you plugged in a controller (to the pi itself/a different charging solution), or something else I might have missed, perhaps in the solution you worked on?

Just curious and trying to understand the root cause of the issue. Thanks for putting in the time for this!

from joustmania.

mchirlin avatar mchirlin commented on May 24, 2024

from joustmania.

adangert avatar adangert commented on May 24, 2024

yeah I seem to have been able to replicate the issue,
Without syncing a controller to joustmania and plugging it in via USB (so that it shouldn't be apart of the game)
Then trying to start a game, triggers the error.
I think there was some problem that when a controller was plugged in, it recognised it in some way as apart of Joust.
Also verified this was fixed in the PR! I'm checking out the rest of the code now

from joustmania.

adangert avatar adangert commented on May 24, 2024

Fixed from #317

from joustmania.

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.