The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Help needed about a setmaptile error

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old March 23rd, 2020 (9:49 PM).
Entaro Ceraphenine's Avatar
Entaro Ceraphenine Entaro Ceraphenine is offline
 
Join Date: Sep 2016
Location: Katones City
Gender: Male
Nature: Quiet
Posts: 48
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:
Spoiler:
#dynamic 0xA061A9

#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.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 24th, 2020 (11:31 AM).
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Maybe try a script like this:
Spoiler:

EXAMPLE:

#dynamic 0x800000

#org @start
setmaptile 0xB 0xA 0x9 0x7
special 0x0
release
end


If you are new at scripting, try here.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 9:19 AM.