Page 1 of 1

[Solved] Openning local html file in browser

Posted: Fri Mar 20, 2020 8:58 am
by inajke
Hi, I've tried some posts on the forum, but still can't get how to open the local file. Right now I'm trying to do this:

Code: Select all

textbutton "wiki" xpos 650 ypos 450 action OpenURL("file:///" + config.basedir + "/wiki.html")
but it opens IE with a standard page. I've tried to specifiy the path to game/wiki.html, but couldn't get it either. Can someone help please?

I'm sorry for my english

Re: Openning local html file in browser

Posted: Fri Mar 20, 2020 10:29 am
by RicharDann
If you're running the game from the Ren'Py Launcher, try copying wiki.html to your renpy-sdk folder (from where you run renpy.exe) and see if that works.
I think it uses the folder from where the game was executed to determine the url path.

Re: Openning local html file in browser

Posted: Fri Mar 20, 2020 5:57 pm
by inajke
Thats working as intended! Thank you very much