monkeylashes
← Homeworld: Unbound

Homeworld: Unbound 0.7: internet play works, and a new package name

Two of the things I changed in this build are behind-the-scenes stuff, and both had been wrong since the first release.

The app still had the old project’s name

The package name was org.gardensofkadesh.homeworld, inherited from the project I forked this from. Now it’s org.homeworldunbound.game.

That’s more than cosmetic. Android keys an app’s data folder off the package name, so as far as the headset is concerned this is a different app. It installs next to the old one instead of over it, and your saves and game data stay behind in the old folder. You end up with two “Homeworld: Unbound” entries in your library, one with everything you’ve done and one empty, and nothing to tell you which is which.

If you’ve played an earlier build, use install.py instead of the bare APK. It moves everything across on the headset in seconds, without pushing most of a gigabyte back over USB, checks every file arrived before it deletes anything, and offers to remove the old app afterwards. A fresh install needs nothing special.

The version number had never changed

The APK said it was version 1.2.0, build 1. That’s the version of HomeworldSDL, the engine this is built on, and it had nothing to do with my releases. It also hadn’t moved once across all seven of them.

Sideloaders and app listings use that number, and only that number, to tell whether a build is newer than the one that’s installed. So every release looked the same as the one before it, and an update never registered as an update. Now it matches the release, version 0.7 and build 7, and both will go up with each release from here on.

Internet play, fixed for real this time

0.6 diagnosed three bugs and said all three were fixed. Two were. The one that survived was the host filing a joining player under the address its own connection reported, instead of the address that player calls itself. That killed every internet game at Start Game, when the joining player looked for itself in the player list and wasn’t there.

It’s fixed in this build. Everything else is unchanged from 0.6: the host forwards TCP 10500 and UDP 10600, whoever joins forwards nothing, it’s two players, and you can’t both be on the same home network range.

A saved path that no longer existed

The game stored the full path to its data folder and never checked that it was still there. Anything that moved the folder (this rename, a hand-copied install, a restored backup) caused a startup error quoting a path you’d never typed and couldn’t fix from inside the game. Now it falls back to wherever it’s actually running.