Giter Club home page Giter Club logo

factorio-se-stargate's Introduction

Factorio, with its Space Exploration mod, is a captivating game that brought back memories of vector algebra, which I thought I'd forgotten.

โš ๏ธ Important note: If you plan to solve the puzzle yourself, this article may contain spoilers, so proceed with caution.

The game presents a unique puzzle-solving experience. While I found enough information to solve it on Reddit, I wanted to share my interactive graphical solution through this article.

CC2.mp4

Step 1: Check the Ship Log and Find the Destination Vector

The puzzle begins with a clue from the "Ship Log":

Ship log

Here's the key information: the vector used to reach the gate:

[0.37166940297185, -0.036043090065277, 0.927665214693911]

So, it seems that for the player to return to his home world the reverse vector should be targeted:

[-0.37166940297185, 0.036043090065277, -0.927665214693911]

Step 2: Get the Spherical Map for Space Navigation

The game includes 60 archaeological structures, each with pieces of the puzzle. Solving it allows you to convert coordinates into symbols for the star gate.

Here's a piece found in the archaeological artifact (Pyramid):

Map

Each piece includes an upper circle and a bottom circle. The upper circle symbolizes one face of a 60-faced geometric figure called the Pentakis Dodecahedron. Each artifact corresponds to one face of this shape. Assuming we're at its center, finding the direction involves where a line from our position hits its surface.

To get initial coordinates for the symbols, do the "Star Mapping" research:

Star mapping

This research connects symbols with specific coordinates on the shape, intersecting precisely at the face's center.

Using circular diagrams, match all required faces with known symbols. Each diagram shows neighboring faces as seen from inside the Dodecahedron.

early.mapping.mp4

Step 3: Build a Triangular Map for Precision Location

To specify the target coordinates more precisely, split each triangular face into 64 smaller triangles. Identify each smaller triangle with the Star Gate using one of 60 symbols used for Dodecahedron faces, plus 4 additional symbols for corners and the center.

To map triangles to symbols, another piece of the puzzle from the bottom triangular archaeological structures is needed. Every symbol on the bottom triangles has a 1:1 mapping to the symbol used as input on the Star Gate.

The diagram at the bottom shows which small sub-triangles are adjacent to the current symbol.

When combining all those small puzzle chains into the big picture the whole map of 64-sub-triangle surface could be assembled like this:

Step 4: Find Corresponding Symbols for the Star Gate

The Star Gate accepts 8 symbols to specify the target vector destination. The first symbol defines the Dodecahedron facet, the second defines the sub-triangle, and subsequent symbols define further sub-triangles.

So the algorithm could be as straightforward as this:

  1. Find the closest facet to your destination point.
  2. Facet index is your first symbol to enter into the star gate.
  3. Find the intersection point of your destination vector with the facet surface.
  4. Find the closest sub-triangle index to your intersection point relative to your current triangle.
  5. Sub-triangle index is the next symbol to enter into Star Gate.
  6. Go to step #3 but with a newly obtained triangle for each step.

Step 5: Enter Symbols into the Star Gate and Fine-Tune

Entering symbols incrementally increases energy consumption. To enter target coordinates, ensure a stable power capacity of 90GW.

Entering symbols in the wrong order may prevent the Star Gate from functioning properly or lead to hostile entities appearing. Laser turret defenses are recommended.

The Star Gate logs the target vector coordinates in the game journal after each attempt, aiding visualization and troubleshooting.

The Star Gate can also be used for positioning as an alternative to Star Mapping research: enter the first symbol of interest and repeat the symbol for the center of the triangle 7 times.

factorio-se-stargate's People

Contributors

megaboich avatar

Stargazers

 avatar  avatar

Watchers

 avatar

factorio-se-stargate's Issues

Cannot solve

I'm having an issue solving for a destination of [0.18046773886046, 0.29711777822653, 0.93763128205725]

It returns destination 0, but then returns 'value must be truthy' when trying to determine the intersection of the first face (25) with the line. The obvious answer would be that the destination has been miscalculated, but I've checked and it's right (it's just the inversion of the coordinates in the log).

It feels like I'm missing something obvious....?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.