Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Thanks for your reply.

Oh, so it’s just using Python libraries to embed a Chromium browser? I know it’s likely a Chromium inside since when I playtest, the end result only matches what looks in Chrome and not in Firefox, though the default zoom is still different after weaved. (I know I can zoom in with Ctrl +, but I figured if I can make the user not need to do that at start that’d be nice quality-of-life)

If I am to treat it like any browser, then Javascript as I understand now will not be able to close the window. :(

(6 edits) (+1)

Yes exactly, it’s opening a chromium browser. I believe I can embed an API inside the PyQtWebEngine code to add this functionality, but you’d need to manually edit the HTML with some Pythonic API calls. 

The Python code for this project I have published as open source, found below. It sounds like you are technically minded, so maybe it would help you to take a look? 

Inside the python code is a large block of text as a variable. This block is what is run to boot the HTML file - the code around it runs as a wrapper to install this “python file as a variable” along with your html file and assets. 

I hope this is helpful!

Once my uni exams are over in late Jan, I will work on the update and add the suggested functionality.

Oh  - you can also manually set the geometry and zoom if you’re editing the code :) 

https://github.com/H4KKR/Weaver-Twine-to-Exe-easy-

Can you make a version of weaver that allows input of a .py file that’s what’s in MAIN_APP_CODE? You can refuse if it’s against your interest, no worries.

You mean a version that can just turn a py file into an exe? I could but it’s quite easy to do with other tools that I don’t think there’s a market for it. I choose to convert Twine games to exe because a lot of people were fed up with having to learn a new skill before being able to do something so simple as packaging their game as an exe. It should be a simple task, but without knowing Electron or Python, it becomes difficult. 

If you’re just looking to package a py file as an exe,  have a look at this open source project:

https://pypi.org/project/auto-py-to-exe/

Thanks for your reply!

Do you have a way of contacting you outside of itch? I can explain the specific project needs and what I’m currently stumped on regarding modding your code.

Yes - email me at itch.io.rerun878@passmail.net