what is the best place to upload a mod?
I personally recommend Github. They won't limit your downloads (like google drive will), let you use one link to always point to the latest release, let you use a direct link to the file, and the links will stay up until Microsoft goes out of business.
Unrelated, I've spent most of today fooling around with a project that needs to save persistent data for individual ships. In the interest of not having other people repeat the same experiments, as far as I can tell, the only way to actually accomplish this is to turn your data into a string (via JSON or bytes to base64) and save it in the variant tags for that fleet member's variant. I tested:
- a WeakHashMap<FleetMemberAPI, data_object> stored in sector memory, which didn't work; fleet member objects appear to be created new when the game loads, which breaks the references.
- a HashMap<String, data_object> stored in sector memory using FleetMemberAPI.getId() for the keys. This notionally works, but putting ships in storage changes their ID string, and since you have to clean up the map when the game saves to avoid bloating saves, you'll lose the data for any ships the player puts in storage.
If anyone has other ideas (that aren't too hard to implement), I'd like to try them, because honestly storing data in variant tags feels insanely sketchy.