Jump to content

Generate spritesheet files with different names?


sds_alex

Recommended Posts

Hey folks, I'm running into a bit of an issue with generating spritesheets for my project using the SpriterDotNet api. Once we have an entity all rigged up and animated, if I go to "file > Generate Spritesheets for Project Images" it saves all of the compiled files with the same name and different extensions. For example, if I use the scml option and "character" as the base filename I'll get "character.scml", "character.json" and "character.png". The problem is that MonoGame's content builder doesn't seem to like it when I give it multiple files with the same name and different extensions. The content builder errors out saying it can't find some of the files. If I manually change the names of the json file and image to atlas.json and image.png, then manually edit the scml file and the json file with the changed names it loads just fine. Is there some way to tell Spriter to output the files with different names so I don't have to go manually edit the files every time I want to compile a spritesheet?

Link to comment
Share on other sites

  • 4 weeks later...

I'm pretty sure there is not a way to tell it to name each component something different. if renaming them manually takes too long you could look into batch renaming programs. I found a free one years ago when I needed to rename hundreds of image files into a specific format, and you can create formulas to change the names as needed of entire folders of files.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...