View Single Post
  #845    
Old April 13th, 2013 (02:07 AM).
ShyRayq's Avatar
ShyRayq ShyRayq is offline
Unprofessional Unprofessional
 
Join Date: Aug 2007
Gender: Male
Nature: Adamant
Posts: 965
Quote originally posted by PiplupGHacker:
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.
__________________
3DS Friend Code: 5069-3944-3902
IGN: Peter, (Pokemon Y, Pokemon OR)
Friend Safari: (Fighting) Throh, Meditite, Breloom
Live Pokedex (Y) Completed as of 02/03/14 (718), 10/11/14 (719)
Live Pokedex (OR) Completed as of 25/12/14 (719)
Big thanks especially to DestinedJagold, Xerneas_X, Elements1 and ~RNC~

PM me if you want to trade, or add my FC.
Reply With Quote