Fractal Softworks Forum

Starsector => General Discussion => Topic started by: StudentRadio on April 28, 2022, 05:05:04 AM

Title: Search your sector for good colony sites: Persean Commercial Realty Group
Post by: StudentRadio on April 28, 2022, 05:05:04 AM
Hi!

I developed a web app that Starsector players can use to experiment with different colony builds and find good places to establish colonies. It lets you specify how you want to build your (size-6) colonies, then reads your save file and simulates those colonies on planets in your sector.

I tried to make the simulation as accurate as possible. It factors in accessibility, hazard rating, planetary conditions, structure configurations (improvements, AI cores, and special items), administrators, cross-faction imports, and the demand for commodities in your economy. So it can help you decide whether to colonize a nearby planet with a low hazard rating or a more distant planet with more resources or better conditions for special items, for example.

The search results are sorted by profitability, but you can also see statistics like stability, fleet size, ship quality, and ground defenses.

It'll only show fully-surveyed planets by default, but you can configure it to show spoilers as well if you want to.

Check it out!

https://gomtuu.org/starsearcher/

I've tested it with vanilla Starsector 0.95.1a-RC6 save files.
Title: Re: Search your sector for good colony sites: Persean Commercial Realty Group
Post by: Oni on April 29, 2022, 10:03:49 AM
A nice idea, though 'Parsing' my Xml seems to be taking a very long time (probably due to mods, I'm still waiting actually), but it would be even nicer if you could add tabs to determine the planet type as well (ie Terran, Barren, Jungle, etc).

That way if you clicked Terran and Jungle, you'd know that the planet it was trying to apply the buildings to was of those types.
Title: Re: Search your sector for good colony sites: Persean Commercial Realty Group
Post by: ubuntufreakdragon on May 02, 2022, 01:16:51 PM
It searches for the wrong things, you need a list of deposits not some combination of industries.
e.g. I want a system with these min requrements:
rare ore
ore
3 planets min
I also would like these:
violates
organics
food
cyosleeper
gate
....
for any non essential requirement
i give a score change
food +1000
violates +1000
organics +1000
gate +500
extra planet + 400
greater deposit +50

Also your menus are not really useable on lower screen resolutions.
Title: Re: Search your sector for good colony sites: Persean Commercial Realty Group
Post by: StudentRadio on May 09, 2022, 03:33:03 PM
Thanks for the feedback!

'Parsing' my Xml seems to be taking a very long time (probably due to mods, I'm still waiting actually)

The parsing step usually only takes a few seconds at most, so there must have been an error parsing your save file. And yeah, that's probably because of untested mods.

I updated it to show an error message, at least. And when a parse error occurs, you can find details about the error in the help section. That way, you can send me an error report if you want to.

When I posted this in r/Starsector, some users told me it worked (at least in part) despite the mods they had installed, so it seems like not all mods will cause a fatal error. One that might is Beyond the Sector, but I haven't confirmed that.

Also your menus are not really useable on lower screen resolutions.

Fixed! The dialog boxes are now scaled down if they're too tall to fit in the window.

it would be even nicer if you could add tabs to determine the planet type as well (ie Terran, Barren, Jungle, etc)

It searches for the wrong things, you need a list of deposits not some combination of industries.

While I was working on PCRG, I convinced myself that the final stats are what really matter about a colony or set of colonies. Because PCRG runs a detailed simulation of the colonies—including the effects of resource shortages, stability penalties, in-faction demand discounts, and more—you can see how they'll end up operating and compare them on that basis. So I don't think the ability to specify that a colony must be on a Terran world or must have rare ore would improve the results. Can you give me an example of a situation where it would be beneficial?

Also, FYI: it already lets you search for a planet near a gate or cryosleeper. To search for the latter, just add a cryorevival facility to a colony. (This won't spoil undiscovered cryosleepers for you unless you choose the "Show all planets" spoiler option.)
Title: Re: Search your sector for good colony sites: Persean Commercial Realty Group
Post by: Phyroks on May 09, 2022, 11:54:42 PM
Thanks, dont feel like exploring half the sector for colony this time  ;D
Title: Re: Search your sector for good colony sites: Persean Commercial Realty Group
Post by: Arthur_The_Ok on July 06, 2022, 06:51:43 AM
Parsing error

{"stack":"TypeError: Cannot read properties of undefined (reading 'children')\n    at https://gomtuu.org/starsearcher/starsearch.js:1574:39\n    at NodeList.forEach (<anonymous>)\n    at parse_xml (https://gomtuu.org/starsearcher/starsearch.js:1569:55)\n    at https://gomtuu.org/starsearcher/ui.js:677:17","message":"Cannot read properties of undefined (reading 'children')"}