Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Koen

Pages: [1] 2 3 ... 26
1
Other Software / Re: Python IDE recommendations?
« on: December 13, 2016, 10:32:57 AM »
I have decided to switch to PyCharm: https://www.jetbrains.com/pycharm/

Although WingIDE was still great, its development seemed stagnant and falling behind PyCharm's.

PyCharm has a much bigger team behind it and has a more dynamic and modern UI. It has great automatic code inspection & automatic fixing. Version control integration is miles ahead of Wing. In all respects if feels like this IDE is trying to help you write the best possible code.
The only thing I don't like about PyCharm so far is you can't switch between various open windows/projects if you have a popup open.

The free PyCharm Community Edition is great for P-ROC development, the only thing that would be nice to have that's in the Professional Edition is the Python Profiler but that just interprets cProfile results anyway.

Here's a podcast episode about PyCharm. I do enjoy the other episodes of this podcast as well btw.
https://talkpython.fm/episodes/show/36/python-ides-with-the-pycharm-team

2
Suggestions / Re: Wiki viewing issues
« on: December 23, 2015, 06:42:21 AM »
I just had to go through the Internet Wayback machine to save my ass (to read the build instructions many have contributed to):
https://web.archive.org/web/20150504222309/http://pinballcontrollers.com/wiki/Windows_build_instructions

If possible this wiki should be brought back to live since it contains very useful information and many links to it are scattered across this forum.

3
Other Hardware / Re: "Real" Color DMD?
« on: October 21, 2015, 06:17:42 AM »
Didn't get to sort out the Bride animations, but Brian and Gabe were running some video (Demolition Man?) in their attract mode, and it looked great. I would have been all over this a few years ago, but now I'm too invested in normal color displays. Still some interesting uses though, as some machines just don't have the room for an lcd display (SEGA Showcase cabinets, Cirqus Voltaire, and probably others).

4
Other Hardware / Re: "Real" Color DMD?
« on: October 11, 2015, 09:22:53 AM »
Very cool stuff guys, would love to see a demo of this at Expo  :) (and can I provide some 128x32 images from BoP2.0 just to see what they would look like?)

5
User Projects / Re: Bride of Pinbot 2.0
« on: August 07, 2015, 10:24:15 AM »
It has taken way longer than anticipated but we are proud of the end result. The games' rules are completely implemented.

Here's a video:


And a reminder of how it all started in 2010 ;D:


- Koen

6
Looking great! Like the display and your use of it so far  ;D

7
Other Software / Re: Python IDE recommendations?
« on: April 21, 2015, 03:38:58 AM »
Nice video on WingIDE showcasing some of the more advanced features: https://www.youtube.com/watch?v=-iYBkft39KM

8
pyprocgame / Re: Sound Delay Issue
« on: April 20, 2015, 06:04:03 PM »
I think I cranked the channels up because I had a stacking spinner sound.. but right now I changed it to cut itself off so 32 is overkill indeed...

9
pyprocgame / Re: Sound Delay Issue
« on: April 20, 2015, 10:59:34 AM »
Here is what I have . . .
Code: [Select]
mixer.pre_init(frequency=44100, size=-16, channels=8, buffer=256)
mixer.init()

Hey Rosh,

The "channels" argument is kinda funny & confusing I must admit... but the pygame docs say:
The channels argument is used to specify whether to use mono or stereo. 1 for mono and 2 for stereo. No other values are supported (negative values are treated as 1, values greater than 2 as 2).

So I think what you need is:

Code: [Select]
mixer.pre_init(frequency=44100, size=-16, channels=2, buffer=256)
mixer.init()
mixer.set_num_channels(8) # Or increase this number if needed.

Once again the pygame docs and naming conventions are not perfect... I had to do a double take too. Also I don't really see the benefit the use of pre_init() if you're going to call init() right after that, but the docs say "The best way to set custom mixer playback values is to call pygame.mixer.pre_init() before calling the top level pygame.init()." so I guess there's something to it.

Anyway, my mixer settings / initialization looks like this:
Code: [Select]
mixer.init(frequency=44100, size=16, channels=2, buffer=2048)
mixer.set_num_channels(32)

10
I think this is the fix you're looking for:
https://github.com/preble/libpinproc/commit/5aba1a5c8b6ba36f093f0837e2851a546fa4233d

It's in the dev branch of libpinproc; so to use it you'll have to build libpinproc and pypinproc (if you're using pyprocgame).

11
pyprocgame / Re: pyprocgame on Windows 7 with python2.7?
« on: February 06, 2015, 03:19:51 AM »
No problems here with Python 2.7 on Windows 7 & 8.1.

What install is giving you problems? Make sure to install everything as administrator (pygame, yaml etc).

12
pyprocgame / Re: Lamp schedule timings for chase lamps
« on: January 30, 2015, 06:03:16 AM »
Hey Frank,

you can also skip the whole hex notation and go straight binary to keep the pattern visible:

self.game.lamps.l36.schedule(0b11111111000000001111111100000000)
self.game.lamps.l23.schedule(0b00001111111100000000111111110000)
self.game.lamps.l22.schedule(0b00000000111111110000000011111111)
self.game.lamps.l5.schedule(0b00000000000011111111000000001111)
self.game.lamps.l6.schedule(0b00000000000000001111111100000000)
self.game.lamps.l7.schedule(0b00000000000000000000111111110000)
self.game.lamps.l8.schedule(0b00000000000000000000000011111111)
self.game.lamps.l9.schedule(0b00000000000000000000000000001111)

notice the "b" replacing the "x" there.

In the end we are just sending a number to the schedule function, it doesn't matter if we write that number as binary, hex, int etc.

Koen

13
Other Software / Re: Python IDE recommendations?
« on: December 29, 2014, 03:45:41 PM »
Still using Wing IDE here and very happy with it. But not afraid to change if something better comes around, so always interested to hear what others are using.
I'm a big fan of (context aware) autocompletion which is kind of hard in Python, but Wing IDE does that pretty well, and the debugging options (conditional break points, inspection, stepping through) are pretty much essential.

Maybe I should try Sublime Text with some additional packages and see how that stacks up against Wing.

14
User Projects / Re: Big Lebowski Pinball from Dutch Pinball. Using P-ROC?
« on: October 05, 2014, 06:50:54 AM »
Thanks Brian!

Of course we are using P3-ROC. Everybody is surprised how fast we arrived at the current prototypes and this would not have been possible (with our budget & team) without utilizing Gerry's board set.

15
You should probably do it yourself since you seem to have a very strict "max number of characters on each line" convention that I don't want anything to do with ;)

Pages: [1] 2 3 ... 26