Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertical view distance #519

Closed
NotStirred opened this issue Jun 2, 2020 · 15 comments
Closed

Add vertical view distance #519

NotStirred opened this issue Jun 2, 2020 · 15 comments

Comments

@NotStirred
Copy link
Member

No description provided.

@NotStirred NotStirred added the 1.17 label Jun 2, 2020
@AidanLovelace
Copy link

I'm working on this now.

@Barteks2x
Copy link
Member

This is not as easy as it may seem. CubeDistanceGraph doesn't really work that way.

@AidanLovelace
Copy link

What would be the best way to store a vertical view distance client side? Forge config file? options.txt?

@NotStirred
Copy link
Member Author

1.12.2 had it in config/cubicchunks.cfg as I:verticalCubeLoadDistance

@AidanLovelace
Copy link

Ok, I'll do that for now.

@NotStirred
Copy link
Member Author

This is quite a lot of work to do for vertical view to work, good luck...

@AidanLovelace
Copy link

Would it be a bad idea to just use the EarlyConfig for now?

@NotStirred
Copy link
Member Author

you can do, I'll be moving that stuff around later anyway

@Barteks2x
Copy link
Member

The target is forge config file but there is a problem with that:

in 1.12.2 I could modify forge config from code and store it back. So I could have the vertical view distance slider modify the config value and store it.

Modifying config values from code is no longer possible. So right now just make some dummy setter and getter for it in the config object and leave it to figure out later.

@Barteks2x
Copy link
Member

Correction: I read the code now and apparently sometime between last time I looked at it and now an option to set config values programatically has been added.

@AidanLovelace
Copy link

Well I suppose I'll create the config.

@Barteks2x
Copy link
Member

And no you shouldn't use EarlyConfig for that. EarlyConfig has one purpose: configuring stuff for mixin and stuff that needs to be loaded arbitrarily early. Vertical view distance can be just standard forge client config.

@AidanLovelace
Copy link

image
Okay, I've got vertical view & render distance working. Sort of. This is a hack if you've ever seen one, so be aware, but I've got a prototype.

Commit: AidanLovelace@ed9d112

This was referenced Jun 19, 2020
@NotStirred
Copy link
Member Author

wait im an idiot

@NotStirred NotStirred reopened this Jun 21, 2020
@NotStirred NotStirred moved this from Done to To Be Merged in 1.17 Alpha Release Feb 16, 2021
@NotStirred
Copy link
Member Author

updated and merged in d41a712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

No branches or pull requests

3 participants