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
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.
0.17 is here, trainers are implemented, this is youngster joey, his script is simple.
in the same folder is 001.trainer
first line is money for winning. then trainer class, then name, then start text before battle, then what he says on defeat. if you talk to him again he says the defeat line. after that is his skin, 14.xnb, the next 6 lines are of course the party. he has 1 pokemon, a level 4 rattata.
It leaves a registry entry in your save, for this trainer it is "trainer_001". if you have that in your registry he is flagged as defeated, to reset him you can delete the registry from the save. it appears to be no different from other registry entries so you could probably reset him by unregistering that entry in a script
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.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]}}]}}
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.
0.17 is here, trainers are implemented, this is youngster joey, his script is simple.
Code:
@Trainer:001
:end
Code:
64
Youngster
Joey
OK let's do this!~My Rattata is top~percentage!
But it is top percentage...
14
1|19,4
2|
3|
4|
5|
6|
It leaves a registry entry in your save, for this trainer it is "trainer_001". if you have that in your registry he is flagged as defeated, to reset him you can delete the registry from the save. it appears to be no different from other registry entries so you could probably reset him by unregistering that entry in a script