• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
  • Want to share your adventures playing Pokémon?
    Check out our new Travel Journals forum for sharing playthroughs of ROM Hacks, Fan Games, and other Pokémon content!
  • IMPORTANT: Following a takedown request, the following hacks have been delisted from PokéCommunity:

    • Pokémon Glazed
    • Pokémon: Giratina Strikes Back
    • Pokémon Flora Sky
    • Pokémon Stranded
    The downloads and discussion threads for these hacks will no longer be accessible, and staff will be unable to return questions regarding accessing this content.

Pokémon 5th Generation Map Editing

Platinum Lucario

The Legendary Master of [color=#D8D48C]Light[/colo
1,607
Posts
16
Years
Hi everyone, welcome to my tutorial. Today I'm going to show you how to edit maps in Generation V.

If you're wanting to learn how to map in Generation IV, this guide may help you with manual extraction of BMD0 files, but I would recommend reading Team Fail's 4th Generation Mapping on how to edit maps for generation IV, this technique will be easier for you.

But as for Generation V, there is NPRE (Nintendo Pokémon ROM Editor) to extract the map data, but I can also show you how to extract them manually, which I will show you how to do so later on in the tutorial.

Contents

  1. [alink id=Started]Getting Started[/alink id]
    1. [alink id=OBJ]Exporting a Model to .OBJ[/alink id]
    2. [alink id=Making]Making a Model[/alink id]
      1. [alink id=Setting]Setting up the Model[/alink id]
      2. [alink id=Controls]Getting used to the Controls[/alink id]
  2. [alink id=Exporting]Exporting Model as .imd[/alink id]
  3. [alink id=Movement]Changing Movement Permissions[/alink id]
  4. [alink id=Objects]Changing Objects on the Map[/alink id]
  5. [alink id=Credits]Credits[/alink id]

Alright, first of all, you will need the following tools:

  • A hex editor - for extracting the BMD0 data manually, I'd use HxD.
  • Pokémon Black/White Version or Pokémon Black/White Version 2 ROM.
  • [optional] Pokémon Diamond/Pearl/Platinum/HeartGold/SoulSilver ROM - for importing a map from Black/White or Black 2/White 2.
  • Nintendo Pokémon ROM Editor - for changing movement permissions
  • Discreet 3ds Max 6, Discreet 3ds Max 7, Autodesk 3ds Max 8 or Alias Maya 7 - for editing the model (which I have distributed along with the SDK, but I can't provide the link to it due to the forum rules. Try searching Google for it.) Outdated and no longer needed, use the 2010 version instead.
  • Autodesk 3ds Max 2010, Autodesk Maya 2010 or Autodesk Softimage 2010 - for editing the model (which I have distributed along with the SDK, but I can't provide the link to it due to the forum rules. Try searching Google for it.)
  • OBJ to MAX Plugin for Discreet 3ds Max 6, this is required if you're using Discreet 3ds Max 6. No longer needed, as Autodesk 3ds Max 2010 already contains the ability to import .OBJ files.
  • Nintendo Nitro-System plugins - for using on 3ds Max 6 or Maya for exporting the model as .imd (Which is also included in the package next to NitroSDK, due to the forum rules... I cannot provide the link, Google is your best friend) Also no longer needed, as the latest versions of the plugins can now be used instead.
  • 2009 versions of Nintendo TWL plugins - for using on 3ds Max 2010 or Maya 2010 for exporting the model as .imd (Which is also included in the package next to NitroSDK, due to the forum rules... I cannot provide the link, Google is your best friend)
  • MKDS Course Modifier - For exporting models as .obj so you can get a good idea on how maps are made and maybe start creating the map from it.
  • [optional]Trimble Sketchup Pro or Blender - for creating .obj files and exporting them. If you're using Trimble Sketchup Pro, you'll need this if you're importing .obj files. But since you've already got 3ds Max 6, there really isn't any need for it.


[a id]started[/a id]

Getting Started


Alrighty, well first of all, before we start... let's put in the 3D plugins for the program that you installed onto your computer. In my case, in the past I used to use Discreet 3ds Max 6, it's old and less functional with newer operating systems. So instead, I use Autodesk 3ds Max 2010 and the 2009 versions of the Nintendo TWL plugins. When installing the plugins, be sure to follow the steps on how to install them in the setup document found in TWL System.

[a id]OBJ[/a id]

Exporting a Model to .OBJ

Alright, now where to start? OK, if you'd like to get a good idea on how 5th generation maps are like, well there's options you can do; The first option you can do is open up NPRE (Nintendo Pokémon ROM Editor), the map layout binary data is located in a/0/0/8, right click on the 8 file and go to Open as > Narc (3D). Once opened, then you can go to File > Save > Model to save the NSBMD model. As for the second option, you can do it manually by extracting any map data using Tinke in the NARC file in a/0/0/8, once you've extracted that, open up any hex editor such as HxD and select most bytes starting from "BMD0" all the way down to where you can see some Euro cent signs in the text view, once you see the start of them... look around in the starting point in the hex view to see if you can see any "20 00 20" bytes. Once you see them, stop the selection right before those bytes as they indicate the header for (what I assume is) the movement permission data. Copy and paste those values onto a new file and save the file as .nsbmd. After you've done that, open up SDSME (Spiky's DS Map Editor) and import the NSBMD into any map you'd like, by clicking on the Map Editor tab and then where it says "3D Model", click on "Import" and import the NSBMD that you extracted from Black/White or Black 2/White 2. Once you've done that, click "Save ROM". Next, you will need to open up Tinke and first open up the ROM you extracted the model from (either Black/White, Black 2/White 2), and open up the Nitro Archive in a/0/1/4 and extract whichever BTX0 the map model you extracted used, which you can find that out in NPRE (Nintendo Pokémon ROM Editor). After that, open up the ROM that you edited with SDSME, then go to fielddata/areadata/area_map_tex/map_tex_set.narc and unpack the Nitro Archive, after that... select "map_tex_set_6.BTX0" and then click the "Change file" button replace the BTX0 with the one that you exported from Black/White or Black 2/White 2. After you've done that, select map_tex_set.narc and click "Pack" and then "Save ROM". After you have done that open SDSME (Spiky's DS Map Editor), open the ROM that you edited with Tinke earlier and open up the map that you replaced. Under where it says "3D Model" click "Export with Textures". This will export the NSBMD with the textures assigned to it, so after you've exported the NSBMD with textures, open it up with MKDS Course Modifier and then click Export > Model > OBJ. Once exporting as .obj, all the textures assigned to the model will also appear in the same folder where it's saved. The folder where you saved it will also contain a .mtl file, which indicates the texture library. After that, you can open it up with any model editor that supports .obj files, I'd use either Discreet 3ds Max 6 or Autodesk 3ds Max 8.

[a id]Making[/a id]

Making a model (3ds Max tutorial)

Please note that in 3ds Max, textures are called "Materials".

Also, please make sure you are running 3ds Max 2010 as Administrator. To make sure you are, right click 3ds Max 2010 before opening it, then click "Run as Administrator" in the list. Or if you need to keep opening it, then right click, click Properties, click the Compatibility tab and then select "Run this program as Administrator", then click the OK button. Otherwise the Nitro G3D plugins won't work and will display an error.

[a id]Setting[/a id]

Setting up the model

OK, well you've decided to open up a .obj file of the model, well the first thing you do when opening up 3ds Max is that you'll see a grid, that's where it shows so that developers can check to see if the model is aligned properly. Alright, now where to start? Well first off, click File > Import, then go to the folder that contains the .obj and open it. Can't see it? Click the drop-down menu below where it says "3D Studio Mesh (*.3DS,*.PRJ)" and select "WaveFront Object (*.OBJ)", then you should be able to see it. If you're using 3ds Max 6 and can't see "WaveFront Object (*.OBJ)", then it means you haven't inserted the OBJ to Max plugin yet or inserted it incorrectly, it can be found at the start of my tutorial. Be sure to put the Obj2Max.dli file in the plugins folder in .\3dsmax6\plugins. Once you've opened up the .obj, it'll come up with a window that will ask you which polygons to import, make sure you have all the Geometry options selected and make sure that the Vertex scale is set to 1.00, otherwise it's going to appear so tiny that you won't be able to see it. So after you've done that, then import the .mtl file that is contained in the same area as the .obj. Go to File > Import and then make sure this time that the drop-down box is set to "WaveFront Material (*.MTL)" and then open up the .mtl file, you'll see a window come up asking where to save it, select "add to library" as the option to where to save it to.

[a id]Controls[/a id]

Getting used to the Controls

Now this is one important step to learning how to use 3ds Max, this is essential to building models for your ROM hack.
Spoiler:


[a id]Exporting[/a id]

Exporting Model as .imd

Once you've completed the model you've been working on, it's time to export the model. So how do you do it, you ask? Alright well... click File > Export, now click the drop down box and select "Nintendo NITRO (*.IMD)", and name it whatever you'd like, though you might want to keep it short though. After that, a window will come up with the options. In General Options, make sure you have the Magnify set to 64.0000 rather than 1.0000, this is so that the map doesn't appear tiny when it's imported. Make sure you have MAXScript Listener open before exporting.

If you're getting a an error like this in MAXScript Listener:
Code:
Warning: UV range over: [polygon name][2] ([some numbers here].[some numbers here], -[some numbers here].[some numbers here])
That means you have a polygon that is too big with it's small material repeating too often. This can happen often with triangle polygons, make sure that if you're making a polygon big... you must make several small ones to make one big one. If you know what I mean of course.

If you get an error saying this:
Code:
An exception occurred! Type:TranscodingException, Message:An invalid multi-byte source text sequence was encountered
g3dcvtr ERROR: Read error M1.imd
file useifp.h, line 108
It probably means that a polygon is too far away outside the perimeter of what the Nintendo DS or DSi can handle.

Note: If you get an error saying this:
An error has occured and the application will now close.
And asking if you'd like to save a copy of the current scene or saying that no scene changes have occured since your last save, then comes up with an error report. If this is happening, then it means that something might be going wrong, I don't know what causes it. I've been having this problem and sorry, I don't know how to fix the issue... all I can say is, use a virtual machine like Oracle VirtualBox or something, like what I did if you're having this problem.

This is no longer needed, as long as you're using 3ds Max 2010 with the 2009 Nintendo TWL plugins.

Once you have exported the model, it's time to import the model into the map you'd like to change. But before we do so, the model is still in .imd format. What you need to do is use g3dcvtr, a program that converts Nitro Intermediate Formats into nsbmd or nsbtx. Now open up a Command Prompt, it can be done by opening the start menu and typing in "cmd" in Windows Vista or Windows 7, if you're using Windows XP or earlier... open the start menu and click Run and then type in "cmd".

Once you have opened up the Command Prompt, cd to the folder you've got the g3dcvtr and the .imd file in, the .imd file and g3dcvtr must be in the same folder together.

If you want to only export the texture, type in this:
Code:
g3dcvtr.exe [name].imd -etex [output name].nsbtx

If you want to only export the model, type in this:
Code:
g3dcvtr.exe [name].imd -emdl [output name].nsbmd

If you want to export the model with the textures, type in this:
Code:
g3dcvtr.exe [name].imd -eboth [output name].nsbmd

For a list of other commands, be sure to put in "g3dcvtr.exe --help".

Note: If you're importing nsbmd models as maps or buildings, you must convert the .imd file to nsbmd without the textures by using the -emdl command, otherwise the game will freeze upon loading the model when imported.

Note: If you're getting an error saying something like this:

Code:
"g3dcvtr ERROR: Duplicate resource Name 'world_root'
file make_patricia.cpp, line 265"

Then it means you haven't deleted "world_root" polygon box in 3ds Max 6 or Maya. It needs to be removed in order for it to be converted to .nsbmd. You'll also need to remove the "polysurface1" and "polysurface2" as well, not because they'll cause an error, but because they'll just appear as a white box otherwise.

Note: If you ever get an error that says this:
Code:
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "[material name]"
This means that you haven't set the material to NITRO Standard or NITRO Morpher, as the error pretty much says. So check that particular material in Material Editor and click "Standard" button then click "NITRO Standard" in the list. Remember, you need to change all the materials to NITRO Standard.

Note: If you are also getting this error:
Code:
Warning: Length of name over 16 characters. texture: [texture name]
or
Code:
Warning: Length of name over 16 characters. palette: [palette name]
This error means that the name of the texture or palette is over 16 characters and you need to rename it to be shorter than 16 characters. Either you don't know what "character" means, or that NDS model editing is really new to you, that's OK... I understand. ^^ Many people have been asking me about this error, so I'll have to put here so that everyone will read this before asking about this error again. Just to let those who don't know what "character" means, "character" means a letter of the alphabet or some symbol listed in any speaking language, makes sense? ;)

Alright then, now that you have an .nsbmd file, now it's time to insert it into the map. And when doing it, you can either do it using NPRE or manually with a hex editor. To do it with NPRE, open up NPRE and open up the ROM you wish to edit, open up the Nitro Archive with the maps (a/0/0/8), select the map you wish to replace, click File > Open > Nsbmd and it will insert the map into the binary, make sure you click save afterwards. To do it manually, open up a hex editor, open both the map binary that you're going to replace the map model with, and open up the .nsbmd file in the hex editor as well. Copy all the hex values from the .nsbmd, go back to the tab with the map binary you opened and select the values starting from BMD0 to right before the "20 00 20" hex values, and then paste the data. And there... you're all done with the map, let's test it out. ^^

Note: Are some textures not displaying on the map when they're supposed to? If you are using textures like flowers in your map, you will need to edit the NSBMD with a hex editor and change the name of the texture, it needs to match the texture name in the NSBTX which you can check using Tinke.

Oh my, you say that your game freezes/locks up upon entering the map? Well that happens when you've converted the .imd to .nsbmd with the textures on there. The map model is not supposed to have textures assigned to it, because the ARM9 already chooses the NSBTX from a different Nitro Archive, and since the textures are already assigned to the model and the ARM9 is trying to use the texture data for the map model, therefore resulting in a freeze/lock up.

[a id]Movement[/a id]

Changing Movement Permissions

Note: Please remember that when using NPRE, after inserting a map model into the map binary with a hex editor, you will be unable to open the map model in NPRE unless you know how to fix the issue, which I don't know how to yet. But movement permissions will still be editable, though it will appear blank.

To change movement permissions, you can use NPRE to alter movement permissions. Though you're probably wondering about the ones on Skyarrow Bridge and Castelia City, well those are known as polygon movement permissions... which cannot be editable yet, unless you know how to with a hex editor... which I really do need to research that one. OK for now, I'm going to teach you how to edit the square-by-square movement permissions, which you'd probably remember from Generation 3 using AdvanceMap or Generation 4 with SDSME. OK, now open up NPRE (Nintendo Pokémon ROM Editor), open up the ROM that you choose to edit, then click on the "Movements" tab. You'll see many different numbered blocks with colours on them. Now all you need to do is select one and press any number on the keyboard to change it, exactly like in SDSME (Spiky's DS Map Editor). Also, see the block in the top left corner of the movement permissions? This indicates the size of how many movement permissions you can place on a map. After you have edited the movement permissions, click save to save to the changes to the ROM. And I will list all the different movement permissions you can use on a map.

If you know any more and their effect, please state them here in this thread and I shall edit this post to put more of them in.
Code:
0	|	Passable
1	|	Not Passable
2	|	Passable (short grass)
3	|	Passable (Rugged Road Path)
4	|	Passable with Grass Patch effect (Grass Wild Encounters if available)
5	|	-
6	|	Passable with Dark Grass Patch effect (Single or Double Grass Wild Encounters if available)
7	|	-
8	|	-
9	|	-
10	|	Passable (Cave Wild Encounters, if available)
11	|	-
12	|	-
13	|	-
14	|	Passable (Snow movement)
15	|	-
16	|	-
17	|	-
18	|	Not Passable (stops slipery ice movement)
19	|	-
20	|	-
21	|	-
22	|	Passable (Tower Wild Encounters, if available)
23	|	-
24	|	Passable (slippery ice, you move until you hit 1, 18 or land on 14 or 0)
25	|	-
26	|	-
27	|	-
28	|	Passable (Swamp water Wild Encounters, if available)
29	|	Boulder Hole (not passable if boulder is not in, passable if boulder is in)
30	|	-
31	|	Passable (grass edge)
32	|	-
33	|	-
34	|	-
35	|	-
36	|	-
37	|	-
38	|	-
39	|	-
40	|	-
41	|	-
42	|	-
43	|	-
44	|	-
45	|	-
46	|	-
47	|	-
48	|	-
49	|	-
50	|	-
51	|	-
52	|	-
53	|	-
54	|	-
55	|	-
56	|	-
57	|	-
58	|	-
59	|	-
60	|	-
61	|	Requires Surf to pass (Wild Encounters if available, pond water)
62	|	-
63	|	Requires Surf to pass (Wild Encounters if available)
64	|	-
65	|	Requires Surf to pass (Wild Encounters if available, indicates water's edge)
66	|	-
67	|	-
68	|	-
69	|	-
70	|	-
71	|	-
72	|	-
73	|	-
74	|	-
75	|	-
76	|	-
77	|	-
78	|	-
79	|	-
80	|	-
81	|	-
82	|	-
83	|	-
84	|	-
85	|	-
86	|	-
87	|	-
88	|	-
89	|	-
90	|	-
91	|	-
92	|	-
93	|	-
94	|	-
95	|	-
96	|	-
97	|	-
98	|	-
99	|	-
100	|	-
101	|	-
102	|	-
103	|	-
104	|	-
105	|	-
106	|	-
107	|	-
108	|	-
109	|	-
110	|	-
111	|	-
112	|	-
113	|	-
114	|	-
115	|	-
116	|	Ledge (not passable when moving south, jump down if moving north)
117	|	Ledge (not passable when moving north, jump down if moving south)
118	|	-
119	|	-
120	|	-
121	|	-
122	|	-
123	|	-
124	|	-
125	|	-
126	|	-
127	|	-
128	|	-
129	|	-
130	|	-
131	|	-
132	|	-
133	|	-
134	|	-
135	|	-
136	|	-
137	|	-
138	|	-
139	|	-
140	|	-
141	|	-
142	|	-
143	|	-
144	|	-
145	|	-
146	|	-
147	|	-
148	|	-
149	|	-
150	|	-
151	|	-
152	|	-
153	|	-
154	|	-
155	|	-
156	|	-
157	|	-
158	|	-
159	|	-
160	|	-
161	|	-
162	|	-
163	|	Changes from square movement to Polygon movement permissions
164	|	-
165	|	-
166	|	-
167	|	-
168	|	-
169	|	-
170	|	-
171	|	-
172	|	-
173	|	-
174	|	-
175	|	-
176	|	-
177	|	-
178	|	-
179	|	-
180	|	-
181	|	-
182	|	-
183	|	-
184	|	-
185	|	-
186	|	-
187	|	-
188	|	-
189	|	-
190	|	-
191	|	-
192	|	-
193	|	-
194	|	-
195	|	-
196	|	-
197	|	-
198	|	-
199	|	-
200	|	-
201	|	-
202	|	-
203	|	-
204	|	-
205	|	-
206	|	-
207	|	-
208	|	-
209	|	-
210	|	-
211	|	-
212	|	-
213	|	-
214	|	-
215	|	-
216	|	-
217	|	-
218	|	-
219	|	-
220	|	-
221	|	-
222	|	-
223	|	-
224	|	-
225	|	-
226	|	-
227	|	-
228	|	-
229	|	-
230	|	-
231	|	-
232	|	-
233	|	-
234	|	-
235	|	-
236	|	-
237	|	-
238	|	-
239	|	-
240	|	-
241	|	-
242	|	-
243	|	-
244	|	-
245	|	-
246	|	-
247	|	-
248	|	-
249	|	-
250	|	-
251	|	-
252	|	-
253	|	-
254	|	-
255	|	-

[a id]Objects[/a id]

Changing Objects on the Map

So you're wanting to change a house or even a sign or wind turbine? Welcome to the objects tab of NPRE! This area is used for whenever you wish to change an object like a house or something. But please remember, if you have inserted a map model manually, all objects will be removed from the map, meaning you'll have to put in all the objects all over again, but remember... you have to have edited the movement permissions first if the movement permissions page is blank. On the right hand side of the objects page, you've got the list of objects on the map. For the columns, Count means the number of the object for the map, Id means the ID of the object used, X8 (probably a typo) means the X position of the object, X-Flag (I'm not sure what this does), Y means the Y position of the object, Y-Flag (I'm not sure what this does), Z means the Z position of the object, Z-Flag (I'm not sure what this does), Height means the height of the object, Length means the length of the object and Width means the width of the object. To add in a new object, click on the add button and put in any number into the count column, make sure that it is in decimal order, like if the one above is 5, it has to be 6 and so on. After that, put in the ID of the object you'd like to use, then followed by the other columns. After you've changed the objects on the map, don't forget to click the save button.

For the IDs of objects you can use for the map, here's a list of them and if you find out any other model IDs and what they are, please list them here in the thread so I can put more of them in the list.
Code:
48	|	Player's house
49	|	Aspertia City house style 1
50	|	Aspertia City house style 2
152	|	Aspertia City sign

[a id]Credits[/a id]

Credits


  • Spiky-Eared Pichu - for helping me learn about changing the names of materials with a hex editor when they don't display
  • pichu2000 - for making Nintendo Pokémon ROM Editor
  • Team Fail - for his tutorial on editing maps in Generation 4
  • Intelligent Systems Co Ltd. - for developing the NITRO and TWL plugins for 3ds Max, Maya and Softimage
  • Game Freak - for developing Pokémon Black/White and Pokémon Black 2/White2
  • Nintendo Co Ltd. - for developing the Nintendo DS

Feel free to copy and paste this tutorial onto other websites, 'cause we surely don't want to lose this free knowledge about editing maps in Generation 5.

If this tutorial has been copy and pasted, please note that this tutorial has originally been made by PokémonShinySilver from PokéCommunity, also known as "Platinum Lucario" on other forums *gets credited automatically*. Please don't remove this message when copy and pasting the tutorial, thanks. ^^
 
Last edited:

Platinum Lucario

The Legendary Master of [color=#D8D48C]Light[/colo
1,607
Posts
16
Years
I'm going to try replicating the results of your assigning textures in 3DS Max, as I really need to add that part to my tutorial to complete it. This will most definitely help both of us! Thanks! I'll add a link to this tutorial for people wanting to do 5th Gen mapping later on.

Alright, cool. Excellent, thanks! And yeah, our tutorials surely will educate people who are new to hacking Generations 4 and 5, we'll be seeing more NDS ROM hacks in no time. It just shows... if we all concentrate on something and never give up trying... it will eventually become accomplished. And that's how many developers unlocked the gateway to hacking generation 4 and 5. Our tutorials will also bring them even closer, and knowing that NDS ROMs are much easier to hack than GBA ROMs in regards to how NDS ROMs have named headers in them, it makes GBA ROM hacking much more difficult to find certain offsets unless you have a program that already can edit in that particular offset.

We'll try distributing 3ds Max 6 and Maya 7 to many places, including the NitroSDK as well as it's plugins. Even though we can't provide the links here, the more we spread them through torrents, the more easier it would be for people to find them while searching Google. Just like how it was with music hacking on GBA back in the days before 2006, there was a program called mid2agb which comes with the GameBoy Advance SDK. Now that the GameBoy Advance SDK can be found everywhere on the web, it's now possible to do anything with those tools. Now that the NitroSDK is going to be distributed somewhere on the web, it will open up a brand new era of ROM hacking. ^^
 

Platinum Lucario

The Legendary Master of [color=#D8D48C]Light[/colo
1,607
Posts
16
Years
Great Tutorial PokemonShinySilver! :)

This really brings us closer to 5th Gen Rom Hacking. But, I still think it's quite complicated... xD

Thanks! ^^

I guess you could say that it's complicated when you first look at it. xD However, if you actually try it out... you might become skillful with Nintendo DS ROMs in no time. ;) Remember, the more you try things out... the more you'll learn from them. :)

'Cause that's exactly how I got to learn how to do stuff... was by simply trying out new things, asking others about where and how to edit stuff... and yeah I was interested in NDS ROM hacking right from when I first joined this forum. ^^

But hey, I'm still learning... 'cause I'd never stop learning new things, same goes for everyone. xD

And whenever I find out how to do certain things on Nintendo DS hacking, I would immediately start typing up a tutorial on how to do so, so it can educate anyone who is new to NDS ROM hacking.

Btw, am I really the first to actually change a map on a 5th generation ROM? 'Cause I really haven't seen anyone else posting anything about changing maps in B/W/B2/W2, I've only seen a map hack in Diamond... but that's it. So yeah, I've actually posted a video on a map that I implemented into a Pokémon Black Version 2 ROM, and guess what the map resembles?
 

VERGUNDAI

RomHacker, Unity 3D Maker
112
Posts
14
Years
Here is my errors on MaxScript:

[2013-01-04 T16:37:40]
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "tree01_lm2"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "ngrass_lm2"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "nsandp_lm2"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "nsand_lm2"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "nhana_lm2"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "tshadow_lm2"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "hage_lm1"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "conttree_b_lm2"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "conttree_t_lm2"
Warning: Length of name over 16 characters. palette: LT01_tree01_lm2_pl
Warning: Length of name over 16 characters. palette: LT01_ngrass_lm2_pl
Warning: Length of name over 16 characters. palette: LT01_nsandp_lm2_pl
Warning: Length of name over 16 characters. palette: LT01_nsand_lm2_pl
Warning: Length of name over 16 characters. palette: LT01_nhana_lm2_pl
Warning: Length of name over 16 characters. palette: LT01_tshadow_lm2_pl
Warning: Length of name over 16 characters. palette: LT01_conttree_b_lm2_pl
Warning: Length of name over 16 characters. texture: LT01/conttree_b_lm2
Warning: Length of name over 16 characters. palette: LT01_conttree_t_lm2_pl
Warning: Length of name over 16 characters. texture: LT01/conttree_t_lm2
Warning: The number of matrices for displaying this model is over 31. 247
Warning: Total polygon size over: 2504 Polygons (Max 2048)



Warning: No material on node "polygon5"
Warning: No material on node "polygon501"
Warning: No material on node "polygon7"
Warning: No material on node "polygon701"
Warning: No material on node "polygon8"
Warning: No material on node "polygon801"
Warning: No material on node "polygon9"
Warning: No material on node "polygon901"
Warning: No material on node "polygon10"
Warning: No material on node "polygon101"
Warning: No material on node "polygon1"
Warning: No material on node "polygon102"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "tree01_l"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "Foregrou"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "nsandp_l"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "nsand_lm"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "hage_lm1"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "conttree"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "conttr01"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "ngrass_l"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "tshadow_"
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "nhana_lm"
Warning: Polygons of a higher order than quadrilateral were found on node "Mesh405" and have been converted to triangles.
Warning: The number of matrices for displaying this model is over 31. 433
 

Platinum Lucario

The Legendary Master of [color=#D8D48C]Light[/colo
1,607
Posts
16
Years
Here is my errors on MaxScript:

Hm... from what I can see here...

MaxScript said:
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "[object name]"
This means that the material is not set to "NITRO standard" format, it needs to be NITRO Standard format in order for it to be made into an .imd file. Click the Materials button, click the button where it says "Standard" and then select "NITRO Standard".

MaxScript said:
Warning: Length of name over 16 characters. palette: [palette name]
This means that the name of the palette for the polygon is over 16 characters/letters, try shortening the name of the palette to 16 characters or below.

MaxScript said:
Warning: Length of name over 16 characters. texture: [texture name]
This means that the texture used for the polygon is... like the title says, the name is over 16 characters/letters long. The name needs to be shortened.

MaxScript said:
Warning: The number of matrices for displaying this model is over 31. 247
This means that you have too many matrices for the model itself, in this case... you have way too many over the limit. Try removing some matrices from the model.

MaxScript said:
Warning: Total polygon size over: 2504 Polygons (Max 2048)
Now this warning tells me that your model has been made way too big, try making it smaller or something. 'Cause a Nintendo DS game can only support up to 2048 in total size.

MaxScript said:
Warning: No material on node "[polygon name]"
This means you haven't set any material for that polygon.
 

VERGUNDAI

RomHacker, Unity 3D Maker
112
Posts
14
Years
Hm... from what I can see here...


This means that the material is not set to "NITRO standard" format, it needs to be NITRO Standard format in order for it to be made into an .imd file. Click the Materials button, click the button where it says "Standard" and then select "NITRO Standard".


This means that the name of the palette for the polygon is over 16 characters/letters, try shortening the name of the palette to 16 characters or below.


This means that the texture used for the polygon is... like the title says, the name is over 16 characters/letters long. The name needs to be shortened.


This means that you have too many matrices for the model itself, in this case... you have way too many over the limit. Try removing some matrices from the model.


Now this warning tells me that your model has been made way too big, try making it smaller or something. 'Cause a Nintendo DS game can only support up to 2048 in total size.


This means you haven't set any material for that polygon.


Thanks, i havn't been on for a while now, and this is a great help!
I will definitely credit you!
 
1,323
Posts
16
Years
  • Seen Dec 9, 2023
Whenever I try to convert .imd to .nsbmd, I keep getting this message:
20ku0dx.png

I still get this message even after I downloaded the said .dll and put it into System32.
EDIT: nevermind, I found out I just need to put the dll into the same folder as the converter
EDIT: converter still doesn't work, I get "Destination file name must be specified" error in the command prompt :/

EDIT: I found this handy-looking tool: http://www.cw-games.org/forum/index.php?/topic/1400-imd-file-converter/
I'm on a mobile device right now, can anyone see if it works? (EDIT: It works)


EDIT: lol sorry for another edit, but, 3DS Max 6 does not work on Windows 7. I'm trying to get maps to work by exporting with Maya (with the Nintendo plugins of course), but it shows up weird in Spiky's Map Editor when I import the model. Does anyone know how to export correctly from Maya?
 
Last edited:

VERGUNDAI

RomHacker, Unity 3D Maker
112
Posts
14
Years
Whenever I try to convert .imd to .nsbmd, I keep getting this message:
20ku0dx.png

I still get this message even after I downloaded the said .dll and put it into System32.
EDIT: nevermind, I found out I just need to put the dll into the same folder as the converter
EDIT: converter still doesn't work, I get "Destination file name must be specified" error in the command prompt :/

EDIT: I found this handy-looking tool: http://www.cw-games.org/forum/index.php?/topic/1400-imd-file-converter/
I'm on a mobile device right now, can anyone see if it works? (EDIT: It works)


EDIT: lol sorry for another edit, but, 3DS Max 6 does not work on Windows 7. I'm trying to get maps to work by exporting with Maya (with the Nintendo plugins of course), but it shows up weird in Spiky's Map Editor when I import the model. Does anyone know how to export correctly from Maya?


Hey that tool on CW Games doesnt work anymore.

Also 3DS Max 8 works fine on windows 7! and nitro plugins work.
If you need the tools just email me... [email protected]
 
1
Posts
11
Years
  • Seen Jun 30, 2013
I keep getting this error even after changing the material format to Nitro standard:
Spoiler:


How do I fix this?
 

Platinum Lucario

The Legendary Master of [color=#D8D48C]Light[/colo
1,607
Posts
16
Years
Alright, an update to the first post of this thread... and a reply to the post above me that's asking about the error when converting the model.

I have added the following into the post:

Note: If you ever get an error that says this:
Code:
Warning: Exported material is not NITRO standard or NITRO morpher and will be set to default parameters: "[material name]"
This means that you haven't set the material to NITRO Standard or NITRO Morpher, as the error pretty much says. So check that particular material in Material Editor and click "Standard" button then click "NITRO Standard" in the list.

Note: If you are also getting this error:
Code:
Warning: Length of name over 16 characters. texture: [texture name]
or
Code:
Warning: Length of name over 16 characters. palette: [palette name]
This error means that the name of the texture or palette is over 16 characters and you need to rename it to be shorter than 16 characters. Either you don't know what "character" means, or that NDS model editing is really new to you, that's OK... I understand. ^^ Many people have been asking me about this error, so I'll have to put here so that everyone will read this before asking about this error again. Just to let those who don't know what "character" means, "character" means a letter of the alphabet or some symbol listed in any speaking language, makes sense? ;)

I keep getting this error even after changing the material format to Nitro standard:
Spoiler:


How do I fix this?

Nope, I don't think you've changed them all to "NITRO Standard", you might have only changed one material to "NITRO Standard". Remember, after you've changed it to NITRO Standard, you've also gotta select a bitmap as well.
 

VERGUNDAI

RomHacker, Unity 3D Maker
112
Posts
14
Years
Alright, an update to the first post of this thread... and a reply to the post above me that's asking about the error when converting the model.

I have added the following into the post:





Nope, I don't think you've changed them all to "NITRO Standard", you might have only changed one material to "NITRO Standard". Remember, after you've changed it to NITRO Standard, you've also gotta select a bitmap as well.

Thanks! I actually found that our earlier,but I didn't know everyone had that error too.
 

Platinum Lucario

The Legendary Master of [color=#D8D48C]Light[/colo
1,607
Posts
16
Years
Alright, an update to the 5th Generation Map Editing guide!

This one is all about the g3dcvtr.exe, I can tell you about some of the commands I haven't mentioned yet.

If you want to only export the texture, type in this:
Code:
g3dcvtr.exe [name].imd -etex [output name].nsbtx

If you want to only export the model, type in this:
Code:
g3dcvtr.exe [name].imd -emdl [output name].nsbmd

If you want to export the model with the textures, type in this:
Code:
g3dcvtr.exe [name].imd -eboth [output name].nsbmd

For a list of other commands, be sure to put in "g3dcvtr.exe --help".

Note: If you're importing nsbmd models as maps or buildings, you must convert the .imd file to nsbmd without the textures by using the -emdl command, otherwise the game will freeze upon loading the model when imported.
 

Michielleus

That random guy
52
Posts
11
Years
I get this message in g3dcvtr:

An exception occurred! Type:TranscodingException, Message:An invalid multi-byte source text sequence was encountered
g3dcvtr ERROR: Read error M1.imd
file useifp.h, line 108

What am I doing wrong? :S Any help would be appreciated.
 
Last edited:
6
Posts
10
Years
  • Seen Aug 20, 2013
Hey guys, me and a friend are working on a pokemon hack, we've had a bit of trouble with one thing - we can't figure out how to add 4th/5th gen pokemon to the game using AdvanceMap? Or do you have to add each pokemon and all its data individually? It's a fire red hack, any help on this would be very much appreciated!

Thanks,
Faint
 

RegretZM

Master of the Occult
4
Posts
13
Years
  • Age 29
  • USA
  • Seen Jun 22, 2014
So you mentioned using Maya, but you really didn't add any info on how to do all this in Maya. I can't use 3ds max because I'm on Windows 7 and due to a long and painful story, I can't currently get XP mode on my laptop.

How do I do all this in Maya 7? Or, is there another way to get 3ds max to run on windows 7 besides XP mode?
 
330
Posts
10
Years
  • Age 32
  • Seen Nov 24, 2023
Cool tutorial. I've always wondered what went into future-gen map editing. Certainly it's more work than repainting a tile map... Props to you guys for figuring this stuff out.
 

Sliter

Gaijin Trainer
74
Posts
10
Years
well this is not gen5 but still using the SDSME , I made this:
pc1_zpsd5005f53.png

Just picked the map from HG/SS and imported in Platinum, the Tiles almost fit well, and I should try to change a but the model itself, but theres a way to correct the tiles, npc ans stufs positions and get the things from the old second floor to make it work ?
 
2
Posts
10
Years
  • Age 32
  • Seen Oct 13, 2013
can you make a video or even a series how to make your pokemon game? much easier plz reply ty :D
 

Platinum Lucario

The Legendary Master of [color=#D8D48C]Light[/colo
1,607
Posts
16
Years
Wow, it's been so long since I last updated this. Anyways... there's been many things I've added into the guide, one of them is a very important note:
When installing the plugins, be sure to follow the steps on how to install them in the setup document found in TWL System.

But wait, there's more! Discreet 3ds Max 6 is now a thing of the past, we now can find the 2009 version of the TWLSDK, which is for the Nintendo DSi. It contains the 3D plugins for Autodesk 3ds Max 2010, Autodesk Maya 2010 and Autodesk Softimage 2010. Which will come in handy for future ROM Hacks on Pokémon Black Version, Pokémon White Version, Pokémon Black Version 2 and Pokémon White Version 2.

The .OBJ plugin is no longer needed in Autodesk 3ds Max 2010, since Autodesk 3ds Max 2010 has it's very own function to import and export .OBJ models.

But anyways, it's been a long time since I last checked this thread, so lemme read all of the posts, here we go! :)
I get this message in g3dcvtr:

An exception occurred! Type:TranscodingException, Message:An invalid multi-byte source text sequence was encountered
g3dcvtr ERROR: Read error M1.imd
file useifp.h, line 108

What am I doing wrong? :S Any help would be appreciated.
Okay, sounds like you've got an error in which I've never even heard of before. Sounds to me like the model somehow has a polygon that is waaaaaaaaay outside the limits of what the Nintendo DS or DSi would be able to accept. I'd assume it's the work of that buggy program, MKDS Course Modifier! :P

Anyways, I'll try to find a better tool that can convert NSBMD to .OBJ without huge bugs involved. In the meantime, try creating a model from scratch instead (oh and use the 2010 plugins as well as the 2010 versions of Autodesk 3ds Max).
Hey guys, me and a friend are working on a pokemon hack, we've had a bit of trouble with one thing - we can't figure out how to add 4th/5th gen pokemon to the game using AdvanceMap? Or do you have to add each pokemon and all its data individually? It's a fire red hack, any help on this would be very much appreciated!

Thanks,
Faint
To create new Pokémon in earlier generations, try using a program called Yet Another Pokémon Editor (YAPE). I'm afraid this isn't the right thread to ask this sort of question, just letting you know. xD

I shall guide you to this section of the ROM Hacking forum. Posting your help thread in that area will give you help and support almost immediately, it's also a good place to learn new stuff too (even I still call myself a beginner at times). ^^
So you mentioned using Maya, but you really didn't add any info on how to do all this in Maya. I can't use 3ds max because I'm on Windows 7 and due to a long and painful story, I can't currently get XP mode on my laptop.

How do I do all this in Maya 7? Or, is there another way to get 3ds max to run on windows 7 besides XP mode?
No need to worry anymore, Autodesk 3ds Max 2010 and the Nintendo TWL 3D Plugins have got you covered! I will also do a tutorial on how to use Autodesk Maya 2010, if I ever get around to it.
Cool tutorial. I've always wondered what went into future-gen map editing. Certainly it's more work than repainting a tile map... Props to you guys for figuring this stuff out.
It sure is more time consuming, but it's not really hard once you get the hang of it. You'd probably get bored, like I do. xD
well this is not gen5 but still using the SDSME , I made this:
pc1_zpsd5005f53.png

Just picked the map from HG/SS and imported in Platinum, the Tiles almost fit well, and I should try to change a but the model itself, but theres a way to correct the tiles, npc ans stufs positions and get the things from the old second floor to make it work ?
Nice! That's a step forward towards learning to hack the maps of NDS ROMs! ^^
can you make a video or even a series how to make your pokemon game? much easier plz reply ty :D
If I ever have the effort to do so, I probably would. xD
 
Back
Top