Comments (15)
The different programs need different versions of .NET, so I don't even see how you would be able to run both of them at the same time in a simple way
Although it should be quite easy to have both versions installed, I do agree that it is quite stupid that two different versions of .NET are used. I'll fix this asap, hopefully this weekend if I can find the time. Feel free to open a PR to fix it yourself
So I started with only trying to get the MasscanWrapper to work.
It doesn't work 😢. Please help, I don't understand what's wrong.
The scanner should prompt ask for a location to the Masscan.exe compiled binary. Do you have a functional Masscan.exe file and are you pointing to this file correctly when asked by the scanner?
from minecraft-server-discovery.
I'm unsure. I couldn't get the compiler to work for the Masscan zip, so I used https://github.com/Arryboom/MasscanForWindows instead. This could be the problem, but I don't have the knowlage to compile it myself 😞. (Im on windows 11 so doing this stuff is kinda hard, I managed to get the Masscan to work on my ubuntu laptop however, but I just get a shared library file instead, not a .exe)
from minecraft-server-discovery.
That should actually just work. You can try to run the file yourself to check if it executes.
The scanner points to Desktop by default, is this where the Masscan is located to? You could try to change the location of the file.
from minecraft-server-discovery.
I got it to work! For some reason it just worked this time, it was probably because I renamed the masscan.exe.
(I'll leave the issue open, If that's okay. I will probably come across more problems in the future, but thanks for the support.)
from minecraft-server-discovery.
Nice (: Ill close the issue once I fixed the .NET versions. Feel free to open a new issue if you need any help on another topic.
from minecraft-server-discovery.
Well, my problem is with the .NET versions, so maybe it belongs here.
This happens when I build the API file, and when I try to run it;
This happens, and the terminal just closes after about 2 seconds. I guessing it's because I have the wrong .NET version, but I've tried both the latest 5.0 version, and 5.0.0 and none of them do any difference. (Image is from the 5.0.0 try)
It could also be a problem with the database, since I havn't set one up. (If that is a requirement)
from minecraft-server-discovery.
Having a database is a requirement and you have to set the database string manually. It tries to pull it from your env variables by default and expects a MySQL database. All of this is configurable here: https://github.com/SieBRUM/minecraft-server-discovery/blob/main/backend/MinecraftServerDiscoveryApi/Contexts/DatabaseContext.cs#L20
I myself run a local docker container with MySQL in it, but you can use whatever setup you like obviously
from minecraft-server-discovery.
Regardless of what I put in there I get
System.MissingFieldException: Database environment variable not found.
I set up a mySQL database, and changed the Env to match my credentials. What is wrong?
("server=127.0.0.1;user=root;password=MyPassWord;database=MYSQL")
from minecraft-server-discovery.
You either did not set the environment variable correctly, or you did not restart your terminal / visual studio / whatever you are using after setting it.
from minecraft-server-discovery.
This is probably my last question:
It seems like it should work now because the first time I started the API with the right credentials for the mySQL database it created all of the tables (bottom right) automatically. But no data is written in the tables.
Is there something wrong with the database? I didn't change any settings if that is necessary.
from minecraft-server-discovery.
Your scanner is not running in this picture. The scanner fills the database with information. You will see text in the window of the scanner saying it has found a server. At that point it should sent a message to the API. The API will probably log to console that it received a message. It will then write it to the DB.
from minecraft-server-discovery.
Oops. (I ran it before and nothing happened, but I'm trying again, and actually showing what is happening.)
- The API stays the same way throughout the entire run
- The DB doesn't get any information (It doesn't write to disk at all)
- Also nothing happens on the website (obviusly)
from minecraft-server-discovery.
Looks like the API is not receiving any requests. You should do some debugging yourself to try and fix this.
from minecraft-server-discovery.
How does the API get the data from the wrapper? I'm not good enough to make this work 😠
from minecraft-server-discovery.
Ok so I made some changes so it SHOULD be more easy to run everything (see PR #3)
How to run with Docker:
- Clone the repository (or pull the new version)
- Open terminal in root of the repository
- Execute
docker compose up
(ordocker-compose up
if you are old-fashioned) (the backend should crash a couple of times, this is because it takes like ~20 seconds to setup the DB container. Just give it some time, it restarts automatically) (you can remove everything withdocker-compose down -v
and remove the images) - Everything should be running (frontend: localhost:80, backend: localhost:5000)
- You can now start the Wrapper on your machine (same machine as you just ran these commands on)
I tried to make it as easy as possible for ya (:
I also changes the .NET versions so they are the same
from minecraft-server-discovery.
Related Issues (6)
- Searcher isn't starting HOT 1
- the docker doesnt run the scanner HOT 2
- Scanner not working HOT 9
- How to start scanning? HOT 17
- Servers not showing on the Website HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minecraft-server-discovery.