Add c3.555 loading in editor for game asset access - #1775
Open
dvincent56 wants to merge 3 commits into
Open
Conversation
Collaborator
|
If you don't mind, this PR actually is giving me the push to load all the original images at once to allow seamless climate/ editor transition (and have all images available at the same time). I already have the arrays for the unique image ids per climate/editor, so it's just a matter of implementing it. All in all, instead of loading 9000 images total, we'll be loading a little more than 10000, so I don't even know why the game originally uses three different files for the climates. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Engine: auxiliary main file in editor mode
To make Native_Meeting_Hut_Central_01 (which composites from c3.555 group 159) and the field variant sprites render correctly in the editor, the engine now loads c3.555 alongside c3map.555 as a secondary atlas (ATLAS_MAIN_AUX). XML assets opt into it with:
<layer source="aux" group="159" image="112"/>Implementation mirrors the existing load_external_fonts pattern: separate storage (aux_data), own atlas, lookup via image_group_aux / image_get_aux, and external image handling for game assets that aren't atlas-packed. Game mode is unaffected — aux is only prepared when is_editor=1.