Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Dimentions failure #122

Open
Trident35ro opened this issue Apr 20, 2024 · 18 comments
Open

Setup Dimentions failure #122

Trident35ro opened this issue Apr 20, 2024 · 18 comments

Comments

@Trident35ro
Copy link

Trident35ro commented Apr 20, 2024

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
Copy link
Owner

What does your config look like?

@Trident35ro
Copy link
Author

Trident35ro commented Apr 20, 2024

"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
Copy link
Author

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

@popstarfreas
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

@popstarfreas
Copy link
Owner

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

@Trident35ro
Copy link
Author

Nothing different happens

@popstarfreas
Copy link
Owner

You get connected to the server still?

@popstarfreas
Copy link
Owner

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

@Trident35ro
Copy link
Author

You get connected to the server still?

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

@popstarfreas
Copy link
Owner

It gets stuck on connecting or a different message?

@Trident35ro
Copy link
Author

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

@Trident35ro
Copy link
Author

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

@popstarfreas
Copy link
Owner

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

@Trident35ro
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants