Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch
Tweaking
Glitches by generation
Glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Pokémon cheat codes
Pokémon glitch terminology
Useful tools
More

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 29312 times)

0 Members and 2 Guests 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)
  • Staff
  • *****
  • 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
  • ゲーフリ?
    • 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

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
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

  • identite
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • チンクル、チンクル! クルリンパー!
    • View Profile
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

  • identite
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • チンクル、チンクル! クルリンパー!
    • View Profile
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

  • identite
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • チンクル、チンクル! クルリンパー!
    • View Profile
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

Team Fail

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #40 on: December 14, 2017, 10:13:26 pm »
I thought I'd join in the Discord channel, I'm thinking on attempting to emulate it via Arduino. I still need to get my hands on a breakout board, but I'd at least like to start porting over the Python script and see how far the game can get once I am able to hook the two together.

ajxpk

  • GCLF Member
  • Offline Offline
  • ゲーフリ?
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #41 on: May 12, 2018, 04:11:08 pm »
@Háčky I actually wanted to help with the research regarding the Pokemon News functionalities, but I couldn't get the Pokemon News working so far.
I know I'm just repeating myself but it would be cool if you could share the updated Python script with us, that would save me a lot of time...

Quirky Flower Chicken ❤✿

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #42 on: April 02, 2019, 03:01:39 pm »
I also found this peculiar run of text:

Quote
こんど、またあそぼう
マリオ
またあそぼうね
mario@mario.ne.jp

7がつのさいしょのにちようびに、やきゅうをするからこいよ
クッパだいおう
やきゅうやるぞ
kuppa@mario.ne.jp

ついにポケモンのさいしんさくがとうじょうするぞ!「ポケットモンスター苔」くわしくはにんてんどうのホームページへGO!
メールマガジンGB
GAMER's Life
grave01@natird.ad.jp

メールセンターのメンテナンスのため、7/14~7/20までのきかん、メールをチェックできなくなります
あらかじめごりょうしょうください
GBセンター
だいじなおしらせ
ieve@makopi.ne.jp

くくく・・・
むだい
p@p.ne.jp

To my knowledge, Bowser didn’t play baseball until 2005 on the GameCube, and I still haven’t heard any news about this Pocket Monsters Moss

Shrek must be the legendary Pokèmon of Pokémon Moss. But in retrospect, this may be exactly what Missing Link/Nintendo intended; to include it as a silly joke.

While speculating, Moss sounds like an unspectacular name, but I suppose also moss could represent naivity/a gullible or overly impressionable fan because it soaks up water (water representing other things), much to the harm of itself.

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3

Quirky Flower Chicken ❤✿

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #43 on: April 06, 2019, 12:16:06 pm »
Edit: It seems my intuition may have been right. I looked up こけ (koke) in a Japanese dictionary and the same reading but different kanji 虚仮 (means "fool").

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3

Quirky Flower Chicken ❤✿

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
Re: Emulating the Mobile Adapter GB
« Reply #44 on: April 12, 2019, 09:01:05 am »
Yet another bump...

It seems like Shonumi, the author of GBE+ emulator has been working on support for the Mobile Adapter games, in addition to Game Boy/Color games with obscure features (since quite a long time ago now). The fruits of these can be found on their YouTube channel.

One of the games in their focus is Net de Get: Minigame @ 100; which as you may guess, allows you to download minigames from the Internet. Details about this game used to be uncommon, rikkyjp's website mentioned it as well as game directories like GameFAQs (originally under the false name "Net de Gate") but there seemed to be no videos on YouTube of it.

I made videos about this game a long time ago including some seemingly GameShark only stuff, but not how the server menu works. However, Shonumi released a video a few months ago that shows how it works.

https://www.youtube.com/watch?v=ASn0DGsgpOs

I don't know if the minigame structure has been fully analyzed yet, however they did make a test 'game' that simply resets the game.

Apparently there is a Discord for Mobile Adapter stuff according to an article by Shonumi (this link is a great read by the way). Perhaps some of us could join it in an effort to reverse the other Mobile Adapter supported Game Boy Color/Game Boy Advance games (originally documented by rikkyjp), but I don't know the link sadly.
« Last Edit: April 12, 2019, 09:03:24 am by Quirky Flower Chicken ❤✿ »

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3