gaider10 / crossroadfinder Goto Github PK
View Code? Open in Web Editor NEWFinds different crossroad formations on a set seed
Finds different crossroad formations on a set seed
It's unclear what the crossroad shapes mean, such as QUINT_LINE, we should document all of them in the main README file for easy reference.
im trying to locate two quad intersections within range of each other but when i run a search over 3 million blocks it wont display the full result. is there a way i can have it export the complete list when it completes?
Hi, could you explain to me how to use it? There is no tutorial.txt in the files and I am a total beginner so I have no idea how to use it. Thank you very much
can someone explain to me how to use the crossroadfinder?
It's useful if you want a structure in a specific biome
Whenever in 1.18.2 using option 5 (maybe more I haven't checked) and tp-ing to the coordinates it lists, most of the structures you tp to are variety of bastions with about only half being what you were searching for.
i am trying to find a good fortress on the seed -7015078764918145110
and having trouble the cords that are out puted do not match where nether strongholds are located this is my text log please let me know if i am using it wrong t is vanilla structures
Enter closest lower version:
0 - 1.7
1 - 1.13
2 - 1.16.1
3 - 1.18
3
Using closest lower version 1.18
Enter numeric world seed
-7015078764918145110
Using numeric world seed -7015078764918145110
Enter fortress salt (leave empty for 30084232):
0
Using fortress salt 0
Enter crossroad shape:
0 - DOUBLE
1 - TRIPLE_LINE
2 - QUAD_LINE
3 - QUINT_LINE
4 - TRIPLE_CORNER
5 - QUAD_SQUARE
6 - QUINT_BLOB
6
Using crossroad shape QUINT_BLOB
Enter maxY (leave empty for 255):
48
Using maxY 48
Enter search radius:
90000
Using search radius 90000
Enter search center X (leave empty for 0):
345448
Using search center X 345448
Enter search center Z (leave empty for 0):
176072
Using search center Z 176072
Found a good shape at /tp 263346 48 159471
there were other tp locations but just using the one as an example
1.18 fabric server, when i launch the programs everything works well but when i use the /tp commands that the software gave me it doesnt teleport me in a fortress, just in middle of nowhere
Add an option to change the origin of the searching from something different to 0, 0. Useful for servers where you may have a "base" and want to find the closest crossroad to the base.
using compile.txt is just shitty, use a makefile man
if i try to execute it, i get a message from windows in the middle of my screen saying the security stops me from doing it. i can't click something like "execute anyways".
I was able to get this to build on Linux (Xubuntu 18.04) with a few changes to main.c and util\Inputs.c:
main.c: added #include <limits.h>
under the line for time.h (for INT_MIN and INT_MAX)
main.c: changed BlockBox *main
to BlockBox *mainBox
in processRegion and updated any references to it (compiler doesn't like the main function and a variable to have the same name)
main.c: system("pause"); doesn't work on Linux, so I changed it to this:
#ifdef _WIN32
system("pause");
#else
printf("Press enter to continue . . . ");
getchar();
printf("\n");
#endif
util\Inputs.c: compiler warns of unused value from fgets so I changed the two fgets(input, 64, stdin);
lines to this:
if (fgets(input, 64, stdin) == NULL) {
printf("Error was encountered from fgets\n");
return 0;
}
I also checked that it still builds and runs correctly using MingGW64 on windows with these changes applied.
gcc -o main -Wall -Werror -O2 -flto -static -static-libgcc *.c fortressgenerator/*.c fortressgenerator/util/*.c util/*.c
>>
fortressgenerator/FortressGenerator.c: In function 'fortressGenerator_generateRandomPiece':
fortressgenerator/FortressGenerator.c:277:41: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
277 | (unsigned long long)lastPieceData - (unsigned long long)pieceData);
| ^
fortressgenerator/FortressGenerator.c:277:77: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
277 | (unsigned long long)lastPieceData - (unsigned long long)pieceData);
| ^
cc1.exe: all warnings being treated as errors
util/Inputs.c: In function 'getLongNormal':
util/Inputs.c:100:24: error: unknown conversion type character 'l' in format [-Werror=format=]
100 | printf("Using %s %lli\n\n", name, *result);
| ^
util/Inputs.c:100:12: error: too many arguments for format [-Werror=format-extra-args]
100 | printf("Using %s %lli\n\n", name, *result);
| ^~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
i tried something like this
printf("Found a good shape at /tp %i %i %i (%i Blocks away)\n", mainBox->minX, mainBox->minY, mainBox->minZ,
(int)sqrt((mainBox->minX - regionX) * (mainBox->minX - regionX) + (mainBox->minZ - regionZ) * (mainBox->minZ - regionZ)));
in main.c line 289, seems to kinda work
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.