-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Sky: Get various colors used for sky from server #6802
Comments
Very useful. |
So is the request to expand the sky packet and client code so that the server can tell clients what sky colors to use? I'm guessing anything like a mod API to change these for a player would be a separate feature? |
So, I just looked at the network stuff and thinking about the api, we might as well just have a new From it seems packet wise, looking at Then it's just a simple an straightforward api that is mostly passthrough to the client, and the client can cache the values and use them instead of the hardcoded colors. |
Lovely. |
Yes, expanding a packet and putting more data into it is always possible, I would be cautious of doing it to prevent conflicts and complex handling. |
https://github.com/minetest/minetest/blob/master/src/sky.cpp#L526
There are 9 hardcoded colors here that should be retrieved from the server.
The new
sky
packet could be expanded to include these color values. Clients that know where to look for these values can then use them. Old clients will be unaffected.This doesn't seem to complex, other than there being lots of different colors. Some experimentation shows that toying around with these values yields good results quickly and mods should be able to use this. Together with the cloud stuff, this would make for a great atmospheric addition.
The text was updated successfully, but these errors were encountered: