View Full Version : Thinbasic runs on my smartphone (OS=ANDROID!!!!)
ReneMiner
15-02-2019, 00:21
No joke! You probably heard of "wine" = Which Is No Emulator...
It's possible to execute thinBasic-Scripts through that.
:dance1:
Current issue is that richtext and treeview of thinAir stay black because I don't have the required .dll for those... Also I tried till now only console-example-scripts. Modules as UI will probably not satisfy...
And I had a request to Petr. Could it be possible to create a stripped-down, lightweight TBGL-Module?
No m15-models, no TBGL-window but fullscreen by default,
simple things as displaylists only - not even sprites.... Am trying to get something - should be bit older - that serves as OpenGL.dll in the meantime- if required at all... mobile phone has opengl built in but have to communicate somehow
ErosOlmi
15-02-2019, 11:37
Which version of wine are you using?
ReneMiner
15-02-2019, 14:29
Currently I'm using a mix of wine-3.14-arm.apk and wine-4.1-arm.apk.
I did that on purpose so I renamed wine-4.1 to wine 3.14 to have the effect of an "update".
Some issues I have: without external Keyboard I have to use additional "Hacker's Keyboard" (download at Google play store) since it's possible to enable/disable this keyboard.
For the thinBasic-installation i used "exagear" which is a windows-strategy-game-emulator but it's based on wine too.
Exagear offers a free 3 day trial - time enough to run the thinbasic-installer and save the c:\-folder...
The problem is that I have Android 8 on the phone which is locked and occupied by google's despotism. Wine installs to the internal storage and creates the emulated c:\-drive in an area where I don't have access. And "stupid wine" doesnt request the rights to load or write on external storage (sdcard). Maybe it could help to root the phone but I don't trust those one-click-root-offers and I don't have possibilities to connect phone to a PC and put another OS onto it.
My solution for that will be another software ( I use Dual-Space) that I let keyboard, text-editor, thinbasic and wine run together inside that "virtual reality" so the dual space asks a lot of permissions and while the other programs run encapsuled inside the second space all there requests to load and save should be granted. I will try when I finished work today...
ReneMiner
15-02-2019, 14:41
Another one (see screenshot)
Newer android-phones have open gl implemented already.
And for the small screen of a phone are no windows required, but if then we can draw them ourselves.
I wish Petr would have a look at it and remove the tbgl-window and few other burdens of tbgl to run open-gl fullscreen only. I still have a GUI ready to use 😎😏
ReneMiner
15-02-2019, 20:01
For interested, the Wine-crew are at GitHub and also at https://wiki.winehq.org/Download. Obvious they're all Linux users else they would know about strange things as scalemode "twips" of windows. Wine has a problem displaying windows in correct size :evil:
ReneMiner
21-02-2019, 02:00
There's also a pc-emulator available (the only one that really works, just a bit slow). You can run thinBasic on an emulated Intel pentium 3 inside your android-phone.
grab the emulator here: https://play.google.com/store/apps/details?id=lb.myapp.lbochs&hl=en&referrer=utm_source%3Dgoogle%26utm_medium%3Dorganic%26utm_term%3Dgoogle+play+store,+lbochs&pcampaignid=APPU_1_FM9tXN_xA_KTlwSs6auQBg
Before you start to "tweak and tune" the provided machine I suggest you will create a backup of the files-folder. Locate it in
/storage/emulated/0/Android/data/lb.myapp.lbochs/
I had to uninstall and reinstall twice already :D
If interested I will pm you download-link of my virtual HD and pc-setup, stored at google-drive
Petr Schreiber
23-02-2019, 09:55
Hi Rene,
I am sorry, but I am currently under heavy work load till ~end of April. However, as TBGL is available on gitHub, you can fork it and adjust as needed:
https://github.com/ThinBASIC/thinBasic_TBGL
Petr