This is a continuation of the original indiedb forums thread, located here
http://www.indiedb.com/games/pokmon-3d/forum/thread/map-tutorial Please discuss mapping, ask questions and we will do our best to answer them. This game is heavily data driven and capable of more than what is currently done with it. Before we go to my big posts in the other thread here is a post about converting textures
DracoHouston: You've been having trouble making your own textures? I haven't had a problem so far.
View attachment 35
Try making the .xnb files with this:
http://sourceforge.net/projects/xnbbuilder/
Set Target Platform to Windows, Target Profile to Reach and select Compress Output.
Press convert and you should be fine.
Your tiles don't have to be 16x16. My avatar is 176x176 and I've tried scaling it.
Here's how to scale something:
Code:
{"Entity"{ENT[{"Scale"{sngArr[2,2,0]}}{"EntityID"{str[WallBlock]}}{"Position"{sngArr[0,0.5,5]}}{"TexturePath"{str[Onibi]}}{"Textures"{recArr[[0,0,176,176]]}}{"TextureIndex"{intArr[0,0]}}{"Collision"{bool[0]}}{"ModelID"{int[3]}}{"Action"{int[0]}}{"AdditionalValue"{str[]}}{"Rotation"{int[2]}}]}}
{"Entity"{ENT[{"Scale"{sngArr[4,4,0]}}{"EntityID"{str[WallBlock]}}{"Position"{sngArr[1,4,5]}}{"TexturePath"{str[Onibi]}}{"Textures"{recArr[[0,0,176,176]]}}{"TextureIndex"{intArr[0,0]}}{"Collision"{bool[0]}}{"ModelID"{int[3]}}{"Action"{int[0]}}{"AdditionalValue"{str[]}}{"Rotation"{int[2]}}]}}
Please note that when you are building an xnb, you want to set the output folder to where the file will go within the folder structure of the game. For textures this is /Pokemon/Content/Textures. For pokemon this is Pokemon/Content/Pokemon/Animations/Folder named after pokemon. Items are part of a single 'item sheet' texture, this is in Pokemon/Content/Items. Sounds go in Pokemon/Content/Sounds, music in Pokemon/Content/Songs. If you don't output the xnb to the folder it goes in it won't work, and for textures this means a crash. Don't rename an xnb once it is built, rebuild it with the new name.
This program can be used to EXTRACT textures.
http://www.terrariaonline.com/threads/xnb-exporter-extract-graphics-from-terraria.16058/
You extract the program to a folder containing XNB files that contain PNG images (textures, pokemon animations, the item sheet, character sprites etc). Leave the text box empty and click 'go for it' and it will spit out all the PNG files you can edit. Use the builder to convert it back.