Cocos2D to EXE

199 views
Skip to first unread message

Jason

unread,
May 25, 2012, 2:56:42 AM5/25/12
to cocos2d discuss
Hello everyone,

I did a few little games in pygame, and used a pretty nifty python
script hosted on the pygame site called pygame to exe, which inherited
from python to exe and dealt with all of the hassle of converting a
python program to a windows executable.

Is there a comparable thing for Cocos2D? Or do I have to refigure out
how python2Exe works (I remember it being a little problematic).

Cheers,

Jason

Peter Enerccio

unread,
May 25, 2012, 4:02:01 AM5/25/12
to cocos-...@googlegroups.com
Pyinstaller.

2012/5/25 Jason <theni...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "cocos2d discuss" group.
To post to this group, send email to cocos-...@googlegroups.com.
To unsubscribe from this group, send email to cocos-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.




--
Bc. Peter Vaňušanik
http://www.bishojo.tk

Jason

unread,
Jun 28, 2012, 4:00:01 PM6/28/12
to cocos-...@googlegroups.com
Py2Exe seemed to work better for me. PyInstaller crapped out for a reason I couldn't figure out.

At the end of the process I got all the various files that makes a cocos2D windows install. I ran the exe on my machine (Windows XP), worked fine. I zipped it up and tried it on another PC (Windows 7) and it boots up, runs, there's even the debug messages printing to console, but the screen is just black.

Is this a common error with a common solution? Or do I just need to dig through the internet and figure it out?

Thanks in advance!
J


On Friday, 25 May 2012 01:02:01 UTC-7, Enerccio wrote:
Pyinstaller.

2012/5/25 Jason <theni...@gmail.com>
Hello everyone,

I did a few little games in pygame, and used a pretty nifty python
script hosted on the pygame site called pygame to exe, which inherited
from python to exe and dealt with all of the hassle of converting a
python program to a windows executable.

Is there a comparable thing for Cocos2D? Or do I have to refigure out
how python2Exe works (I remember it being a little problematic).

Cheers,

Jason

--
You received this message because you are subscribed to the Google Groups "cocos2d discuss" group.
To post to this group, send email to cocos-...@googlegroups.com.
To unsubscribe from this group, send email to cocos-discuss+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.

claudio canepa

unread,
Jun 28, 2012, 4:44:09 PM6/28/12
to cocos-...@googlegroups.com
On Thu, Jun 28, 2012 at 5:00 PM, Jason <theni...@gmail.com> wrote:
Py2Exe seemed to work better for me. PyInstaller crapped out for a reason I couldn't figure out.

At the end of the process I got all the various files that makes a cocos2D windows install. I ran the exe on my machine (Windows XP), worked fine. I zipped it up and tried it on another PC (Windows 7) and it boots up, runs, there's even the debug messages printing to console, but the screen is just black.

Is this a common error with a common solution? Or do I just need to dig through the internet and figure it out?

Thanks in advance!
J


Some pyweeks ago someone packed a cocos game with gui2exe + py2exe, the only problem was related to particles (root cause fixed in trunk now).

For your case, my primary suspiction will go to problems with video drivers. See

Another possibility : the win7 is 64bits ? pyglet 1.2dev default has received some patches to work in win 64, but being not released has seen little of real world testing.

--

Jason

unread,
Jun 28, 2012, 4:54:38 PM6/28/12
to cocos-...@googlegroups.com
Here are some more interesting data points. Works on my friends Windows 7 64bit AND on my coworker's Windows 7 64bit. I think your primary suspicion about graphics drivers is correct. I'm going to upgrade the drivers on this box and see what happens.

Thanks!

J
Reply all
Reply to author
Forward
0 new messages