Diamond/Pearl/Platinum hacking Page 62

Started by Hiidoran April 5th, 2007 7:49 PM
  • 415082 views
  • 1952 replies
New Twinleaf town(Werdo Town)
Seen April 27th, 2015
Posted November 30th, 2012
58 posts
14.5 Years
Wow this is amazeing,SCV! great job! can you give us those programs?

SCV

DPP Game Researcher

Los Angeles
Seen January 8th, 2015
Posted April 11th, 2010
178 posts
15.4 Years
Wow this is amazeing,SCV! great job! can you give us those programs?
Well the one that will make it easier to edit scripts and other stuff has yet to be started. It was in its planning stage, but now I think I am ready to begin writing it. However, I just started school again, so progress in finishing the program might be slow.

I am trying to recruit people to help me study scripts and events (check my signature). I posted a link to a zip file with useful programs, more will be added later. Those programs include Tahaxan Tihaxa by Arcnor, NDS Editor by kiwi.ds, NitroExplorer2 by Treeki and a small program PPNFR, which I made based on what I use in my trainer editor (based on some codes by loadingNOW, me and HackMew) to allow one to reinsert files into a narc files. This is how I was able to insert the pokeball behind arceus into the event narc. You can download that program there. and eventually I will add the link to my sig as well (probably once I get home tonight). Unfortunately, I have no idea when the other one will be done.

When I get some time this week I will publish some information on the structure of the script files for everyone to play around with. But there won't be a program to repoint within script files yet. I will explain what should be done later.

I am also getting some help on making the list of event files that I have presentable enough to be posted and I will post it once it is available. In the mean time I posted some of the list in the thread that is in my sig.

EDIT: I have written a first article on scripts I will post it here as well.

Spoiler:
Scripts are located in \fielddata\script\scr_seq_release.narc

Very little is know about script files. But recently I figured out the general structure.

The first thing to know about script files is that they are store individual scripts. These can be scripts corresponding to things that happen in a particular location or sometimes for things the same type of things but happen in many places. For example, there is one script file which is called whenever a trainer battle is called, no matter where the trainer battle happens. Another script file contains all the scripts for the items that you get from pokeballs on the ground. In the example above with a trainer battle the script is linked by way of the B9 0B. Those two bytes link to the script. For other person events it might have 01 00 or low values such as that. That refers to what script they use from within the script file for that location.


I will give an example, the following is the beginning of script file number 342, it corresponds to lake verity, first visit.

1A000000 46000000 63000000 50060000
7F060000 BA060000 B8060000 13FD 4D01
0040 1100 0040 0000 1C00 010F 0000 0011

The first part of a script file consists of offsets to the scripts that the script file contains. For example, the 1A000000, says that starting from the end of those 4 bytes go 0x0000001A bytes to find the first script. That takes you to the part I bolded. As you will notice if you look at alot of script files. The first 4 bytes always point you to the place right after 13FD. 13FD represents the end of the first part. However this mechanism of linking is also used within scripts, more on that later.

Now the 46000000 tells you that the second script starts at offset 0x8+0x46 in the file.

One of the commands that I have been able to identify is the movement command.

it is the following:

005E AAAA BBBB, Move person AAAA acording to movement at BBBB + offset AAAA=FF00 for hero. (I have not tested whether its BBBBBBBB or just BBBB).

An example from the game is:

5E00 0500 91040000 5E00 FF00 41050000 5F00

The AAAA is the person event ID. The BBBB and offset used like in the first part. What it links to is the movement commands.

They look like this:
0D00 0100 0E00 0100 0D00 0300 0E00 0100 0D00 0600 4500 0100 FE00 0000

Each 4 bytes describe a movement. The first two bytes are the type and the second two are the repetition or waiting. FE00 is the command for end movement. Basically you can keep adding on movement commands to make what ever movement you want, and you end it with FE00.

Movement for more than one person or thing is done adding the movement command for the next person after the previous one. You tell the game that no more simultaneous movements are to be carried out by the game.


Here is the zip I mentioned earlier: http://rapidshare.com/files/179900486/ROMHackingTools.zip and I also added a link to it in my signature.

With the information above about movements and linking, and using PPNFR, you can insert movement sequences into a script by editing the script file and replacing the file you edited with PPNFR then reinserting the narc with NitroExplorer2.
Visit PP Wiki's ROM Editing and Research Page

A new type of DPP Editor: PPRE (PPRE beta 0.05 now out, but there are newer releases)

Useful programs for DPP Hacking/Research: http://rapidshare.com/files/179900486/ROMHackingTools.zip
New Twinleaf town(Werdo Town)
Seen April 27th, 2015
Posted November 30th, 2012
58 posts
14.5 Years
Hey guys, i'm almost fished with that model list. it turns out i may even make a model editor.also lots of the modles are weird red square thingys.i'll probabaally finish the list tommorow.
and septile leaf, there is already a english key board in the text entery.
also my next vid will be comeing out some time soon.
Seen September 10th, 2009
Posted September 10th, 2009
39 posts
15.3 Years
okay so yes i decided to finally relase an official version of thenewpoketext
http://pokeguide.filb.de/dl/thenewpoketext.zip
if you already know the experimental version not much has changed since then
a source relase will also happen but now the bad news i am not going to make a gui version.
Saffron City
Seen January 24th, 2009
Posted January 11th, 2009
7 posts
14.8 Years
Ok I don't know if this has been resolved or not but I am not sifting through 60+ threads looking for the answer. Could someone tell me if you can use POKETEX to change the main character to a different sprite. Like could I play as a psychic (mystery in poketex) instead of the two main characters they give you. Also, on the listus there's only a male psychic where's the female one? Is it also possible to use sprites from FireRed in Diamond and Pearl? And one last thing...how do I transfer all of these changes to a Nintendo DS Lite? Thanks a million!!!!!!!!
Seen March 6th, 2012
Posted January 11th, 2009
32 posts
15.5 Years
Please, at least from now on, start reading threads.
I'll still answer the questions, though.

Ok I don't know if this has been resolved or not but I am not sifting through 60+ threads looking for the answer. Could someone tell me if you can use POKETEX to change the main character to a different sprite.
You can.

Like could I play as a psychic (mystery in poketex) instead of the two main characters they give you.
Well, you can change it to whatever, so I suppose.

Also, on the listus there's only a male psychic where's the female one?
I don't know. I haven't used Pokétex; I know how it works, though.

Is it also possible to use sprites from FireRed in Diamond and Pearl?
Pokémon sprites or overworld sprites?
It's possible to use Pokétex for the overworlds; I do not know how to change the Pokémon sprites (I'm quite sure it's possible, though).

And one last thing...how do I transfer all of these changes to a Nintendo DS Lite? Thanks a million!!!!!!!!
I'm not sure of the details (as I haven't done it), but I know you need a flash cartridge. I think you can get them on eBay or something.
-chuu ^.^
São Vicente, Brazil
Seen January 15th, 2009
Posted January 15th, 2009
9 posts
14.4 Years
But, Potatomuffin, I know, but Don't have to put the name selection box in English like Pokemon Diamond and Pearl English? I don't like name selection box in Japanese, because the player's name is BIG!

But Potatomuffin, I want to put the name selection in English like Pokemon DP English.
Because the player's name is BIG!

and in thenewpoketex, there is a file called patchedintro.xml for what is this file?

Please Help Me!

SCV

DPP Game Researcher

Los Angeles
Seen January 8th, 2015
Posted April 11th, 2010
178 posts
15.4 Years
and in thenewpoketex, there is a file called patchedintro.xml for what is this file?

Please Help Me!
You use patchedintro.xml to make thenewpoketext give you a new intro.
Consider it special message from loadingNOW, ;).
Visit PP Wiki's ROM Editing and Research Page

A new type of DPP Editor: PPRE (PPRE beta 0.05 now out, but there are newer releases)

Useful programs for DPP Hacking/Research: http://rapidshare.com/files/179900486/ROMHackingTools.zip

SCV

DPP Game Researcher

Los Angeles
Seen January 8th, 2015
Posted April 11th, 2010
178 posts
15.4 Years
But in thenewpoketext don't have the option Help and when I open the program, open the command prompt. Help
When you get to the command prompt press "h", then enter.
___________________________________________________________________________________
Well I have finished a first script editor (As part of PPRE). Its mainly a research tool. I basically made it so that its easier for me to identify commands for DPP scripting. But I am releasing it publicly for everyone to play around with.

Here is a video where I inserted some new commands to the script sequence and added new text with newpoketext. Its very minor and more complicated things can be done but they are a bit tedious right now because PPRE does not automatically repoint some things that need to be repointed within the individual script files (i.e., pointers to movement commands)




For PPRE, DO NOT go through the combo boxes on the left or right too fast, this will cause the program to crash. (EDIT: Actually this is an unhanded exception that I don't know how to fix yet. Just press continue and choose something else.)

here is a list of a few script numbers (by pichu2000, damio):
02 Jubilife city
342 Lake Verity
392 Route 201
978 Twinleaf Town
981 Hiro's House 1 floor
982 Hiro's Room
984 Sandgem Town

Look for those numbers on the left. On the right are the individual scripts for that location/script file.
Once we have a more complete script file list I will add it to PPRE.
Also this is to be a DPP Rom editing program but as it is mainly a research tool I am only supporting US DP for now. The research will mostly be the same, so there's no need to worry about adding Platinum support now. I will add platinum support for a particular feature once that feature is out of the research stages.
Visit PP Wiki's ROM Editing and Research Page

A new type of DPP Editor: PPRE (PPRE beta 0.05 now out, but there are newer releases)

Useful programs for DPP Hacking/Research: http://rapidshare.com/files/179900486/ROMHackingTools.zip
São Vicente, Brazil
Seen January 15th, 2009
Posted January 15th, 2009
9 posts
14.4 Years
Sorry, but I don't understand press "h", but when I press the button continue the same, other thing is when I open thenewpoketext.exe, I write the Rom's name in "romname" and after the program create a file called tmp_"rom's name" and don't open nothing.

Maybe anybody teach me use patchedintro.xml in thenewpoketext?
for what the "batch" in the file?
Teach me please !
For I learn fast, you can use image or videos!

SCV

DPP Game Researcher

Los Angeles
Seen January 8th, 2015
Posted April 11th, 2010
178 posts
15.4 Years
Sorry, but I don't understand press "h", but when I press the button continue the same, other thing is when I open thenewpoketext.exe, I write the Rom's name in "romname" and after the program create a file called tmp_"rom's name" and don't open nothing.

Maybe anybody teach me use patchedintro.xml in thenewpoketext?
for what the "batch" in the file?
Teach me please !
For I learn fast, you can use image or videos!
1) Put the rom in the same directory as thenewpoketext.

2) Type the name of the rom when you enter poketext (I thought that was pretty self explanatory)

3) Enter "h" into the command prompt and you will see the different commands that you can use.

4) Enter "patch patchedintro.xml"

5) Enter "mkrom new.nds"

Then open new.nds with no$gba and start a new game.
Visit PP Wiki's ROM Editing and Research Page

A new type of DPP Editor: PPRE (PPRE beta 0.05 now out, but there are newer releases)

Useful programs for DPP Hacking/Research: http://rapidshare.com/files/179900486/ROMHackingTools.zip

SCV

DPP Game Researcher

Los Angeles
Seen January 8th, 2015
Posted April 11th, 2010
178 posts
15.4 Years
Dude, When I put the rom's name and press the letter "h" in command prompt write "h"
It's very confused. Don't you have videos or pictures?
Is that clear enough for you? That tells you what the commands are.
Visit PP Wiki's ROM Editing and Research Page

A new type of DPP Editor: PPRE (PPRE beta 0.05 now out, but there are newer releases)

Useful programs for DPP Hacking/Research: http://rapidshare.com/files/179900486/ROMHackingTools.zip

SCV

DPP Game Researcher

Los Angeles
Seen January 8th, 2015
Posted April 11th, 2010
178 posts
15.4 Years
I use Pokemon Platinum rom, but I hope patched intro change the name selection in Pokemon Platinum, what changes happens with patched intro?

My msn is [email protected]
This probably won't work how you want it to for platinum. The program looks to edit things in msg.narc but if there are things in pl_msg.narc that you want edited they won't be.

Do you know Japanese?

Otherwise it is not a good idea to edit the text for platinum.
Visit PP Wiki's ROM Editing and Research Page

A new type of DPP Editor: PPRE (PPRE beta 0.05 now out, but there are newer releases)

Useful programs for DPP Hacking/Research: http://rapidshare.com/files/179900486/ROMHackingTools.zip

SCV

DPP Game Researcher

Los Angeles
Seen January 8th, 2015
Posted April 11th, 2010
178 posts
15.4 Years
Oh man, are you kidding? I want too much change the name selection in Pokemon Platinum!
Can you try change the Name Selection Box in Pokemon Platinum into English?
Man if you can, you are the BEST POKEMON HACKER!
Well, that would be more work that its worth. Just wait for the US Platinum release. Only a bit more than two months now. There are many more things for us to worry about for DPP hacking than changing the name selection. Sorry.
Visit PP Wiki's ROM Editing and Research Page

A new type of DPP Editor: PPRE (PPRE beta 0.05 now out, but there are newer releases)

Useful programs for DPP Hacking/Research: http://rapidshare.com/files/179900486/ROMHackingTools.zip
Age 31
Male
Belgium
Seen December 31st, 2009
Posted December 29th, 2009
439 posts
17.9 Years
Man if you can, you are the BEST POKEMON HACKER!
Yeah, sure.. - -'
Sceptile Leaf, you really need to try some things on your own..
By always asking other people to do it, you won't learn anything - -'
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
New Twinleaf town(Werdo Town)
Seen April 27th, 2015
Posted November 30th, 2012
58 posts
14.5 Years
Congragulations SCV! its gerate that we finally have a script editor! and sorry about my video and modle list, i have lots of school work, so... i coludnt even check tjis thread for a while.