itch.io uploads -

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
Shakezula
Regular
Posts: 67
Joined: Wed May 20, 2015 8:01 pm
Organization: Digital Sandbox
Contact:

itch.io uploads -

#1 Post by Shakezula » Mon Sep 19, 2016 2:54 pm

Wait, what?

Image

I did set build.itch_project in an init block as well

User avatar
PyTom
Ren'Py Creator
Posts: 15446
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: itch.io uploads -

#2 Post by PyTom » Mon Sep 19, 2016 10:55 pm

Can you please edit renpy-6.99.12/launcher/game/itch.rpy, and change:

Code: Select all

            rv = os.path.join(os.environ.get("APPDATA", ""), "Roaming", "itch", "bin", "butler.exe")
to

Code: Select all

            rv = os.path.join(os.environ.get("APPDATA", ""), "itch", "bin", "butler.exe")
on line 29? Thanks.
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
Shakezula
Regular
Posts: 67
Joined: Wed May 20, 2015 8:01 pm
Organization: Digital Sandbox
Contact:

Re: itch.io uploads -

#3 Post by Shakezula » Tue Sep 20, 2016 12:04 am

that did the trick! thanks.

User avatar
Shakezula
Regular
Posts: 67
Joined: Wed May 20, 2015 8:01 pm
Organization: Digital Sandbox
Contact:

Re: itch.io uploads -

#4 Post by Shakezula » Tue Sep 20, 2016 12:20 am

I'm getting a new traceback now:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "launcher/game/itch.rpy", line 45, in script
    python hide:
  File "launcher/game/itch.rpy", line 121, in <module>
    cc.run()
  File "game/consolecommand.rpy", line 78, in run
TypeError: __init__() got an unexpected keyword argument 'console'

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

Full traceback:
  File "launcher/game/itch.rpy", line 45, in script
    python hide:
  File "C:\Users\Admin\RenPy SDK\renpy\ast.py", line 805, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Admin\RenPy SDK\renpy\python.py", line 1641, in py_exec_bytecode
    exec bytecode in globals, locals
  File "launcher/game/itch.rpy", line 121, in <module>
    cc.run()
  File "game/consolecommand.rpy", line 78, in run
TypeError: __init__() got an unexpected keyword argument 'console'

Windows-7-6.1.7601-SP1
Ren'Py 6.99.11.1749
Ren'Py Launcher 6.99.11.1749

User avatar
Morhighan
Miko-Class Veteran
Posts: 929
Joined: Sun Jun 27, 2010 12:54 pm
Organization: MysteryCorgi
Tumblr: MysteryCorgi
Deviantart: MysteryCorgi
Soundcloud: MysteryCorgi
itch: MysteryCorgi
Location: USA
Contact:

Re: itch.io uploads -

#5 Post by Morhighan » Tue Sep 20, 2016 3:12 am

Quick question, is there a guide to integrating itch butler with Ren'Py? I haven't been able to find one when I searched for it.

User avatar
enkiv2
Newbie
Posts: 9
Joined: Thu Aug 17, 2017 4:14 pm
Completed: Manna for our Malices
Projects: Manna for our Malices, Trilogy, Book of the Damned
Organization: Double Mojo
IRC Nick: enkiv2
Tumblr: enki2
Github: enkiv2
Soundcloud: enkiv2
itch: enkiv2
Contact:

Re: itch.io uploads -

#6 Post by enkiv2 » Thu Aug 17, 2017 4:20 pm

Shakezula wrote:
Tue Sep 20, 2016 12:20 am
I'm getting a new traceback now:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "launcher/game/itch.rpy", line 45, in script
    python hide:
  File "launcher/game/itch.rpy", line 121, in <module>
    cc.run()
  File "game/consolecommand.rpy", line 78, in run
TypeError: __init__() got an unexpected keyword argument 'console'

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

Full traceback:
  File "launcher/game/itch.rpy", line 45, in script
    python hide:
  File "C:\Users\Admin\RenPy SDK\renpy\ast.py", line 805, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Admin\RenPy SDK\renpy\python.py", line 1641, in py_exec_bytecode
    exec bytecode in globals, locals
  File "launcher/game/itch.rpy", line 121, in <module>
    cc.run()
  File "game/consolecommand.rpy", line 78, in run
TypeError: __init__() got an unexpected keyword argument 'console'

Windows-7-6.1.7601-SP1
Ren'Py 6.99.11.1749
Ren'Py Launcher 6.99.11.1749
I fixed this by changing line 78 of game/consolecommand.rpy from

Code: Select all

subprocess.Popen([renpy.fsencode(self.fn)], console=True)
to

Code: Select all

subprocess.Popen([renpy.fsencode(self.fn)])
My guess is that because windows doesn't distinguish between console-based command-line apps (like vim and nethack) and non-console-based command-line apps (like fortune and cat), maybe python's implementation of Popen on windows doesn't take the console parameter. (That, or subprocess.Popen simply works differently from os.Popen & nobody tested this code on any platform.)

User avatar
PyTom
Ren'Py Creator
Posts: 15446
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: itch.io uploads -

#7 Post by PyTom » Sat Aug 19, 2017 3:18 pm

It's actually that it was tested on Linux and not Windows, and there's a different code path for both platforms. I actually recommend changing console=True to shell=True. This will be fixed in the next Ren'Py release.
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
enkiv2
Newbie
Posts: 9
Joined: Thu Aug 17, 2017 4:14 pm
Completed: Manna for our Malices
Projects: Manna for our Malices, Trilogy, Book of the Damned
Organization: Double Mojo
IRC Nick: enkiv2
Tumblr: enki2
Github: enkiv2
Soundcloud: enkiv2
itch: enkiv2
Contact:

Re: itch.io uploads -

#8 Post by enkiv2 » Sun Aug 20, 2017 3:19 pm

Related:

Butler on windows seems to currently support bz2. Will the next release have the linux package upload path enabled? (Or is support for bz2 still missing on butler on other platforms?)

User avatar
PyTom
Ren'Py Creator
Posts: 15446
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: itch.io uploads -

#9 Post by PyTom » Sun Aug 20, 2017 5:01 pm

I'll check it out, but assuming it works on Linux I'll enable that.
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

bumblebeary
Newbie
Posts: 3
Joined: Sun Nov 19, 2017 12:35 am
Deviantart: carbuncle22
itch: bumblebeary
Contact:

Re: itch.io uploads -

#10 Post by bumblebeary » Wed Jan 24, 2018 2:57 pm

Is it all right that I ask another itch build question here?

When I try to build distributions, it gives me the error page:

"The name of your itch project has not been set. Please create your project, then add a line like

define build itch_project = "user-name/game-name" to options.rpy"

The name of my project is Black Box, and my username is bumblebeary, so I added this line:

define build.itch_project = "bumblebeary/black-box"

to options.rpy under the "build distributions" section, but I keep getting errors. Is there somewhere else/something else I should be doing? Thank you so much

User avatar
PyTom
Ren'Py Creator
Posts: 15446
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: itch.io uploads -

#11 Post by PyTom » Wed Jan 24, 2018 8:51 pm

That should be it. But doesn't that line exist already?
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

Post Reply

Who is online

Users browsing this forum: Google [Bot]