Comments (8)
The "加入了多人运动" means "have joined" . "正在连接" means “Connecting”
from dimensions.
The currentTerrariaVersion is used when switching for all players. Are you saying you want to use the client version instead?
from dimensions.
Yes
from dimensions.
Option 1 (Extension):
You could create an extension to read and force the client's own version in the connect request packets (similar to MCL in a way), e.g. https://github.com/popstarfreas/dimensions-mcl/blob/6fdfeaa01a665c7c04d93f14bdf34e53317dc481/app/priorclienthandler.ts#L44-L62 is where MCL for 1412 and above rewrites to 1.4.1.1, which could be changed to store the version of the client and then force it for every new connect request sent by the same client.
Option 2 (Dimensions):
Where currentTerrariaVersion is used:
https://github.com/popstarfreas/Dimensions/blob/dev/app/node_modules/dimensions/client.ts#L445-L449
You can replace it with the client version, but you also need to obtain that information which dimensions does not currently, but you could add it: https://github.com/popstarfreas/Dimensions/blob/dev/app/node_modules/dimensions/clientpackethandler.ts#L49-L66 in there is where client packets are parsed, you can just add one for connect request and store the version in the client object.
If you go for option 2, it might be worth making a PR for it so that the config option is not necessary anymore. Of course if you are not a programmer than possibly I can do option 2 myself at some point.
from dimensions.
OK,I will have a try.Thank you for you answer.
from dimensions.
I seem to have failed.I don't know how to add one for connect request.
from dimensions.
I think that I must fix it as soon as possible because players on my server is a little angry.Could you help me do option 2?
from dimensions.
I'll see what I can do.
from dimensions.
Related Issues (20)
- Some bugs in the Preview-releasessss! HOT 5
- 希望可以支持Proxy Protocol HOT 3
- 如何修改服务器聊天窗语言 HOT 8
- Stuck after transmission failure(传送失败后卡住)
- Invisible Players HOT 1
- 为什么跳转维度之后需要重新/login HOT 13
- Different version than the server. HOT 1
- 从大厅传送到另一个世界再传送回大厅地图部分方块会空白 HOT 2
- Player can't see each otcher HOT 4
- 测试版维度把光标放到玩家身上不会显示玩家名 HOT 16
- Terraria-Servers do not showing player count correctly HOT 1
- 如何获取玩家真实ip HOT 1
- Dimensions-5.9.1 NPCUpdate-Log报错 HOT 7
- Switch dimensions between servers cause inventory lag. HOT 5
- 泰拉瑞亚1.4.4.9版本更新后玩家传送之后装备栏会出现问题 HOT 2
- IP errors and connection to other dimensions HOT 21
- Errors present in the current Dimension HOT 4
- Setup Dimentions failure HOT 17
- Considering reading config file path from environment variable HOT 3
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 dimensions.