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

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
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) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Printing the screen using PrinterDebug routine (EN Yellow)  (Read 314 times)

0 Members and 1 Guest are viewing this topic.

Princess Torchic Owl Lover ☽ ❤

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • I want to be a mother. 🦋 ✿
    • View Profile
Printing the screen using PrinterDebug routine (EN Yellow)
« on: April 10, 2019, 06:30:55 am »
In a nutshell:

Put these at item 3 and then setup an arbitrary code execution (ACE) method to run it, such a stored Pokémon bootstrap code for ws m or the placement of ThunderStone x211 at item 42 in the expanded item pack.

Awakening  x 58
Carbos     x78
X Accuracy x 121
X Attack   x 64
TM05       x132
Lemonade   x201

Connect your Game Boy Printer and then run your ACE (the order may matter; make sure your Game Boy Printer is connected before running the code). If everything goes to plan, there will be a short delay and the game will print out what was on the screen. :) You may want to print out a Pokédex entry the normal way (Pokédex>Print) to confirm your Game Boy Printer works first. This might also work on a Game Boy Printer emulator but I've yet to confirm.

(Could be optimised for better items. This exact setup was not used and there is a chance (as this changes the c register in addition to the b register) there may be complications, which I unfortunately can't test right now as my Game Boy Printer seems to be low on battery. Any further verifications would be much appreciated.)

Long explanation:

In EN Yellow, using a short arbitrary code execution program and a Game Boy Printer, it is possible to print out a copy of the screen. Not much work is required as this is already a function of 3A:4E79 (PrinterDebug), which is apparently unused.

The base code to do this is as such;

ld b,3A
ld hl,4E79
call 3e84
ret

As always, you will need to adjust this so you can get items/whatever.

By using different entry points, you can print a wide range of things.


'Anything':
1. OAM DMA hijacking (unconfirmed)



Printing the overworld with your inventory open

1. Glitch item ACE  (confirmed)



Printing overworld states (no text boxes, no player movements active):

1. Map script ACE (e.g. via little endian D36D/D36E pointer) (confirmed)



Printing a wider range of overworld states:

1. CC57/8 ACE (unconfirmed)



Printing battle scenes:
1. ACE executing glitch moves (confirmed)
2. Using a glitch item in battle (confirmed)



Printing a scene during the Pikachu's Beach minigame:

1. Pikachu's Beach ACE (confirmed, aided with cheating device but non-cheating device method described in article may work too)



Here is one example of what it looks like on real hardware using glitch item ACE:



Notes:

There will be a short delay before your Game Boy Printer works. Sometimes when you do this, numbers are printed on the screen. At a first glance, I'm unsure if this is part of the routine and/or is bugged but the answer could probably be found in the Pokémon Yellow disassembly.

If the map is a Glitch City, the game will print what it looks like as if the Start menu was open (if it is different when closed the game normally won't print that version).

Using more complex ACE, you could in theory put anything on the screen (within the limitations of the Game Boy Color hardware) you want and then print it.
« Last Edit: April 13, 2019, 01:50:22 pm by Quirky Flower Chicken ❤✿ »

✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿



(Images © Sanrio, Nintendo, Pokémon, HAL Laboratory)

✿ Hi, I'm Evie. Sex male, and spiritually doesn't believe 'male'/'female' needs to be defined; lives more stereotypically like a woman. Call me whichever pronouns you like. :)

Feel free to contact me here about anything regarding the site.

Forgiveness. I feel that the more people pray to our greatest source/God/mathematical equality for world peace, the more and more it manifests into reality (until our next spiritual death).

Thank you Nyapon for this lovely artwork. :3

Sherkel

  • The first unquiring one to bare arms
  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Is it an illusion, or a tower built on sand?
    • View Profile
That's a nice technique and keepsake to show for it! I somehow have a working one of these myself, but have always been afraid to use it due to how hard thermal paper of the correct width apparently is to come by. This, however, is a heck of an incentive...

Could the numbers appearing on the screen be CopyVideoData?
« Last Edit: April 10, 2019, 12:32:59 pm by Sherkel »
 
 

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)
@Torchickens, does this ignore the darkness setting?

@Sherkel, see attached. $50 USD will net you more than you could use in 30 lifetimes (3750 feet). The rolls are way too big for the printer itself, but if you buy or rig a wire paper holder, that's not really an issue. (Theoretically you could put one ON the printer!)
« Last Edit: April 10, 2019, 01:42:45 pm by Parzival »
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.

Sherkel

  • The first unquiring one to bare arms
  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Is it an illusion, or a tower built on sand?
    • View Profile
Good to know, Parzival! Someday I hope to be plastering my walls with screenshots of JACK and -gm.

As for brightness, I'm not really sure...printer.asm doesn't seem to refer to wPrinterSettings at all, so I'd need to give it a closer look unless someone can test it.
« Last Edit: April 11, 2019, 11:21:18 am by Sherkel »
 
 

Princess Torchic Owl Lover ☽ ❤

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • I want to be a mother. 🦋 ✿
    • View Profile
That's a nice technique and keepsake to show for it! I somehow have a working one of these myself, but have always been afraid to use it due to how hard thermal paper of the correct width apparently is to come by. This, however, is a heck of an incentive...

Could the numbers appearing on the screen be CopyVideoData?

@Torchickens, does this ignore the darkness setting?

@Sherkel, see attached. $50 USD will net you more than you could use in 30 lifetimes (3750 feet). The rolls are way too big for the printer itself, but if you buy or rig a wire paper holder, that's not really an issue. (Theoretically you could put one ON the printer!)

RE: Both of your questions, not sure yet, sorry. Will need to do more research for both.

✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿



(Images © Sanrio, Nintendo, Pokémon, HAL Laboratory)

✿ Hi, I'm Evie. Sex male, and spiritually doesn't believe 'male'/'female' needs to be defined; lives more stereotypically like a woman. Call me whichever pronouns you like. :)

Feel free to contact me here about anything regarding the site.

Forgiveness. I feel that the more people pray to our greatest source/God/mathematical equality for world peace, the more and more it manifests into reality (until our next spiritual death).

Thank you Nyapon for this lovely artwork. :3

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
The topic says "print anything on the screen", which implies a way to draw eg. text on the screen itself; wouldn't Printing the screen using [...] be less misleading?
"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 !)

Princess Torchic Owl Lover ☽ ❤

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • I want to be a mother. 🦋 ✿
    • View Profile
Re: Printing the screen using PrinterDebug routine (EN Yellow)
« Reply #6 on: April 13, 2019, 01:51:11 pm »
The topic says "print anything on the screen", which implies a way to draw eg. text on the screen itself; wouldn't Printing the screen using [...] be less misleading?

Changed, thanks. Yeah; if you're in a Glitch City the game will print as if the menu was opened (which can give different results) rather than closed.

✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿



(Images © Sanrio, Nintendo, Pokémon, HAL Laboratory)

✿ Hi, I'm Evie. Sex male, and spiritually doesn't believe 'male'/'female' needs to be defined; lives more stereotypically like a woman. Call me whichever pronouns you like. :)

Feel free to contact me here about anything regarding the site.

Forgiveness. I feel that the more people pray to our greatest source/God/mathematical equality for world peace, the more and more it manifests into reality (until our next spiritual death).

Thank you Nyapon for this lovely artwork. :3

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)
The topic says "print anything on the screen", which implies a way to draw eg. text on the screen itself; wouldn't Printing the screen using [...] be less misleading?
wouldn't that be "to the screen" if you wanted to imply that?
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.

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: Printing the screen using PrinterDebug routine (EN Yellow)
« Reply #8 on: April 22, 2019, 12:48:07 pm »
"on" can be synonym of "to", here.
"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 !)