EZ-Flash USA Forum

Forum for the EZ-Flash I, II, III, IV & V Gameboy Advance & Nintendo DS USA Forum (Unofficial) Open since 2004! Four more years! Four more years!
It is currently Sun Mar 21, 2010 9:28 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 8  Next
Author Message
Sponsor
 Post subject:
PostPosted: Thu May 31, 2007 12:45 pm 
Offline
 Profile

Joined: Wed May 30, 2007 9:22 am
Posts: 11
Good news, everyone! This latest version is working! So far, all I've tested is the migrate feature, but that is working 100%. I'm currently in the Pal Park catching my prize, so when that's finished I'll check the other functionality and report back.

Here's the link:

PokePatch 3in1 V2

EDIT: Migration works fine, and it appears that the GBA rom-based wild pokemon are working too. I was in route 208, with Sapphire rom in, and the expected catch is Seviper. After 4 Machop, 1 Meditite, 2 Psyduck, and 1 Bidoof, I finally saw Seviper. That means...

IT WORKS!

Congrats, cory1492, on a job well done!


Top
 
Sponsor
 Post subject:
PostPosted: Thu May 31, 2007 1:06 pm 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
Good stuff, making migrate work was the key purpose, if the other stuff works too because of it that is just a bonus. :D


Top
 
 Post subject:
PostPosted: Thu May 31, 2007 1:21 pm 
Offline
 Profile

Joined: Wed May 30, 2007 9:22 am
Posts: 11
The funny thing is that migrate was secondary for me--a couple of weeks ago, I used my old X-ROM with Emerald on it, a Ruby cart, and 2 GBA SP's to get most of the stuff I needed transferred over. My main interest was being able to catch the special wild ones! So, regardless of goals, looks like we all got what we were looking for.


Top
 
 Post subject:
PostPosted: Thu May 31, 2007 6:45 pm 
Offline
 Profile

Joined: Wed May 02, 2007 4:27 pm
Posts: 10
perfect, this should definitively be stickied, or at least post a link to that patch somewhere where pokefreaks can find it. Time to buy a 3 in 1!


Top
 
 Post subject:
PostPosted: Sat Jun 02, 2007 6:14 am 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
Waiting hasn't changed the message given on that DS save file... it looks like it's tied to the DS the game was originally played on in some fashion :?


Top
 
 Post subject:
PostPosted: Sun Jun 03, 2007 1:07 am 
Offline
 Profile

Joined: Wed May 30, 2007 9:22 am
Posts: 11
Hmm. l bet there is some way to fix that in the game, but I'd have to play around with it. Probably have to do something in the basement of the pokecenter...


Top
 
 Post subject:
PostPosted: Sun Jun 03, 2007 7:53 am 
Offline
 Profile

Joined: Thu Aug 17, 2006 12:45 am
Posts: 18
Hi kettek and cory1492.

First of all thanks for all your efforts.

I'm trying to do the migration thing using and EZ-Flash II PS 256 Mbit instead of the EZ 3-in-1 as the slot-2 device.

What I've got so far is the "Migrate from Emerald" option in Pokemon P start menu. Before your patch, that option wasn't even appearing. But when I select it, it says "there is no save file on the EZ-Flash II Emerald or it is corrupted."

I'm flashing Emerald (U) to the EZ-Flash II WITHOUT EZLoader (I mean, it is the only ROM on the flashcart) and then, I upload the GBA save using EZClient 3.26. The Emerald ROM is playing and saving fine from the EZ-Flash II flashcart.

It seems the problem is your Pokemon D/P patch (V2, the last posted by kettek) only allows to read from the particular SRAM save in EZ 3-in-1, but not from the SRAM save in the EZ-Flash II.

My question is: could this patch be modified to read from the EZ-Flash II save, given now it is at last recognizing the GBA game when flashed to this slot-2 device?

Thanks in advance.


Top
 
 Post subject:
PostPosted: Sun Jun 03, 2007 12:38 pm 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
kazumi213 wrote:
could this patch be modified to read from the EZ-Flash II save, given now it is at last recognizing the GBA game when flashed to this slot-2 device?

Sure, all you'd need to provide is the bankswitching code and page offset to the save data in EZ2 and it shouldn't be a problem :wink: No, seriously... I haven't done any experiments on EZ2 as of yet to know how it actually works, and I am not aware of any public code to use EZ2 hardware (though it should be very similar if not the same for RAM paging).


Top
 
 Post subject:
PostPosted: Sun Jun 03, 2007 9:15 pm 
Offline
 Profile

Joined: Sun Jun 03, 2007 9:12 pm
Posts: 1
Will this work with the EZ-Flash 4 IV?


Top
 
 Post subject:
PostPosted: Mon Jun 04, 2007 4:06 am 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
ECas123 wrote:
Will this work with the EZ-Flash 4 IV?

Not as-is. EZ4 by default has the OS on the GBA bus (so if I put emerald on the NOR, it won't see it), though I could probably fix that with a bit more code in the patch to bring the first NOR page to the front. Not sure if the SRAM banking code would work properly or if that would need to be redone as well.


Top
 
 Post subject:
PostPosted: Mon Jun 04, 2007 4:48 am 
Offline
 Profile

Joined: Thu Aug 17, 2006 12:45 am
Posts: 18
cory1492 wrote:
Sure, all you'd need to provide is the bankswitching code and page offset to the save data in EZ2 and it shouldn't be a problem :wink: No, seriously... I haven't done any experiments on EZ2 as of yet to know how it actually works, and I am not aware of any public code to use EZ2 hardware (though it should be very similar if not the same for RAM paging).


Oh, I see, what a pity. Maybe someone could report this thread to the EZ Team Chinese forum so they realize about your great progress. I'm asking about improving the use of one of their products in the end. Given it is also an old, discontinued one, maybe they could modify your patch or even release to the public (or to you) the necessary tech specs on the EZ II save access.

Anyway, I've been performing some more test using the EZ-Flash II and I want to share my conclusions in case they help other EZ II users.

First, my environment:

Slot-1: DS-X old FW 1.0.2. Pokemon Pearl (U) ROM patched with your latest V2 patch.
Slot-2: EZ-Flash II PS 256 Mbit. Pokemon Emerald (UE) flashed without EZLoader using EZClient v3.26.

1) Without your D/P patch, the "Migrate from Emerald" option doesn't appear on D/P start menu. With your patch the option appear, but the GBA save on the EZ II can't be accessed.

2) Without your patch you can't catch GBA-in-slot2-enabled pokemon. With your patch I've been able to catch PINECO on route 204 and GLIGAR on route 207.

3) From 1) and 2) catching GBA-in-slot2-enabled pokemon doesn't require the GBA save to be accessible, it only requires D/P to "detect" the GBA game to be present, and this requires your patch when using a non-original GBA cart. Note that the non-original cart (ie Emerald ROM on the EZ II) may be working, I mean, detected by the NDS, but it is required the Pokemon D/P game itself to detect it. This is only possible using your patch.

4) So EZ II users can use your patch to catch all those GBA-in-slot2-enabled pokemon, but can't migrate (Pal Park) pokemon at the moment. Anyway I think this is nice enough, because they don't need to even use a GBA save, just flash the proper GBA ROM to the EZ II.


Top
 
 Post subject:
PostPosted: Mon Jun 04, 2007 5:57 am 
Offline
 Profile

Joined: Fri Mar 30, 2007 2:15 am
Posts: 169
How much SRAM does the EZ2 have? Can you write 256kB save files to it?

You probably just need to offset the pokemon save 64kB into the SRAM. That's where it would be on the 3-in-1, so that is where the patched DS rom should be looking for it.


Top
 
 Post subject:
PostPosted: Mon Jun 04, 2007 7:10 am 
Offline
 Profile

Joined: Thu Aug 17, 2006 12:45 am
Posts: 18
destructobot wrote:
How much SRAM does the EZ2 have? Can you write 256kB save files to it?

You probably just need to offset the pokemon save 64kB into the SRAM. That's where it would be on the 3-in-1, so that is where the patched DS rom should be looking for it.


EZ-Flash II PS 256 Mbit has 2048 kbits of SRAM, so yes, up to 256 kbytes saves.

The GBA pokemon saves are Flash 1024 kbit (128 kbytes), and need to be patched (EZ-Type) for the GBA ROM to work on EZ II. However, I've tried to disable the save patch prior flashing the GBA ROM and the ROM, while it is not working by itself, it is still recognized by Pokemon D/P and allowing to catch GBA-in-slot2-enabled pokemon.

But I don't know how to "offset" the GBA save on the EZ II using the EZClient as the info (ROMs and saves) require to be stored sequentially.

Maybe cory1492 could remove? this offset on the patch itself (the GBA save in the EZ II seems to start at the beginning of the SRAM according to the displayed bar), and I could try using the GBA save with/without save patching on EZClient.


Top
 
 Post subject:
PostPosted: Mon Jun 04, 2007 1:47 pm 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
To offset it, add the required bytes to the beginning of the save file using a hex editor (in this case 65536). Because EZ2 puts the games directly to the cart, I have no fast way to check if the patching is the same as EZ4 but I still have the ability to check.

Quote:
the GBA save in the EZ II seems to start at the beginning of the SRAM according to the displayed bar
The commands to bankswitch are fast and generally transparent.

Put simply, I have the materials (both EZ1 and EZ2, a DS and a slot1 flash cart with full dldi access) to find out what I need to fix the migration patch, what I don't have right this second is time. If you could hand me the code I needed (known working EZ2 SRAM bankswitching code and how EZ2 handles 128 FLASH saves) I could deal with it fairly quickly, but without it it will take time. Patience wrather than help is requested, though be prepared as you will be asked to test the result of my findings.

BTW: the origin of the 3in1 patch is existing code in the EZ5 kernel, and memory dumps - the truly heavy lifting (2 instructions that handle protection are patched) was done by EZ team, I just adjusted it to make it work without EZ5.


Top
 
 Post subject:
PostPosted: Mon Jun 04, 2007 2:04 pm 
Offline
 Profile

Joined: Fri Mar 30, 2007 2:15 am
Posts: 169
If you can write the entire 256k to SRAM, offsetting the save data will be easy.

Run your 128k save through this save converter: 3-in-1 Save Converter. Just extract the files to a folder and drag & drop the save onto the .bat file.

That will create a 512k save file with the data at the correct offset. Use this file trimmer (link) to trim it to 256k. Trim from the end, saving the first part. You will now have a 256k save file with the data at the correct offset. write the save to the EZ2 and see if you can get it to work.

If it does work, I'll modify that script so that the file doesn't need to be trimmed afterward.


Top
 
Sponsor
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 8  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google Adsense [Bot], MSN [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits