ClassiCube icon indicating copy to clipboard operation
ClassiCube copied to clipboard

[Enhancement/Suggestion] Make "options.txt" have a proper structure/layout

Open inkstray opened this issue 2 years ago • 1 comments

The problem:

  1. Not all options show up immediately in the file. (The file only contains options that were changed)
  2. The options.txt just adds lines whenever it wants to the top of the file. This causes things like keybindings to be inbetween other lines. Allow me to demonstrate using the following example:
key-FlyDown=ShiftLeft
gui-blacktextshadows=True
key-FlyUp=None
gui-arialchatfont=False

Why could this be useful?

  1. Readability, This should make it not only easy to read but also much easier to edit the file manually if needed.
  2. Maintainability, If the file is structured it is way easier to maintain and update.

My suggestions

  1. Have all options immediately available to edit in the options.txt
  2. Categorize options so it easier to find certain options.
  3. Have a layout of some sort, Here's a simple example using an ini format: (although any easy to read format should suffice
[Keys]
key-Screenshot=F2
key-SmoothCamera=None
key-Speed=ControlLeft
key-HalfSpeed=None
key-Fly=Z

[Nostalgia]
nostalgia-customblocks=True
nostalgia-usecpe=True
nostalgia-servertextures=True
nostalgia-classictablist=False
nostalgia-classicoptions=False
nostalgia-classicgui=True
  • also do note I'm not the best at formatting myself and this issue shows it clearly.

  • also i'd love if theres a way to completely set certain keybinds to None from in game

inkstray avatar Apr 29 '24 09:04 inkstray

possibly use json?

home-gihub avatar Mar 23 '25 12:03 home-gihub