Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub

Notices
For all updates, view the main page.

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #6851    
Old May 16th, 2012 (05:49 PM).
Hideos
Beginning Trainer
 
Join Date: May 2012
Weird, I cant find a reason why it wont work for you. Try this one, I just tested it a few minutes ago using a clean copy of Emerald US 1.0. Be sure to set the person ID to 0260 while using this example.
Spoiler:
#dynamic 0xE00000

#org @start
lock
faceplayer
msgbox @text 0x6
cry 0xF9 0x0
wildbattle 0xF9 0x2 0x2E
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x260
release
end

#org @text
= LUGIA: Gyaaas!


Oh and by the way, 0xE00000 is unused by default. I dont know why your compiled script starts at 0xE0003E.
__________________

  #6852    
Old May 16th, 2012 (06:15 PM).
Hadesminion13
Beginning Trainer
 
Join Date: Apr 2009
Gender:
Alright, well I had said this before but never really thought of it as an issue, I guess it could be though...

With the exact script you gave me, when I try opening my ROM with XSE and compiling the script I get this error:

Spoiler:

Code:
Error 13 'Type mismatch' on line 8.
Missing #define or parameter.

Line: wildbattle 0xF9 0x2 0x2E


Now, usually I remedy this by adding another 0x0 at the end of wildbattle so it looks like:
wildbattle 0xF9 0x2 0x2E 0x0

That fixes the problem, but I suppose it could be adding another.

Could I somehow have an old copy of XSE? How would I check? Where could I get an updated one if this was the case? (HackMew's official download link doesn't work)

EDIT: I haven't tried adding the 0x0 and compiling then testing again because I'm waiting until I hear what you say.
__________________

Feed Me!

Adopted from Valenth
  #6853    
Old May 16th, 2012 (06:19 PM). Edited May 16th, 2012 by Hideos.
Hideos
Beginning Trainer
 
Join Date: May 2012
Looks like your XSE is outdated, same happened to vanillagfx earlier. Use the build in live update to check yours, latest version is 1.1.1. By the way, adding an extra 0x0 could be the problem since the wildbattle command has no idea how to handle the additional value.

I'm tired, post should be clear now. ヽ(´□`。)ノ
__________________

  #6854    
Old May 16th, 2012 (06:26 PM).
Hadesminion13
Beginning Trainer
 
Join Date: Apr 2009
Gender:
Well damn, o.o
I'm on 1.0.0, I couldn't even check with live update 'cause it 'couldn't connect to host' lmao.
Any idea where I can get the newest version? I just googled and found this one, but apparently versions make a HUGE difference ._.
__________________

Feed Me!

Adopted from Valenth
  #6855    
Old May 16th, 2012 (06:29 PM).
Hideos
Beginning Trainer
 
Join Date: May 2012
Sure, here you go. (My post is too short, lol.)
Attached Files
File Type: zip xse.zip‎ (880.1 KB, 22 views) (Save to Dropbox)
__________________

  #6856    
Old May 16th, 2012 (06:44 PM). Edited May 16th, 2012 by Hadesminion13.
Hadesminion13
Beginning Trainer
 
Join Date: Apr 2009
Gender:
You are... the best person... ever...
...
F*CK YES, FINALLY! :D IT FINALLY WORKS :D
Now the only thing is I think I need to do a flag check because I can do it as often as I want and the sprite keeps coming back after I move once.
Or would I need to do something else?

THANK YOU SO MUCH!!!!!
__________________

Feed Me!

Adopted from Valenth
  #6857    
Old May 16th, 2012 (10:39 PM).
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
I would also suggest using higher flags
0x2xx are very likely to be used in game.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #6858    
Old May 17th, 2012 (05:14 AM).
Hadesminion13
Beginning Trainer
 
Join Date: Apr 2009
Gender:
Rofl earlier I was told to use lower flags because high flags might be outta range
:D
And does anyone know how I can make it so Lugosi permanently disappears? Also, how can I do a flag check and say 'if its true continue, otherwise stop, release and end,' like C(++) and Java, or is this not possible? Just seem unnecessary to to this:

Code:
Checkflag 0x206
if 0x01 goto end
...

#org @end
release
end
__________________

Feed Me!

Adopted from Valenth
  #6859    
Old May 17th, 2012 (05:50 AM).
Hideos
Beginning Trainer
 
Join Date: May 2012
Quote originally posted by Hadesminion13:
Rofl earlier I was told to use lower flags because high flags might be outta range.
Yes, you can use higher flags but values like 0x2017 are not needed though. Use hidesprite 0x800F to make a specific person or sprite disappear. 0x800F is a variable which is assigned to the sprite currently being interacted with.

Here is a example for your flag check, clearflag is optional.
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x260
if 0x1 goto @end
setflag 0x260
release
end

#org @end
clearflag 0x260
release
end
__________________

  #6860    
Old May 17th, 2012 (04:10 PM). Edited May 17th, 2012 by Hadesminion13.
Hadesminion13
Beginning Trainer
 
Join Date: Apr 2009
Gender:
Alright, well after checking the flag it works properly, and I can't talk to him again... only problem is after one step he re-appears, just like before

I remember in Pokescript this would happen if you used removesprite without a flag, but I have a flag and it still does it ._. I'll try changing 0x800F (Hidesprite parameter) to my sprite's event number and see if it works. Whether or not I'll update this post and if it doesn't work then I still need help haha

EDIT: Yup, still initially disappears then reappears as soon as I take a step
EDIT2: I just realized something, if I move a sprite in AMap it stays moved and I save and try to play it, but everything is at their original positions, Lugia and both pokeballs in the back of the map.
To add to that, and I just wanna ask this here to get it over with so I don't have to bother some other people with this in a whole 'nother post or thread, when I make a new map and change the name and/or dimensions, then try and save it, it won't save. I can't make a whole new map without overwriting an already-existent one, am I just doing it wrong?

Again, sorry for the question overload, I just ran into a ton of problems all-of-the-sudden.
__________________

Feed Me!

Adopted from Valenth
  #6861    
Old May 18th, 2012 (01:10 AM). Edited May 18th, 2012 by bobbyheman.
bobbyheman
Beginning Trainer
 
Join Date: May 2012
Gender: Male
Game: FireRed
I want to have a person remain invisible until a certain event on a map.

I tried going into A-Map, then Map Headers then adding a line of code to make the sprite invisible into the "On enter screen/not menu" script, but no dice.

Script:
Spoiler:
setworldmapflag 0x890
hidesprite 0x4
checkflag 0x291
if 0x1 call @8165488
compare 0x4070 0x0
if 0x1 call @81654A8
compare 0x4070 0x1
if 0x1 call @81654A2
end


The script is just an exert of the initial script, I've bolded what I've changed.

Screenshots - Can't post urls, yet.
i.imgur DOT com/szVmr.png
i.imgur DOT com/edYIN.png

Basically, how do I get code to run whenever the player enters the map?
  #6862    
Old May 18th, 2012 (02:09 AM).
chrunch's Avatar
chrunch
Community Supporter
 
Join Date: Oct 2009
Gender: Male
Quote originally posted by bobbyheman:
Game: FireRed
I want to have a person remain invisible until a certain event on a map.

I tried going into A-Map, then Map Headers then adding a line of code to make the sprite invisible into the "On enter screen/not menu" script, but no dice.

Script:
Spoiler:
setworldmapflag 0x890
hidesprite 0x4
checkflag 0x291
if 0x1 call @8165488
compare 0x4070 0x0
if 0x1 call @81654A8
compare 0x4070 0x1
if 0x1 call @81654A2
end


The script is just an exert of the initial script, I've bolded what I've changed.

Screenshots - Can't post urls, yet.
i.imgur DOT com/szVmr.png
i.imgur DOT com/edYIN.png

Basically, how do I get code to run whenever the player enters the map?
You need a level script, have a look in the tutorials section.
  #6863    
Old May 18th, 2012 (02:51 AM).
goldenyellowcrystal's Avatar
goldenyellowcrystal
A Black Crystal of Mystery
 
Join Date: Aug 2011
Location: Aspertia City, Unova
Age: 16
Gender: Male
Nature: Relaxed
Game: Pokemon FR US 1.0
Type: BPRE
Editor: XSE 1.1.0?
Script:
Spoiler:
#dynamic 0x800000
comparefarbytetobyte 0x3005542 0x0
if 0x4 goto @closed
comparefarbytetobyte 0x3005542 0x5
if 0x3 goto @closed
goto @day
end

#org @closed
showsprite 0x6
msgbox @1 0x6
release
end

#org @day
hidesprite 0x6
end

#org @1
= I am sorry.\nWe are closed already.


I cant make the sprite disappear. Oh yeah, I installed DNS in it.
__________________
Black 2 FC: 5201 0498 7362 (Yellow)
Black FC: 1077 8979 1077 (Yellow)
  #6864    
Old May 18th, 2012 (03:16 AM). Edited May 18th, 2012 by bobbyheman.
bobbyheman
Beginning Trainer
 
Join Date: May 2012
Gender: Male
Quote originally posted by chrunch:
You need a level script, have a look in the tutorials section.
Looked into level scripts, made one. It functions, but the person doesn't disappear.

Script:
Spoiler:

#dynamic 0x800000

#org @start
lock
msgbox @string
boxset 0x6
setvar 0x5001 0x1
hidesprite 0x4
release
end

#org @string
= huzzah it worked


Edit: Also, what value range is good for person ids, flags, variables, etc?
  #6865    
Old May 18th, 2012 (01:26 PM).
Mallowigi's Avatar
Mallowigi
Beginning Trainer
 
Join Date: Aug 2010
Gender: Male
Why don't you set a flag for the person instead? This is how I do for hiding a sprite permanently then when I need to make him play a part, I call clearflag then showsprite.

Generally, I use hidesprite to hide a character after it have made its apparition, not on the level enter.

For the flags, someone told me to use from 0x1000 to 0x2000. I think that is fairly enough for a whole game.
  #6866    
Old May 18th, 2012 (06:47 PM).
vanillagfx's Avatar
vanillagfx
Togepi
 
Join Date: May 2012
Gender: Male
What scripting would this consist of? I want this guy to send out a gyrados(overworld) and for both of us to walk onto it and the pokemon swims on the water to another location?
__________________

Youtube Channel.
  #6867    
Old May 18th, 2012 (07:18 PM). Edited May 19th, 2012 by Air Lock.
Air Lock's Avatar
Air Lock
Will I come back?
Community Supporter
 
Join Date: Sep 2008
Location: California
Age: 16
Gender: Male
Nature: Jolly
Quote originally posted by vanillagfx:
What scripting would this consist of? I want this guy to send out a gyrados(overworld) and for both of us to walk onto it and the pokemon swims on the water to another location?
Advanced scripting. First you would need to place the proper events on the map, and hide the Gyarados one. Then, start your scripting. Say whatever messages you want it to say, then, use two applymovements to move the characters onto Gyarados. Then use three applymovements to move them all together. When they reach their destination, do the beginning backwards: say whatever messages you want said, then make the trainer recall their Gyarados and set a flag. If you don't know what this means, go look at a scripting tutorial. I suggest this one
here
__________________
coming soon kiddos
  #6868    
Old May 18th, 2012 (11:41 PM).
Capitalist Ness's Avatar
Capitalist Ness
 
Join Date: Jul 2008
Location: Poland
Nature: Relaxed
Does anybody have the template for Pokemon trading script?
I'll do rest myself.
  #6869    
Old May 19th, 2012 (07:26 AM).
SleepyHead_
Beginning Trainer
 
Join Date: May 2012
Gender: Male
Game: FireRed
Type: Level Script
Editor: XSE
Script:
Spoiler:
'-----------------------
#org 0x800CAF
msgbox2 0x8800CE8 '"HEEEEELP!"
callstd 0x6
release
applymovement MOVE_PLAYER 0x8800CD3
waitmovement 0x0
msgbox2 0x8800CF3 '"[player]!\nThis SPEAROW is attackin..."
callstd 0x6
setvar 0x5001 0x1
release
end


'-----------
' Movements
'-----------
#org 0x800CD3
#raw 62 'Exclamation Mark (!)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x800CE8
= HEEEEELP!

#org 0x800CF3
= [player]!\nThis SPEAROW is attacking me!\lQUICK! Go get one of the POKEMON\loff of my desk!
So, what I'm trying to do is get the player to walk up to where Oak and the Spearow are after exiting his house for the first time. The script itself will run without error, though I can't seem to get it to run as a level script, so I imagine I'm setting it up wrong.

Level script set up:
i.imgur [DOT] com/bkEaH.png

Video: screencast-o-matic [DOT] com/watch/clhqoQECu
Here you can see that the script itself works, but it isn't being executed upon entering the map as a level script should.

So, where am I messing up at?
  #6870    
Old May 19th, 2012 (08:22 AM).
Mallowigi's Avatar
Mallowigi
Beginning Trainer
 
Join Date: Aug 2010
Gender: Male
Did you compile the level script itself (the one found at 71AA78)?

I don't remember clearly, but sometimes this is the cause of the level script not working.
  #6871    
Old May 19th, 2012 (08:24 AM).
Spherical Ice's Avatar
Spherical Ice
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
Sleepy Head, you need to upgrade your version of XSE to 1.1 (click me!)

Your script will then have to be upgraded to 1.1's syntax, like so:
Code:
#dynamic 0x800000

#org @start
msgbox @string1 0x6
applymovement MOVE_PLAYER @move1
waitmovement 0x0
msgbox @string2 0x6
setvar 0x5001 0x1
release
end


'-----------
' Movements
'-----------
#org @move1
#raw 62 'Exclamation Mark (!)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org @string1
= HEEEEELP!

#org @string2
= [player]!\nThis SPEAROW is attacking me!\lQUICK! Go get one of the POKEMON\loff of my desk!
__________________
  #6872    
Old May 19th, 2012 (08:39 AM). Edited May 19th, 2012 by SleepyHead_.
SleepyHead_
Beginning Trainer
 
Join Date: May 2012
Gender: Male
Quote originally posted by Mallowigi:
Did you compile the level script itself (the one found at 71AA78)?

I don't remember clearly, but sometimes this is the cause of the level script not working.
Pulled into XSE and compiled, but no luck.

Quote originally posted by Spherical Ice:
Sleepy Head, you need to upgrade your version of XSE to 1.1
Thanks! Unfortunately, upgrading XSE did not affect my problem, although I'm sure it'll save me some headache later on.

EDIT: Haha, whoops. I had the default script in, too. I removed that from the Header menu and my script started working.

Thanks for the help, though, guys!
  #6873    
Old May 19th, 2012 (02:59 PM).
ChikoritaMudkipz's Avatar
ChikoritaMudkipz
Beginning Trainer
 
Join Date: Jun 2009
Gender: Male
So I recently downloaded a hacked fire red engine, and applied it to my already in progress hack. Needless to say it deletes all scripts already in the game, as well as some that were already in my hack (all I had to do was re insert them). For things like the strength boulders and what not I can just easily re-insert the scripts, however there's 2 scripts I currently am desperate for.

The pokemart and pokecenter scripts

I have no clue how to use these, I figure I could simply re insert the mart ones perhaps if I wanted the same items, however it would seem that the fire red engine hack I have implimented changes the way pokemon centers are done or something.

I know I'm not supposed to request scripts, which I'm not entirely doing, I'm jsut wondering how I go about implementing the correct commands to heal, and make the screen flash, set it to be a place you can respawn at, etc.

Thanks, sorry for the lack of information, I just have no where else to turn and find it very difficult to test a hack without healing or items.
__________________
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!
  #6874    
Old May 19th, 2012 (03:18 PM).
droomph's Avatar
droomph
mmm gurl that 90s
Community Supporter
 
Join Date: Sep 2011
Location: bar'jách
Age: 17
Gender: Male
Nature: Impish
Look from a clean ROM. Decompile the scripts you want on XSE or whatever you use, and then save them. Then compile them back in the ROM you want the scripts in, and use them as you like.

To make this easy for you, just choose the "decompile as pointers" setting and save it. That way you don't have to deal with the jumps and multiple scripts.

Then, if you do that, remember to record down the compiled offset!
__________________
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


  #6875    
Old May 19th, 2012 (03:49 PM).
ChikoritaMudkipz's Avatar
ChikoritaMudkipz
Beginning Trainer
 
Join Date: Jun 2009
Gender: Male
Quote originally posted by droomph:
Look from a clean ROM. Decompile the scripts you want on XSE or whatever you use, and then save them. Then compile them back in the ROM you want the scripts in, and use them as you like.

To make this easy for you, just choose the "decompile as pointers" setting and save it. That way you don't have to deal with the jumps and multiple scripts.

Then, if you do that, remember to record down the compiled offset!
thanks, I know how to do that though.
Basically I need a template of a pokemon centre healing script.
__________________
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!
Closed Thread
Quick Reply

Sponsored Links
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 06:18 PM.