mojira.dev
MC-122080

options.txt incompatibility issues

Note: this is unrelated to the other crash report I posted today that was a launcher issue this is mc issue.

if having older versions in the same directory wasn't officially supported mojang would have said you can only play current versions they didn't this is a valid issue that is one maybe two lines of code to fix for future versions.

Steps to reproduce:
1. run mc >= 1.9
2. run < 1.5.2
3. get crash https://pastebin.com/MwgSp1fY

Necessary Enhancement to fix the incompatibility between the two formats is one of the fallowing options:
A: keep the old format and write the newer options to the end of the file now
B: rename the newer options to "options_new.txt" for versions >= 1.13
C: keep the option.txt per profile

Related issues

Comments

[Mod] Neko

Older versions of the game weren't made to run with newer options.txt.

From MCL-5837: "Downgrading is not, was never, and will never be officially supported. You are advised to run older versions in separate directories. Otherwise, issues like this will occur."

migrated

and that statement was made by you not jeb if downgrading wasn't an official option then they wouldn't let you downgrade

it''s literally one line of code they can fix it from causing problems for future versions change:
File options = new File("options.txt"); > File options = new File("options_new.txt");

violine1101

No, it is not as easy as that.
First of all, you would have options_new_new_new_new_new_new_new.txt then after a few updates.
And Mojang clearly states that you should use seperate directories if you want to play an older version. That it's possible to play an older version does not mean that they support it. Old versions are called old versions for a reason.

migrated

Do you know how to code it is that easy I could do it with a forge mod but, this is a vanilla issue it should be taken care of in that way
File f = new File("options"); is default minecraft code File f = new File("options_new.txt"); is another file

Did you read what I said to do? I didn't say continue each version making another new options.txt I said for versions newer then 1.9+ they should use a different options.txt so it doesn't interfere with the older ones. I never said per version.

1.13 > options_new.txt 1.14 > options_new.txt 1.15.... > options_new.txt
< 1.13 is options.txt

Second of all it is that easy I could ASM the class and it will do it's function

Three: how do you know what mojang wants this is causing issues talk to them about it and if they still say no then It's fine but, making no attempt is another thing

migrated

"A: keep the old format and write the newer options to the end of the file now
B: rename the newer options to "options_new.txt" for versions >= 1.13
C: keep the option.txt per profile"

Option A: file is always options.txt but, newer options get written after 1.5.2 and below options at the end of the file of course

Option B: file is always options_new.txt for versions newer then 1.13 not per version

Option C: the option is per profile and is put in the profiles section which would make more sense for people since this game is mostly for kids and they would have one family computer desktop and multiple users per launcher

migrated

(Unassigned)

Unconfirmed

Minecraft 1.12.2

Retrieved