-
Notifications
You must be signed in to change notification settings - Fork 187
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
MP2 Ground Zero - not using menu images in baseq2/pics #278
Comments
The idea is because games/mods typically ship graphics that differ from the original ones their versions should be preferred. FWIW, for material images (wall textures, skins) there exists a mechanism to detect this case (game ships copy that is unmodified from base game) and "ignore" the game file in that case. That has not been adapted for UI images, but probably could. |
Relevant code for material image "unmodified copy" handling: Q2RTX/src/refresh/vkpt/material.c Line 773 in a50fe35
Q2RTX/src/refresh/vkpt/material.c Line 844 in a50fe35
|
Thanks. At first glance I see that it is by design: Q2RTX/src/refresh/vkpt/material.c Line 846 in a50fe35
However, this comment says differently: Q2RTX/src/refresh/vkpt/material.c Line 778 in a50fe35
If it is by design it is better not to change its behavior. But I still find it confusing. Can't we at least make an exception for the menu items (m_banner* and m_main*)? |
First off, be aware that this applies to material images only. Menu images will not go through that code path! FWIW, the behavior for material images is somewhat complicated because it has to cover a number of cases...
Did this clarify things for you? I actually coded a somewhat more generic version of the "identical image" approach earlier: res2k@199eb4d |
Thanks for the explanation. |
Both MP1 The Reckoning (xatrix) and MP2 Ground Zero (rogue) have a sub-directory pics which only contains one background image.
MP1 The Reckoning uses the menu images in baseq2/pics:
Even Zaero does that, but MP2 Ground Zero does not:
This is the same in the subsequent screens.
I've found that this is where it all starts:
src/client/ui/script.c
But when I debug further I just go deeper down the rabbit hole and get lost. I cannot seem to find where the logic is that decides to use (or not use in rogue's case) the baseq2/pics images.
I end up here:
./src/refresh/images.c:1320:static int find_or_load_image
Anyone has any idea?
Here are the menus used:
rogue-q2rtx.menu.zip
xatrix-q2rtx.menu.zip
The text was updated successfully, but these errors were encountered: