-
Notifications
You must be signed in to change notification settings - Fork 2
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
Report and Requests #1
Comments
Sadly I can't do much about the window opening, as a window is required to use I'll look into I'll look into adding
These changes will allow to bake more than one atlas, but also pick file names than having them all as Finally, I won't be able to add these changes instantly as I only have free time in the evenings on weekends, so these should be in by Monday morning. |
I am aware of that so i suggested passing in array of inputs and outputs so it will only opened once. Perhaps it's okay to set the width and the height of the window to 1px as a hack? haha
Tbh this is fine, i think that other extensions should just be ignored even with the flag. Maybe just instead of throwing unsupported, just use the valid image extensions that are supported?
No rush! Im grateful for you taking the time in writing this lib for love framework. I'd be happy to test it always and integrate it in my project so there's a showcase for it in a complex and large game. Other points youve said are good for me and i agree with them. |
Yeah, it's mostly there because the flag used to be called |
Updates: 2d4862437e10acd20b9ab14e51a9b40eed702b83
To dos:
|
works on Linux as well. Question: how does one do multiple ignore? Submitted a PR #4 for ignore not working properly with absolute paths (no wildcard) |
Thank you for the fix |
Okay my bad, ive tried the first one earlier but both of the files are inside the same string. Separating into multiple strings works. Ive tested multiple |
Fixed the args, so they should work in multiples now |
Okay thanks. Will test later. Maybe for inputs and outputs we could follow the
Convention for uniformity with ignore flag? 🤔 |
Yeah it would automatically work like that since my arg script splits and pulls together all the given arguments by itself. I'll also update my arg script to support |
Updates: bde0824
Directories for output must end in
To dos:
|
Found a problem with the outputs with this command (formatted nicely for easier reading)
the outputs are in separate directories as intended with the Hmmm i dont think relying on slash at the end of the arg to determine its type is a good thing. Seems too confusing and complex. Might i suggest either:
I think both are easier to maintain in the long run as well 🤔 but then again maybe it's just my nitpick. |
I'm unsure how to fix the issue with the appending the number on the files. There's numerous problems with it, and ways I could fix it; however, I think its fine as a basic backup. Once |
Update: b1f5060
|
Yep, the changes work! Awesome. |
In my opinion the lib right now is very robust and powerful for complex projects such as mine. It's really awesome and helpful to have this added to my workflow and build script. Thanks a lot! |
Np, I learned about how to template files/strings in Lua, and improving my runtime texture atlas for my own project. So it's been beneficial for me too. If something does come up, just open a new issue |
just gonna post my script for generating atlases if ever anyone needs a reference: #build.sh
#run with ./build.sh create_atlas
function create_atlas()
{
eta_path=./libs/ExportTextureAtlas/
output_path=./res/images/atlases
source_path=./res/exported #exported from aseprite files
#from ./res/exported/intro, ./res/exported/kitchen, ... and so on.
#improvement will be to get each subdirectories in ./res/exported/ and automatically populate the array
exported_dirs=(intro kitchen living_room outside storage_room utility_room)
input_dirs=()
output_dirs=()
data_dirs=()
ignores=()
for cur_dir in "${exported_dirs[@]}"; do
in_dir=$source_path/$cur_dir/
out_dir=$output_path/$cur_dir.png
data_dir=./src/atlases/atlas_$cur_dir.lua
ignore=$source_path/$cur_dir/$cur_dir.png
input_dirs+=($in_dir)
output_dirs+=($out_dir)
data_dirs+=($data_dir)
ignores+=($ignore)
echo "gen atlas: '$in_dir' -> '$out_dir' + '$data_dir' !'$ignore'"
done
love $eta_path \
-input "${input_dirs[@]}" \
-output "${output_dirs[@]}" \
-dataOutput "${data_dirs[@]}" \
-ignore "${ignores[@]}" \
-removeFileExtension \
-padding $padding \
-template "./scripts/atlas_template.lua"
} |
So far everything works good in my side (Linux). Awesome!
Here is my bash script
Also, I found out that if the input dir has a
.lua
file inside it, it is ignored. Is that the correct behavior given the-throwUnsupportedExtension
flag?With this, it opens a lot of love window per iteration of the loop. Might I suggest the following (might be my nitpick and subjective to my usage, feel free to discourage if mine is not good):
-ignore background
or-ignore temp*
love . "in1;in2;in3;in4" "out1;out2;out3;out4"
(preferable is a better syntax for the array might be possible though without needing the;
delimiter)The text was updated successfully, but these errors were encountered: