Giter Site home page Giter Site logo

missionpinball / mpf-examples Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 14.0 44.56 MB

Mission Pinball Framework Examples (sample games, demos, and tutorial files)

Home Page: http://missionpinball.org

License: MIT License

Python 98.46% Makefile 1.09% GDScript 0.44%
examples mission-pinball-framework mpf

mpf-examples's Introduction

missionpinball

Organizational repo for Mission Pinball. Holds the discussions, the overall readme docs, etc.

mpf-examples's People

Contributors

avanwinkle avatar founfabug avatar jabdoa2 avatar jankantert avatar joakr avatar kylenahas avatar mattkemp avatar qcapen avatar toomanybrians avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpf-examples's Issues

[demo_man] highscore traceback - 'NoneType' object has no attribute 'player_list'

'NoneType' object has no attribute 'player_list'
Traceback (most recent call last):
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/commands/game.py", line 220, in __init__
    MachineController(mpf_path, machine_path, vars(self.args)).run()
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/core/machine.py", line 709, in run
    self._run_loop()
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/core/machine.py", line 769, in _run_loop
    raise self._exception['exception']
  File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/core/async_mode.py", line 39, in _done
    future.result()
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/modes/high_score/code/high_score.py", line 127, in _run
    if not self.machine.game.player_list:
AttributeError: 'NoneType' object has no attribute 'player_list'
'NoneType' object has no attribute 'player_list'
Traceback (most recent call last):
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/commands/game.py", line 220, in __init__
    MachineController(mpf_path, machine_path, vars(self.args)).run()
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/core/machine.py", line 709, in run
    self._run_loop()
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/core/machine.py", line 769, in _run_loop
    raise self._exception['exception']
  File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/core/async_mode.py", line 39, in _done
    future.result()
  File "/home/arthur/.virtualenvs/mpf/lib/python3.6/site-packages/mpf/modes/high_score/code/high_score.py", line 127, in _run
    if not self.machine.game.player_list:
AttributeError: 'NoneType' object has no attribute 'player_list'

[demo_man] upgrade to mpf version 0.53.x

Exception in callback EventManager._done(<Task finishe... not found',)>)
handle: <Handle EventManager._done(<Task finishe... not found',)>)>
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/arthur/local/mpf/mpf/mpf/core/events.py", line 691, in _done
    future.result()
  File "/home/arthur/local/mpf/mpf/mpf/core/events.py", line 608, in _run_handlers_sequential
    handler.callback(queue=queue, **merged_kwargs)
  File "/home/arthur/local/mpf/mpf/mpf/core/mode.py", line 212, in start
    **item.kwargs)
  File "/home/arthur/local/mpf/mpf/mpf/core/config_player.py", line 203, in mode_start
    event_keys = self.register_player_events(config, mode, priority)
  File "/home/arthur/local/mpf/mpf/mpf/config_players/plugin_player.py", line 57, in register_player_events
    self.bcp_client = self._get_bcp_client(config)
  File "/home/arthur/local/mpf/mpf/mpf/config_players/plugin_player.py", line 34, in _get_bcp_client
    "bcp connection {} not found".format(client_name))
AssertionError: bcp connection local_display not found
Shutdown because of an exception:
Runtime Exception
Traceback (most recent call last):
  File "/home/arthur/local/mpf/mpf/mpf/core/events.py", line 658, in _run_handlers
    result = handler.callback(**merged_kwargs)
  File "/home/arthur/local/mpf/mpf/mpf/core/text_ui.py", line 311, in _update_player
    player_vars.pop('ball')
KeyError: 'ball'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/arthur/local/mpf/mpf/mpf/core/machine.py", line 757, in _run_loop
    raise self._exception['exception']
  File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/arthur/local/mpf/mpf/mpf/core/events.py", line 739, in process_event_queue
    **event[3])
  File "/home/arthur/local/mpf/mpf/mpf/core/events.py", line 704, in _process_event
    result = self._run_handlers(event, ev_type, kwargs)
  File "/home/arthur/local/mpf/mpf/mpf/core/events.py", line 660, in _run_handlers
    raise Exception("Exception while processing {} for event {}".format(handler, event)) from e
Exception: Exception while processing RegisteredHandler(callback=<bound method TextUi._update_player of <mpf.core.text_ui.TextUi object at 0x7f2257f0c708>>, priority=1, kwargs={}, key=UUID('c7d51e4c-6f59-4605-b401-7fdf961cdf24'), condition=None, blocking_facility=None) for event player_number
MPF run loop ended.

When trying to start demo_man on version 0.53.0

pip list | grep mpf
mpf              0.53.0.dev59 /home/arthur/local/mpf/mpf        
mpf-mc           0.53.0.dev10 /home/arthur/local/mpf/mpf-mc     
mpf-monitor      0.53.0.dev1  /home/arthur/local/mpf/mpf-monitor

mc_demo crashes

Hi, I'm having some trouble running the example projects. In particular the mc_demo crashes, which I thought is already a v0.30 compatible project (correct me if I'm wrong)

My current installation is from pip install:
mpf-mc: 0.30.0.dev902

I get this error when running:
mpf mc ./mc_demo/

INFO : kivy : Base: Start application main loop
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/home/michael/anaconda3/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/home/michael/anaconda3/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/michael/anaconda3/lib/python3.5/site-packages/kivy/input/providers/mtdev.py", line 219, in _thread_run
    _device = Device(_fn)
  File "/home/michael/anaconda3/lib/python3.5/site-packages/kivy/lib/mtdev.py", line 131, in __init__
    self._fd = os.open(filename, os.O_NONBLOCK | os.O_RDONLY)
PermissionError: [Errno 13] Permission denied: '/dev/input/event6'

INFO : kivy : Base: Leaving application in progress...
Traceback (most recent call last):
  File "/home/michael/anaconda3/lib/python3.5/site-packages/mpfmc/config_collections/widget.py", line 63, in process_widget
    config['_widget_cls'] = Widget.type_map[config['type']]
  File "/home/michael/anaconda3/lib/python3.5/site-packages/mpf/core/case_insensitive_dict.py", line 14, in __getitem__
    return super().__getitem__(self.__class__.lower(key))
KeyError: 'rise_in'

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.