Skip to content

UI for changing config options #7

Closed

Description

@Mhowser

Would you be able to make a UI for the Lithium config file?

Activity

  1. silversquirl commented on Dec 20, 2019

    @silversquirl
    Member

    A UI would require a client-side component, but a command would probably be doable, like how carpet works

  2. Mhowser commented on Dec 20, 2019

    @Mhowser
    Author

    is the config file located at .minecraft/config/lithium.json server-side only?

  3. silversquirl commented on Dec 20, 2019

    @silversquirl
    Member

    Lithium is a server-side mod, so yes

  4. jellysquid3 commented on Dec 21, 2019

    @jellysquid3
    Member

    I'm not currently happy with how the configuration file is set up as JSON is a relatively poor choice and the comments are hidden in javadoc elsewhere. I'm going to be looking into replacing it with something better (perhaps TOML?) but the main concern remains keeping file size small.

    As for implementing a client-side GUI... I'm not sure it'd have much use. Lithium's default configuration is designed to give you safe defaults and should be good for 99.9% of users. For the 0.1% that need something more, one would imagine that they would be comfortable editing text files. Otherwise, people just won't be touching it.

    The other issue is that Lithium decides what patches to apply before the game finishes loading. It's not currently possible to enable or disable patches dynamically, and as such the client GUI would require a restart for every change. This could be changed, but it would make the code a bit more complex for not much added benefit (in my opinion.)

    That said, I might be missing something here and my opinions don't necessarily represent those of everyone else. I'd love to hear the use case for something like this.

  5. Mhowser commented on Dec 21, 2019

    @Mhowser
    Author

    Everything that you said makes total sense, I thought Lithium had some clients side components based on what I read in the discord server. Thanks for the detailed explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions