Page 1 of 1

itch.io uploads -

Posted: Mon Sep 19, 2016 2:54 pm
by Shakezula
Wait, what?

Image

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

Re: itch.io uploads -

Posted: Mon Sep 19, 2016 10:55 pm
by PyTom
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.

Re: itch.io uploads -

Posted: Tue Sep 20, 2016 12:04 am
by Shakezula
that did the trick! thanks.

Re: itch.io uploads -

Posted: Tue Sep 20, 2016 12:20 am
by Shakezula
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

Re: itch.io uploads -

Posted: Tue Sep 20, 2016 3:12 am
by Morhighan
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.

Re: itch.io uploads -

Posted: Thu Aug 17, 2017 4:20 pm
by enkiv2
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.)

Re: itch.io uploads -

Posted: Sat Aug 19, 2017 3:18 pm
by PyTom
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.

Re: itch.io uploads -

Posted: Sun Aug 20, 2017 3:19 pm
by enkiv2
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?)

Re: itch.io uploads -

Posted: Sun Aug 20, 2017 5:01 pm
by PyTom
I'll check it out, but assuming it works on Linux I'll enable that.

Re: itch.io uploads -

Posted: Wed Jan 24, 2018 2:57 pm
by bumblebeary
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

Re: itch.io uploads -

Posted: Wed Jan 24, 2018 8:51 pm
by PyTom
That should be it. But doesn't that line exist already?