-
Notifications
You must be signed in to change notification settings - Fork 4.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
Allow multiple possible loading screens, including from mods #76362
Allow multiple possible loading screens, including from mods #76362
Conversation
Yes please |
Fixes #76268. |
The "obvious" solution is JSON, i.e. a new JSON structure for loading screens with fields such as:
|
24312ae
to
57e35ad
Compare
Currently I've grafted it into modinfo.json. It searches the entire mod folder and subfolders for files matching that filename. This could be easily be made more restrictive/permission if needed, but I feel that exact filename matching gives plenty of control to the mod authors while not leaving any possibility for accidents. Still no weighting/conditionals for the moment. I feel like that could wait for a future PR, to see if there are any mods that do want it. No point writing it if nobody uses it, right? |
57e35ad
to
eac8dc1
Compare
@db48x @vetall812 Courtesy notification, hope neither of you minds. As detailed in the summary, both of your loading screens have been folded into the The fallback/default loading screen without this mod remains the one by vetall812. |
I certainly don't mind, but I will point out that the image you are attributing to me is not mine in any sense of the word. I’m terrible at most artistic stuff, so when I added an image to the loading screen I started with a random image I had in my home directory. Once I got it working I did a quick search for images on Google, and didn’t find much. I rejected the image on the website since it’s a screenshot and might have been confusing. The only other things I found were title cards for some Let’s Play video series on Youtube, and the image I settled on which came from the Kickstarter campaign page. I assume @kevingranade made it, but I didn’t ask. |
We should definitely make sure that's the case and Kevin/possible other rights holder allows it before this gets merged, then. |
eac8dc1
to
91b7708
Compare
91b7708
to
8f5f962
Compare
Until that copyright stuff can be resolved I force pushed the commits out of existence, just to prevent any accidental merges or other potential problems. For Kevin's/other readers' sake, this is the image in question: Other than re-adding the images and adjusting the filenames, this should be good to go. |
8f5f962
to
8d629e5
Compare
8d629e5
to
4804282
Compare
4804282
to
8b0b2e8
Compare
You know what? We don't NEED this new mod. Let's just get support for it out the door, and then we can come back to make the mod later (like if we get more proposals for loading screen images). |
So would a PR adding more loading screens just re-add the mod you made, or is there something else needed? Because IIRC we have 3 more, srcwyas, Candleburies, and mine |
I'm not aware of any of those. I only had vetal's and the one that db48x committed. |
Summary
Features "Allow multiple possible loading screens, including from mods"
Purpose of change
People would like alternate loading screens.
Describe the solution
Just do that
Mods can define a new
loading_images
in their modinfo.json which allows them to specify one (or more!) possible loading images. All loaded mods for the world will have all their images put into a list, and one image will be randomly picked from the list.If any mods define a loading screen image (and that image can actually be found), it will always pick from one of the mod images. Otherwise it will use the default loading screen.
Add a new default mod to showcase and handle our extra loading screens. Brings back the loading screen by @db48x and adds it into the pool of possible picks. Because of the way this works, a copy of our current loading screen by @vetall812 (at gfx/cdda.png) has also been added to the mod.
Describe alternatives you've considered
The default/fallback loading screen could be a blank, transparent image so cdda.png isn't duplicated. But eh, it's nice to have a default one so why not.
Testing
Additional context
Currently this picks randomly, which may not be desirable. There is no way to weight the choices either, it's just pure random.
I would like to add some sort of conditions or maybe a setting to change between a person's desired loading screen.