renpygame-demo crashes.... :(

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
User avatar
valeatory
Regular
Posts: 36
Joined: Mon Apr 23, 2007 3:01 pm
Projects: Nightglove Institute, Monstrata Fracture
Organization: Astralore Games
Tumblr: valeatory
itch: astralore
Location: America
Contact:

renpygame-demo crashes.... :(

#1 Post by valeatory » Sat Sep 15, 2007 1:39 pm

I was attempting to check out the new feature, but when I launched it, (without any tampering) it crashed right after Eileen says "Good luck!" and gives me this traceback:

Code: Select all

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

AttributeError: 'module' object has no attribute 'error'

While running game code:
 - script at line 30 of /home/tom/ab/renpy/renpygame-demo/game/script.rpy
 - python at line 30 of /home/tom/ab/renpy/renpygame-demo/game/script.rpy.

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

  File "C:\Games\renpy\Renpy-6.3.2\renpy\bootstrap.py", line 209, in bootstrap
  File "C:\Games\renpy\Renpy-6.3.2\renpy\main.py", line 293, in main
  File "C:\Games\renpy\Renpy-6.3.2\renpy\main.py", line 88, in run
  File "C:\Games\renpy\Renpy-6.3.2\renpy\execution.py", line 194, in run
  File "C:\Games\renpy\Renpy-6.3.2\renpy\ast.py", line 491, in execute
  File "C:\Games\renpy\Renpy-6.3.2\renpy\python.py", line 861, in py_exec_bytecode
  File "/home/tom/ab/renpy/renpygame-demo/game/script.rpy", line 30, in <module>
  File "aliens.py", line 197, in main
  File "aliens.py", line 29, in load_image
AttributeError: 'module' object has no attribute 'error'

While running game code:

Ren'Py Version: Ren'Py 6.3.2b
I am running the latest version of Ren'py, downloaded a few minutes ago. What's wrong?
Nightglove Institute - Kidnapped students, forced to train to be secret agents and assassins!
Monstrata Fracture - Date cute monsters! But will you risk destabilizing the human plane of existence?

User avatar
JQuartz
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...
Contact:

Re: renpygame-demo crashes.... :(

#2 Post by JQuartz » Sun Sep 16, 2007 1:35 am

I have the same error when trying to launch renpygame-demo. I can't say for sure but I think it's because I don't have python and some other software installed, both which is required to play a python created game (the thing renpygame is trying to execute before crashing). Can anyone confirm this?
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

Scott
Regular
Posts: 35
Joined: Thu Sep 13, 2007 6:11 am
Contact:

Re: renpygame-demo crashes.... :(

#3 Post by Scott » Sun Sep 16, 2007 3:21 am

I've never installed python either. I'm assuming that ren'py has a built-in python compiler since it produces .rpc files.

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: renpygame-demo crashes.... :(

#4 Post by PyTom » Sun Sep 16, 2007 11:42 am

Try the attached update, which should fix the problems. Basically, there were two problems:

- On windows, os.path.join was producing paths with backslashes in them, which Ren'Py doesn't like. Solution: replace calls to os.path.join with calls to a function that joins paths using '/'.

- The error was being reported improperly, because pygame.error was missing.

The attached file should fix both problems. Let me know that it works, and I'll upload it to the website.
Attachments
renpygame-1.1pre1.zip
(322.01 KiB) Downloaded 72 times
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

sanity
Newbie
Posts: 3
Joined: Sun Jun 10, 2007 8:22 am
Contact:

Re: renpygame-demo crashes.... :(

#5 Post by sanity » Sun Sep 16, 2007 1:22 pm

Great job! Now the demo works fine.

About the backslash, fiddling with code I've discovered that the following instruction works too:

Code: Select all

file = os.path.join('data/', file)
(Anyway, this is odd... Having to add manually an os-dependent separator defies the reason of the os.path module, in my opinion)

By the way, I've just noticed another little issue. If you press the Escape key during the demo, another crash happens.

Code: Select all

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

TypeError: an integer is required

While running game code:
 - script at line 36 of /home/tom/ab/renpy/renpygame-demo/game/script.rpy

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

  File "C:\Documents and Settings\Diego\Desktop\renpygame-1[1][1].1pre1\renpy-6.3.2\renpy\bootstrap.py", line 209, in bootstrap
  File "C:\Documents and Settings\Diego\Desktop\renpygame-1[1][1].1pre1\renpy-6.3.2\renpy\main.py", line 293, in main
  File "C:\Documents and Settings\Diego\Desktop\renpygame-1[1][1].1pre1\renpy-6.3.2\renpy\main.py", line 88, in run
  File "C:\Documents and Settings\Diego\Desktop\renpygame-1[1][1].1pre1\renpy-6.3.2\renpy\execution.py", line 194, in run
  File "C:\Documents and Settings\Diego\Desktop\renpygame-1[1][1].1pre1\renpy-6.3.2\renpy\ast.py", line 290, in execute
  File "C:\Documents and Settings\Diego\Desktop\renpygame-1[1][1].1pre1\renpy-6.3.2\renpy\exports.py", line 458, in say
TypeError: an integer is required

While running game code:

Ren'Py Version: Ren'Py 6.3.2b

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: renpygame-demo crashes.... :(

#6 Post by Criptych » Sun Sep 16, 2007 3:46 pm

sanity wrote:(Anyway, this is odd... Having to add manually an os-dependent separator defies the reason of the os.path module, in my opinion)
IIRC, Python should understand any separator on any platform, so it's not exactly OS dependent. Unfortunately, if Ren'Py itself "doesn't like" backslashes, it doesn't really matter what Python supports.

P.S. I didn't seem to have a problem with the renpygame demo, even before upgrading... I wonder why? :|
Computers are useless. They can only give you answers. —Pablo Picasso

Image

User avatar
valeatory
Regular
Posts: 36
Joined: Mon Apr 23, 2007 3:01 pm
Projects: Nightglove Institute, Monstrata Fracture
Organization: Astralore Games
Tumblr: valeatory
itch: astralore
Location: America
Contact:

Re: renpygame-demo crashes.... :(

#7 Post by valeatory » Sat Sep 22, 2007 1:23 pm

Sorry I didn't reply sooner, but it works now, so thanks a lot!!!
Nightglove Institute - Kidnapped students, forced to train to be secret agents and assassins!
Monstrata Fracture - Date cute monsters! But will you risk destabilizing the human plane of existence?

Post Reply

Who is online

Users browsing this forum: _ticlock_