Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex
TrainerDex
TypeDex
UnownDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi Egg trick
Select glitches (Japan)
SRAM glitch
CoolTrainer♀ corruption
LOL glitch
Rival LOL glitch
Super Glitch
ZZAZZ glitch
Pomeg corruption glitch (Glitzer Popping)
Tweaking
Elite Four door glitch (Japan)
Pokémon merge glitch
Pokémon cloning
Time Capsule exploit
Arbitrary code execution
Coin Case glitches
More

Other Glitch Categories
Glitches by generation
Glitches between two generations
Japan-only/language specific glitches
Music glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Officially acknowledged glitches
Recurring glitches
Dead glitches

References
Pokémon GameShark codes
The Big HEX List
Glitch Pokémon cries
GB programming
Curiosities
Debugging features
Easter eggs
Error traps
Glitch areas
Glitch myths
Non-glitch exploits
Placeholder texts
Pokémon glitch terminology
Unused content and prerelease information

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site Source Code

Search Wiki

 

Search Forums

 

Author Topic: Emulating the Mobile Adapter GB  (Read 12024 times)

0 Members and 1 Guest are viewing this topic.

Wack0

  • Coder, reverser, beta collector [BetaArchive staff]
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • cBRH - Doing nothing since 2k7
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #30 on: August 16, 2017, 04:26:07 pm »
I wonder how awkward that MD5 implementation is...

Game Freak's parser bugs don't surprise me. An RCE vector here would allow for some interesting custom servers; however RCE via trades exists too, which would be the more dangerous, in my opinion, as any player could trigger it. I guess a custom server would have to somehow detect it (given this RCE vuln would be in the P2P communication with "phone numbers" etc).

And now I'm thinking about a server with its own partial GB emulator, MITMing the connection if it detects an RCE via trading, and specifically implementing GB Mobile Adapter emulation itself so the payload can get any further data... Saved off for further reversing/analysis of course.
« Last Edit: August 16, 2017, 05:15:04 pm by Wack0 »
C H E C K E D . B U I L D S . A R E . A W E S O M E N E S S

BetaArchiveSoftHistory Forumsirc.rol.im #galaxy,#softhistory

Also known as The Distractor.

Shane, please stop telling children that there's a Mew outside under the delivery trucks. - Management

Pokémon: arbitrary code execution 1996-2016

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Emulating the Mobile Adapter GB
« Reply #31 on: August 16, 2017, 05:40:49 pm »
Maybe when Mobile Adapter GB emulation is finished, a patch should be distributed to modify the ROM to add some checking ?
Also, is there any chance to allow homebrew games to use the Adapter ? I know I'm getting ahead of everything, but...
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

ajxpk

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #32 on: August 17, 2017, 05:50:48 am »
Hey @Háčky. Finally I decided to register here. I'm following this project for quite a while now and I think it's great.
Even knowing that this is something for the future... how awesome it would actually be to see people battling and trading online on servers using the Japanese Crystal Version?

There's one thing I wanted to ask you about, is there any chance you might update the Python Script from last year to support the News System?
Possibly so that it downloads the so-called "First Issue" from the localized versions? I mean it's unlikely that we would be able to reconstruct what was actually distributed, even some of the later News have been documented by Kakeru... but there might be small details missing. I think with the "first issue" we are as close as we could get IMO.
« Last Edit: August 17, 2017, 11:28:54 am by ajxpk »

catsinabucket

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #33 on: August 22, 2017, 02:29:45 am »
Hi!

Like ajxpk, I have also just registered here and have been watching this for a while.

I just wanted to ask, does the mobile link cable itself work much differently to a standard link cable? (Apologies if this has already been said)

I ask because I have seen a product that allows a Game Boy to interface with an Arduino board and the like via a link cable (https://www.tindie.com/products/Fchaos/gameboy-coloradvancesp-link-cable-breakout-board/?pt=full_prod_search), and I was wondering if it would be possible to use this to emulate the Mobile Adapter with physical hardware.

Thanks, and keep up the good work! Really excited to see where this will go :)
« Last Edit: August 22, 2017, 02:54:39 am by catsinabucket »

Parzival

  • The Betrayed, The Cleansed, The Reborn
  • GCLF Member
  • *
  • Offline Offline
  • It begins.
    • View Profile
    • YT Channel
Re: Emulating the Mobile Adapter GB
« Reply #34 on: August 22, 2017, 07:08:13 am »
Think of the standard link cable like connecting two PCs via a Local Area Network, while the Mobile Adaptor GB is like connecting them via modem. Because that's literally what you're doing.
Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.


ravioli

  • 🤔
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ur a big guy
    • View Profile
    • 42chan
Re: Emulating the Mobile Adapter GB
« Reply #35 on: September 03, 2017, 03:05:22 pm »
What happened to this? How is your progress Hacky?

wintiger0222

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #36 on: October 30, 2017, 04:55:28 am »

Well, I think there is no advancing at here, well.(Well, I think advance is not proper word, well)

I'm translating crystal into korean, and in the same time I tried to fix mobile functions.
(This is why there are no english at image)
Many Mobile Functions are worked well, and somethings are not.

I wrote some things ,with very very poor english grammer, that I have figured out.

mobile_5b.asm/Function16c000
Mobile protcol test when boot the game.

mobile_46.asm/Function11ac3e
Select Wanted pokemon at Pokecom mobile trade.(is this right name?)
Attached screen shot is works of this function.
Saddly, because of japanese name length limit, this cause crash.
To make this work You should change    "ld a, $6" into "ld a, $B" (part of ".asm_11b2e7 ") and erase first "call Placestring" at "Function11b242" , then this would works at english version.

It looks like return the value that which pokemon chosen.

mobile_40.asm/Function101231
Mobile Trade by Dialing

This seems works perfectly even if using english version.
(I tested this with Hacky's python script)

mobile_40.asm/Function101225
Mobile Battle by Dialing

This also seems works, but I coulden't test this.
« Last Edit: October 30, 2017, 04:57:14 am by wintiger0222 »

ravioli

  • 🤔
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ur a big guy
    • View Profile
    • 42chan
Re: Emulating the Mobile Adapter GB
« Reply #37 on: November 01, 2017, 04:36:27 pm »
How exactly are you trying to ''fix the mobile functions''?

wintiger0222

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #38 on: November 03, 2017, 03:09:10 am »
How exactly are you trying to ''fix the mobile functions''?

Well, I'm trying to make this stable.

  • Replace PokeCom Center of Goldenrod City.
  • Enable SRAM Bank 4-7, which related to Mobile GB System.
  • Insert assembly code, related to mobile.
  • Figure out the purpose of dummied out mobile function.
  • Translate.

This are what I'm doing or done now.
However, I'm doing this with making korean fan translation of crystal version, so the 'Translation' means korean.
But my korean fan translation is based on english version, so it would be able to adapt for english version.

  • Move pointer address which cause glitch(Most thing is player's name)
  • Make simulator of Mobile Adapter and private server(if it can)
  • Write script related to mobile event like GSball event
  • Apply these to enlgish version, if I have enough time.

And this is what I'm supposed to do.

ravioli

  • 🤔
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ur a big guy
    • View Profile
    • 42chan
Re: Emulating the Mobile Adapter GB
« Reply #39 on: November 04, 2017, 09:37:47 pm »
How exactly are you trying to ''fix the mobile functions''?

Well, I'm trying to make this stable.

  • Replace PokeCom Center of Goldenrod City.
  • Enable SRAM Bank 4-7, which related to Mobile GB System.
  • Insert assembly code, related to mobile.
  • Figure out the purpose of dummied out mobile function.
  • Translate.

This are what I'm doing or done now.
However, I'm doing this with making korean fan translation of crystal version, so the 'Translation' means korean.
But my korean fan translation is based on english version, so it would be able to adapt for english version.

  • Move pointer address which cause glitch(Most thing is player's name)
  • Make simulator of Mobile Adapter and private server(if it can)
  • Write script related to mobile event like GSball event
  • Apply these to enlgish version, if I have enough time.

And this is what I'm supposed to do.

That sounds awesome! If you want to work with me you can contact me on discord, I would love to help you out
https://discord.gg/vHwmNBY