The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Basic Scripting Trouble

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 April 23rd, 2016 (5:31 AM). Edited April 23rd, 2016 by Coconutteh.
Coconutteh Coconutteh is offline
 
Join Date: Nov 2013
Location: USA
Gender: Male
Nature: Naive
Posts: 59
Hi! I've been lurking on these forums for a long time now, and most of the tutorials have been incredibly helpful in building my rom hack; but I keep running across an issue with what I'm currently working on.
Rom: Firered 1.0 BPRE
Base: MrDS
Tools: Advancemap 1.92, XSE 1.11, VBA

So what's happening is that when I try to insert a script into my game, everything debugs and compiles correctly, and I can assign it to an NPC unit in AMap, but then when I load the game in VBA to test out the NPC, I go up to them, talk, and the game freezes. Music stills plays, but both characters lock and don't do anything further. No text is displayed.
I tried to include two pictures from AMap and XSE, but I haven't hit 5 posts yet. I apologize; as soon as I hit that limit I will put the pictures here as well.
The script doesn't look like what I originally typed in before I compiled it - is that normal? I do a lot of map and pokedex editing but I've never scripted much before, and I can't seem to get it working. I've tried different offsets, reloading the game, etc.

Code:
#dynamic 0x820000
#org @start1
lock
faceplayer
msgbox @talk1 0x6
release
end

#org @talk1
= "Stuff about science yadayadayada."
Attached Images
File Type: png XSEPic.png‎ (120.2 KB, 4 views) (Save to Dropbox)
File Type: png AMap Pic.png‎ (258.9 KB, 4 views) (Save to Dropbox)
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 23rd, 2016 (11:16 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
#dynamic 0x8740000
#org @start1
lock
faceplayer
msgbox @talk1 0x6
release
end

#org @talk1
= "Stuff about science yadayadayada."

Try that. If it doesn't work, then we'll need screenies to see exactly what you're doing.
__________________
...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 23rd, 2016 (12:28 PM).
Coconutteh Coconutteh is offline
 
Join Date: Nov 2013
Location: USA
Gender: Male
Nature: Naive
Posts: 59
Somehow, that worked!

Was I using an offset that was already in use? I used the FSF like the one tutorial showed in order to get the offset but I couldn't figure out what the problem was.

Also, thank you!
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:08 AM.