popstarfreas/Dimensions

Setup Dimentions failure

Opened this issue · 18 comments

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?

What does your config look like?

"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,
}]
},
],
}

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

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.

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.

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?

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

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

Nothing different happens

You get connected to the server still?

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

You get connected to the server still?

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

It gets stuck on connecting or a different message?

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

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

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

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 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