-
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
Add the ability to load tilesets from user_dir/gfx #35091
Conversation
Thanks for handling this. I've wanted it for a while, but it just never bubbled up to the top of my priority list. |
@shacknetisp For a bonus follow-up, it might be worthwhile to see if you can track down why e.g. the sound folder gets automatically created, but the gfx folder does not. At least, it didn't get created in Obviously that wasn't a blocker, but it'd be helpful for new users to not have to create it (if only to have less uncertainty). |
How am to I use this? Where is this |
Should be the same place save files go by default.
|
Save games go to
|
To be clear, by "default", I mean when the "use user folder" flag (however that's spelled, on phone atm) is specified at compile the, which last I checked is how our automated builds are made. If you're doing your own builds, you have to enable that at compile time |
"User folder" isn't created on pre-compiled version either. |
Only when built with |
And the automated windows builds don't have this? I know the mac builds do, and thought the linux builds do as well. If the precompiled windows builds lack that parameter, then no, this feature isn't going to do anything for most windows users. :( |
That's a shame. I could really use this feature. |
If you compile it yourself (with |
Can anyone help me on how to add compile parameters on MSVS 2017? |
Ok, I managed to get it compiled. |
So an update on this: apparently if you invoke the precompiled binary with So it's not actually necessary to recompile for this functionality, you just need an additional parameter in your invocation of the game. |
Summary
SUMMARY: Infrastructure "Add the ability to load tilesets from user_dir/gfx"
Purpose of change
Currently tilesets must be placed within the data directory to be found. This is inconvenient, such as in the case where the game is being compiled and run from a git repository clone. It would be easier to have another directory to load from that is independent from the source and data.
Describe the solution
This PR adds functionality to load tilesets from
gfx/
in the user directory. It adds a new filename to refer to the user directory'sgfx/
directory:user_gfx
.Describe alternatives you've considered
I am unaware of any alternative solution.
Testing
I loaded the game with tilesets in
gfxdir
anduser_gfx
and confirmed that they appeared in the options menu and could be switched between.