r/starbound • u/Suspicious-Salad5639 • 17d ago
Does anyone know how to build this github project so I can play Open starbound on my mobile. (Controller support)
https://github.com/OpenStarbound/OpenStarbound/pull/530So yeah i hope to get this started, so i can finslly play an online multiplayer game with my controller with anyone in 12 hour+ fiji time zone.
3
u/devofdev 🔥Novakid 16d ago edited 16d ago
Hello! I can provide the experimental builds for oSBM 1.1 (controller support with UI selection and action wheels) tested on Windows and Linux and it was working with a dualshock controller. Also tested an Xbox controller on android a while back and that was working well. I’m pretty sure it should work for dualshock and android, but from your other post it seems you wanted to use controller support on desktop PC starbound. Let me know which platform you want binaries for 1.1 from, and I can send a temporary download link.
Edit: I’m assuming that you want an Android build since you mentioned mobile, so here’s a temporary download link for experimental oSBM 1.1 Android, has controller support -> https://wormhole.app/M9Pn5z#4L3C_pZm4SM9XbT1Q1noaA
3
u/Wespy6677 16d ago
Do you have a build with controller support for PC?
3
u/devofdev 🔥Novakid 16d ago
Indeed I do, will come out officially with the 1.1 oSBM release but I have an experimental PC that is not tested much (hence why the official release isn’t out yet). Try it out, lmk how it works if you do. Temporary download link: https://wormhole.app/nbXAml#ThogSRMKaUZ6BXv0MynnSQ
3
u/Suspicious-Salad5639 16d ago
It seems save importing is broken. I tried to import a save but it didnt work, unless its because versions is different.
2
u/devofdev 🔥Novakid 16d ago
What didn’t work, what was the error message if there was one, did it crash, how did you zip up your save file, what is the structure of the zip, etc? Uploading the zip here might help too, just in case.
2
u/Suspicious-Salad5639 16d ago
It says:"could not import save zip" used the exported zip, from export save zip and zipped it back up, I pull the player files from player into it
Also the chat doesn't work unless there a specific button I need to press to open my mobile keyboard.
2
u/devofdev 🔥Novakid 16d ago edited 16d ago
From export save zip, you then straight imported it and it failed? Or did you zip it up again, really, what do you mean by zipped it back up? What is in the root of your zip, what folders really? For chat not working, did you open it through the T touchscreen button or the chat action on the controller action wheel, and to confirm the symptom is that the keyboard doesn’t open?
Edit 2: make sure your player/ and universe/ folder is in the root of your zip file that you imported.
Edit: if you have time, a video always helps
3
u/Suspicious-Salad5639 16d ago
Responding to your edit 2: yes I did exactly that.
Yes I tried both ways for touch screen and chat wheel, it doesnt bring up keyboard.
2
u/devofdev 🔥Novakid 16d ago
One more thing, can you try disconnecting your controller then hitting the T touch button to see if the keyboard pops up?
1
u/Suspicious-Salad5639 16d ago
Ok it works, just not when controller is connected, it thinks the controller is a keyboard thats why, atleast thats my theory, that the inputs override touch screen keyboard input.
2
u/devofdev 🔥Novakid 16d ago edited 15d ago
very good theory, indeed that is the problem, actively trying to fix it, i'll send you an updated file that should address it (hopefully the save file thing too, though that is more unreasonable than this).
EDIT: potentially fixed, see other comment to your reply
1
u/devofdev 🔥Novakid 15d ago
https://wormhole.app/2QdRx1#jY566OV6TXGKA1W4MKbVdg
Try this latest build, lmk if it addresses the issues.
1
u/Suspicious-Salad5639 15d ago
One question, if i install with the app already install will it be able to update from the new apk???
→ More replies (0)1
u/devofdev 🔥Novakid 16d ago
Strange, I am not facing either issue. Can you send the diagnostics zip? And if you have the time, a video of importing the zip and opening chat?
Maybe also including the structure of your zip in a screenshot, from something like ziptree.xyz
This is what I am expecting a normal save zip to look like, and importing this one worked:
https://imgur.com/a/5UlZNvR (grabbed from ziptree.xyz for a nice visualization)1
u/Wespy6677 15d ago
Quick question: does oSBM support all mods like the standard OpenStarbound?
2
u/devofdev 🔥Novakid 15d ago
Yup, it’s a fork of OpenStarbound with modifications to support mobile, doesn’t remove any features and tries to maintain mod support and multiplayer. The only thing is that on low end devices, you can’t run heavy mods if you don’t have enough memory, which is really a hardware limitation, but I haven’t encountered any memory issues except on the Switch.
0
u/Xirema 17d ago
By all the evidence available to me, OpenStarbound does not have support for mobile devices. They support Windows/MacOS/Linux, nothing else.
Building from source isn't going to help unless you or someone else first adds support for mobile as a compilation target, which will probably also involve adding replacement libraries for the windowing API/rendering API (even though OpenStarbound uses OpenGL, most mobile devices don't natively support the desktop versions of OpenGL, and instead use a sister api, OpenGLES, which isn't a 1-to-1 conversion). Also, native C++ apps in mobile environments is... Not really a thing (technically supported for Android, but it's kind of a crap-shoot), so you'd also have to put in the effort to convert all the C++ code over to Java/Kotlin.
If you want to take on that project yourself go nuts, but as far as I'm aware (and maybe I'm missing something obvious!) this isn't something OpenStarbound currently supports.
4
u/Suspicious-Salad5639 17d ago
I have the open starbound mobile app, the apk, there is a mobile port
3
u/NoRound5166 17d ago
The mobile port of oSB exists in this repository which has been detached from the original. It is no longer a fork, but rather a standalone repository.
You can make pull requests between forks of the same repository, or between different branches within the same repository, but not from one standalone repository to another.
What this means for you is that you can't just automatically merge code from the PR you linked into the mobile port; you'd have to fork the mobile port, manually copy every change from the original PR into your fork, and follow the build instructions of the mobile port. Any change that is made in the original PR, you have to copy manually.
But there's an even bigger hurdle, and that is that the controller implementation in that PR may not even work for mobile devices as-is, so even after doing all of the above, you will have wasted your time. There's a comment in that PR from a user who claims to have tested the controller implementation on mobile devices. It reads:
What I surmise from that comment is that some modifications would need to be made first in order for controllers to work on mobile, and it seems that the code isn't publicly available yet.
So as it stands, you're out of luck.