Author Topic: Entry: Discord's Labyrinth  (Read 17049 times)

Offline Cantorlot

  • Regular Member
  • **
  • Posts: 13
  • Blank flank
Entry: Discord's Labyrinth
« on: 2012-October 07, 21:57:36 »
The submission system doesn't seem to work for me. (Clicking "submit" brings me back to the submission form with no change (a download link linking to http://games.mylittlegamejam.com/game/download/game/-1)) So here's my entry. The only error for the form submissions seems to be a missing http://games.mylittlegamejam.com/game/js/vendor/modernizr-2.6.1.min.js (404).

Title: Discord's Labyrinth
Files: Attached to this post
Screenshots: Attached to this post (I can only post one here because of the file size limit)
Mirror: https://github.com/cantorlot/discordmaze

Short desc:
A turn-based strategy(?)/puzzle(?) game in the palace gardens.

Long desc:
I was going to just make something small to encourage game making. But then it got a bit out of hand. So here's the result. Vote if you wish but if you can, please leave some text comments (somewhere in the forums maybe).

The game needs Python 2.x and nothing else. Run rungame.py in Python.

The (not so great or powerful) source is released under and MIT license.

See the file "instructions" for longer instructions (or type "i" in-game).

Extra note: mylittlegamejam.com seems to do some wonderful IP tracking (and has a possibly broken reset function) so my name is now "test". :D

Discord's game
==============

Welcome go the palace gardens! This labyrinth is now home to Discord's game. No wings, no magic and a few more rules.

Every turn a dice is thrown and a chosen ponies moves forwards by that many steps. The dice takes value between 1 and the ponies' maximum speed. Try to get everypony to the end. The Elements of Harmony are there! Probably.

Offline Oracion

  • Regular Member
  • **
  • Posts: 12
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #1 on: 2012-October 07, 22:18:13 »
Is it supposed to run on Windows?
It gives me this error and crashes:
Code: [Select]
Traceback (most recent call last):
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\rungame.py", line 1, in
 <module>
    import maze
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 434
    print [(b.__dict__.get("attrib"," "),b.__dict__.get("diff",0)) for b in rout
e]
                                                                     ^
SyntaxError: invalid syntax

Offline Rylius

  • Administrator
  • Regular Member
  • *****
  • Posts: 60
  • Gender: Male
  • Silly Filly
    • Hazewood.de - Game Development
Re: Entry: Discord's Labyrinth
« Reply #2 on: 2012-October 07, 22:18:53 »
Try uploading again, the user matching exploded for some reason. 6_9
Couldn't find anything about failed uploads in the logs though.

Offline Cantorlot

  • Regular Member
  • **
  • Posts: 13
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #3 on: 2012-October 07, 22:29:05 »
Is it supposed to run on Windows?
It gives me this error and crashes:
Code: [Select]
Traceback (most recent call last):
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\rungame.py", line 1, in
 <module>
    import maze
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 434
    print [(b.__dict__.get("attrib"," "),b.__dict__.get("diff",0)) for b in rout
e]
                                                                     ^
SyntaxError: invalid syntax

Thanks for reporting this. There's no reason it shouldn't work on windows. It also got stuck on a debugging line that never execute so my guess is that it has something to do with the file's encoding. Can you tell me which version of Python you are using?

Attached is another version of maze.py (replace the one in the zip with this new one). Can you try it? There's no reason this should fix the problem though.

Try uploading again, the user matching exploded for some reason. 6_9
Couldn't find anything about failed uploads in the logs though.

Thanks. I'll try again later (but probably not today).

Offline Compony

  • Administrator
  • Regular Member
  • *****
  • Posts: 26
  • Crazy pony
Re: Entry: Discord's Labyrinth
« Reply #4 on: 2012-October 07, 22:32:29 »
How about baking your game into an exe, http://www.py2exe.org/ for example? I'd say many people neither have python installed, nor want to install it just to play a game ;)

Offline Rylius

  • Administrator
  • Regular Member
  • *****
  • Posts: 60
  • Gender: Male
  • Silly Filly
    • Hazewood.de - Game Development
Re: Entry: Discord's Labyrinth
« Reply #5 on: 2012-October 07, 23:03:26 »
I can't guarantee the submission form will work tomorrow...
Please save me some work and submit it now, will ya? <3

Offline Oracion

  • Regular Member
  • **
  • Posts: 12
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #6 on: 2012-October 07, 23:13:33 »
Using the new file gives this error:
Code: [Select]
Traceback (most recent call last):
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\rungame.py", line 1, in
 <module>
    import maze
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 443
    print len(ajroute1), len(ajroute2)
            ^
SyntaxError: invalid syntax

EDIT:
When I downloaded the latest stable version of the 2.x branch, I get this:
Code: [Select]
Traceback (most recent call last):
  File "rungame.py", line 1, in <module>
    import maze
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 451, in
<module>
    g = setup()
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 446, in
setup
    for name in PONYNAMES])
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 417, in
genroute
    round(cutoffs[i]*length))
TypeError: range() integer end argument expected, got float.

I use Python 3.3 I just downloaded from here: http://www.python.org/download/releases/3.3.0/
« Last Edit: 2012-October 07, 23:21:50 by Oracion »

Offline Cantorlot

  • Regular Member
  • **
  • Posts: 13
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #7 on: 2012-October 07, 23:54:34 »
I'd say many people neither have python installed, nor want to install it just to play a game ;)
And I don't want to fight withinstall mono and XNA but you don't see me complaining. :P But kidding aside, I think I've never got py2exe to work. I don't remember what happened last time I tried so this could be very inaccurate. But I think I needed Windows (or a component thereof) to begin with. On the other hand, if you can generate an .exe, I'd be happy to link to it.

I can't guarantee the submission form will work tomorrow...
Please save me some work and submit it now, will ya? <3
I have the same problem as before. After submission, the files in the forms' files are removed and each of the textfields is a little bit more escaped (so if I hit submit a few times in a row, I'll get a long chains of \\\\\\\\\\ and some \r\n).

From the headers, it looks like its choking on the .png files? But that could also be my viewer. I'm also surprised the logs say nothing since I'm quite sure a POST request is being made (and I think the server even responds).

Also, do know why the file http://games.mylittlegamejam.com/game/js/vendor/modernizr-2.6.1.min.js is requested but missing?
Using the new file gives this error:
Code: [Select]
Traceback (most recent call last):
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\rungame.py", line 1, in
 <module>
    import maze
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 443
    print len(ajroute1), len(ajroute2)
            ^
SyntaxError: invalid syntax

EDIT:
When I downloaded the latest stable version of the 2.x branch, I get this:
Code: [Select]
Traceback (most recent call last):
  File "rungame.py", line 1, in <module>
    import maze
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 451, in
<module>
    g = setup()
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 446, in
setup
    for name in PONYNAMES])
  File "C:\Users\Jarda\Documents\discordmaze\discordmaze\maze.py", line 417, in
genroute
    round(cutoffs[i]*length))
TypeError: range() integer end argument expected, got float.

I use Python 3.3 I just downloaded from here: http://www.python.org/download/releases/3.3.0/

Thanks again for reporting. Ah yes, Python 3.x is not backwards compatible with Python 2.x. Can you try this new one (attached)? This time, it actually has a good chance of fixing the problem.

I won't respond any more today but I'll check back tomorrow.
« Last Edit: 2012-October 07, 23:57:46 by Cantorlot »

Offline Rylius

  • Administrator
  • Regular Member
  • *****
  • Posts: 60
  • Gender: Male
  • Silly Filly
    • Hazewood.de - Game Development
Re: Entry: Discord's Labyrinth
« Reply #8 on: 2012-October 08, 00:27:10 »
I'm not getting anything about you in the logs - did you upload *both* a game and a source zip archive?

Failed screenshot uploads don't abort the submission process.

Offline Cantorlot

  • Regular Member
  • **
  • Posts: 13
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #9 on: 2012-October 08, 17:47:44 »
I'm not getting anything about you in the logs - did you upload *both* a game and a source zip archive?

Failed screenshot uploads don't abort the submission process.

I'm pretty sure I tried all four combinations (well, maybe not the empty one). I don't understand what you mean by "process". Isn't it a single HTTP POST request? I can't see the page anymore but what was the client side Javascript supposed to do?

Offline Rylius

  • Administrator
  • Regular Member
  • *****
  • Posts: 60
  • Gender: Male
  • Silly Filly
    • Hazewood.de - Game Development
Re: Entry: Discord's Labyrinth
« Reply #10 on: 2012-October 08, 19:05:31 »
http://games.mylittlegamejam.com/game/show/54
Uploaded it for you.

The JavaScript is not used.
Please stop making assumptions about the internal workings of the site. <3

Offline Cantorlot

  • Regular Member
  • **
  • Posts: 13
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #11 on: 2012-October 08, 22:20:47 »
http://games.mylittlegamejam.com/game/show/54
Uploaded it for you.
Thanks! If its not too hard, could you also replace the long description with the following? (The part about how to run the game doesn't appear elsewhere.) I'd try myself but we know how that went last time.

I'm putting one with <br>'s at the end of lines and one without, depending on which is easier to use.

Without <br>:

Code: [Select]
I was going to just make something small to encourage game making. But then it got a bit out of hand. So here's the result. Vote if you wish but if you can, please leave some text comments (somewhere in the forums maybe).

The game needs Python 2.x (Python 3.x won't work!) and nothing else. Run rungame.py in Python.

The (not so great or powerful) source is released under an MIT license.

See the file "instructions" for longer instructions (or type "i" in-game).

Discord's game
==============

Welcome go the palace gardens! This labyrinth is now home to Discord's game. No wings, no magic and a few more rules.

Every turn a dice is thrown and a chosen ponies moves forwards by that many steps. The dice takes value between 1 and the ponies' maximum speed. Try to get everypony to the end. The Elements of Harmony are there! Probably.

With <br>:

Code: [Select]
I was going to just make something small to encourage game making. But then it got a bit out of hand. So here's the result. Vote if you wish but if you can, please leave some text comments (somewhere in the forums maybe).<br>
<br>
The game needs Python 2.x (Python 3.x won't work!) and nothing else. Run rungame.py in Python.<br>
<br>
The (not so great or powerful) source is released under an MIT license.<br>
<br>
See the file "instructions" for longer instructions (or type "i" in-game).<br>
<br>
Discord's game<br>
==============<br>
<br>
Welcome go the palace gardens! This labyrinth is now home to Discord's game. No wings, no magic and a few more rules.<br>
<br>
Every turn a dice is thrown and a chosen ponies moves forwards by that many steps. The dice takes value between 1 and the ponies' maximum speed. Try to get everypony to the end. The Elements of Harmony are there! Probably.<br>

The JavaScript is not used.
Please stop making assumptions about the internal workings of the site. <3
Sure thing. I'm just trying to figure out what kind of information I can give you other than "it doesn't work". :)

Offline Oracion

  • Regular Member
  • **
  • Posts: 12
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #12 on: 2012-October 09, 17:49:36 »
It took a lot of effort, but I did. I finally lost the game.

Seriously, you have to try real hard to fail at this game. :-) But it was worth it. I'll give more detailed feedback later in comments.

Offline Cantorlot

  • Regular Member
  • **
  • Posts: 13
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #13 on: 2012-October 10, 08:55:17 »
It took a lot of effort, but I did. I finally lost the game.

Seriously, you have to try real hard to fail at this game. :-) But it was worth it. I'll give more detailed feedback later in comments.

Congratulations on your loss!

Offline cannavarojo9

  • New Foal
  • *
  • Posts: 1
  • Blank flank
Re: Entry: Discord's Labyrinth
« Reply #14 on: 2018-December 22, 09:02:26 »
I can't guarantee the submission form will work tomorrow...
Please save me some work and submit it now, will ya? <3


Gclub สล็อตออนไลน์ ทางเข้า maxbet