jukin8
Suicune Man
- 16
- Posts
- 13
- Years
- Age 28
- Ontario, Canada
- Seen Apr 25, 2016
has anyone made a pdf of this tutorial cause my internet is down at home and id like to use it for reference when i have time to work on my hack :)
First of all, I can not say THANK YOU enough for this. Amazing tutorial, I've been using it to aid me in my first proper hack. Unfortunately, though, right now I'm encountering a problem ._.
Basically, all I'm trying to do is make it so that the fat NPC near the Poke Center in Pewter City gives you an Axew. Here's his original script:
Spoiler:'-----------------------
#org 0x16622B
lock
faceplayer
setvar 0x8004 0x2
setvar 0x8005 0x2
special 0x173
msgbox 0x817E49F '"There aren't many serious Pokémon\n..."
callstd 0x4
release
end
'---------
' Strings
'---------
#org 0x17E49F
= There aren't many serious Pokémon\nTRAINERS here.\pThey're all like Bug CATCHERS,\nyou know, just hobbyists.\pBut PEWTER GYM's BROCK isn't like\nthat, not one bit.
What I've done is practically copied and pasted your givepokemon example, creating this script:
Spoiler:'-----------------------
#dynamic 0x800000
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x262 0x12 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
'---------
' Strings
'---------
#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Axew.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [black_fr]You received an Axew!
#org @4
= [black_fr]Would you like to give a\nnickname to Axew?
#org @5
= Please take care of\nAxew.
#org @6
= Are you taking good care\nof Axew?
I compile it, and it seems to be alright, but when I test the game or go back to the guy's script, it's back to normal again, as if it never compiled in the first place! I tried setting the script up on other NPCs in Pewter, and I also tried literally just copy and pasting yours to no avail. Here's what the compile log says:
Spoiler:eXtreme Script Editor v1.0.0
-------------------------------------
Opening output --> C:\Users\brian\Documents\Pokemon - The Golden\Pokemon - The Golden.gba...
Processing input script...
2 - DYNAMIC
> lDynamicStart = 0x800000
4 - ORG
> lNewOffset = 0xB32CFD
5 - (2B) - CHECKFLAG
> iWord = 0x828
6 - (??) IF (native)
> bCondition = 0x1
This is a jumping IF, 0x06.
> pTarget = 0x8B32D5E
7 - (0F) MSGBOX (native)
> pText = 0x8B32D67
8 - (21) - COMPARE
> iWord = 0x800D
> iWord = 0x1
9 - (??) IF (native)
> bCondition = 0x1
This is a jumping IF, 0x06.
> pTarget = 0x8B32D20
10 - (0F) MSGBOX (native)
> pText = 0x8B32DC8
11 - (6C) - RELEASE
12 - (02) - END
14 - ORG
> lNewOffset = 0xB32D20
15 - (79) - GIVEPOKEMON
> iWord = 0x262
> bByte = 0x12
> iWord = 0x0
> lDword = 0x0
> lDword = 0x0
> bByte = 0x0
16 - (31) - FANFARE
> iWord = 0x13E
17 - (0F) MSGBOX (native)
> pText = 0x8B32DFC
18 - (32) - WAITFANFARE
19 - (68) - CLOSEONKEYPRESS
20 - (29) - SETFLAG
> iWord = 0x828
21 - (0F) MSGBOX (native)
> pText = 0x8B32E1D
22 - (21) - COMPARE
> iWord = 0x800D
> iWord = 0x1
23 - (??) IF (native)
> bCondition = 0x1
This is a calling IF, 0x07.
> pTarget = 0x8B32D57
24 - (0F) MSGBOX (native)
> pText = 0x8B32E54
25 - (6C) - RELEASE
26 - (02) - END
28 - ORG
> lNewOffset = 0xB32D57
29 - (04) - CALL
> pPointer = 0x81A74EB
30 - (03) - RETURN
32 - ORG
> lNewOffset = 0xB32D5E
33 - (0F) MSGBOX (native)
> pText = 0x8B32E70
34 - (6C) - RELEASE
35 - (02) - END
42 - ORG
> lNewOffset = 0xB32D67
43 - RAW TEXT
> sText = "Hello.\nSorry to trouble you.\nI can't take care\nof my Axew.\pCan you take care of\nit for me?"
45 - ORG
> lNewOffset = 0xB32DC8
46 - RAW TEXT
> sText = "That's okay.\pI'm sure someone else will\ntake it."
48 - ORG
> lNewOffset = 0xB32DFC
49 - RAW TEXT
> sText = "[black_fr]You received an Axew!"
51 - ORG
> lNewOffset = 0xB32E1D
52 - RAW TEXT
> sText = "[black_fr]Would you like to give a\nnickname to Axew?"
54 - ORG
> lNewOffset = 0xB32E54
55 - RAW TEXT
> sText = "Please take care of\nAxew."
57 - ORG
> lNewOffset = 0xB32E70
58 - RAW TEXT
> sText = "Are you taking good care\nof Axew?"
-------------------------------
DYNAMIC_OFFSET 1
> sLabel = @1
> lOffset = 0xB32D67
DYNAMIC_OFFSET 2
> sLabel = @2
> lOffset = 0xB32DC8
DYNAMIC_OFFSET 3
> sLabel = @3
> lOffset = 0xB32DFC
DYNAMIC_OFFSET 4
> sLabel = @4
> lOffset = 0xB32E1D
DYNAMIC_OFFSET 5
> sLabel = @5
> lOffset = 0xB32E54
DYNAMIC_OFFSET 6
> sLabel = @6
> lOffset = 0xB32E70
DYNAMIC_OFFSET 7
> sLabel = @done
> lOffset = 0xB32D5E
DYNAMIC_OFFSET 8
> sLabel = @name
> lOffset = 0xB32D57
DYNAMIC_OFFSET 9
> sLabel = @start
> lOffset = 0xB32CFD
DYNAMIC_OFFSET 10
> sLabel = @take
> lOffset = 0xB32D20
-------------------------------
Cleaning up...
Closing output...
Finished processing input in 0.035 seconds.
I mean, there don't SEEM to be any problems :/, it just won't save no matter what I do! Any advice? Anyways, I apologize if I'm just doing something completely idiotic here, I'm not the greatest at this.
Okay, did you ACTUALLY save A-map? That's the only problem I can see here. Just try every method of saving until that SoB works.
Alternately, could it be that you loaded from a savestate? Sometimes that doesn't work. Just save normally and if it works, there's your problem.
Are you taking the new compiled offset and pasting it into the script offset box on the person in Advance-Map, then saving?Nope, properly loading a save via the title screen and all, and I'm saving in AdvanceMap. Thing is even after compiling and closing XSE and then going to reopen the script it's already back to the original script like it never compiled anything in the first place ._.
Are you taking the new compiled offset and pasting it into the script offset box on the person in Advance-Map, then saving?
How are you testing it in-game? You should leave then reenter the map to make sure your changes are made.I was about to scold myself for not doing so, but even upon doing so it just goes back to the original "hurr durr bug trainers BROCK" >.<
How are you testing it in-game? You should leave then reenter the map to make sure your changes are made.
You need to copy the hex address next to @start and paste that into Advance-Map where it says "Script offset", then save.Tried this too, still nothing. What irks me is I've been able to successfully compile and insert something into the script before. No idea if this makes any difference but here's that script:
Spoiler:
'-----------------------
#org 0x16582F
msgbox 0x817D80D '"Technology is incredible!\pYou can ..."
callstd 0x2
special 0x16F
end
'---------
' Strings
'---------
#org 0x17D80D
= Technology is incredible!\pYou can now emulate PS2\nand GBA games in HD on your PC!
(If you noticed, I just made it so that he activates the event to give you the National Dex, and changed his lines for lols. He works totally fine) The only difference I can see here is that when I compile that the windows very small, but when I compile the givepokemon script, I get a box saying "Dynamic offsets: @1 @2 @3 @4 @5 @6 @done @name @start" with what seems to be a hex address next to each and a copy button to copy the addresses to the clipboard :/
You need to copy the hex address next to @start and paste that into Advance-Map where it says "Script offset", then save.
Is there any script that makes a sprite follow the player?
Jambo did it... he never finished the routine completely yet, though...Though if you're talking about following you like in Pokemon Yellow then no. I don't think you can.
Jambo did it... he never finished the routine completely yet, though...
I know that. But I do think he said something that completing the routine is almost near impossible. :3
Well, I meant following like in Pokemon Yellow. I know it is almost impossible, but there should be a way. I mean if it was possible in Yellow, then it should be also in FR. Anyway, is there any way I can see that Jambo's script?
Incorrect, just because something was in a past game doesn't mean it's possible in other games. It kind of is possible, but it's really buggy, and Jambo as far as I know never released his version of the script to the public as it was buggy.
(insert patrick I love you here, image was enormous so I just removed it)
Once again, I apologize for the idiocy. Had a feeling it was something stupid like that ._.
Thanks soo much though xD.
EDIT: Welp. Moar problems. Textbox won't open at all when I talked to him. This happened at first when I did the other one too, so I just assigned the script to someone else. Gonna try that but, thought I'd say that oddly enough after compiling the script shows up like this(could just be that it automatically shorthanded it or something):
Spoiler:
'-----------------------
#org 0xB339A5
checkflag 0x828
if 0x1 goto 0x8B33A06
msgbox 0x8B33A0F '"Hello.\nSorry to trouble you.\nI ca..."
compare LASTRESULT 0x1
if 0x1 goto 0x8B339C8
msgbox 0x8B33A70 '"That's okay.\pI'm sure someone else..."
release
end
'-----------------------
#org 0xB33A06
msgbox 0x8B33B18 '"Are you taking good care\nof Axew?"
release
end
'-----------------------
#org 0xB339C8
givepokemon 0x262 0x12 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8B33AA4 '" blackkfrrYou received an Axew!"
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x8B33AC5 '" blackkfrrWould you like to give a\..."
compare LASTRESULT 0x1
if 0x1 call 0x8B339FF
msgbox 0x8B33AFC '"Please take care of\nAxew."
release
end
'-----------------------
#org 0xB339FF
call 0x81A74EB
return
'-----------------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------
' Strings
'---------
#org 0xB33A0F
= Hello.\nSorry to trouble you.\nI can't take care\nof my Axew.\pCan you take care of\nit for me?
#org 0xB33A70
= That's okay.\pI'm sure someone else will\ntake it.
#org 0xB33B18
= Are you taking good care\nof Axew?
#org 0xB33AA4
= blackkfrrYou received an Axew!
#org 0xB33AC5
= blackkfrrWould you like to give a\nnickname to Axew?
#org 0xB33AFC
= Please take care of\nAxew.
EDIT2: Put it to girl next to the gym who talks about Clefairys, same thing happens. Error in my script?
Happy Birthday!Can I get some help with this?
My birthdays tomorrow and I want to get this shiz to work >.>
#dynamic 0xB00000
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x262 0x12 0x0 0x0 0x0 0x0
fanfare 0x13E
textcolor 0x02
msgbox @3 0x4
waitfanfare
closeonkeypress
textcolor 0x02
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Axew.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= You received an Axew!
#org @4
= Would you like to give a\nnickname to Axew?
#org @5
= Please take care of\nAxew.
#org @6
= Are you taking good care\nof Axew?
Happy Birthday!
Note: You should have just modified the givepokemon script on the first page.Code:#dynamic 0xB00000 #org @start lock faceplayer checkflag 0x828 if 0x1 goto @done msgbox @1 0x5 compare LASTRESULT 0x1 if 0x1 goto @take msgbox @2 0x6 release end #org @take givepokemon 0x262 0x12 0x0 0x0 0x0 0x0 fanfare 0x13E textcolor 0x02 msgbox @3 0x4 waitfanfare closeonkeypress textcolor 0x02 msgbox @4 0x5 compare LASTRESULT 0x1 if 0x1 gosub @name msgbox @5 0x6 release end #org @name call 0x1A74EB return #org @done msgbox @6 0x6 release end #org @1 = Hello.\nSorry to trouble you.\nI can't take care\nof my Axew.\pCan you take care of\nit for me? #org @2 = That's okay.\pI'm sure someone else will\ntake it. #org @3 = You received an Axew! #org @4 = Would you like to give a\nnickname to Axew? #org @5 = Please take care of\nAxew. #org @6 = Are you taking good care\nof Axew?
And if it still doesn't work, update your XSE to 1.1.1 or just use Gamre2020's Unofficial XSE in his Toolbox.