Can't build distributions (project launches normally)

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
sapiboonggames
Veteran
Posts: 298
Joined: Thu Jan 05, 2012 8:53 am
Completed: I Love You, Brother [BxB]
Contact:

Can't build distributions (project launches normally)

#1 Post by sapiboonggames » Mon Apr 24, 2017 6:52 am

Hi guys, I'm back with another question (or trouble, actually).
I've finished up my demo and used the build distributions command.
However, the process fails with the reason that I have to ensure the project runs normally.
The thing is, the project does launch normally. I can play it just fine :(

I took a look at traceback.txt and here is what it says.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/hardwarestore.rpy", line 993, in script
    $ shelf2bought = False
Exception: Possible infinite loop.

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

Full traceback:
  File "C:\Users\felisia\Desktop\renpy-6.99.12.1-sdk\renpy-6.99.12.1-sdk\renpy\bootstrap.py", line 295, in bootstrap
    renpy.main.main()
  File "C:\Users\felisia\Desktop\renpy-6.99.12.1-sdk\renpy-6.99.12.1-sdk\renpy\main.py", line 419, in main
    game.context().run(node)
  File "game/hardwarestore.rpy", line 993, in script
    $ shelf2bought = False
  File "C:\Users\felisia\Desktop\renpy-6.99.12.1-sdk\renpy-6.99.12.1-sdk\renpy\execution.py", line 56, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.

Windows-7-6.1.7601-SP1
Ren'Py 6.99.12.4.2187
seiyuudanshi 0.1
The 993 line is actually just:

Code: Select all

init:
    $ shelf2bought = False
I don't get how it can make an infinite loop :(

I'm on latest Renpy and I don't know what is causing this.
Any kind of help is really appreciated. Thank you!
Visit my website: http://www.sapiboong.com

User avatar
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: Can't build distributions (project launches normally)

#2 Post by SuperbowserX » Mon Apr 24, 2017 11:09 am

I don't know if this will work but there's no need for that to be in an init block. At the top of your script, just make it say (outside of an init):

Code: Select all

define shelf2bought = False
Does that help?

User avatar
sapiboonggames
Veteran
Posts: 298
Joined: Thu Jan 05, 2012 8:53 am
Completed: I Love You, Brother [BxB]
Contact:

Re: Can't build distributions (project launches normally)

#3 Post by sapiboonggames » Mon Apr 24, 2017 11:14 am

SuperbowserX wrote:I don't know if this will work but there's no need for that to be in an init block. At the top of your script, just make it say (outside of an init):

Code: Select all

define shelf2bought = False
Does that help?
It doesn't seem to help, unfortunately :/
I even tried removing that entire line but I still can't build the distributions.
(Note that the project always runs fine via Renpy launcher, but whenever I tried exporting the game to Win / Mac / Linux, it gives an error and says that the game doesn't launch properly => even though it really is)

This is really such a weird issue :? :?

Thanks for the reply, though.
Visit my website: http://www.sapiboong.com

User avatar
Karl_C
Veteran
Posts: 232
Joined: Sun Mar 31, 2013 6:18 am
Contact:

Re: Can't build distributions (project launches normally)

#4 Post by Karl_C » Mon Apr 24, 2017 3:11 pm

Can you try to set this one:
renpy.not_infinite_loop(delay)
Resets the infinite loop detection timer to delay seconds.
Ren'Py Documentation: renpy.not_infinite_loop

User avatar
sapiboonggames
Veteran
Posts: 298
Joined: Thu Jan 05, 2012 8:53 am
Completed: I Love You, Brother [BxB]
Contact:

Re: Can't build distributions (project launches normally)

#5 Post by sapiboonggames » Tue Apr 25, 2017 12:45 am

Karl_C wrote:Can you try to set this one:
renpy.not_infinite_loop(delay)
Resets the infinite loop detection timer to delay seconds.
Ren'Py Documentation: renpy.not_infinite_loop
Where should I put that command, if I may ask?
Since the line detected as loop is part of an init (just declaring that initial value of that variable is False) :?
Visit my website: http://www.sapiboong.com

User avatar
Karl_C
Veteran
Posts: 232
Joined: Sun Mar 31, 2013 6:18 am
Contact:

Re: Can't build distributions (project launches normally)

#6 Post by Karl_C » Wed Apr 26, 2017 11:50 am

Try

Code: Select all

$renpy.not_infinite_loop(3)
(3s delay) at the beginning of the script.

I'm not sure if the exception is really triggered by

Code: Select all

$ shelf2bought = False
I had the problem too and it was solved by adding this line.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]