Tutorial VN Others How to port TyranoBuilder/TyranoScript games to Linux

gulf123

Newbie
Mar 31, 2020
17
15
1. First, you need a game that using the TyranoBuilder engine.

For example, Female Teacher Brainwashing and Training
The Game looks like this.
1716443699270.png

2.You need to download the linux version of electron v9.4.4 from the which is called electron-linux-x64.zip . (you can also download a mac os version if you are interested)
The unzipped archive with the electron looks like this
1716444206630.png
Now we need to replace the resources folder from the game folder to the electron folder
and we open this folder.
There may be an extracted app folder or an app.asar file.
1716444568621.png
If there is a file there, you need to extract the folder and name it app (the archive can be extracted using the program).


After that, we need to edit the resources/app/tyrano/libs.js file.

3.searching for the line $.userenv = function() { in this file
1716444644372.jpeg
and replace the function inside with
1716444672090.jpeg
Code:
        var userAgent = navigator.userAgent;

        if (userAgent.match(/iphone|ipad|ipod/i)) {
            return "iphone";
        } else if (userAgent.match(/android/i)) {
            return "android";
        } else {
            return "pc";
        }
4.After modifying the file you are done with the linux build of your game
you can launch it using electron executable file
 
Last edited: