#1 2026-09-19 17:17:10

mscardone
Member
Registered: 2026-08-29
Posts: 5

Prototyper - solves the Invention discovery puzzle in ~7 swaps (RS3)

Prototyper is a free Alt1 app for RuneScape 3.

The app answers one question: which two modules do I swap now to get a Perfect discovery?

screenshot.png

The problem

When you discover a blueprint at an Inventor's workbench, you put five modules in order. The game shows only a rating: Poor, Satisfactory, Good, Very Good, Excellent, or Perfect. A Perfect order gives the most experience. The usual method is to try each pair of modules and keep the swap if the rating gets better. That method needs 26 swaps on average.

An older thread asked for a tool for this puzzle: https://runeapps.org/forums/viewtopic.php?id=387. The answer then was that only a brute-force pattern was known. Prototyper uses each rating as information, so it does not need the brute-force pattern.

What the app does

  • The app finds the Discovery window on the screen.

  • It reads the five modules and the Optimisation rating.

  • It shows which two modules to swap. It shows them in the app window and as two green boxes on top of the game.

  • Drag one boxed module onto the other. Wait one second. The app reads the new rating and shows the next swap.

  • When the rating is Perfect, the app tells you to press Invent.

This image shows the overlay in the game.

overlay.png

Other functions

  • You do not have to follow the advice. The app reads each swap that you make and uses the result.

  • The app saves its progress for each blueprint. You can close the window and continue later.

  • If the app reads a rating incorrectly, click the correct rating. The app remembers the correction. If the app cannot read a rating, it asks you to click it.

  • A manual mode works without screen reading, also in a normal browser. You click the rating and the tiles.

  • The app does not help with the first step, where you select 5 materials from 10.

Results

I played the solver against every possible puzzle. There are 7,200.

  • Prototyper: 7.0 swaps on average. The worst case is 13 swaps.

  • Try each pair and keep improvements: 26.3 swaps on average. The worst case is 67 swaps.

  • From an Excellent start: 5.4 swaps. From a Poor start: 7.4 swaps.

A deeper search improves the average by only 0.05 swaps. I think the result is near the limit of the puzzle.

Install

Paste this link into the Alt1 browser address bar:

alt1://addapp/https://projects.scottcardone.com/prototyper/appconfig.json

The app needs the pixel permission and the overlay permission. It works with Windows display scaling (125%, 150%) and with the interface scaling setting of the game.
Manual mode also works in a normal browser: https://projects.scottcardone.com/prototyper/

How the app works

  • The RuneScape Wiki gives the scoring rule. Each slot has a hidden rank from 1 to 5. Each module has a hidden rank from 1 to 5. The score is the sum of the rank differences. The rating is a bucket of that score.

  • The slot ranks are not in order from left to right. My own screenshots show this. Thus there are 120 x 120 hidden states. A mirror symmetry decreases this to 7,200.

  • Each rating that you see removes the hidden states that do not agree with it.

  • For each of the 120 orders, the app estimates the cost to look at that order: the swaps to get there, plus the expected distance to the solution, plus a penalty for the uncertainty that stays. It moves toward the best order. When 300 or fewer states stay, the app plays out each of the 10 possible swaps to the end and takes the best one.

  • If the ratings do not agree with the model, the app tells you. It then continues with a simple search that does not visit an order twice.

  • The app finds the window by the shape of the module row. The frames of the five slots make a regular pattern of ten lines. The app fits this pattern to get the exact position and the exact scale, and all other measurements use that scale.

  • The app does not use an icon library. It makes a brightness fingerprint of the artwork in each slot and follows the modules by their fingerprints.

  • The Alt1 fonts do not match the rating text. The game shows some ratings in colour and some in white. The app isolates the bright text and measures the rating word: its width compared to the word "Optimisation:", one word or two words, and the shape of the first letter. These measurements do not depend on the font size.

  • A reading counts only after three equal reads in sequence. Thus a module that you are dragging does not cause an incorrect reading.

  • The app is a static page. It has no build step and no server.

Known limits

  • I tested interface scales other than 100% on resized copies of a real capture, not in the game. If the app does not find the window at your scale, send me a capture.

  • If the green boxes are in the wrong position, change "overlay scale" at the bottom of the app.

  • The full Discovery window must be on the screen.

  • A game update that moves the interface will stop the screen reading until I make new templates. Manual mode continues to work.

Source and credits

The source is public: https://github.com/mscardone/prototyper
Puzzle rules: the RuneScape Wiki (CC BY-NC-SA). Thanks to Skillbert for Alt1.
This is a fan project. It is not affiliated with Jagex.

Report problems in this thread. Open "reader debug" in the app, download the capture, and attach it. Tell me which rating the game showed.

Last edited by mscardone (2026-09-19 17:17:47)

Offline

Board footer

Powered by FluxBB