Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run? #21

Open
zii opened this issue Sep 18, 2015 · 7 comments
Open

How to run? #21

zii opened this issue Sep 18, 2015 · 7 comments

Comments

@zii
Copy link

zii commented Sep 18, 2015

I tried an hour, it still not work~

@gutomaia
Copy link
Owner

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

@gutomaia
Copy link
Owner

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

@zii
Copy link
Author

zii commented Sep 20, 2015

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
Copy link

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
#21 (comment).

byron

@zii
Copy link
Author

zii commented Sep 21, 2015

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
Copy link
Owner

@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
Copy link

jmgaya commented Oct 6, 2015

@zii @bwallace Follow those steps:

  • Clone the github repo (IMPORTANT, don't install it using pip!!!)
  • cd pyNES and execute sudo python setup.py install
  • Copy the required .chr (all of them inside the fixtures directory) into the examples folder
  • Execute pynes py helloworld.py -o helloworld.nes inside the examples folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants