-
Notifications
You must be signed in to change notification settings - Fork 16
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
Doesn't parse/honor Palette=lib in art.ini for RA2 #1
Comments
Addendum: Normally all buildings are drawn using their theater specific version of unitxxx.pal, Palette=lib in their art.ini code instructs the game to load the theater specific variant of the libxxx.pal, ie. instead of unitsno.pal it loads libsno.pal, instead of uniturb.pal it loads liburb.pal. Similar palette switching code exists in RA2's art.ini for other classes of objects:
PS. as much as it would seem logical, Palette=iso or Palette=unit does not work, it seems to be a specific exception made for the Statue of Liberty, not as a regular function. So Palette=lib should be treated as unitary, not as a command with a parameter. |
@ATHSE This should be implemented now, can you confirm it works? |
It doesn't seem to matter which map I try to load now, it seems the presence of Palette=lib art in the mod, even without any buildings on the map, is enough to attempt to load the lib.x.pal ? |
The extra dot in the filename should now be gone with aadf024 |
This was fixed in Ares 0.1, so it should be treated as a configurable option.
This is correct, palettes are loaded on parsing BuildingType art rules. It looks like this override functions correctly, I haven't had any BuildingType palette issues while loading vanilla Yuri's Revenge or mod maps. |
The automatic loading of the palette (and thus crashing) was only an issue when the naming bug was introduced in the first attempt. I wasn't aware Ares fixed the iso/unit values, but since it supports actual custom palettes, I figured Ares support would have to be a further PR. |
Sounds like it's fixed then. |
As title states, buildings with Palette=lib are still rendered using' unit*.pal
The text was updated successfully, but these errors were encountered: