Avidus buggy?

Anyone got Avidus to work properly? As soon as I start to move, the whole playing area except for the goo goes black and I can't see what's happening.

(log in to comment)

Comments

Hmm, that's odd.  I've tested it on Linux and Windows, what OS are you running? Also, I've noticed that it runs slow-ish on an Intel Core2 6400 (2.13 GHz).  If you are running it on anything slower it may not work correctly.

If you run it from a shell, do you see any error messages? Check to see if the assets directory has 75 items totaling 12.6 MB.  IF you are still having trouble, I can send you a debug build with lots of console logging.
MacOSX 10.6.8, Python 2.7, PyGame 1.9.1, Quad Core Intel Xeon 2.8GHz, 3GB RAM, ATI Radeon HD 5770.

There are no error messages when the black screen happens, but I've just noticed that if I click on any of the spell icons, I get this:

Traceback (most recent call last):
  File "avidus.py", line 67, in <module>
    main()
  File "avidus.py", line 48, in main
    playing, stats = game.main(screen, effects, speed, level)
  File "/Local/Games/PyWeek16/avidus_0.70 final/game.py", line 205, in main
    hud.followers -= POWERS[action].cost
NameError: global name 'POWERS' is not defined

and the game hangs.

As near as I can tell, the assets directory contains 67 files totalling about 25MB.

% find assets -type f
assets/banner.png
assets/banner_cloth.png
assets/buttons/btn_bomb.png
assets/buttons/btn_ghost.png
assets/buttons/btn_poison.png
assets/buttons/btn_turbo.png
assets/cloth.png
assets/fire/sun1.png
assets/fire/sun2.png
assets/fire/sun3.png
assets/fire/sun4.png
assets/fire/sun5.png
assets/fire/sun6.png
assets/flare.png
assets/instructions/intro.png
assets/instructions/screen_1.png
assets/instructions/screen_2.png
assets/instructions/screen_3.png
assets/obstructions/bush1.png
assets/obstructions/bush2.png
assets/obstructions/bush3.png
assets/obstructions/post1.png
assets/obstructions/post2.png
assets/obstructions/post3.png
assets/obstructions/post4.png
assets/obstructions/post5.png
assets/obstructions/rock1.png
assets/obstructions/rock2.png
assets/obstructions/totem.png
assets/raw/FENCDAM.bmp
assets/raw/FENCE.bmp
assets/raw/game.png
assets/raw/head-30325.svg
assets/raw/license.txt
assets/raw/noun_project_1214.svg
assets/raw/noun_project_246.svg
assets/raw/phillips-26349.svg
assets/raw/red-30106.svg
assets/raw/red-36269.svg
assets/raw/Sun1.bmp
assets/raw/Sun1b.bmp
assets/raw/Sun2.bmp
assets/raw/Totem 2 S.png
assets/raw/TREE.GIF
assets/raw/trees2 tileset.bmp
assets/sand.png
assets/sound/128918__ecfike__click.ogg
assets/sound/133901__audionautics__lava-loop.ogg
assets/sound/15488__djgriffin__tibetan-chant-4-colargol-2.ogg
assets/sound/161984__robinhood76__03599-majestic-foreboding-fanfare.ogg
assets/sound/165532__stephensaldanha__srs-foley-horse-galloping.ogg
assets/sound/169975__klankbeeld__horror-ghost-22.ogg
assets/sound/419636_Symphony_No._13_Op_22k_loop.ogg
assets/sound/48048__mattbronka__fort.ogg
assets/sound/523649_Dreams-of-Splendor.ogg
assets/sound/boom.ogg
assets/sound/poison.ogg
assets/svg/base.svg
assets/svg/buttons.svg
assets/svg/cloth.svg
assets/svg/hud.svg
assets/svg/intro.svg
assets/svg/sand.svg
assets/svg/screen_1.svg
assets/svg/screen_2.svg
assets/svg/screen_3.svg
assets/svg/screen_base.svg

% find assets -type f | wc -l
      67

% du assets
32    assets/buttons
48    assets/fire
1488    assets/instructions
136    assets/obstructions
8528    assets/raw
11896    assets/sound
2856    assets/svg
26048    assets

Yup, that's a bug.  Line 205 should read:
hud.followers -= config.POWERS[action].cost

I never encountered it because I never actually clicked on the icons.  You can either use the keyboard shortcuts (1,2, 3, and 4) or patch that line.  However, in the spirit of judging, if you do change that line, judge it based on my code having a (glaring) bug.

This doesn't solve the black screen of nothing you are facing, however.  I don't have access to a non-Windows machine tonight but I'll do a du tomorrow.  In the mean time, what version of numpy and scipy do you have?

Sorry for all the trouble.
numpy 1.5.0
scipy 0.12.0
scipy is a real pain to install with pip because of the dependencies (in Linux at least). I tried with the version packaged in my distro and it did just work (scipy 0.10.1 if I recall correctly).
Yeah, the dependencies in Linux are annoying to say the least.  That said, I just tested it with 0.9.0 on a Ubuntu machine at my secret Linux test lab (read: work) and it runs fine if a little slowly due to the age of the machine.  I'm glad to hear someone else got the game running.  I've been paranoid for days now that no one else would be able to run it so I've installed it on every machine I have access to.

FWIW, dealing with scipy dependencies is part of the reason there's no py2exe version for Windows. Oh scipy, I'd leave you in a second if it wasn't for your sweet, sweet 2D convolution... and your FFT functions.
scipy is a real pain to install with pip because of the dependencies (in Linux at least).

FWIW, because of this game, I've added the scipy dependencies to my Ubuntu quick dependency install post.