Vhati / ftl-profile-editor

Profile editor for FTL: Faster Than Light (www.ftlgame.com)
GNU General Public License v2.0
128 stars 30 forks source link

Way to get and set the position of a beacon #70

Closed Niels-NTG closed 6 years ago

Niels-NTG commented 9 years ago

Presently there doesn't seem to be a way to get or set the x- and y-position of a separate beacon inside a sector. There doesn't seem to be anything in this repositories source code that could do such a thing. But could it be possible to retrieve this information somehow?

Vhati commented 9 years ago

If you're referring to beacons' layout as displayed FTL's sector map, they're essentially a grid (top-to-bottom, left to right). But there's a random seed involved in jostling them, deciding column sizes, and assigning events to trigger on arrival. It has not been reverse-engineered.

Vhati commented 9 years ago

You can blindly scramble them all with this.

SavedGameState.setSectorLayoutSeed(int)

Vhati commented 6 years ago

v26 has been released!

It adds the RandomSectorMapGenerator class, which takes the layout seed and reconstructs the beacons' scattering. This amounts to read-only access to their x, y positions.