CSL-II - The Unfortunate Undoing Is Live

Well pyweek is over and csl-II is live, we called this 'The Unfortunate Undoing'

We took the premise of 'Get off my lawn!' and decided not to look at the immediate implications of someone saying that, but rather try and produce something that looks at the reasons as to why this person said that. Out of that came the idea of following a persons life and influencing their decisions in order to help guide them to hopefully becoming a person that does not say 'Get off my lawn!'

Jeiel did an absolutely amazing job on the graphics, he went for a rather neat style that works really well, the lack of detail in those pixels really lets you personify those blocky people :) But i'll let him talk about that himself.

Some notes: if you have a 64-bit machine you may have to provide your own chipmunk shared library, sorry about that. press escape to quit the game, the game itself only uses your pointing device.

Good luck to everyone involved, I look forward to playing as many of your games as possible :)

Link to the latest src package

Update

okay okay we are out of the uploading grace period, but i thought i would provide this small patch for people that are having trouble with the windows version, it just loads dlls from the already provided winlibs/ folder.
http://gordallott.com/run_game.zip

(log in to comment)

Comments

Added fix for python 2.5 peoples: here
Errors:
Traceback (most recent call last):
  File "run_game.pyw", line 46, in 
    _run_game()
  File "run_game.pyw", line 35, in _run_game
    import gamelib.main as main
  File "gamelib\main.py", line 9, in 
    from gamelib import data, render, world, input, timeline, audio, scenegraph
  File "gamelib\render.py", line 23, in 
    from SDL import *
  File "SDL\__init__.py", line 30, in 
    import SDL.dll
  File "SDL\dll.py", line 224, in 
    _dll = SDL_DLL('SDL', 'SDL_Linked_Version')
  File "SDL\dll.py", line 59, in __init__
    _platform_library_name(library_name)
ImportError: Dynamic library "SDL" was not found
Vista, python2.5 or python2.6 When I copy winlibs to sys32:
Loading chipmunk for Windows (32bit) [C:\Users\saluk\Downloads\The_unfortunate_undoing-1.0.2\The_unfortunate_undoing-1.0.2\pymunk\chipmunk.dll]
Traceback (most recent call last):
  File "run_game.pyw", line 46, in 
    _run_game()
  File "run_game.pyw", line 35, in _run_game
    import gamelib.main as main
  File "gamelib\main.py", line 9, in 
    from gamelib import data, render, world, input, timeline, audio, scenegraph
  File "gamelib\world.py", line 21, in 
    from gamelib import render, scenegraph, svg_parse, collision, input, audio
  File "gamelib\collision.py", line 29, in 
    import pymunk as pm
  File "pymunk\__init__.py", line 14, in 
    import pymunk._chipmunk as cp 
  File "pymunk\_chipmunk.py", line 8, in 
    chipmunk_lib = load_library("chipmunk", print_path=_lib_debug)
  File "pymunk\libload.py", line 39, in load_library
    lib = ctypes.cdll.LoadLibrary(libfn)
  File "C:\Python25\lib\ctypes\__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python25\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 1114] A dynamic link library (DLL) initialization routine failed
And, looks like it finally works with 2.6

I have Python 2.5 and tried 1.0.2. At first it said that msvcr90 was not found. I happened to have that in a different folder so I copied it to the UU folder, but then got this error:

C:\Documents and Settings\GO\My Documents\Downloads\The_unfortunate_undoing-1.0.
2>python run_game.py
Loading chipmunk for Windows (32bit) [C:\Documents and Settings\GO\My Documents\
Downloads\The_unfortunate_undoing-1.0.2\pymunk\chipmunk.dll]
Traceback (most recent call last):
  File "run_game.py", line 46, in 
    _run_game()
  File "run_game.py", line 35, in _run_game
    import gamelib.main as main
  File "gamelib\main.py", line 9, in 
    from gamelib import data, render, world, input, timeline, audio, scenegraph
  File "gamelib\world.py", line 21, in 
    from gamelib import render, scenegraph, svg_parse, collision, input, audio
  File "gamelib\collision.py", line 29, in 
    import pymunk as pm
  File "pymunk\__init__.py", line 14, in 
    import pymunk._chipmunk as cp
  File "pymunk\_chipmunk.py", line 8, in 
    chipmunk_lib = load_library("chipmunk", print_path=_lib_debug)
  File "pymunk\libload.py", line 39, in load_library
    lib = ctypes.cdll.LoadLibrary(libfn)
  File "C:\Python25\lib\ctypes\__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python25\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 1114] A dynamic link library (DLL) initialization routine f
ailed

C:\Documents and Settings\GO\My Documents\Downloads\The_unfortunate_undoing-1.0.
2>
Along with:
Microsoft Visual C++ Runtime Library

Runtime Error!

Program: C:\Python25\python.exe

R6034
An application has made an attempt to load the C runtime library incorrectly. 
Anyone know what I need to do? Looking forward to playing this!
I only got it to work with python 2.6, I had the same error on 2.5.
its a problem with python and its use of a microsoft windows dll that requires a manifest inside the executionable now, theres not much i can say/do about it apart from please use 2.6 - its prevented me from building an .exe too.

Update

okay okay we are out of the uploading grace period, but i thought i would provide this small patch for people that are having trouble with the windows version, it just loads dlls from the already provided winlibs/ folder.
http://gordallott.com/run_game.zip

Yeah if anyone has any windows-specific trublems with that version, another thing you should consider is downloading the SVN version of pymunk http://code.google.com/p/pymunk/source/checkout then installing it (using python 2.6 of course) C:\Python26\python.exe setup.py install. Then remove the 'pymunk' folder inside the game folder and running it.
Got it to work after some fiddling, but now it looks like this:

"Fiddling" involved adding "glScale = glScalef" to the top of render.py. How come it worked for you without the "f"?

I'll try it with 2.6, but I'll have to install a number of libraries...

Got it to work with Python 2.6! Beautiful art and interesting concept. I've noticed this strange piece of code though:
    'credit_result':
    {
        'ai': ai.credit_result,
        'textures':
        {
            'a': ('graphics/credits/endinga.png', {}),
            'b': ('graphics/credits/endinga.png', {}),
            'c': ('graphics/credits/endinga.png', {}),
            'd': ('graphics/credits/endinga.png', {}),
        },
        'mouse_sensitive': False,
        'shape': [(0, 0), (0, -0), (0, 0), (-0, 0)],
        #'shaders': ('basic.vert.glsl', 'test.frag.glsl'),
        #'shader_tex': ('graphics/overlay_paper.png'),
    },
On two play throughs I've managed to get to ending A and ending A so far. I'm looking forward to finding ending A and ending A too :).
glscale is a helper function of pyopeng, it figures out if its a float/int itself (or should). maybe its a bug with pyopengl vs your drivers
oops, i guess thats me being an idiot there :) should be endinga though to endingd :)
I think glScale is new in pyopengl 3, and in Python 2.5 I had pyopengl 2.x.