September 2007 challenge: “Twisted”

555-BOOM! - Scions of Darkness crash

Posted by gcewing on 2007/09/14 07:33

Happened when I had about 3 units attacking an enemy outpost, or whatever those grey spiked things are.
Traceback (most recent call last):
  File "run_game.py", line 19, in ?
    main.main()
  File "lib/main.py", line 12, in main
    e=engine.Engine(state="mainmenu")
  File "lib/modules/engine.py", line 27, in __init__
    self.run()
  File "lib/modules/engine.py", line 39, in run
    self.play_game()
  File "lib/modules/engine.py", line 661, in play_game
    player.update()
  File "lib/modules/entities.py", line 567, in update
    i.update()
  File "lib/modules/entities.py", line 253, in update
    self.active_enemy.damage(self.get_attack_value())
  File "lib/modules/entities.py", line 497, in damage
    amount-=random.randint(0, dodge)
  File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/random.py", line 189, in randint
    return self.randrange(a, b+1)
  File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/random.py", line 168, in randrange
    raise ValueError, "empty range for randrange()"
ValueError: empty range for randrange()

1 comment

555-BOOM! - Fix for 555-BOOM! version 0.5

Posted by gcewing on 2007/09/14 06:23

I've discovered a problem that could affect play on systems other than MacOSX.

If the levels seem to be getting played in a random order, replace the following around line 85 of Code/game.py:

  paths = glob(pat)
  if not tutorial:
    paths = [p for p in paths if not os.path.basename(p).startswith("+")]
  return paths
with
  paths = glob(pat)
  if not tutorial:
    paths = [p for p in paths if not os.path.basename(p).startswith("+")]
  paths.sort() # add this line
  return paths
i.e. insert 'paths.sort()' before returning paths.

(I had always thought that glob() was supposed to return its results sorted, but this doesn't seem to be the case on some Linux systems!)

Add a comment

B.L.O.C.K: Look Out; Can't Kick - Someone suggested a wiki page for bug fixes.

Posted by eugman on 2007/09/13 13:05

it probably won't get used but feel free to edit eugmanhome.com/pyweek/

3 comments

Aurora Fighter - Aurora's Music

Posted by dmoisset on 2007/09/11 23:51

I have received several (good) opinions on the music for our entry, so I'd like to tell a bit more about it...

The music for the levels and menus was made by a Psychedelic/techno group called Mindprobe. You can find some of their stuff at mindprobe.com.ar. We haven't heard about them before this pyweek, but lucio (from the Grossini's Vacation team) put us in contact with one of them and they told us that their music was licensed under a CC license :)

So, a big thank you goes for mindprobe, because their music collaborates a lot in setting the mood for our game. (And also a thank you for lucio)

The origin of the intro music is a bit different. It is a song under the public domain (as most national songs and anthems): it is a ceremonial song used when rising the national flag here in Argentina. We stumbled upon it almost accidentally (despite having heard it literally hundreds of times in our lives) when looking for some march which fitted the rest of the introduction.

The song is called Aurora.

1 comment

Wound Up! - Undocumented Feature

Posted by Chard on 2007/09/11 13:46

The title isn't a euphemism, this is actually an undocumented feature:
Right clicking will leave the current building mode if you are in one and will cancel tasks if you aren't.

Two people independently complained about the lack of such a feature and I realised that it should have been somewhere in the instructions.

2 comments

Return of PrintStar - Mac-friendly version available

Posted by PrintStar on 2007/09/11 12:17

It was pointed out to me that my use of the right mouse button as the primary gameplay button was not particularly convenient for one-button Mac users. An updated version of the game is located here:

juicer-1.1.zip

This version of the game offers the console command 'swap' which swaps the mouse buttons. Mac users should type 'swap' before 'play' at the command prompt, and the right mouse button is no magically the left mouse button (or your only mouse button).

Again, I apologize to my Mac friends. Enjoy!

1 comment

555-BOOM! - DNA Replicator Fix

Posted by gcewing on 2007/09/11 04:57

Here's a small patch to fix a problem causing DNA Replicator to crash on big-endian systems.
--- DNAReplicator-1.3-src/lib/main.py   2007-09-08 14:59:24.000000000 +1200
+++ DNAReplicator-1.3-src-patched/lib/main.py   2007-09-11 16:50:31.000000000 +1200
@@ -138,13 +138,13 @@
     basedl = {}
     for base in ('adenine','guanine','cytosine','thymine'):
         a = array.array('f')
-        if sys.byteorder == 'big':
-            a.byteswap()
         flo = open(data.filepath('%s.msh' % base),'rb')
         try:
             a.fromstring(flo.read())
         finally:
             flo.close()
+        if sys.byteorder == 'big':
+            a.byteswap()
         basedl[base] = compilemesh(a)
 
     global txfont

Add a comment

7 Zombies - Video of Twisted Zombie

Posted by humitos on 2007/09/11 04:14

I put a video of Twisted Zombie's game in Google Video.
Link: http://video.google.es/videoplay?docid=-2827484478707365693
Enjoy it!

2 comments

Neko - Richard: small suggestion

Posted by neko on 2007/09/11 02:12

I suggest adding the "width" and "height" attributes to the Entry Listing page(s) because it is difficult to scroll while the page is loading without them (as the images load, the page changes in length).

4 comments

B.L.O.C.K: Look Out; Can't Kick - level editor

Posted by eugman on 2007/09/11 02:09

Hey I was thinking of possibly continuing work on my game. One idea that came to me would be a level editor. I could probably pretty easily make a level editor and start adding more enemies and such.

If I made and editor and a site to upload levels to do any of you think you'd be interested in making some?

Add a comment