Build Distribution Not Working.

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
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Build Distribution Not Working.

#1 Post by Agumonofalchemy » Sat Aug 20, 2016 4:12 pm

Hi guys, I seem to be having a small problem with my game. I've been working on this one for a few months, and all the testing I've done has allowed it to work so far. I'm trying to share it with a friend of mine so he can see it before I release it to the general public since he helped make some of the art and story, and I want his approval for it before it's done. So I click on build distributions, create an 'All' version, and a 'mac' version. I put them in dropbox and send him a link. He gets them and they don't work. He can't open the mac version, and the all version doesn't work.
Any suggestions?

Further note, I tested the all version myself, it says it can't find any images despite them being in the image folder, is that a glitch, or am I missing something?

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: Build Distribution Not Working.

#2 Post by korova » Sun Aug 21, 2016 5:07 am

has he (or you) unzipped (or decompressed) your builds before trying to play them ?

User avatar
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Re: Build Distribution Not Working.

#3 Post by Agumonofalchemy » Sun Aug 21, 2016 9:58 am

Yes actually, that's the first thing I tried. While the game starts, it then gives the error message that it can't find any of the associated images.

User avatar
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Re: Build Distribution Not Working.

#4 Post by Agumonofalchemy » Mon Aug 22, 2016 8:42 am

Sorry to bump this, but I really need help, please.

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: Build Distribution Not Working.

#5 Post by korova » Mon Aug 22, 2016 2:26 pm

It's kind of hiard to answer with no further details.

Can you copy/paste the error message ? Where are your images ? Can you provide an example of code using the images ? Did you archive assets for the builds ?

User avatar
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Re: Build Distribution Not Working.

#6 Post by Agumonofalchemy » Mon Aug 22, 2016 2:34 pm

Right, sure. Here's the error message from the .all file when I try to run it.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While loading <'Image' 'PHC.png'>:
IOError: Couldn't find file 'PHC.png'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 29, in script
    $ ui.interact()
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\ast.py", line 797, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\python.py", line 1448, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/_layout/screen_main_menu.rpym", line 29, in <module>
    $ ui.interact()
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\ui.py", line 277, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\core.py", line 2346, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\core.py", line 2683, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\core.py", line 1785, in draw_screen
    renpy.config.screen_height,
  File "renpy/display/render.pyx", line 394, in renpy.display.render.render_screen (gen\renpy.display.render.c:6190)
    rv = render(root, width, height, 0, 0)
  File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2721)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\layout.py", line 650, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3104)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2721)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\layout.py", line 650, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3104)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2721)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\layout.py", line 650, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3104)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2721)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\screen.py", line 610, in render
    child = renpy.display.render.render(self.child, w, h, st, at)
  File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3104)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2721)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\layout.py", line 650, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3104)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2721)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\layout.py", line 1015, in render
    back = render(style.background, bw, bh, st, at)
  File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3104)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2721)
    rv = d.render(widtho, heighto, st, at)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\im.py", line 478, in render
    im = cache.get(self)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\im.py", line 200, in get
    surf = image.load()
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\display\im.py", line 529, in load
    surf = renpy.display.pgrender.load_image(renpy.loader.load(self.filename), self.filename)
  File "C:\Users\grave\Desktop\Project_Horizon-1.0-all\renpy\loader.py", line 517, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'PHC.png'.

Windows-8-6.2.9200
Ren'Py 6.99.6.739
Project_Horizon 0.0
My images are located in the folder:
Gamename/game/images

Code? You mean like in the script file yeah?
And no, I don't believe I archived the assests, since I don't know what that means.

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Build Distribution Not Working.

#7 Post by kivik » Mon Aug 22, 2016 3:18 pm

Sorry for asking the obvious, but have you checked the images folder to make sure the images are there?

User avatar
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Re: Build Distribution Not Working.

#8 Post by Agumonofalchemy » Mon Aug 22, 2016 3:20 pm

kivik wrote:Sorry for asking the obvious, but have you checked the images folder to make sure the images are there?
Yes. =.= Probably the first thing I did after trying unzipping it.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Build Distribution Not Working.

#9 Post by Donmai » Mon Aug 22, 2016 6:30 pm

Agumonofalchemy wrote:Yes. =.=
People are questioning the obvious for a reason. Without having access to your project, we can only try to guess what's going on. Try this: if your program is working on the launcher, make sure you have the line

Code: Select all

    config.developer = True
in options.rpy. While the game is running, press shift+D to get to the developer menu. Click on the 'Filename List' button to generate a list of files Ren'Py can find in your project. That list will show how Ren'Py is seeing your files. If 'PHC.png' appears on that list, check that you are invoking it properly in your code.

See here:
viewtopic.php?f=8&t=29748
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Re: Build Distribution Not Working.

#10 Post by Agumonofalchemy » Mon Aug 22, 2016 7:10 pm

Donmai wrote:
Agumonofalchemy wrote:Yes. =.=
People are questioning the obvious for a reason. Without having access to your project, we can only try to guess what's going on. Try this: if your program is working on the launcher, make sure you have the line

Code: Select all

    config.developer = True
in options.rpy. While the game is running, press shift+D to get to the developer menu. Click on the 'Filename List' button to generate a list of files Ren'Py can find in your project. That list will show how Ren'Py is seeing your files. If 'PHC.png' appears on that list, check that you are invoking it properly in your code.

See here:
viewtopic.php?f=8&t=29748
Yeah, it's there. It's exactly the same in both the code and on the image file... would it help if I just upload the project to dropbox, and link it here?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Build Distribution Not Working.

#11 Post by Donmai » Mon Aug 22, 2016 9:56 pm

Yes, it would be easier for people here to find the answer to your problem. Here is another thread I've found: viewtopic.php?f=4&t=33450
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Re: Build Distribution Not Working.

#12 Post by Agumonofalchemy » Mon Aug 22, 2016 10:07 pm

Alright then, here's Project Horizon: (Both 'All' and Mac versions)
All: https://www.dropbox.com/s/2ayi6u067hj6l ... l.zip?dl=0
Mac: https://www.dropbox.com/s/09goz3h8ve413 ... c.zip?dl=0

Fair warning though, the reason I didn't want to upload it is because, well, it's furry. And a lot of people really don't like furries, so sorry for being defensive.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Build Distribution Not Working.

#13 Post by trooper6 » Mon Aug 22, 2016 11:09 pm

I gave a quick look into your files.

Two things I noticed:
1) You did not define your images properly.
You have this:

Code: Select all

image Nursery = "Nursery.png"
When you should have this:

Code: Select all

image Nursery = "images/Nursery.png"
2) I notice you have some tga file in your images folder...Renpy only accepts jpgs and pngs. So you'll want to convert that.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Build Distribution Not Working.

#14 Post by Donmai » Tue Aug 23, 2016 9:04 am

I would only add that, if you have a PNG or JPEG file inside your images folder, you won't even need to declare it, as explained here: https://www.renpy.org/doc/html/displayi ... -directory
In recent versions of Ren'Py it makes sense to declare images when we want to give them another name. For example

Code: Select all

image cg revenge = "images/cg/car_explosion.jpg"
or when we want to animate/transform them

Code: Select all

    image ada_showing:
        "images/cg/ada/entering_room.jpg"
        zoom 1.5 rotate 30.0 subpixel True truecenter 
        ease 1.5 zoom 1.0 rotate 0.0 
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Agumonofalchemy
Newbie
Posts: 8
Joined: Sat Aug 20, 2016 4:06 pm
Contact:

Re: Build Distribution Not Working.

#15 Post by Agumonofalchemy » Tue Aug 23, 2016 9:13 pm

I figured it out @.@ I needed to add the 'images/' part to the listed file in the options code as well as to the others, thanks for letting me know about .tga, somehow I managed to do it before, in an earlier project, but I don't know how. (Don't go looking, it was crap I made to try the software out). Thank you all for your help.

Post Reply

Who is online

Users browsing this forum: Google [Bot]