- 48
- Posts
- 8
- Years
- Katones City
- Seen May 13, 2025
Hello. This is my first post here.
I am working on a FireRed ROM Hack and in one particular map, the use of setmaptile creates errors. This is my script:
And it is placed in the Script type '01 "setmaptile" script' in Advanced Map. But once I click save, it shows the error: AdvancedMapError(3): Cannot change byte at pos 0! Please contakt [email protected]
The last time I put this script in the game, the game crashed everytime a wild battle started. It either froze or restarted after selecting a move. I don't see any other errors occurring and the setmaptile itself works alright. And backup files of the ROM without the setmaptile script also works perfectly. So I am suspecting that the setmaptile script is the culprit.
Can someone tell me what to do? Thanks in advanced. Also, I am a bit of noob in scripting.
I am working on a FireRed ROM Hack and in one particular map, the use of setmaptile creates errors. This is my script:
Spoiler:
#dynamic 0xA061A9
#org @main
checkflag 0x612
if 0x1 call @set
end
#org @set
setmaptile 0x39 0xC 0x91 0x0
return
#org @main
checkflag 0x612
if 0x1 call @set
end
#org @set
setmaptile 0x39 0xC 0x91 0x0
return
And it is placed in the Script type '01 "setmaptile" script' in Advanced Map. But once I click save, it shows the error: AdvancedMapError(3): Cannot change byte at pos 0! Please contakt [email protected]
The last time I put this script in the game, the game crashed everytime a wild battle started. It either froze or restarted after selecting a move. I don't see any other errors occurring and the setmaptile itself works alright. And backup files of the ROM without the setmaptile script also works perfectly. So I am suspecting that the setmaptile script is the culprit.
Can someone tell me what to do? Thanks in advanced. Also, I am a bit of noob in scripting.