Curse this Vile Minigame Interface! - A "<" ">" Minigame Pro

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
exHominem

Curse this Vile Minigame Interface! - A "<" ">" Minigame Pro

#1 Post by exHominem » Tue Aug 07, 2007 10:05 pm

Alright, so I'm having a MAJOR problem getting the minigame system to work. basically, it's throwing me an error every time I try to use the "<" or ">" operands to compare interger values.

Source Code:

blag = 1
rar = 2
if blag < rar: --------Syntax Error here?
(do something, doesn't matter what)



gives:

I'm sorry, but an exception occured while executing your Ren'Py
script.

SyntaxError: invalid syntax (line 52)

While compiling python block starting at line 3 of C:\Program Files\renpy-6.2.0\Hit/game/minigame_target.rpy.

-- Full Traceback ------------------------------------------------------------

File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\bootstrap.py", line 197, in bootstrap
File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\main.py", line 196, in main
File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\script.py", line 439, in load_script
File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\script.py", line 161, in __init__
File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\script.py", line 339, in load_file
File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\script.py", line 392, in update_bytecode
File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\python.py", line 205, in py_compile_exec_bytecode
File "C:\Documents and Settings\Administrator\Desktop\renpy-6.2.0\renpy\python.py", line 187, in py_compile
File "compiler\transformer.pyo", line 50, in parse
File "compiler\transformer.pyo", line 120, in parsesuite
SyntaxError: invalid syntax (line 52)

While compiling python block starting at line 3 of C:\Program Files\renpy-6.2.0\Hit/game/minigame_target.rpy.

Ren'Py Version: Ren'Py 6.2.0c

Little Help?

User avatar
Criptych
Regular
Posts: 87
Joined: Sat Jun 23, 2007 9:19 am
Projects: ALICE.NET
Location: The other end of the internet.
Contact:

Re: Curse this Vile Minigame Interface! - A "<" ">" Minigame Pro

#2 Post by Criptych » Tue Aug 07, 2007 10:55 pm

exHominem wrote:
if blag < rar: --------Syntax Error here?
(do something, doesn't matter what)
It might matter, at that; I tried similar code and it worked fine, both in an init python: block and just regular python:. I'm not asking you to reveal any trade secrets, but do you think you could give a little more context for the code?
Computers are useless. They can only give you answers. —Pablo Picasso

Image

exHominem

Re: Curse this Vile Minigame Interface! - A "<" ">" Minigame Pro

#3 Post by exHominem » Tue Aug 07, 2007 11:56 pm

Actually, I just managed to fix the general problem, but thank you so much for the prompt reply!

Also, I'll be sure to include more context next time. I'm not that pretentious.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Curse this Vile Minigame Interface! - A "<" ">" Minigame Pro

#4 Post by PyTom » Wed Aug 08, 2007 12:01 am

Also, please note that minigame is going away fairly soon. Don't worry, it should be fairly easy to port to the new stuff.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Criptych
Regular
Posts: 87
Joined: Sat Jun 23, 2007 9:19 am
Projects: ALICE.NET
Location: The other end of the internet.
Contact:

Re: Curse this Vile Minigame Interface! - A "<" ">" Minigame Pro

#5 Post by Criptych » Wed Aug 08, 2007 12:50 am

exHominem wrote:Actually, I just managed to fix the general problem, but thank you so much for the prompt reply!

Also, I'll be sure to include more context next time. I'm not that pretentious.
:oops: I didn't mean it to sound that way, sorry.
PyTom wrote:Also, please note that minigame is going away fairly soon. Don't worry, it should be fairly easy to port to the new stuff.
*glad he hasn't much to unlearn* n_n"
Computers are useless. They can only give you answers. —Pablo Picasso

Image

Post Reply

Who is online

Users browsing this forum: _ticlock_