Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
AreaDex
DexDex
ItemDex
TMHMDex
TypeDex
More

Major Glitches
Trainer escape glitch
Old man glitch
Celebi Egg glitch
SRAM glitch
Buffer overflow techniques
Pomeg glitch data corruption (Glitzer Popping)
Tweaking
Pokémon cloning
Select glitches (Japan)
Time Capsule exploit
Arbitrary code execution
More

Other Glitch Categories
Glitches by generation
Japan-only/language specific glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Recurring glitches
More

References
Pokémon GameShark codes
The Big HEX List
GB programming
Curiosities
Debugging features
Error traps
Non-glitch exploits
Pokémon glitch terminology
Unused content and prerelease information
More

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: 8F script request  (Read 309 times)

0 Members and 1 Guest are viewing this topic.

0ErrorYT

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
8F script request
« on: February 12, 2018, 03:39:41 pm »
I am looking for an 8F script that will allow me to encounter a Pokemon after x amount of steps. I've just started 8F and don't know much about code in general so help would be appreciated. I figure you have to load something into D059 but i don't have a clue on how to do the rest. Also one that disables map connections would be nice. Thanks in advance
Well ????? is a pokemon that can only be accesed by hacking the game
genrally with gameshark but the game shark code for it works in this way:
it tells the  game to make a certain pokemon appear what that pokemon is depends on the two pokemon digits in the code fore example bulabsuar code could be 4R (it isnt really) but if you put in a number for a pokemon that doesnt exist... the game wotn know what to make appear there for cusing its name sprite antacks etc to be nothing to do with real pokemon! :) :) :) hope u understood tis lol!!!
i¥snj) !j¥)j9, yc!88), q9 i¥i, ¥si ’bc@nsm mx8da8un¥, ¥xj q9 8s)9 ux8g)jqy ns )n’j. q¥@j a!jq ’bc@ 8’’, ¥si npq !¥uu9. i!j¥)j91212t)n#j.c8q
i¥s !j¥)j9
103 j xjiinsm ya
qnii)ja8ds, ij 1k70k
bsnaji ya¥ajy
yjsi g¥i yab’’ a8 a!ny. napy y8 yabuni n !¥#j a8 cx9ua a!ny
Dec

Evie Torchic the Glitch Scientist

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Thank you for this lovely artwork Nyapon!
    • View Profile
Re: 8F script request
« Reply #1 on: February 12, 2018, 04:21:09 pm »
I am looking for an 8F script that will allow me to encounter a Pokemon after x amount of steps. I've just started 8F and don't know much about code in general so help would be appreciated. I figure you have to load something into D059 but i don't have a clue on how to do the rest. Also one that disables map connections would be nice. Thanks in advance

You're in luck as D13B is already a step counter that counts down every step.

So putting this together could involve setting D13B to your desired value and using a condition (such as (not ASM language but logic-wise) if D31B - 1 <1 , set D059 to (Pokémon). Here you could use a D13B value of 6, so 5 steps are required before it reaches 0). If I have time tomorrow will check it out for you. :)

As for map connections I'm not sure how exactly to do that but you can lock your coordinates at the same value (D361, D362) to get a similar effect where map connections never load.
« Last Edit: February 12, 2018, 04:27:08 pm by Princess Torchic ❤ »
Hi!

I'm Evie.

I'm a transgender person, but any pronouns are fine. She/her preferred.

Unfortunately due to legal concerns I won't be using emulators and unauthorised copies of ROMs anymore, just real hardware with official cartridges and a cheating device (Xploder) to aid research, sorry.

Online I most often use the username Torchickens or Chickasaurus.

Ah.. koucha ga oishii ♪





Thanks Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).




Contact:
If you like, please contact me by private message here on the forums as I no longer check other places very often.

YouTube: http://www.youtube.com/user/ChickasaurusGL

I like to collect interesting video games. ^_^
https://www.vgcollect.com/Torchickens

Fun times come and go, we may argue what is the point if nothing in this world is permanent; and all energy is believed to be subject to transformation. I guess in the temporary absence of it though, we value those times more and even though some things seem to be lost, they return in other forms.

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: 8F script request
« Reply #2 on: February 12, 2018, 04:31:57 pm »
It's not possible to disable map connections.

A setup that triggers an encounter after N steps ? That's not possible with a 8F code, you would need heavier memory editing.
"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 !)

Evie Torchic the Glitch Scientist

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Thank you for this lovely artwork Nyapon!
    • View Profile
Re: 8F script request
« Reply #3 on: February 12, 2018, 05:36:01 pm »
A setup that triggers an encounter after N steps ? That's not possible with a 8F code, you would need heavier memory editing.

Could you use 8F to change the map script pointer to check D13B though (with something like conditional jumps)? D13B counts down every step and we can set it to whatever we like first.
« Last Edit: February 12, 2018, 05:39:26 pm by Princess Torchic ❤ »
Hi!

I'm Evie.

I'm a transgender person, but any pronouns are fine. She/her preferred.

Unfortunately due to legal concerns I won't be using emulators and unauthorised copies of ROMs anymore, just real hardware with official cartridges and a cheating device (Xploder) to aid research, sorry.

Online I most often use the username Torchickens or Chickasaurus.

Ah.. koucha ga oishii ♪





Thanks Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).




Contact:
If you like, please contact me by private message here on the forums as I no longer check other places very often.

YouTube: http://www.youtube.com/user/ChickasaurusGL

I like to collect interesting video games. ^_^
https://www.vgcollect.com/Torchickens

Fun times come and go, we may argue what is the point if nothing in this world is permanent; and all energy is believed to be subject to transformation. I guess in the temporary absence of it though, we value those times more and even though some things seem to be lost, they return in other forms.

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #4 on: February 12, 2018, 07:05:04 pm »
I'm not sure what ISSO is talking about, ofc you can use wStepCounter to encounter a Pokemon

8f
Any xany
TM50 x59 (hex:3B)
TM09 x61 (hex:3D)
Leaf Stone x38 (hex:26)
TM08 x4 (hex:04)
X Accuracy x89 (hex:59)
Elixer x119 (hex:77)
TM01 x[Any qty]

To use:

1.Enter/exit a building or room
2. Take steps that are equivalent to the hex identifier of the desired Pokemon. (e.g Mew would be 21 steps)
3. Use 8f
4. Dance
« Last Edit: February 12, 2018, 07:08:10 pm by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #5 on: February 12, 2018, 08:13:54 pm »
I'm not sure what ISSO is talking about, ofc you can use wStepCounter to encounter a Pokemon

8f
Any xany
TM50 x59 (hex:3B)
TM09 x61 (hex:3D)
Leaf Stone x38 (hex:26)
TM08 x4 (hex:04)
X Accuracy x89 (hex:59)
Elixer x119 (hex:77)
TM01 x[Any qty]

To use:

1.Enter/exit a building or room
2. Take steps that are equivalent to the hex identifier of the desired Pokemon. (e.g Mew would be 21 steps)
3. Use 8f
4. Dance
It works, however I want to do an early April fools joke where I walk into the grass outside Pallet Town (hence the disabling map connections) then walk around in it and encounter legendary Pokemon and using 8F is too obvious. I should of said that before, but it's a cool script, so thanks.
Well ????? is a pokemon that can only be accesed by hacking the game
genrally with gameshark but the game shark code for it works in this way:
it tells the  game to make a certain pokemon appear what that pokemon is depends on the two pokemon digits in the code fore example bulabsuar code could be 4R (it isnt really) but if you put in a number for a pokemon that doesnt exist... the game wotn know what to make appear there for cusing its name sprite antacks etc to be nothing to do with real pokemon! :) :) :) hope u understood tis lol!!!
i¥snj) !j¥)j9, yc!88), q9 i¥i, ¥si ’bc@nsm mx8da8un¥, ¥xj q9 8s)9 ux8g)jqy ns )n’j. q¥@j a!jq ’bc@ 8’’, ¥si npq !¥uu9. i!j¥)j91212t)n#j.c8q
i¥s !j¥)j9
103 j xjiinsm ya
qnii)ja8ds, ij 1k70k
bsnaji ya¥ajy
yjsi g¥i yab’’ a8 a!ny. napy y8 yabuni n !¥#j a8 cx9ua a!ny
Dec

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #6 on: February 12, 2018, 08:47:00 pm »
After re-reading your first post, I now understand what you wanted out of this. Sorry!

What you want is a little bit more complicated, as we need to return control to the game. Thankfully, with OAM DMA hijacking, this problem can be resolved, granted with a few extra steps.

First, you'll need to setup you're store PC items like so:

TM50 x59 (hex:3B)
TM09 x61 (hex:3D)
Leaf Stone x13 (hex:0D)
Repel x(# of steps)
Elixer x187 (hex:BB)
Fire Stone x5 (hex:05)
Lemonade x(Pokemon Index)
TM34 x89 (hex:59)
TM08 x62 (hex:3E)
Thunderstone x4 (hex:04)
Awakening x70 (hex:46)
HM03 x162 (hex:A2)
TM01 x[Any qty]

Then, setup an 8f script like so

8f
Any xany
Thunderstone x57 (hex:37)
TM11 x4 (hex:04)
Awakening x255 (hex:FF)
Repel x128 (hex:80)
Max Ether x14 (hex:0E)
Poké Ball x42 (hex:2A)
Hyper Potion x19 (hex:13)
Ice Heal x32 (hex:20)
TM50 x201 (hex:C9)
TM05 x59 (hex:3B)
TM13 x226 (hex:E2)

Then, use 8f. After walking a certain amount of steps, you should encounter your Pokemon!
« Last Edit: February 13, 2018, 04:25:03 pm by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #7 on: February 13, 2018, 09:20:38 am »
That code seems to just turn your Sprite invisible, but no matter how much I walked, I didn't encounter any Pokemon. I know I got the items right, can you help?
Well ????? is a pokemon that can only be accesed by hacking the game
genrally with gameshark but the game shark code for it works in this way:
it tells the  game to make a certain pokemon appear what that pokemon is depends on the two pokemon digits in the code fore example bulabsuar code could be 4R (it isnt really) but if you put in a number for a pokemon that doesnt exist... the game wotn know what to make appear there for cusing its name sprite antacks etc to be nothing to do with real pokemon! :) :) :) hope u understood tis lol!!!
i¥snj) !j¥)j9, yc!88), q9 i¥i, ¥si ’bc@nsm mx8da8un¥, ¥xj q9 8s)9 ux8g)jqy ns )n’j. q¥@j a!jq ’bc@ 8’’, ¥si npq !¥uu9. i!j¥)j91212t)n#j.c8q
i¥s !j¥)j9
103 j xjiinsm ya
qnii)ja8ds, ij 1k70k
bsnaji ya¥ajy
yjsi g¥i yab’’ a8 a!ny. napy y8 yabuni n !¥#j a8 cx9ua a!ny
Dec

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #8 on: February 13, 2018, 09:36:16 am »
Oops, a couple things went wrong. I've edited the post, try it now.

I confirmed that the new version does work.
« Last Edit: February 13, 2018, 09:36:47 am by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #9 on: February 13, 2018, 11:02:34 am »
It's doing the same thing, can you send a save file with the code set up so I can see what I'm doing wrong? I am on Pokemon red and emulator is Bgb
Well ????? is a pokemon that can only be accesed by hacking the game
genrally with gameshark but the game shark code for it works in this way:
it tells the  game to make a certain pokemon appear what that pokemon is depends on the two pokemon digits in the code fore example bulabsuar code could be 4R (it isnt really) but if you put in a number for a pokemon that doesnt exist... the game wotn know what to make appear there for cusing its name sprite antacks etc to be nothing to do with real pokemon! :) :) :) hope u understood tis lol!!!
i¥snj) !j¥)j9, yc!88), q9 i¥i, ¥si ’bc@nsm mx8da8un¥, ¥xj q9 8s)9 ux8g)jqy ns )n’j. q¥@j a!jq ’bc@ 8’’, ¥si npq !¥uu9. i!j¥)j91212t)n#j.c8q
i¥s !j¥)j9
103 j xjiinsm ya
qnii)ja8ds, ij 1k70k
bsnaji ya¥ajy
yjsi g¥i yab’’ a8 a!ny. napy y8 yabuni n !¥#j a8 cx9ua a!ny
Dec

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #10 on: February 13, 2018, 11:47:17 am »
In the attached save, just use 8f, walk 16 steps, and Mew will appear. You can use the PC in the room to check the item list.

On this particular save, the game will softlock if you attempt to open the party menu/when you encounter Mew. This is simply because I lazily edited the bootstrapper rather than set it up properly, setting this up correctly in game should have no issues.
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #11 on: February 13, 2018, 12:29:10 pm »
I have no idea what I did wrong, but i think I will wait till April fools to upload the video and thanks for helping me
Well ????? is a pokemon that can only be accesed by hacking the game
genrally with gameshark but the game shark code for it works in this way:
it tells the  game to make a certain pokemon appear what that pokemon is depends on the two pokemon digits in the code fore example bulabsuar code could be 4R (it isnt really) but if you put in a number for a pokemon that doesnt exist... the game wotn know what to make appear there for cusing its name sprite antacks etc to be nothing to do with real pokemon! :) :) :) hope u understood tis lol!!!
i¥snj) !j¥)j9, yc!88), q9 i¥i, ¥si ’bc@nsm mx8da8un¥, ¥xj q9 8s)9 ux8g)jqy ns )n’j. q¥@j a!jq ’bc@ 8’’, ¥si npq !¥uu9. i!j¥)j91212t)n#j.c8q
i¥s !j¥)j9
103 j xjiinsm ya
qnii)ja8ds, ij 1k70k
bsnaji ya¥ajy
yjsi g¥i yab’’ a8 a!ny. napy y8 yabuni n !¥#j a8 cx9ua a!ny
Dec

0ErrorYT

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #12 on: February 13, 2018, 04:12:48 pm »
I figured out what went wrong, in the post you said 77 thunder stones in the bag, but in the save you gave me its 57.
I made the video (but won't upload it till April fools), however if you guys want to see it I can make it unlisted
« Last Edit: February 13, 2018, 04:15:29 pm by 0ErrorYT »
Well ????? is a pokemon that can only be accesed by hacking the game
genrally with gameshark but the game shark code for it works in this way:
it tells the  game to make a certain pokemon appear what that pokemon is depends on the two pokemon digits in the code fore example bulabsuar code could be 4R (it isnt really) but if you put in a number for a pokemon that doesnt exist... the game wotn know what to make appear there for cusing its name sprite antacks etc to be nothing to do with real pokemon! :) :) :) hope u understood tis lol!!!
i¥snj) !j¥)j9, yc!88), q9 i¥i, ¥si ’bc@nsm mx8da8un¥, ¥xj q9 8s)9 ux8g)jqy ns )n’j. q¥@j a!jq ’bc@ 8’’, ¥si npq !¥uu9. i!j¥)j91212t)n#j.c8q
i¥s !j¥)j9
103 j xjiinsm ya
qnii)ja8ds, ij 1k70k
bsnaji ya¥ajy
yjsi g¥i yab’’ a8 a!ny. napy y8 yabuni n !¥#j a8 cx9ua a!ny
Dec

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #13 on: February 13, 2018, 04:24:14 pm »
I figured out what went wrong, in the post you said 77 thunder stones in the bag, but in the save you gave me its 57.
I made the video (but won't upload it till April fools), however if you guys want to see it I can make it unlisted

The program I used to develop these scripts, Gbz80 to items, currently suffers a bug in which it incorrectly calculates the code relative to Labels. I have reported this to the developer of Gbz80 to items, sorry for the confusion!
« Last Edit: February 13, 2018, 04:25:22 pm by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #14 on: February 13, 2018, 05:44:40 pm »
No problem! Thanks for helping me
Well ????? is a pokemon that can only be accesed by hacking the game
genrally with gameshark but the game shark code for it works in this way:
it tells the  game to make a certain pokemon appear what that pokemon is depends on the two pokemon digits in the code fore example bulabsuar code could be 4R (it isnt really) but if you put in a number for a pokemon that doesnt exist... the game wotn know what to make appear there for cusing its name sprite antacks etc to be nothing to do with real pokemon! :) :) :) hope u understood tis lol!!!
i¥snj) !j¥)j9, yc!88), q9 i¥i, ¥si ’bc@nsm mx8da8un¥, ¥xj q9 8s)9 ux8g)jqy ns )n’j. q¥@j a!jq ’bc@ 8’’, ¥si npq !¥uu9. i!j¥)j91212t)n#j.c8q
i¥s !j¥)j9
103 j xjiinsm ya
qnii)ja8ds, ij 1k70k
bsnaji ya¥ajy
yjsi g¥i yab’’ a8 a!ny. napy y8 yabuni n !¥#j a8 cx9ua a!ny
Dec