Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pjagada/strongholdnotcalculator

lookup tables, their generators, and readers for perfect travel
https://github.com/pjagada/strongholdnotcalculator

Last synced: about 1 month ago
JSON representation

lookup tables, their generators, and readers for perfect travel

Awesome Lists containing this project

README

        

# StrongholdNotCalculator
Minecraft random seed speedrunning legal stronghold finder using perfect travel

Note: On December 9, 2021, calculators were unbanned, so this tool is outdated. Use [Ninjabrain-Bot].

## Before you use this, learn how perfect travel works
Read the [Perfect Travel document] and/or watch the [Perfect Travel video] to understand how perfect travel works.

This script will replace the need for you to do any math, so the important thing is to learn how to get the angle, which is found in pages 5 and 6 of the [Perfect Travel document].

In addition, as of release 2.0, you no longer need to stand at 0,0 in the chunk.

## Setup instructions:
Download the [latest release]. Try downloading the exe version, and if you can't figure out how to get around the anti-virus, then download the py version; it'll do the same thing.

If you downloaded the py version, you will need to [install Python].

Extract the zip folder's contents anywhere (make sure they're all in the same folder).

Run either everyCorner.exe or everyCorner.py. It'll probably take around 10-20 minutes to generate the needed tables. You'll know it's done when if you right click on your tables folder, then click Properties, it'll say "Contains: 1,032 Files"

[Download and install AutoHotkey]

### Different options for getting final coords:
[Download and install debugview]. This will be a log window that the script will output your coords and angle to. When you run DebugView, click Edit in the toolbar at the top, click on "Filter/Highlight," then replace the asterisk with "Perfect" (without the quotes) to make sure that you don't get a bunch of other stuff clouding your DebugView.

and/or

Set up a text source in OBS that reads from a text file called coords.txt located in the folder that you extracted everything into (it may be easier to do this after you run the script once to generate the text file).

and/or

The script will replace your clipboard with the coords you need to go to once they are ready, so if this works for you, you don't need to do any other setup.

and/or

Enable TTS by right clicking on the script file that you need, clicking edit script, and changing where it says False at the top to True

## Use instructions:
Run the ahk script that you need by right clicking on the script file and clicking Run Script.

Open up DebugView if you want to use it.

Wedge yourself in any block corner (as of release 2.0, it doesn't need to be a chunk corner and it doesn't need to be on the northwest corner of a block; any corner works), and get your angle.

Once you get your angle and f3 c, pause and press Ctrl P if you plan on throwing 2 eyes, and Ctrl Shift P if you plan on throwing 1 eye (edit these hotkeys at the bottom of the script).

Follow the instructions in the GUI.

If you're doing 1 eye, then after a couple seconds, your clipboard will contain the coords you need to go to, the text file will generate, and DebugView will also show the coords.

If you're doing 2 eye, then go several blocks away (not in line with your eye throw), wedge yourself in a block corner, throw another eye, get your angle, f3 c, and press Ctrl P again. I have no idea how far apart the two throws should be. Just to be safe, maybe go like 5-10 blocks ish, but I have no idea if that's way too much or not enough. You may have to play around with it.

After it's done "computing" the numbers for the second eye (it'll take a couple seconds), your clipboard will contain the coords you need to go to, the text file will generate, and DebugView will also show the coords.

### Ctrl B:
If you f3 c in the nether and press Ctrl B (you can change this hotkey at the bottom of the script), a number will be shown on screen that is the distance from 0 0. This works as long as each coordinate's absolute value is less than 300 blocks. This can be useful for blinding at optimal coordinates or potentially portal divine.

## Possible questions
### Legality?
It doesn't break any rules since it's not calculating anything, just searching through lookup tables the same way the Twitch bot does.
### Should I use 1 eye or 2 eyes?
According to Four, the odds of hitting the chunk on 1 eye perfect travel when done properly are around 65%. That error partially comes from side-to-side error (the angle may be off by 0.01 degrees), and because of the way perfect travel works, you'll get completely different offsets. The error mostly comes from the fact that most angles have multiple possible offsets, and with throwing 1 eye, we don't know which one to use.

Throwing a second eye from an adjacent chunk accounts for both of those errors, giving basically a 100% success rate when done right. However, it is obviously slower to throw eyes.

Basically, one eye is faster and riskier, two eye is slower and safer.

## Notable runs using notcalculator

This is as of December 9, 2021, the day of the calculator unban.

### 1 eye:

[epnok 11:03 IGT] - top 2 fastest run to use perfect

[Cube1337x 11:05 IGT] - top 2 fastest run to use perfect

[Horsey 8:49 IGT stronghold enter]

### 2 eye:

[Specnr 11:10 IGT] - fastest run to use 2 eye perfect

[MoleyG 11:50 IGT]

[Horsey 12:04 IGT] - first major run to use notcalculator, former fastest run to use perfect

## Credits
jojoe77777: created this concept and [the original implementation] and helped with basically everything

Four, Sharpieman20, others: created Perfect Travel and answered lots of questions

Bluesmoke, Gregor, pncakespoon: helped with data generation for anywhere in the chunk

Specnr: had miscellaneous ideas to improve the tool

[latest release]:
[Download and install AutoHotkey]:
[Download and install debugview]:
[Perfect Travel document]:
[Perfect Travel video]:
[install Python]:
[Horsey 8:49 IGT stronghold enter]:
[Cube1337x 11:05 IGT]:
[epnok 11:03 IGT]:
[MoleyG 11:50 IGT]:
[Horsey 12:04 IGT]:
[the original implementation]:
[Ninjabrain-Bot]:
[Specnr 11:10 IGT]: