Notices
For all updates, view the main page.

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Reply
 
Thread Tools
  #151    
Old October 20th, 2016 (1:18 AM).
BlackWhiteRobin's Avatar  
Join Date: Sep 2012
Age: 18
Gender: Male
Nature: Quirky
Posts: 500
Quote:
Originally Posted by The_learner View Post
It would be worth a try,
But how actually to callasm an item....
Callasm command calls the asm value only.... getting confused about it
IIRC, you will have to do:
Code:
...
blah blah blah
callasm 0x(item effect offset)
blah blah blah
...
Happy hacking!
__________________

Reply With Quote

Relevant Advertising!

  #152    
Old October 20th, 2016 (1:26 AM).
The_learner's Avatar  
Join Date: Sep 2014
Gender: Male
Nature: Brave
Posts: 299
Quote:
Originally Posted by BlackWhiteRobin View Post
IIRC, you will have to do:
Code:
...
blah blah blah
callasm 0x(item effect offset)
blah blah blah
...
Happy hacking!
This word Item effect has been haunting me for a long time....
can you tell me if it is the item index number or something else,
and if it is something else then is there any list for it... because i wanted to know about it.... and you have written.... "item effect offset" do they have some offset also ???
???
???
.
.
thanks for the reply though
__________________
My Progressing Hack

I am over facebook as well ---------------------> "HERE"

My works:
Fire red habitat editing
Fire red Transparent text-box
Reply With Quote
  #153    
Old October 23rd, 2016 (1:02 PM).
BlackWhiteRobin's Avatar  
Join Date: Sep 2012
Age: 18
Gender: Male
Nature: Quirky
Posts: 500
Quote:
Originally Posted by The_learner View Post
This word Item effect has been haunting me for a long time....
can you tell me if it is the item index number or something else,
and if it is something else then is there any list for it... because i wanted to know about it.... and you have written.... "item effect offset" do they have some offset also ???
???
???
.
.
thanks for the reply though
Well, if you use pokemontutorialtv's Advanced Item Editor, it is labeled as "fieldscript".
__________________

Reply With Quote
  #154    
Old 4 Weeks Ago (8:25 AM).
LCCoolJ95's Avatar
Limited Capacity
 
Join Date: May 2009
Location: The World That Never Was
Age: 21
Gender: Male
Nature: Naive
Posts: 439
Quote:
Originally Posted by Danny0317 View Post
Spoiler:
Hey guys, I've finally made an ACTUAL* BW2 repel system for emerald.
Okay, before I start off, you're gonna have to credit Darthatron, and Phenom2122, and if you want, Le Pug, Tcoppy, and I.

Anyways, follow the tutorial here, http://www.pokecommunity.com/showthread.php?t=281573 and do the Emerald part in another post instead.

Once you have that done, you're going to have to make this script for all of them:

For Repel:
Code:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x56 0x1
setvar 0x4021 0x64
setvar 0x40E9 0x1
sound 0x2F
msgbox 0x8E4D3B9 MSG_SIGN '"[player] used a Repel."
end

#org @no
msgbox @nope MSG_SIGN
end
For Super Repel:
Code:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x53 0x1
setvar 0x4021 0xC8
setvar 0x40E9 0x2
sound 0x2F
msgbox 0x8E4D278 MSG_SIGN '"[player] used a Super Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

#org @nope
= But the effects of a Repel\nlingered from earlier.
For Max Repel:
Code:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x54 0x1
setvar 0x4021 0xFA
setvar 0x40E9 0x3
sound 0x2F
msgbox 0x8E4D2F5 MSG_SIGN '"[player] used a Max Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

#org @nope
= But the effects of a Repel\nlingered from earlier.
Change the offsets for the dialogue or it won't work.
You can also change the second variable, to whichever you want/is safe, but you'll need to change it later.


Then, make a script with this:

Code:
#dynamic 0xE40000
#org @start
msgbox @wore MSG_SIGN
compare 0x40E9 1
if 0x1 goto @repel
compare 0x40E9 2
if 0x1 goto @super
compare 0x40E9 3
if 0x1 goto @max
end

#org @repel
checkitem 0x56 1
compare 0x800d 1
if 0x4 goto @yesrepel
setvar 0x40e9 0
closeonkeypress
end

#org @yesrepel
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @userepel
setvar 0x40e9 0
closeonkeypress
end

#org @userepel
removeitem 0x56 0x1
setvar 0x4021 0x64
setvar 0x40E9 0x1
sound 0x2F
msgbox 0x8E4D3B9 MSG_SIGN '"[player] used a Repel."
end


#org @super
checkitem 0x53 1
compare 0x800d 1
if 0x4 goto @yessuper
setvar 0x40e9 0
closeonkeypress
end

#org @yessuper
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @usesuper
setvar 0x40e9 0
closeonkeypress
end

#org @usesuper
removeitem 0x53 0x1
setvar 0x4021 0xC8
setvar 0x40E9 0x2
sound 0x2F
msgbox 0x8E4D278 MSG_SIGN '"[player] used a Super Repel."
end

#org @max
checkitem 0x54 1
compare 0x800d 1
if 0x4 goto @yesmax
setvar 0x40e9 0
closeonkeypress
end

#org @yesmax
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @usemax
setvar 0x40e9 0
closeonkeypress
end

#org @usemax
removeitem 0x54 0x1
setvar 0x4021 0xFA
setvar 0x40E9 0x3
sound 0x2F
msgbox 0x8E4D2F5 MSG_SIGN '"[player] used a Max Repel."
end

#org @wore
= The Repel's effect wore off[.]

#org @use
= Use another?
After you're done with that, go to 0x2A4B2A and replace the script there with "goto and 0x(the offset for that script).

It hasn't been tested much, but it should work. If you find any bugs, write them here.

*The only difference is that the screen goes to the Overworld when using it. Sorry about that, but I really don't know any other way to do it.
I saw that you said you made this easier to read. Well:
1. When you mention "Follow the tutorial and do the Emerald part," where is that? I saw that Phenom and kleenexfeu made posts for Emerald, which one is that?
2. You do realize that can offset is required, right? The compiled version has an XX XX XX 08 at the end. If there is, are you talking about the scripts below the tutorial link, when you say: Once you have that done, you're going to have to make this script for all of them? If so, why aren't they listed first, and is it XX+1 XX XX 08 or XX XX XX 08?
3. Do I have to make three versions of the compiled version of the ASM code, one for each Repel? I don't have a problem with it, I'm just wondering.
4. Do I put the ASM code where the field usage is in Item Manager, as what the first post of the link said to do?
5. For the part about inserting the script at 0x2A4B2A, do you literally mean overwriting the bytes there, or you want to repoint the script at 0x2A4B2A to the offset of the giant script created? (i.e. changing all bytes of 2A 4B 2A 08 to XX XX XX 08, where XXXXXX is the offset of the giant script inserted)

I tried a shot at this, and when I selected any repel, the game transitioned to a black screen, freezing the game. So, what's the problem?
__________________
"The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

Pokémon Emerald 650 (Resource Patch): http://www.pokecommunity.com/showthread.php?t=346694
Pokémon Theta Emerald: http://www.pokecommunity.com/showthread.php?t=349258
Reply With Quote
  #155    
Old 4 Weeks Ago (12:40 PM).
Banned
 
Join Date: Nov 2016
Gender: Male
Posts: 1
Quote:
Originally Posted by LCCoolJ95 View Post
I tried a shot at this, and when I selected any repel, the game transitioned to a black screen, freezing the game. So, what's the problem?
It works for everyone else, so the problem is clearly with you, theta-boy.

Just don't throw another tantrum and "quit" hacking because of this.
Reply With Quote
  #156    
Old 4 Weeks Ago (2:33 PM).
-Piccolo-'s Avatar  
Join Date: May 2016
Location: Sweden
Gender: Male
Nature: Calm
Posts: 24
How do I compile the script in XSE?
I think I did it right, I pasted the script in XSE and compiled it and i got: EAF660 as a result, is that what I need?

Darthatron's compiled script was so much longer:
6A 47 0E 80 01 00 21 0D 80 01 00 06 04 1C 00 80 08 0F 00 39 00 80 08 09 03 6C 02 FF 0F 00 54 00 80 08 09 05 68 21 0D 80 01 00 06 01 32 00 80 08 02 FF 23 69 FB 1B 08 02 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD FF 00 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD AD AD FE CF E7 D9 00 D5 E2 E3 E8 DC D9 E6 AC FF 00 FF FF FF FF

I tried using Darthatron's compiled script after I added all the bytes but when I use a Repel I never get any text indicating that it's no longer in effect. I think it's because i've already started working on my hack and added stuff so it's no longer a clean rom.

As you probably can tell i've never done this before and would like some help :3
Reply With Quote
  #157    
Old 4 Weeks Ago (8:31 PM).
The_learner's Avatar  
Join Date: Sep 2014
Gender: Male
Nature: Brave
Posts: 299
Quote:
Originally Posted by -Piccolo- View Post
How do I compile the script in XSE?
I think I did it right, I pasted the script in XSE and compiled it and i got: EAF660 as a result, is that what I need?

Darthatron's compiled script was so much longer:
6A 47 0E 80 01 00 21 0D 80 01 00 06 04 1C 00 80 08 0F 00 39 00 80 08 09 03 6C 02 FF 0F 00 54 00 80 08 09 05 68 21 0D 80 01 00 06 01 32 00 80 08 02 FF 23 69 FB 1B 08 02 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD FF 00 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD AD AD FE CF E7 D9 00 D5 E2 E3 E8 DC D9 E6 AC FF 00 FF FF FF FF

I tried using Darthatron's compiled script after I added all the bytes but when I use a Repel I never get any text indicating that it's no longer in effect. I think it's because i've already started working on my hack and added stuff so it's no longer a clean rom.

As you probably can tell i've never done this before and would like some help :3
Well if you got te result "EAF660" then as Darthatron said goto offset 83100 and start typing 60 F6 EA 08... And your work will be done... if it still doesnt happen then make a reply
__________________
My Progressing Hack

I am over facebook as well ---------------------> "HERE"

My works:
Fire red habitat editing
Fire red Transparent text-box
Reply With Quote
  #158    
Old 4 Weeks Ago (1:41 AM).
-Piccolo-'s Avatar  
Join Date: May 2016
Location: Sweden
Gender: Male
Nature: Calm
Posts: 24
So then I should put in: 60 F6 EA 80 01 00 21 0D 80 01 00 06 04 1C 00 80 08 0F 00 39 00 80 08 09 03 6C 02 FF 0F 00 54 00 80 08 09 05 68 21 0D 80 01 00 06 01 32 00 80 08 02 FF 23 69 FB 1B 08 02 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD FF 00 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD AD AD FE CF E7 D9 00 D5 E2 E3 E8 DC D9 E6 AC FF 00 FF FF FF FF
In the offset 83100?
Reply With Quote
  #159    
Old 4 Weeks Ago (2:05 AM).
The_learner's Avatar  
Join Date: Sep 2014
Gender: Male
Nature: Brave
Posts: 299
Quote:
Originally Posted by -Piccolo- View Post
So then I should put in: 60 F6 EA 80 01 00 21 0D 80 01 00 06 04 1C 00 80 08 0F 00 39 00 80 08 09 03 6C 02 FF 0F 00 54 00 80 08 09 05 68 21 0D 80 01 00 06 01 32 00 80 08 02 FF 23 69 FB 1B 08 02 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD FF 00 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD AD AD FE CF E7 D9 00 D5 E2 E3 E8 DC D9 E6 AC FF 00 FF FF FF FF
In the offset 83100?
no not all that, but only 60 F6 EA 08(not 80)
__________________
My Progressing Hack

I am over facebook as well ---------------------> "HERE"

My works:
Fire red habitat editing
Fire red Transparent text-box
Reply With Quote
  #160    
Old 4 Weeks Ago (2:29 AM).
-Piccolo-'s Avatar  
Join Date: May 2016
Location: Sweden
Gender: Male
Nature: Calm
Posts: 24
I can't get it to fully work, although it's a step closer.
When I use a Repel it works fine, when i've walked 100 steps the text box pops up and ask me if i want to use another one.
If i say no, nothing happens and I can continue to play.
If i say yes, the game freezes and I can't move, the music however continues to play like normal.

I replaced everything Darthatron said on on Page 1 in HxD, and my complied script 3 times.

Any ideas?
Reply With Quote
  #161    
Old 4 Weeks Ago (2:37 AM).
The_learner's Avatar  
Join Date: Sep 2014
Gender: Male
Nature: Brave
Posts: 299
Quote:
Originally Posted by -Piccolo- View Post
I can't get it to fully work, although it's a step closer.
When I use a Repel it works fine, when i've walked 100 steps the text box pops up and ask me if i want to use another one.
If i say no, nothing happens and I can continue to play.
If i say yes, the game freezes and I can't move, the music however continues to play like normal.

I replaced everything Darthatron said on on Page 1 in HxD, and my complied script 3 times.

Any ideas?
If it freeze after selecting yes then possibly you have done something with hex-editing.
try inserting all the hex codes again....
while inserting

goto that pointer (Press "CTRL+G) paste that pointer

then copy the codes for the specified pointer in the first post....
and goto hex editor and press (CTRL+B) it avoids any other data error....

try it once again and tell me if you still get the problem.. but one thing dont edit anything at 83100 this time
__________________
My Progressing Hack

I am over facebook as well ---------------------> "HERE"

My works:
Fire red habitat editing
Fire red Transparent text-box
Reply With Quote
  #162    
Old 4 Weeks Ago (2:43 AM).
-Piccolo-'s Avatar  
Join Date: May 2016
Location: Sweden
Gender: Male
Nature: Calm
Posts: 24
I pasted everything into the pointer's specified in the first post except 03100 and when the repel runs out I just get the standard text-box stating ''REPEL'S effect wore off''.
Reply With Quote
  #163    
Old 4 Weeks Ago (3:03 AM).
The_learner's Avatar  
Join Date: Sep 2014
Gender: Male
Nature: Brave
Posts: 299
Quote:
Originally Posted by -Piccolo- View Post
I pasted everything into the pointer's specified in the first post except 03100 and when the repel runs out I just get the standard text-box stating ''REPEL'S effect wore off''.
what there in the pointer 83100.. tell me
__________________
My Progressing Hack

I am over facebook as well ---------------------> "HERE"

My works:
Fire red habitat editing
Fire red Transparent text-box
Reply With Quote
  #164    
Old 4 Weeks Ago (3:22 AM).
-Piccolo-'s Avatar  
Join Date: May 2016
Location: Sweden
Gender: Male
Nature: Calm
Posts: 24
What's in the pointer 83100?


I haven't touched it, just inserted all the other one's.
Reply With Quote
  #165    
Old 4 Weeks Ago (4:33 AM).
The_learner's Avatar  
Join Date: Sep 2014
Gender: Male
Nature: Brave
Posts: 299
Quote:
Originally Posted by -Piccolo- View Post
What's in the pointer 83100?


I haven't touched it, just inserted all the other one's.
now press at the beginning of the line you can see there...
at the 65... and start typing 60 F6 EA
and save it
__________________
My Progressing Hack

I am over facebook as well ---------------------> "HERE"

My works:
Fire red habitat editing
Fire red Transparent text-box
Reply With Quote
  #166    
Old 4 Weeks Ago (4:42 AM). Edited 4 Weeks Ago by -Piccolo-.
-Piccolo-'s Avatar  
Join Date: May 2016
Location: Sweden
Gender: Male
Nature: Calm
Posts: 24
Shall I replace the 3 first lines?

Edit: I tried but it's the same thing happening, the game freezes :/

Can it be something with save compatibility?
Nope, tried with a fresh start and still the same freeze.
Reply With Quote
  #167    
Old 4 Weeks Ago (5:47 PM).
The_learner's Avatar  
Join Date: Sep 2014
Gender: Male
Nature: Brave
Posts: 299
Quote:
Originally Posted by -Piccolo- View Post
Shall I replace the 3 first lines?

Edit: I tried but it's the same thing happening, the game freezes :/

Can it be something with save compatibility?
Nope, tried with a fresh start and still the same freeze.
You probably did something wrong...
and I am feeling problem to explain you
__________________
My Progressing Hack

I am over facebook as well ---------------------> "HERE"

My works:
Fire red habitat editing
Fire red Transparent text-box
Reply With Quote
  #168    
Old 4 Weeks Ago (10:38 PM).
-Piccolo-'s Avatar  
Join Date: May 2016
Location: Sweden
Gender: Male
Nature: Calm
Posts: 24
Most likley, however, this is not a really important feature, very nice to have, but for now I will focus on other stuff.

I'm very glad however that you tried to help me, learned quite alot actually, really appreciate it! :)
Reply With Quote
  #169    
Old 3 Weeks Ago (8:19 PM).
Nine9's Avatar  
Join Date: Nov 2016
Location: Philippines
Gender: Male
Nature: Lax
Posts: 7
cool dude.. so nice
Reply With Quote
Reply
Quick Reply

Sponsored Links
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

Forum Jump


All times are GMT -8. The time now is 7:04 AM.