The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script CFRU Mart Script

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 June 11th, 2021 (2:47 PM). Edited June 11th, 2021 by GriloKapu.
GriloKapu GriloKapu is offline
 
Join Date: Apr 2018
Posts: 20
I make a mart script with the new itens of CFRU but it is freezing in game. I checked the compiled script and the mart offset is empty.

Here's the script img

Someone can help me?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 11th, 2021 (3:52 PM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
@GriloKapu

If that string is empty after compiling, you probably didn't compile the script correctly. Have you tried any scripting tutorial?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 11th, 2021 (4:35 PM).
GriloKapu GriloKapu is offline
 
Join Date: Apr 2018
Posts: 20
That's my script:

#dynamic 0x9D38A9
#org @start
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
lock
faceplayer
preparemsg 0x81A6211 '"Olá!\nComo posso ajudá-lo? "
waitmsg
pokemart @1
msgbox 0x81A5190 MSG_KEEPOPEN '"Volte sempre! "
release
end

#org @1
#raw word 0x2A3
#raw word 0x2B0
#raw word 0x2B1
#raw word 0x2B7
#raw word 0x2B8
#raw word 0x2BE
#raw word 0x2BF
#raw word 0x2C0
#raw word 0x2C5
#raw word 0x2C6
#raw word 0x2C7
#raw word 0x2CA
#raw word 0x2CC
#raw word 0x2D2
#raw word 0x2D4
#raw word 0x2D5
#raw word 0x2D7
#raw word 0x2A4
#raw word 0xBA
#raw word 0x2A9
#raw word 0x2A8
#raw word 0x2AB
#raw word 0x2A1
#raw word 0x0
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 13th, 2021 (10:27 AM).
Mason Shu Mason Shu is offline
 
Join Date: Jun 2020
Gender: Male
Posts: 387
Quote:
Originally Posted by GriloKapu View Post
That's my script:

#dynamic 0x9D38A9
#org @start
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
lock
faceplayer
preparemsg 0x81A6211 '"Olá!\nComo posso ajudá-lo? "
waitmsg
pokemart @1
msgbox 0x81A5190 MSG_KEEPOPEN '"Volte sempre! "
release
end

#org @1
#raw word 0x2A3
#raw word 0x2B0
#raw word 0x2B1
#raw word 0x2B7
#raw word 0x2B8
#raw word 0x2BE
#raw word 0x2BF
#raw word 0x2C0
#raw word 0x2C5
#raw word 0x2C6
#raw word 0x2C7
#raw word 0x2CA
#raw word 0x2CC
#raw word 0x2D2
#raw word 0x2D4
#raw word 0x2D5
#raw word 0x2D7
#raw word 0x2A4
#raw word 0xBA
#raw word 0x2A9
#raw word 0x2A8
#raw word 0x2AB
#raw word 0x2A1
#raw word 0x0
Don’t do @1 that compiles that to offset one try like t1
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old June 13th, 2021 (11:23 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by Mason Shu View Post
Don’t do @1 that compiles that to offset one try like t1
This is completely false. @1 is formatted as a dynamic offset. When using #dynamic 0x9D38A9, XSE will compile that string to the first free space in which it fits starting from 0x9D38A9.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old June 14th, 2021 (6:10 AM).
Dr. Seuss's Avatar
Dr. Seuss Dr. Seuss is offline
Navegando en mi automóvil, hablando con la nena por el móvil 😎...
 
Join Date: Feb 2014
Location: Guatemala City
Age: 27
Gender: Male
Nature: Brave
Posts: 521
The issue is with XSE that can't compile items further than the ones originally programmed in vanilla games. I also had the issue. What I did is to write the mart scripts directly in the CFRU script files.
__________________
Graphic design is my passion...

Click on the picture to see the best hack ever created (?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old June 15th, 2021 (4:56 PM).
GriloKapu GriloKapu is offline
 
Join Date: Apr 2018
Posts: 20
How i can do that? Can you help me?
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old June 16th, 2021 (5:58 AM).
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by GriloKapu View Post
How i can do that? Can you help me?
CFRU scripting is a tad bit different from XSE. Visit the Unbound Discord server to understand CFRU scripting.
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
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 9:16 AM.