nan-aarrgh? Should it do anything?

I get an intro screen with a big fly and some music, but nothing further.

(log in to comment)

Comments

The 1st time I ran it, I got the same. There is another message thread that says 'run it twice!'

The 2nd time I ran it, I got as far as the actual game, but I couldn't do anything except move the mouse cursor around. Couldn't see anything I was able to control or click on. :-(

Whenever I run it now, it does nothing when I click 'play' on the level selection menu. (it stays at this menu, and I'm still able to choose anotyher level or go back. Selecting 'play' doesn't hang, it just doesn't start the game)

WindowsXP sp3 32 bit, Python2.7, Pyglet 1.1.4.
It requires PIL, too. Seems to work ok now.
Aarghh! fell into dependency hell again. Sorry about that.

tartley: i think the problem you are having is caused by use not packaging the art inside the cocos/resources directory. :(

Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 295, in 'calling callback function'
  File "pyglet\window\win32\__init__.pyo", line 849, in _wnd_proc
  File "pyglet\window\win32\__init__.pyo", line 998, in _event_mousemove
  File "pyglet\window\__init__.pyo", line 1219, in dispatch_event
  File "pyglet\event.pyo", line 340, in dispatch_event
  File "mouse.pyo", line 105, in on_mouse_motion
  File "cocos\draw.pyo", line 417, in __init__
  File "cocos\draw.pyo", line 193, in __init__
  File "pyglet\resource.pyo", line 492, in image
  File "pyglet\resource.pyo", line 436, in _alloc_image
  File "pyglet\resource.pyo", line 394, in file
pyglet.resource.ResourceNotFoundException: Resource "draw_texture.png" was not found on the path.  Ensure that the filename has the correct captialisation.



I just tested the win32 on a friends machine (i had to copy fire.png to draw_texture.png in the root folder)

Epic fail.
I'm experiencing the same thing than gcewing and tartley are reporting. I'm able to start a level, but all I can do is to move the fly mouse cursor. Any instructions please?
have you tried copying the fire.png to draw_texture.png?
I'm not from the team, but interested in the problem posted by alia I made some experiments:

1.If you use the win32 download, the second time you enter to the game you get to the game, but you can only move the litle fly mouse cursor. Going out of the game I see a notification pointing to a log for error; there I see a traceback like posted by alia

Following alia hint, In the top gamedir I copy the file 'fire.png'  , renamed to 'draw_texture.png'
With that the game begins, you move the mouse to attract and guide a dragonfly (libelula). 
To win the level, you must catch an object and go to the exit. That moves you to the initial menu; click over the level name and then over play , that worked for me.


2. If you use the source version, you may get other error related to font and resource, you can workaround commenting out, in the file data.py, the line

font.add_directory(os.path.join(path, "fonts"))

In the workaround 1 you don't see a colored trail visible in 2
In 2 you miss some text spelled by some characters in game, but think I it is not crucial.
@alia : what you used to pack as exe ?
When using py2exe usually I get a bunch of files, and the libraries in a zip.
I ask because I want to look that cocos supports both delivery styles.
@ claxo: I used py2exe through GUI2Exe (http://code.google.com/p/gui2exe/) I think it would work if I added cocos' resource directory to my data files include path.

If I get some time in the next few days I'll test it out.  
Okay, running it twice did the trick.

Seems to be overtaxing my machine a bit, though, which a game of this simplicity shouldn't really be doing.
Hey,

Also, in src\tile_layer.py, the 'import psyco' line is spelled wrong - there is no 'h' in 'psyco', so it always fails to use psycho.

Hey.
So I fixed all of the above. Just for the record in case the authors want to know, now I get the following when I select 'Play' on the level selection screen:
(with Python2.6 32bit on WindowsXP)

> python -O run_game.py
False
Imported numpy!
Imported PIL!
Imported psyco!
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 295, in 'calling callback function'
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\window\win32\__init__.py", line 849, in _wnd_proc
    result = event_handler(msg, wParam, lParam)
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\window\win32\__init__.py", line 918, in _event_key
    self.dispatch_event(ev, symbol, modifiers)
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\window\__init__.py", line 1219, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\event.py", line 340, in dispatch_event
    if handler(*args):
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\cocos\menu.py", line 307, in on_key_press
    self._activate_item()
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\cocos\menu.py", line 248, in _activate_item
    self.children[ self.selected_index ][1].on_key_press( key.ENTER, 0 )
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\cocos\menu.py", line 443, in on_key_press
    self.callback_func(*self.callback_args, **self.callback_kwargs)
  File "src\menu_game_ready.py", line 64, in on_play
    director.push(Scene (game.run(self.levels[self.levels.keys()[self.level_choice]])))
  File "src\game.py", line 162, in run
    return Game(level)
  File "src\game.py", line 44, in __init__
    self.hud = Hud(self)
  File "src\hud.py", line 30, in __init__
    anchor_x='center', anchor_y='center')
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\cocos\text.py", line 60, in __init__
    self.create_element()
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\cocos\text.py", line 63, in create_element
    self.element = self.klass(group=self.group, batch=self.batch, **self.kwargs)
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\__init__.py", line 433, in __init__
    multiline, dpi, batch, group)
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\__init__.py", line 257, in __init__
    dpi=dpi, batch=batch, group=group)
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\layout.py", line 780, in __init__
    self.document = document
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\layout.py", line 857, in _set_document
    self._init_document()
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\layout.py", line 960, in _init_document
    self._update()
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\layout.py", line 894, in _update
    lines = self._get_lines()
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\layout.py", line 870, in _get_lines
    glyphs = self._get_glyphs()
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\layout.py", line 995, in _get_glyphs
    for start, end, (font, element) in runs.ranges(0, len(text)):
  File "F:\Documents and Settings\jhartley\Desktop\pyweek11\nan_aarggh_pyweek11-final-source\pyglet\text\runlist.py", line 390, in ranges
    starts, ends, values = zip(*[i.next() for i in iterators])
ValueError: generator already executing
^ thats why psyco was mispelled ! (and comented out in other module) :-)
Ah. I see. Oops! :-)