popstarfreas / Dimensions

The load-balancing and routing service for Terraria Servers
MIT License
41 stars 16 forks source link

Setup Dimentions failure #122

Open Trident35ro opened 5 months ago

Trident35ro commented 5 months ago

Some people got it work but I cant. Used the commands said in the instructions:npm install --only=productionandnpm run start` in the folder with the Dimentions files. After running these commands and got this output:

@popstarfreas/dimensions@5.10.0-beta.1 start cd ./build && node ./index.js

I expected to get this output:

@popstarfreas/dimensions@5.10.0-beta.1 start cd ./build && node ./index.js

[ any 4 digit number idk ] Server on port 1 started [ any 4 digit number idk ] Server on port 2 started <

Thinking that maybe it shouldn’t show me that, I joined the server and tried commands like /dimensions , / _server name in config_ and even tried with /sudo . Nothing worked! Can somebody help me?

popstarfreas commented 5 months ago

What does your config look like?

Trident35ro commented 5 months ago

"use strict" exports.ConfigSettings = { servers: [ { listenPort: 9000, routingServers: [{ name: "lobby", serverIP: " server ip ", serverPort: 9000, hidden: false, }]
}, { routingServers: [{ name: "world", serverIP: " server ip ", serverPort: 9001, hidden: false, }]
}, ], }

Trident35ro commented 5 months ago

By the way, where should the Dimensions files be? Like in the plugin folder in tShock or in any location.

popstarfreas commented 5 months ago

Dimensions is its own program so it doesn't need to be in the tshock folder, only the actual dimensions dll should be in the plugins folder.

With that config I think all logging is disabled that could be why you don't see any messages. It looks like you set listen port and server port to 9000. They should be different. Listen port is what you will use to connect and server port is what port your tshock server is using.

Trident35ro commented 5 months ago

I changed the listen port to one of the server ports because I thought it would work, and if I joined the server using the port 9000, it wouldn't redirect me to "lobby." It sounds stupid, but it was worth trying. Maybe this would help, I use Dimensions 5.10, but tried a little bit on 6.0.0.

popstarfreas commented 5 months ago

The latest version is the best though I've not built with all the recent changes yet. What happens when you change the listen port to something else and join using that port?

Trident35ro commented 5 months ago

Nothing. Maybe the problem is that I don't know how to setup the plugin.

popstarfreas commented 5 months ago

What do you mean by nothing? When you use your game to join that port what happens?

Trident35ro commented 5 months ago

Nothing different happens

popstarfreas commented 5 months ago

You get connected to the server still?

popstarfreas commented 5 months ago

Perhaps the example needs to be improved if it's not good enough

Trident35ro commented 5 months ago

You get connected to the server still?

If I use the listen port, it won't.

popstarfreas commented 5 months ago

It gets stuck on connecting or a different message?

Trident35ro commented 5 months ago

No! It says "Timeout connection", like the server doesn't exist

Trident35ro commented 5 months ago

And your plugin works with tShock servers hosted on pcs or laptops?

popstarfreas commented 5 months ago

The plugin itself should, yes. But the plugin only rewrites players' IP addresses to be correct when they connect through dimensions.

Trident35ro commented 5 months ago

I think that the plugin doesn't even know that my server exists. But can you sent me an screenshot that shows what the cmd window should output after running npm run start?

pacenadhif777 commented 2 weeks ago

I think that the plugin doesn't even know that my server exists. But can you sent me an screenshot that shows what the cmd window should output after running npm run start?

i have same problem too