The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.


Advertise here

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #24726    
Old April 23rd, 2013, 06:02 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 14
Gender: Male
Nature: Modest

Advertise here
Hello guys, I need some help. I made a simple talking script for my hack. When I open the game with VBA, talking to that person does nothing. But when I open the game with No$Gba, the script successfully works.
__________________

Please click both of these links once in a day and help us grow:

  #24727    
Old April 23rd, 2013, 06:17 AM
robin22gongon's Avatar
robin22gongon
 
Join Date: Sep 2012
Location: Want to know? VM me.
Age: 16
Gender: Male
Nature: Quirky
Send a message via Windows Live Messenger to robin22gongon
Quote:
Originally Posted by karatekid552 View Post
Well, you would need to rewrite the routine which displays the diploma to loop through, each time bringing up a new image. Most likely would require some type of ASM.
Okay Thanks!

NEW QUESTIONS!
1) Is it possible to make an item that will let you access BILL's PC with JPAN's Clean FR Patch(not the engine)? I tried special 0x3C but it will just always return me to the Start Menu.

2) Is it possible to make an item that can raise a Pokemon Stats by holding it? (Like an armor and *hit) Same conditions as the one above.
__________________
LET'S PARTY!
  #24728    
Old April 23rd, 2013, 06:51 AM
Jambo51's Avatar
Jambo51
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Quote:
Originally Posted by robin22gongon View Post
NEW QUESTIONS!
1) Is it possible to make an item that will let you access BILL's PC with JPAN's Clean FR Patch(not the engine)? I tried special 0x3C but it will just always return me to the Start Menu.
If you ran the PC script wholesale from the item it should work. Can't see any reason why not. Problem is, that means tracking down the script pointer for the behaviour byte for that tile. That's not easy.

Quote:
Originally Posted by robin22gongon View Post
2) Is it possible to make an item that can raise a Pokemon Stats by holding it? (Like an armor and *hit) Same conditions as the one above.
Yes, but it's complex and would require a fair bit of ASM and knowledge of the battle engine.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
  #24729    
Old April 23rd, 2013, 08:02 AM
theChief's Avatar
theChief
 
Join Date: Apr 2013
Location: UK
Gender: Male
Nature: Docile
Quote:
Originally Posted by karatekid552 View Post
Well, to prevent leaving the town by fly, you could run a map script which, when a flag is set (grunts are in the town) uses a simple ASM routine (very, very simple actually) to change the maps type for the time being to indoor. Then you can't fly!

To prevent people from flying to the town, you need to clear the map flags associated with the fly location of said town, which you can reset later.
Fantastic, thanks :D and am I right in thinking that you can set where you go when you lose a battle with asm, too? I think I'll be spending my time learning ASM for the next few weeks xD
  #24730    
Old April 23rd, 2013, 08:43 AM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by theChief View Post
Fantastic, thanks :D and am I right in thinking that you can set where you go when you lose a battle with asm, too? I think I'll be spending my time learning ASM for the next few weeks xD
This one is quite simple: it is a scripting command called "sethealingplace". Look it up in one of the XSE tutorials, since I am too lazy:p.

Never mind.....
Quote:
Originally Posted by thethethethe
sethealingplace:
Sets the place where the player is warped to once he or she is out of usable Pokemon.
Hex Structure: [9F] [xxyy]
xxyy: Place.
Codes only for FR/LG
[0100] - Map [4.0] or Player's Home
[0200] - Map [5.4] or Viridian City Pokemon Center
[0300] - Map [6.5] or Pewter City Pokemon Center
[0400] - Map [7.3] or Cerulean City Pokemon Center
[0500] - Map [8.0] or Lavender Town Pokemon Center
[0600] - Map [9.1] or Vermillion City Pokemon Center
[0700] - Map [10.12] or Celadon City Pokemon Center
[0800] - Map [11.5] or Fushia City Pokemon Center
[0900] - Map [12.5] or Cinnabar Island Pokemon Center
[0A00] - Map [13.0] or Indigo Plateau
[0B00] - Map [14.6] or Saffron City Pokemon Center
[0C00] - Map [16.0] or Mt. Moon Pokemon Center
[0D00] - Map [21.0] or Rock Tunnel Pokemon Center
[0E00] - Map [32.0] or One Island Pokemon Center
[0F00] - Map [33.2] or Two Island Pokemon Center
[1000] - Map [34.1] or Three Island Pokemon Center
[1100] - Map [35.1] or Four Island Pokemon Center
[1200] - Map [36.0] or Five Island Pokemon Center
[1300] - Map [31.3] or Seven Island Pokemon Center
[1400] - Map [37.0] or Six Island Pokemon Center
Quote:
Originally Posted by Jambo51 View Post
If you ran the PC script wholesale from the item it should work. Can't see any reason why not. Problem is, that means tracking down the script pointer for the behaviour byte for that tile. That's not easy.
JPAN's clean patch removed all scripts too, so I'm pretty sure the PC script was removed too.

Robin: If you can find it in a regular clean FR rom, you could just recompile it back into your rom. It isn't that hard to find, just takes some creativity. I've done it on Ruby.
__________________

Paired with Simba

Last edited by karatekid552; April 23rd, 2013 at 08:48 AM. Reason: Your double post has been automatically merged.
  #24731    
Old April 23rd, 2013, 10:03 AM
Jambo51's Avatar
Jambo51
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Quote:
Originally Posted by karatekid552 View Post
JPAN's clean patch removed all scripts too, so I'm pretty sure the PC script was removed too.
Surely he wouldn't have removed scripts like this which would inherently break the game? Only people with ASM nous would be able to replace them, which is inherently very unfair. You may be right, but if so, then that patch is one of the worst patches available.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
  #24732    
Old April 23rd, 2013, 02:13 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by Jambo51 View Post
Surely he wouldn't have removed scripts like this which would inherently break the game? Only people with ASM nous would be able to replace them, which is inherently very unfair. You may be right, but if so, then that patch is one of the worst patches available.
Here; I shall find the script in a clean rom and then search for it in his hacked engine (just for anyone who doesn't know, the hacked engine is based on the clean patch).

It is just a regular script, so it really doesn't take asm to write. Just a knowledge of all of the specials.

Edit: On a clean FR rom, the PC script is at 0x1A6963. Now I shall search for it in the cleaned rom.

Edit2: Jambo, I was semi-wrong, it does exist in the game at said offset. However, it is only 156 lines. The script in the regular FR rom is 238 lines. So, I don't know what exactly was removed.... Probably those lines and small snippets of code which are used often by many different scripts.

Edit3: The entire section where you can check your pokedex and all related strings and small code snippets that go along with it have been removed. Did JPAN mess with the specials that deal with this so he took a precaution on it? Or do you think those parts were shared with other scripts?

Edit4: Here are both scripts to save some time:
Spoiler:
Quote:
Originally Posted by Clean FireRed Rom
Code:
'---------------
#org 0x1A6963
lockall
checkflag 0x841
if 0x1 goto 0x81A698E
setvar 0x8004 0x1B
special 0x17D
setvar 0x8004 0x0
special 0xD6
sound 0x4
msgbox 0x81A5075 MSG_KEEPOPEN '"[player] booted up the PC."
goto 0x81A6998

'---------------
#org 0x1A698E
msgbox 0x81A1390 MSG_KEEPOPEN '"The usual PC services aren't\navai..."
releaseall
end

'---------------
#org 0x1A6998
preparemsg 0x81A508A '"Which PC should be accessed?"
waitmsg
special 0x106
waitstate
goto 0x81A69A8

'---------------
#org 0x1A69A8
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81A6A05
compare 0x8000 0x1
if 0x1 goto 0x81A69F0
compare 0x8000 0x2
if 0x1 goto 0x81A6A7A
compare 0x8000 0x3
if 0x1 goto 0x81A6A56
compare 0x8000 0x4
if 0x1 goto 0x81A6A46
compare 0x8000 0x7F
if 0x1 goto 0x81A6A46
end

'---------------
#org 0x1A6A05
sound 0x2
checkflag 0x834
if 0x0 call 0x81A6A34
checkflag 0x834
if 0x1 call 0x81A6A3D
msgbox 0x81A50BE MSG_KEEPOPEN '"POKéMON Storage System opened."
special 0x3C
waitstate
setvar 0x8004 0x1B
special 0x17D
goto 0x81A6998

'---------------
#org 0x1A69F0
sound 0x2
msgbox 0x81A50DD MSG_KEEPOPEN '"Accessed [player]'s PC."
special 0xFA
waitstate
goto 0x81A6998

'---------------
#org 0x1A6A7A
checkflag 0x829
if 0x0 goto 0x81A6A46
sound 0x2
msgbox 0x81A5BC6 MSG_KEEPOPEN '"Accessed PROF. OAK's PC[.]\pAccess..."
msgbox 0x81A5C03 MSG_YESNO '"Would you like to have your\nPOKéD..."
compare LASTRESULT 0x0
if 0x1 goto 0x81A6AB2
setflag 0x2FF
call 0x81A73E0
clearflag 0x2FF
goto 0x81A6AB2

'---------------
#org 0x1A6A56
checkflag 0x82C
if 0x0 goto 0x81A6A46
sound 0x2
setvar 0x8004 0x1F
special 0x17E
special 0x17D
special 0x107
waitstate
special 0x17F
goto 0x81A69A8

'---------------
#org 0x1A6A46
setvar 0x8004 0x0
sound 0x3
special 0xD7
special 0x190
releaseall
end

'---------------
#org 0x1A6A34
msgbox 0x81A50A7 MSG_KEEPOPEN '"Accessed Someone's PC."
return

'---------------
#org 0x1A6A3D
msgbox 0x81A50EF MSG_KEEPOPEN '"Accessed BILL's PC."
return

'---------------
#org 0x1A6AB2
msgbox 0x81A5C2E MSG_KEEPOPEN '"Closed link to PROF. OAK's PC."
goto 0x81A6998

'---------------
#org 0x1A73E0
setvar 0x8004 0x1F
special 0x17E
special 0x17D
setvar 0x8004 0x0
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
copyvar 0x800A LASTRESULT
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A6CA3 MSG_KEEPOPEN '"The amount of progress you've made..."
checkflag 0x2FF
if 0x0 call 0x81A746D
call 0x81A73B6
compare 0x800A 0x0
if 0x1 goto 0x81A748F
setvar 0x8004 0x1
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A71AA MSG_KEEPOPEN '"And your NATIONAL POKéDEX is:\p[bu..."
special2 LASTRESULT 0x1B0
compare LASTRESULT 0x0
if 0x1 goto 0x81A7470
compare LASTRESULT 0x1
if 0x1 goto 0x81A747E
end

'---------------
#org 0x1A746D
textcolor 0x0
return

'---------------
#org 0x1A73B6
copyvar 0x8004 0x8009
special 0xD5
waitmsg
compare LASTRESULT 0x0
if 0x1 call 0x81A73D8
compare LASTRESULT 0x1
if 0x1 call 0x81A73DC
waitfanfare
waitkeypress
return

'---------------
#org 0x1A748F
special 0x17F
return

'---------------
#org 0x1A7470
msgbox 0x81A71EE MSG_KEEPOPEN '"I'll be looking forward to seeing\..."
goto 0x81A748F

'---------------
#org 0x1A747E
setflag 0x2F4
msgbox 0x81A722F MSG_KEEPOPEN '"Finally[.]\pYou've finally complet..."
goto 0x81A748F

'---------------
#org 0x1A73D8
fanfare 0x13D
return

'---------------
#org 0x1A73DC
fanfare 0x103
return


'---------
' Strings
'---------
#org 0x1A5075
= [player] booted up the PC.

#org 0x1A1390
= The usual PC services aren't\navailable[.]

#org 0x1A508A
= Which PC should be accessed?

#org 0x1A50BE
= POKéMON Storage System opened.

#org 0x1A50DD
= Accessed [player]'s PC.

#org 0x1A5BC6
= Accessed PROF. OAK's PC[.]\pAccessed the POKéDEX Rating\nSystem[.]

#org 0x1A5C03
= Would you like to have your\nPOKéDEX rated?

#org 0x1A50A7
= Accessed Someone's PC.

#org 0x1A50EF
= Accessed BILL's PC.

#org 0x1A5C2E
= Closed link to PROF. OAK's PC.

#org 0x1A6CA3
= The amount of progress you've made\non your POKéDEX is:\p[buffer1] POKéMON seen and\n[buffer2] POKéMON owned.\p\c\h06ÁPROF. OAK's rating:

#org 0x1A71AA
= And your NATIONAL POKéDEX is:\p[buffer1] POKéMON seen and\n[buffer2] POKéMON owned.

#org 0x1A71EE
= I'll be looking forward to seeing\nyou fill the NATIONAL POKéDEX!

#org 0x1A722F
= Finally[.]\pYou've finally completed the\nPOKéDEX!\pIt's magnificent!\nTruly, this is a fantastic feat!
Quote:
Originally Posted by v1.1 JPAN's Hacked Engine
Code:
'---------------
#org 0x1A6963
lockall
checkflag 0x841
if 0x1 goto 0x81A698E
setvar 0x8004 0x1B
special 0x17D
setvar 0x8004 0x0
special 0xD6
sound 0x4
msgbox 0x81A5075 MSG_KEEPOPEN '"[player] booted up the PC."
goto 0x81A6998

'---------------
#org 0x1A698E
msgbox 0x81A6BD0 MSG_KEEPOPEN '"The usual PC services aren't\navai..."
releaseall
end

'---------------
#org 0x1A6998
preparemsg 0x81A508A '"Which PC should be accessed?"
waitmsg
special 0x106
waitstate
goto 0x81A69A8

'---------------
#org 0x1A69A8
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81A6A05
compare 0x8000 0x1
if 0x1 goto 0x81A69F0
compare 0x8000 0x2
if 0x1 goto 0x81A6A7A
compare 0x8000 0x3
if 0x1 goto 0x81A6A56
compare 0x8000 0x4
if 0x1 goto 0x81A6A46
compare 0x8000 0x7F
if 0x1 goto 0x81A6A46
end

'---------------
#org 0x1A6A05
sound 0x2
checkflag 0x834
if 0x0 call 0x81A6A34
checkflag 0x834
if 0x1 call 0x81A6A3D
msgbox 0x81A50BE MSG_KEEPOPEN '"POKéMON Storage System opened."
special 0x3C
waitstate
setvar 0x8004 0x1B
special 0x17D
goto 0x81A6998

'---------------
#org 0x1A69F0
sound 0x2
msgbox 0x81A50DD MSG_KEEPOPEN '"Accessed [player]'s PC."
special 0xFA
waitstate
goto 0x81A6998

'---------------
#org 0x1A6A7A
checkflag 0x829
if 0x0 goto 0x81A6A46
sound 0x2
msgbox 0x81A5BC6 MSG_KEEPOPEN '"Accessed PROF. OAK's PC[.]\pAccess..."
msgbox 0x81A5C03 MSG_YESNO '"Would you like to have your\nPOKéD..."
compare LASTRESULT 0x0
if 0x1 goto 0x81A6AB2
setflag 0x2FF
call 0x81A73E0
clearflag 0x2FF
goto 0x81A6AB2

'---------------
#org 0x1A6A56
checkflag 0x82C
if 0x0 goto 0x81A6A46
sound 0x2
setvar 0x8004 0x1F
special 0x17E
special 0x17D
special 0x107
waitstate
special 0x17F
goto 0x81A69A8

'---------------
#org 0x1A6A46
setvar 0x8004 0x0
sound 0x3
special 0xD7
special 0x190
releaseall
end

'---------------
#org 0x1A6A34
msgbox 0x81A50A7 MSG_KEEPOPEN '"Accessed Someone's PC."
return

'---------------
#org 0x1A6A3D
msgbox 0x81A50EF MSG_KEEPOPEN '"Accessed BILL's PC."
return

'---------------
#org 0x1A6AB2
msgbox 0x81A5C2E MSG_KEEPOPEN '"Closed link to PROF. OAK's PC."
goto 0x81A6998

'---------------
#org 0x1A73E0
waitmsg
yesnobox 0x14 0x8
return


'---------
' Strings
'---------
#org 0x1A5075
= [player] booted up the PC.

#org 0x1A6BD0
= The usual PC services aren't\navailable[.]

#org 0x1A508A
= Which PC should be accessed?

#org 0x1A50BE
= POKéMON Storage System opened.

#org 0x1A50DD
= Accessed [player]'s PC.

#org 0x1A5BC6
= Accessed PROF. OAK's PC[.]\pAccessed the POKéDEX Rating\nSystem[.]

#org 0x1A5C03
= Would you like to have your\nPOKéDEX rated?

#org 0x1A50A7
= Accessed Someone's PC.

#org 0x1A50EF
= Accessed BILL's PC.

#org 0x1A5C2E
= Closed link to PROF. OAK's PC.
__________________

Paired with Simba

Last edited by karatekid552; April 23rd, 2013 at 03:42 PM.
  #24733    
Old April 23rd, 2013, 03:46 PM
robin22gongon's Avatar
robin22gongon
 
Join Date: Sep 2012
Location: Want to know? VM me.
Age: 16
Gender: Male
Nature: Quirky
Send a message via Windows Live Messenger to robin22gongon
Quote:
Originally Posted by karatekid552 View Post
Here; I shall find the script in a clean rom and then search for it in his hacked engine (just for anyone who doesn't know, the hacked engine is based on the clean patch).

It is just a regular script, so it really doesn't take asm to write. Just a knowledge of all of the specials.

Edit: On a clean FR rom, the PC script is at 0x1A6963. Now I shall search for it in the cleaned rom.

Edit2: Jambo, I was semi-wrong, it does exist in the game at said offset. However, it is only 156 lines. The script in the regular FR rom is 238 lines. So, I don't know what exactly was removed.... Probably those lines and small snippets of code which are used often by many different scripts.

Edit3: The entire section where you can check your pokedex and all related strings and small code snippets that go along with it have been removed. Did JPAN mess with the specials that deal with this so he took a precaution on it? Or do you think those parts were shared with other scripts?

Edit4: Here are both scripts to save some time:
Spoiler:


Well it was included in one of the notes included in JPAN's Hacked Engine

Spoiler:
Quote:
table entries
81 --> 1a7606 (bookshelf)
82 --> 1a760f (market shelves)
83 --> 1a6955 (pc script)

84
85 --> 1a6c32 (town map)
86 --> 1A764E (tv script)
87 --> 1A76E7 (pokecenter)

88 --> 1A76DE (pokemart)
89 --> 1A7657 (cabinet)
8a --> 1A7660 (cooking range)
8b --> 1A7669 (dresser)

8c --> 1A7672 (snacks)
8d --> 1BBFD8 (wireless)
8e --> 1BB8A7 (not available)
8f --> 1A7702 (questionaire)

90 --> 1a7618 (fridge)
91 --> 1A76F0 (indigo plateu)
92 --> 1A76F9 (indigo plateau 2)
93 --> 1a763c (blueprint)

94 --> 1A767B (pokemon pictures)
95 --> 1A7684 (complex machine)
96 --> 1A768D (telephone)
97 --> 1A762A (complex numbers)

98 --> 1A7696 (ads)
99 --> 1A769F (tasty food)
9a --> 1A76A8 (trash can)
9b --> 1A76B1 (cup)

9c (removed)
9d (removed)
9e --> 1A76CC (lights)
9f --> 1A76D5 (tools)

A0 --> 1a7633 (random machine)
A1 --> 1A7621 (consoles)
a2 --> 1A7645 (robbery)
a3 --> 1C549C (timer)*/

But this is if you apply the Behavior Byte Hack of the tool.

Does it run smoothly even without the Pokedex Thing? The script you found?

Well, another question. Which is better to use FR Clean or Hacked Engine?
__________________
LET'S PARTY!
  #24734    
Old April 23rd, 2013, 04:03 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by robin22gongon View Post
Well it was included in one of the notes included in JPAN's Hacked Engine


But this is if you apply the Behavior Byte Hack of the tool.

Does it run smoothly even without the Pokedex Thing? The script you found?

Well, another question. Which is better to use FR Clean or Hacked Engine?
If you click on Professor Oak's PC, then it just says "link closed" if you choose to rate your pokedex. Otherwise, it works fine.

It depends: Do you want the features offered by the Engine? If so, then take it. If not, just use the clean one.

Also, that problem you (?) had, where the player was always fishing, I'm getting that. It only happens when you use already saved save files. It doesn't occur when just starting a new game.
__________________

Paired with Simba
  #24735    
Old April 23rd, 2013, 04:12 PM
robin22gongon's Avatar
robin22gongon
 
Join Date: Sep 2012
Location: Want to know? VM me.
Age: 16
Gender: Male
Nature: Quirky
Send a message via Windows Live Messenger to robin22gongon
Quote:
Originally Posted by karatekid552 View Post
If you click on Professor Oak's PC, then it just says "link closed" if you choose to rate your pokedex. Otherwise, it works fine.
Okay.

Quote:
Originally Posted by karatekid552 View Post
It depends: Do you want the features offered by the Engine? If so, then take it. If not, just use the clean one.
Maybe it's better to use the Hacked Engine.

Quote:
Originally Posted by karatekid552 View Post
Also, that problem you (?) had, where the player was always fishing, I'm getting that. It only happens when you use already saved save files. It doesn't occur when just starting a new game.
That's what I said. I have problems when playing it with a saved game.
__________________
LET'S PARTY!
  #24736    
Old April 23rd, 2013, 04:24 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by robin22gongon View Post
That's what I said. I have problems when playing it with a saved game.
Looking at DavidJCobb's posts and JPAN's instruction manual, the vars used for his runtime trainer customization are vars which were previously used for scripted events that have been removed (vars 4080-408F). So, they must have been set to something else which is what caused the problems with the sprites. Just reset those to 00 and they should work fine.
__________________

Paired with Simba
  #24737    
Old April 23rd, 2013, 06:04 PM
kearnseyboy6's Avatar
kearnseyboy6
Aussie's Toughest Mudder
 
Join Date: Dec 2008
When I use trainerbattle 0x01 in a script the DNS by Primediagla stops working after the battle, until you enter and exit a house. Any reason why? trainerbattle 0x0 works fine however .
__________________
HOLIDAYING CURRENTLY!!
  #24738    
Old April 23rd, 2013, 06:42 PM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 14
Gender: Male
Nature: Modest
Since my question was on the last post of the last page, I think it got skipped. So I will post it again-

Hello guys, I need some help. I made a simple talking script for my hack. When I open the game with VBA, talking to that person does nothing. But when I open the game with No$Gba, the script successfully works.
__________________

Please click both of these links once in a day and help us grow:

  #24739    
Old April 23rd, 2013, 06:58 PM
Kurapika's Avatar
Kurapika
Grudgebearer
 
Join Date: Feb 2013
Location: Lavendar Town - Morocco
Gender: Male
Nature: Naughty
^ I don't think you will get a good help if you don't post the script here!

My question is: Is there a way to increase the shinies encounter chance? How about if I want to give a certain trainer a Shiny Pokémon?
EDIT: Also, sorry for asking too many times. >.< But, is it possible to make a battle not send you to the Pokécenter if you lose? ... The only way I can do it so far, is using that 0x9 battle (or was it 0x3?) the one where the wild Professor Oak annoys you with his boring talk. lol
Anyway, I don't think it would be easy to be done if it was possible... So, is it possible to make a script that does some Hex editing? To allow me to, say, edit the description/effect/...etc of a Move and such.
__________________

Last edited by Kurapika; April 23rd, 2013 at 07:07 PM.
  #24740    
Old April 23rd, 2013, 07:04 PM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 14
Gender: Male
Nature: Modest
There is no problem with the script because it works fine in No$Gba. The problem is that the script doesn't works in VBA.
__________________

Please click both of these links once in a day and help us grow:

  #24741    
Old April 24th, 2013, 03:53 AM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by Aryan143 View Post
Since my question was on the last post of the last page, I think it got skipped. So I will post it again-

Hello guys, I need some help. I made a simple talking script for my hack. When I open the game with VBA, talking to that person does nothing. But when I open the game with No$Gba, the script successfully works.
Your question was not skipped, I saw it, however I had no answers. Though, I just thought of a possible reason just now: are you, by any chance, hacking Emerald?

Also, please do post the script, there could be something funky in it that VBA doesn't like but No$ does. Don't just assume that since it worked on one, that it wasn't the script's fault.
__________________

Paired with Simba
  #24742    
Old April 24th, 2013, 04:13 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 14
Gender: Male
Nature: Modest
No, I am hacking FireRed. It also has JPAN's hacked engine applied. Here is the script but as I said before, it is just a simple talking script-

'---------------
#org 0x162601
msgbox 0x816260B 0x2 '"I have heard that you can get your..."
end


'---------
' Strings
'---------
#org 0x16260B
= I have heard that you can get your\nfirst pokemon from PokeAgents in\lGENESIS City.
__________________

Please click both of these links once in a day and help us grow:

  #24743    
Old April 24th, 2013, 05:52 AM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by Kurapika View Post
My question is: Is there a way to increase the shinies encounter chance?
Yes, but not without ASM. However, I have "faked" it before by using HackMew's Shinyizer and then placing random tiles everywhere which make the next Pokemon you see become shiny. If you would like to see a good example of this, play Ultra Violet by Locksmitharmy. This is how he did it.

Quote:
Originally Posted by Kurapika View Post
How about if I want to give a certain trainer a Shiny Pokémon?
Once again, if you use HackMew's Shinyizer, you can control when a shiny appears. By setting the var it uses (which the exact number escapes me at the moment) you can change how many shinies appear. Let's say you set it to 5. Then the next 5 pokemon you encounter, both wild and against trainers, will be shiny.

Quote:
Originally Posted by Kurapika View Post
EDIT: Also, sorry for asking too many times. >.< But, is it possible to make a battle not send you to the Pokécenter if you lose? ... The only way I can do it so far, is using that 0x9 battle (or was it 0x3?) the one where the wild Professor Oak annoys you with his boring talk. lol
Not without hacking the sethealing place command to add more locations and then have you just get warped to the same spot you battled on or adding a new trainer battle type which disregards the sethealingplace command and just continues the script no matter what. That would be the best. For many hackers, for example in Cutlerine's Snakewood, who couldn't do this had you lose and then the next time you came back to that spot, the script picked up where you left off by means of a flag.

Quote:
Originally Posted by Kurapika View Post
Anyway, I don't think it would be easy to be done if it was possible... So, is it possible to make a script that does some Hex editing? To allow me to, say, edit the description/effect/...etc of a Move and such.
Hex editing is editing the ROM. The ROM is Read Only Memory. Which means, of course, that while playing it, you can only read, no changing. The only way to do what you suggest, it to force the game to copy the data into the RAM before using it. There you can manipulate it to your liking using ASM or script commands such as setfarbyte.

~~~~~~~~~~~~~~~


Quote:
Originally Posted by Aryan143 View Post
No, I am hacking FireRed. It also has JPAN's hacked engine applied. Here is the script but as I said before, it is just a simple talking script-
Try this:

Code:
'---------------
#org 0x162601
lock
msgbox 0x816260B 0x2 '"I have heard that you can get your..."
release
end


'---------
' Strings
'---------
#org 0x16260B
= I have heard that you can get your\nfirst pokemon from PokeAgents in\lGENESIS City.
Because you are using msgbox type 0x2, the lock and release are not necessary, but sometimes it just helps solidify things.
__________________

Paired with Simba

Last edited by karatekid552; April 24th, 2013 at 05:58 AM. Reason: Your double post has been automatically merged.
  #24744    
Old April 24th, 2013, 06:20 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 14
Gender: Male
Nature: Modest
No, it is still not working. Also, I noticed one thing- After I compile the script and open it again, the end has been replaced by cmdc3 0x0. I don't know why it happens.
__________________

Please click both of these links once in a day and help us grow:

  #24745    
Old April 24th, 2013, 06:29 AM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by Aryan143 View Post
No, it is still not working. Also, I noticed one thing- After I compile the script and open it again, the end has been replaced by cmdc3 0x0. I don't know why it happens.
Try changing the dynamic to 0x800000. There may be some left over data where you are which is confusing the game.
__________________

Paired with Simba
  #24746    
Old April 24th, 2013, 06:46 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 14
Gender: Male
Nature: Modest
Woohoo! Thanks a lot! Its working correctly now.
__________________

Please click both of these links once in a day and help us grow:

  #24747    
Old April 24th, 2013, 06:50 AM
Garuga17's Avatar
Garuga17
 
Join Date: Apr 2011
Location: Indonesia
Age: 19
Gender: Male
Nature: Relaxed
I just wondering, is it possible to create a givepokemon script that gives you pokemon with some certain condition? like maxed EV stats, or with certain moves, and such
__________________
dunno what to write here....
  #24748    
Old April 24th, 2013, 06:54 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 14
Gender: Male
Nature: Modest
Now just one more fix and I can continue working in my hack. I used this tutorial to add 2 new palettes-

http://www.pokecommunity.com/showthread.php?t=275160

I inserted two new OW's with these palettes. In OW Editor Rebirth, they looked fine. But in VBA, their palette is messed up. And guess what, the palettes are working right in No$.
__________________

Please click both of these links once in a day and help us grow:

  #24749    
Old April 24th, 2013, 08:20 AM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by Garuga17 View Post
I just wondering, is it possible to create a givepokemon script that gives you pokemon with some certain condition? like maxed EV stats, or with certain moves, and such
With some work, yes. You could find the empty slot using a special, give the pokemon, then, using JPAN's Decrypting Pokemon Data (ASM Code) [that is the title of the thread], mess with the stats and such.

Quote:
Originally Posted by Aryan143 View Post
Now just one more fix and I can continue working in my hack. I used this tutorial to add 2 new palettes-

http://www.pokecommunity.com/showthread.php?t=275160

I inserted two new OW's with these palettes. In OW Editor Rebirth, they looked fine. But in VBA, their palette is messed up. And guess what, the palettes are working right in No$.
This is due to the way palettes overwrite each other. I have done a lot of research on this but I have yet to be able to control how palettes decide which one's stay and which get booted. You see, there are only 16 palette slots for OAM's and in the OW data, you can chose which slot the OW's palette will take up. You can also control which OW palettes get preference to a slot over another, though I haven't quite figured it out.
__________________

Paired with Simba

Last edited by karatekid552; April 24th, 2013 at 08:24 AM. Reason: Your double post has been automatically merged.
  #24750    
Old April 24th, 2013, 02:55 PM
dondon151
 
Join Date: Jan 2012
Gender: Male
Quote:
Originally Posted by karatekid552 View Post
From my knowledge, I would say that it is randomly based on a givepokemon script. However, I have three more theorys:

1) A pokemon is created in slot one of where the opossing trainer's pokemon are stored during a battle. This pokemon is created and then nicknamed and then put in your party.

2) The pokemon is given to you, and then the game edits the nickname and gives it the proper hold item.

3) The whole pokemon's data is stored in the rom somewhere and it is just copied into your party.

If you could discover which it is, then you could manipulate the checksum and PID to force it to be a certain gender using ASM, or in the last case, just changeing some hex bytes.

As I said, these are just theorys, but one of them has got to work.
I would say that it's definitely not option 1) and it is most likely option 3). Trader Advanced is a tool that allows for editing of IVs, nature, and ability, so I assume that the offset of this information is known. I just find it surprising that it isn't documented elsewhere.

I have an idea, though.
Closed Thread
Quick Reply

Sponsored Links


Advertise here
Thread Tools

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 09:17 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.