lhridder / gamma

Minecraft bedrock Proxy
9 stars 1 forks source link

how to build a project? #1

Closed lootoos closed 1 year ago

lootoos commented 2 years ago

how to build a program? how do I run the program?

lhridder commented 2 years ago

Hi,

You can run the program by cloning the repository, cd'ing into cmd/gamma and running go build . Then you can move the binary to wherever you plan on using it and also make a configs directory and a config.yml in that working directory. The config.yml can be copied from the readme or just an empty yaml file. In the configs directory you can create a .json file according to the minimal config in the readme. Then u can start it with ./gamma

lootoos commented 2 years ago

no works:https://ibb.co/CHT8nc6 https://ibb.co/JvTKgYT https://ibb.co/GxYt8sk https://ibb.co/dJj7Kty https://ibb.co/CWXhGy9

lhridder commented 2 years ago

It seems like you didn’t put the config.yml in the working directory (the directory the binary is in)

lootoos commented 2 years ago

a new problem: https://ibb.co/Sc3Xs91

lhridder commented 2 years ago

You are missing a " on line 4 of the .json

lootoos commented 2 years ago

here:https://ibb.co/zHZDg51 ?

lhridder commented 2 years ago

Yes at the beginning of the value of proxyTo but u seem to have put the json config in a .yml file

lootoos commented 2 years ago

is json so necessary?

lootoos commented 2 years ago

a new problem: https://ibb.co/hC9GLyr

lhridder commented 2 years ago

yes, the file needs to have .json at the end to load and you're using json syntax so naming the file yml only makes it confusing

lootoos commented 2 years ago

does not work if .yml to do instead .json

lhridder commented 2 years ago

i don't understand what you mean by that

lootoos commented 2 years ago

https://ibb.co/ZhzPjv6

lhridder commented 2 years ago

You have now removed the global config which is yml, the individual config is .json and must go in the configs directory

lootoos commented 2 years ago

my config:https://pastebin.com/PXsLhJeR

lootoos commented 2 years ago

You have now removed the global config which is yml, the individual config is .json and must go in the configs directory

I have already set it up as it should - now it works, but it does not enter the geyser

lhridder commented 2 years ago

if you enable debug mode in the global config.yml and restart, are there any errors in the console?

lootoos commented 2 years ago

everything seems to be in order