Giter VIP home page Giter VIP logo

Comments (8)

ACaiCat avatar ACaiCat commented on August 14, 2024

The "加入了多人运动" means "have joined" . "正在连接" means “Connecting”
IMG_20220407_185426
IMG_20220407_185045
IMG_20220407_184405

from dimensions.

popstarfreas avatar popstarfreas commented on August 14, 2024

The currentTerrariaVersion is used when switching for all players. Are you saying you want to use the client version instead?

from dimensions.

ACaiCat avatar ACaiCat commented on August 14, 2024

Yes

from dimensions.

popstarfreas avatar popstarfreas commented on August 14, 2024

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.

ACaiCat avatar ACaiCat commented on August 14, 2024

OK,I will have a try.Thank you for you answer.

from dimensions.

ACaiCat avatar ACaiCat commented on August 14, 2024

I seem to have failed.I don't know how to add one for connect request.

from dimensions.

ACaiCat avatar ACaiCat commented on August 14, 2024

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.

popstarfreas avatar popstarfreas commented on August 14, 2024

I'll see what I can do.

from dimensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.