Giter Site home page Giter Site logo

crossroadfinder's People

Contributors

gaider10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

crossroadfinder's Issues

not really an issue more a request i guess

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?

Explanation

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

how to use

can someone explain to me how to use the crossroadfinder?

Doesn't just find fortresses.

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.

ihave a question about if wether i am using crossroads incorrectly

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

wrong coords

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

[Suggestion] Add Origin Option

Description

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.

Build on Linux

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.

Getting compiler errors on mingw32-base-bin

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

[Suggestion] add distance info

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

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.