The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking > Binary Hack Research & Development
Reload this Page Development Wild double / triple battles

Notices
For all updates, view the main page.

Binary Hack Research & Development Got a well-founded knack with your binary Pokémon hacks? Love reverse-engineering them? For the traditional Pokémon ROM hacker, this is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!

Ad Content
Reply
 
Thread Tools
  #26   Link to this post, but load the entire thread.  
Old June 3rd, 2011 (2:36 PM). Edited May 1st, 2012 by sonic1.
sonic1's Avatar
sonic1 sonic1 is offline
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 28
Gender: Male
Nature: Timid
Posts: 77
At 01065c put a branch to this routine:~
Code:
.thumb
.align 2

main:
LDR     R5, =0x20370CA  ' var 8009 adress. Chose this one because its not used often
LDRB    R5, [R5]
CMP     R5, #0xF 'If var 8009 is 0xF then go to new code. Else continue original code.
BEQ     new_code
STR     R1, [R2]
LDR     R1, =0x2023E82
MOV     R0, #0xF
STRB    R0, [R1]
LDR     R4, =0x8010665
BX      R4

new_code:        'What this code does is basically setting the double battle bit.
PUSH   {R7}
MOV     R7, #1  ' see the line up
ORR     R1, R7
POP    {R7}
STR     R1, [R2]'----------Rest of the routine
LDR     R1, =0x2023E82
MOV     R0, #0xF
STRB    R0, [R1]
LDR     R4, =0x8010665
BX      R4
Presto! With var 8009 with value 0xF set, you can now have double battles. Any double battles: Wild, trainer, wireless, safari, blah blah blah.

~Sonic1
__________________
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Reply With Quote
  #27   Link to this post, but load the entire thread.  
Old July 10th, 2011 (6:23 PM).
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Posts: 736
Quote:
Originally Posted by Team Fail View Post

Ooh goody. Now, all that needs to be done is to write a routine that allows a wireless double battle to work!

Especially if each trainer tries to catch the same Pokemon.

Edit: Someone made a really good point on that video. I'll have to see to it. It is using surf to kill both opposing Pokemon. But, I don't think anything special will happen.
As you may have realised by now, it makes absolutely no difference if you KO them both at the same time as the game runs the checks properly.

I've managed to iron out most of the bugs with my routines now. The only problem now is that I can't find what tile the player is standing on, and as such, can't work out probabilities for how often they should occur.

I was trying to cook up a way for normal grass tiles to have a 1 in 20 chance or something, with "special" grass tiles having a much higher chance. If anyone could point me in the right direction for where to get a tile ID in the RAM/ROM, I will finish this hack off, and get it posted on here for all and sundry to use.

Also, 100th post! :D
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #28   Link to this post, but load the entire thread.  
Old July 11th, 2011 (12:08 AM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 31
Gender: Male
Nature: Modest
Posts: 1,152
Quote:
Originally Posted by Jambo51 View Post
As you may have realised by now, it makes absolutely no difference if you KO them both at the same time as the game runs the checks properly.

I've managed to iron out most of the bugs with my routines now. The only problem now is that I can't find what tile the player is standing on, and as such, can't work out probabilities for how often they should occur.

I was trying to cook up a way for normal grass tiles to have a 1 in 20 chance or something, with "special" grass tiles having a much higher chance. If anyone could point me in the right direction for where to get a tile ID in the RAM/ROM, I will finish this hack off, and get it posted on here for all and sundry to use.

Also, 100th post! :D
I believe you have to read the X/Y position of the player from the RAM, then manually load the tile ID from the ROM based on that.
__________________
あなた は しきしゃ です
わたし は ばか です
Reply With Quote
  #29   Link to this post, but load the entire thread.  
Old July 13th, 2011 (9:32 AM). Edited April 26th, 2012 by Jambo51.
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Posts: 736
Here we have a newer update of the routines:

http://www.youtube.com/watch?v=pPUWIWztYrA

It's not perfect. You can't run from the battle, and you can only catch one of the Pokémon, but the music plays on winning the battle correctly now.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #30   Link to this post, but load the entire thread.  
Old July 13th, 2011 (11:29 AM).
Pingouin_7
Guest
 
Posts: n/a
Weird.
I got my hands on a FireRed rom and when I checked 02022B4C it was already set to 03 for some reason.
Then when I edited it to 01, it started some kind of double battle with only one Pokémon on the right.

When I sent two Pokémon, one of them acted normal, but the second Pokéball flew all the way up to the wild Pokémon and some kind of glitchy line of mess appeared near my Pokémon's HP bar.
The game froze after the battle.
Reply With Quote
  #31   Link to this post, but load the entire thread.  
Old July 22nd, 2011 (4:59 AM). Edited July 22nd, 2011 by Liquid Twilight.
Liquid Twilight's Avatar
Liquid Twilight Liquid Twilight is offline
Super Geek
 
Join Date: Apr 2011
Location: New Bark Town
Age: 31
Gender: Male
Nature: Timid
Posts: 50
Wow. I glanced at this thread a day or two ago and I thought it would take you all a lot longer to get a almost fully functioning wild double battle going.

Now, I have no knowledge about anything you guys have done and I wouldn't know where to start implementing but in regards to running could you not run a check at the beginning of the escape routine to check if it is a double battle and if it is use a modified version of the runaway script.

E.g.

The formula for the normal Run routine is ((Speed of your pokemon) x 32 / (speed opponent) divided by 4, mod 256) plus 30 times (amount of escape attempts).

Edit: I forgot to add this would require the run command to be executed before any attacks happen and would require the battle to finish if successful ... but I imagine you all knew that already.

Also ...

In regards to a capture could you not force the routine to treat the captured pokemon as knocked out and then proceed with the battle as normal. Would this not enable the other pokemon to be captured? or does the game only allow for 1 capture per battle.

As I said, I have no knowledge of this sort of thing so please don't kill me, I'm just trying to help.

However for a wild double battle could it not be ((Speed of both player pokemon divide by 2) x32 / (speed of opponents) divide by 8, mod 256) plus 30 times (amount of escape attempts)

Thus effectively averaging out the wild pokemon to trainers pokemon ratio. If you need me to clarify the formula, just ask.
Reply With Quote
  #32   Link to this post, but load the entire thread.  
Old August 19th, 2011 (11:53 PM).
jabberjabber8's Avatar
jabberjabber8 jabberjabber8 is offline
../\..
 
Join Date: Mar 2011
Location: England
Gender: Male
Nature: Rash
Posts: 213
I have been away for some time (just over 2 months) when I left we were painfully close to managing this but by the looks of it there has not been a post in this thread for months...

Does that mean wild double battles have been perfected or does it just mean we have given up?
__________________


Rumble rock is back, expect a BETA soon.
Reply With Quote
  #33   Link to this post, but load the entire thread.  
Old April 26th, 2012 (7:11 PM). Edited May 12th, 2012 by Jambo51.
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Posts: 736
EDIT: Interesting. the video decided to stop working. Look down a couple of posts. Spherical Ice reposted it for me.

This is the latest on Double Wild Battles! Looking pretty good IMO, :D.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #34   Link to this post, but load the entire thread.  
Old May 11th, 2012 (10:31 PM).
~Anbuja's Avatar
~Anbuja ~Anbuja is offline
Let's Keep It Simple
 
Join Date: Oct 2010
Location: In Snorlax Stomach
Gender: Male
Nature: Lonely
Posts: 321
Quote:
Originally Posted by Jambo51 View Post


This is the latest on Double Wild Battles! Looking pretty good IMO, :D.
I don't know if this is just me or not, but i can't watch the videos ;s

It says theyre removed.
__________________
Reply With Quote
  #35   Link to this post, but load the entire thread.  
Old May 12th, 2012 (1:03 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is offline
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251


I believe this is what Jambo meant to post, haha.
__________________
Reply With Quote
  #36   Link to this post, but load the entire thread.  
Old August 19th, 2012 (6:40 PM).
ShinyDragonHunter's Avatar
ShinyDragonHunter ShinyDragonHunter is offline
 
Join Date: Nov 2010
Gender: Male
Nature: Calm
Posts: 34
Would it be possible to generate a double wild battle with another trainer?
Like in DPPt, you can team up with Riley and fight two wild Pokémon with Riley on your side.
Reply With Quote
  #37   Link to this post, but load the entire thread.  
Old October 18th, 2012 (11:00 AM).
Herpahermaderp's Avatar
Herpahermaderp Herpahermaderp is offline
I liek Mudkipz
 
Join Date: Jul 2012
Location: USA
Age: 25
Gender: Male
Nature: Relaxed
Posts: 66
So, Jambo, are you going to share your double battle ASM? lol
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 2:24 AM.