gutomaia / pyNES

Python programming for Nintendo 8 bits
BSD 3-Clause "New" or "Revised" License
1.21k stars 109 forks source link

How to run? #21

Open zii opened 9 years ago

zii commented 9 years ago

I tried an hour, it still not work~

gutomaia commented 9 years ago

Zii, I'm working in a simple tutorial and a README for early steps. Also limitations and whats comming next.

gutomaia commented 9 years ago

There is a how to run, on the basic readme file that i've just created.

zii commented 9 years ago

F:\dev\py\nes>python pynes py hello.py -o hello.nes usage: pynes [-h] [-p FILE | -a FILE | -c FILE] [-o FILE] pynes: error: unrecognized arguments: py test.py

I install pynes 0.1, it panic on my windows~

bwallace commented 9 years ago

I believe you need dashes in front of "py", like "--py", or use "-p".

However, I am stuck generating an empty output file when I attempt to compile the hello.py example.

On Sun, Sep 20, 2015 at 3:24 AM, zii notifications@github.com wrote:

F:\dev\py\nes>python pynes py hello.py -o hello.nes usage: pynes [-h] [-p FILE | -a FILE | -c FILE] [-o FILE] pynes: error: unrecognized arguments: py test.py

It panic on my windows~

— Reply to this email directly or view it on GitHub https://github.com/gutomaia/pyNES/issues/21#issuecomment-141758061.

byron

zii commented 9 years ago
G:\dev\ipc>python nes.py -p hello.py -o hello.nes
usage: pynes [-h] [-p FILE | -a FILE | -c FILE] [-o FILE]

pyNES - Python programming for Nintendo 8bits

optional arguments:
  -h, --help           show this help message and exit
  -p FILE, --py FILE   compile python
  -a FILE, --asm FILE  compile an asm file
  -c FILE, --chr FILE  import chr
  -o FILE, --out FILE  output file for compile and convert

@bwallace I got an empty nes too~

gutomaia commented 9 years ago

@bwallace add the -a (to also generate the asm file), that might help figure out what's going wrong. Also taking a second look on the tutorial, I see that I missed a step. You must have the player.chr file, that is include in the moving sprite example.

@zii, I've never instaled pyNES in windows. I still dont get what's going wrong.

I've create a chat room in the gitter.im. I think that would be a better place for us to chat. Please, fell free to join!

https://gitter.im/gutomaia/pyNES

jmgaya commented 8 years ago

@zii @bwallace Follow those steps: