turbotutone Posted November 23, 2013 Share Posted November 23, 2013 While trying to figure out how to add a custom object to the game like a piece of furniture or such i noticed it seems quite possible to use sprites that exist in the game already, however i couldnt find a reference list anywhere. I did find this topic by KillerStarBunny:http://theindiestone.com/forums/index.php/topic/2473-how-to-mod-the-textures/ In that topic, the user Minic90 posted a program that unpacks the texture files and creates a XML containing information about individual sprites etc.Looking up the sprites in the XML is a daunting task though, not only is the list very long but it also does not seem to have the sprite info ordered in a logical way. So i have written a small php script on my local server to process both the XML and image data and have it cook up some sort of reference sheets for the sprites. The result is something like this:To find a sprite name for usage in your code simply locate the sprite and note its white numbers, get the category name of the sprite from the black bar to the right and merge category + underscore + spritenumber. For the first topleft image this would be: carpentry_01_26. Works for most sprites, except for the really small ones where numbers start to overlap and become unreadable.Anyways might be usefull to some. Download: http://www.mediafire.com/download/q7m936gh2mgtt5g/TilesEdit.rarRar archive with all the converted sprite sheets. Thanks to KillerStarBunny for the explanation on texturepacks and Minic90 for the texture unpacker! Link to comment Share on other sites More sharing options...
RoboMat Posted November 23, 2013 Share Posted November 23, 2013 Hey good stuff here it is definitely more effective than running around and manually printing the texture names to the console When you have the tile sheet open it is actually pretty simple to access them. The sheet starts with 0 in the top-left corner and ends at 63 in the bottom right. Link to comment Share on other sites More sharing options...
turbotutone Posted November 23, 2013 Author Share Posted November 23, 2013 Eya RoboMat, thanks for the reply.Also kuddos for the modding related material you put out there, i frequently stumbled uppon resources of your making This got me a little confused however:When you have the tile sheet open it is actually pretty simple to access them. The sheet starts with 0 in the top-left corner and ends at 63 in the bottom right.Do you mean the data associated with the individual sprites is logically ordered like that? If so could you describe the method you are using exactly?As mentioned im using the program by Minic90, the XML data produced by that program does not seem to follow the rule you described. For example the first entree of the sprite data associated with the example sheet (ntiles2.png) is camping_01_2, a sprite part of the tent somewhere in the middle/right of the sheet. However this may be related to how the XML data is produced by mentioned program. Regards,Turbo Link to comment Share on other sites More sharing options...
Minic90 Posted November 23, 2013 Share Posted November 23, 2013 well, sry for hard to read .xml file ^^, but it was the easiest way to save a huge amount of info.I thought about writing some sort of .xml reader/editer for this problem, but haven't.Its one of the upcoming features -.- I will update changes on this new topic: http://theindiestone.com/forums/index.php/topic/3511-pz-unpacker/ Link to comment Share on other sites More sharing options...
gaunti12 Posted October 17, 2014 Share Posted October 17, 2014 Download: http://www.mediafire.com/download/q7m936gh2mgtt5g/TilesEdit.rarRar archive with all the converted sprite sheets. Thanks to KillerStarBunny for the explanation on texturepacks and Minic90 for the texture unpacker! Could you work this magic for the tiles of the actual version (29) please? That would be great! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now