Script Help Thread (DO NOT REQUEST SCRIPTS) Page 360

Started by HackMew December 20th, 2008 5:10 AM
  • 626078 views
  • 9682 replies
Female
Seen November 8th, 2015
Posted July 17th, 2015
61 posts
9.6 Years
Okay, so the pointer to Cyndaquil script is back to normal (and so is its script, right) ?
Does the problem only occur with Cyndaquil event?

All I can pick up from this is that you have either programmed something wrong (with asm) yourself, or some data for example in rom bank 0 has been edited by an accident.

Edit:
Sounds like some "table handler" isn't doing the job right. Instead of loading some 16-bit value in little endian, you'll get it in big endian instead. If you can fix the problem by debugging, good. But if not, you can also try tracking down the bug with ips files (especially if you have kept backups). If you haven't kept regular backups, this method is pretty useless though. I really advise keeping backups though - I have almost 1000 copies of Dark Energy in my computer (with version numbers at the end of their names).

P.S
Just as interesting note, the freezing during that script happens due to a thing which is called "stack overflow". It's a common programming error especially when trying to implement a program, or part of it, with recursion.
Oh, it might have overflowed... anyways, it was apparently a corrupt save file. The save file had the data from last time it was changed to 4070, so it didn't revert back to 40C6 after the changes.

Problem is fixed.

The Vocaloids battling with Pokemon? What could go wrong?
http://www.youtube.com/watch?v=xI8YOOHlEXQ
Po pi po! (Pokemon Gold music import)
Check out my channel for more!

Sniper

ふゆかい

Male
Philippines
Seen August 9th, 2016
Posted June 5th, 2016
1,412 posts
9.5 Years
How can I remove the gender option in the beginning of FireRed where Oak ask yuour gender?
This should be on the simple questions thread. But here's your answer.
You should go to the Resources and find Diegoisawesome's force gender patch.


GreyVirgo

•=ØInfinityØ=•

Male
With Miley...... Twerking!
Seen February 4th, 2016
Posted December 21st, 2013
226 posts
9.6 Years
How can I remove the gender option in the beginning of FireRed where Oak ask yuour gender?
Here is a link to the patch: http://www.mediafire.com/download/wwb0cujuyy7wt7t/Skip+Gender+Choice.ips

Credit to Diegoisawesome
Found on romhack.me
Pair: Saturnus

Other Forums Im In:

EGC Account: Grey
PHO Account: XLR8
LV Account: Grey

Contact: PM or VM

"I love making out with lamps!" - Nigahiga

Aethestode

Hacker

Male
Seen October 5th, 2022
Posted October 25th, 2020
1,700 posts
15.4 Years
Here is a link to the patch: http://www.mediafire.com/download/wwb0cujuyy7wt7t/Skip+Gender+Choice.ips

Credit to Diegoisawesome
Found on romhack.me
Can I patch this over a game that I have been working over for like almost a year already? Like it won't cause glitches, right?

Name: Sinep
Adopt one yourself! @Pokémon Orphanage
Female
Seen November 8th, 2015
Posted July 17th, 2015
61 posts
9.6 Years
Can I patch this over a game that I have been working over for like almost a year already? Like it won't cause glitches, right?
A patch only fixes part of the code relevant to any changes on a ROM, so it's singled out from anything else. You're only patching a piece of that data to your ROM, a patch is not an entire ROM.

Also, glitches can occur only if the patcher patches a ROM that has more changes than what they want the patch to be, which can cause problems if the other changes transfer to the patch.

But really, I doubt a professional patch is going to be an issue, not one with high use, praise, and feedback.

The Vocaloids battling with Pokemon? What could go wrong?
http://www.youtube.com/watch?v=xI8YOOHlEXQ
Po pi po! (Pokemon Gold music import)
Check out my channel for more!
Seen January 1st, 2016
Posted May 16th, 2014
5 posts
9.7 Years
Why every script I add to game is freezing the game?
This is really frustrating when I talk to normal trainer and the game freezes!!!
Please help!!!
Game: Pokemon Fire Red
Type: Every Script
Editor: Notepad, Poket Script, Advance Map
Script:
Spoiler:
For example
#org $start
trainerbattle 0 0x001 $before $after
message $beaten
boxset 6
release
end

#org $before
$before 1 = Elo Elo 320!

#org $after
$after 1 = 2/10!

#org $beaten
$beaten 1 = Dobre walczenie!

JordanB500

Former Pokemon League Champion

Age 36
Male
Independence MO
Seen October 31st, 2022
Posted October 24th, 2022
100 posts
15.3 Years
after browsing through a bunch of unneeded tutorials i found a better solution a lot of the script is different but it still doesnt work for instance if i have 10 ultra balls it askes me if i want a masterball if i say yes it gives me one and removes 10 if i have 10 or more in my inventory if i choose no its the same thing and even if i dont have 10 it still gives the same response
Spoiler:
'---------------
#org 0x7410EF
lock
faceplayer
checkitem 0x2 0xA
if 0x0 goto 0x885D69B
preparemsg 0x885D5B2 '"Oh, You have ten Ultra Balls.\nIf ..."
callstd 0x5
release
end

'---------------
#org 0x85D69B
lock
faceplayer
preparemsg 0x88699F4 '"Oh, you... dont have ten Ultra Bal..."
callstd 0x6
release
end


'---------
' Strings
'---------
#org 0x85D5B2
= Oh, You have ten Ultra Balls.\nIf you want i can trade you a MasterBall\lfor ten of your UltraBalls...\pWhat do you say?

#org 0x8699F4
= Oh, you... dont have ten Ultra Balls!?\nCome back when you get ten!!




Male
Seen January 4th, 2015
Posted May 28th, 2014
124 posts
10.2 Years
Here's your fixed stuff dude

Spoiler:
#dynamic 0x800000
#org @start '----gonna repoint the script now :P
lock
faceplayer
checkitem 0x2 0xA
if 0x4 goto @youhave '----0x4 means: if bigger or equal ;)
preparemsg 0x88699F4 '"Oh, you... dont have ten Ultra Bal..."
callstd 0x6
release
end

'---------------
#org @youhave
preparemsg 0x885D5B2
callstd 0x5
compare 0x800D 0x1
if 0x1 call @yes
release
end

#org @yes
removeitem 0x2 0xA
giveitem 0x1 0x1 0x0 0x0 0x0
return

'---------
' Strings
'---------
#org 0x85D5B2
= Oh, You have ten Ultra Balls.\nIf you want i can trade you a MasterBall\lfor ten of your UltraBalls...\pWhat do you say?

#org 0x8699F4
= Oh, you... dont have ten Ultra Balls!?\nCome back when you get ten!!

Rezordaxx

Asks many questions!

Age 24
Male
The Netherlands
Seen January 15th, 2017
Posted June 17th, 2015
290 posts
9.7 Years
Here's your fixed stuff dude

Spoiler:
#dynamic 0x800000
#org @start '----gonna repoint the script now :P
lock
faceplayer
checkitem 0x2 0xA
if 0x4 goto @youhave '----0x4 means: if bigger or equal ;)
preparemsg 0x88699F4 '"Oh, you... dont have ten Ultra Bal..."
callstd 0x6
release
end

'---------------
#org @youhave
preparemsg 0x885D5B2
callstd 0x5
compare 0x800D 0x1
if 0x1 call @yes
release
end

#org @yes
removeitem 0x2 0xA
giveitem 0x1 0x1 0x0 0x0 0x0
return

'---------
' Strings
'---------
#org 0x85D5B2
= Oh, You have ten Ultra Balls.\nIf you want i can trade you a MasterBall\lfor ten of your UltraBalls...\pWhat do you say?

#org 0x8699F4
= Oh, you... dont have ten Ultra Balls!?\nCome back when you get ten!!
Why the preparemsg and the callstd aint nobody got time for that its kind of useless in my eyes

Callstd is just 0x(5) (6) prepare message is just message...

My hack

JordanB500

Former Pokemon League Champion

Age 36
Male
Independence MO
Seen October 31st, 2022
Posted October 24th, 2022
100 posts
15.3 Years
as i said earlier its what i found on a tutorial somewhere and i already have offsets there is no reason to make new ones and i also wanted the script to say something else if you choose yes of course i guess i could do that myself

Edit " i used a slightly modified "fixed Stuff" and it looks liek this
Spoiler:
'---------------
#org 0x7410EF
lock
faceplayer
checkitem 0x2 0xA
if 0x4 goto 0x885D69B
preparemsg 0x88699F4 '"Oh, you... dont have ten Ultra Bal..."
callstd 0x6
release
end

'---------------
#org 0x85D69B
preparemsg 0x885D5B2 '"Oh, You have ten Ultra Balls.\nIf ..."
callstd 0x5
compare lastresult 1
if 0x1 call 0x86D1560
release
end

'---------------
#org 0x6D1560

removeitem 0x2 0xA
giveitem 0x1 0x1 MSG_OBTAIN
preparemsg 0x86CDE68 '"Smart Choice!!"
callstd 0x6
return


'---------
' Strings
'---------
#org 0x8699F4
= Oh, you... dont have ten Ultra Balls!?\nCome back when you get ten!!

#org 0x85D5B2
= Oh, You have ten Ultra Balls.\nIf you want i can trade you a MasterBall\lfor ten of your UltraBalls...\pWhat do you say?

#org 0x6CDE68
= Smart Choice!!


now every time i talk to the guy 10 ultra balls or not he tells me that i have 10 or he will tell me i dont have ten when i do its random wtf?

also i tried a new script with sprite number 4 who is it ive never seen it before in the games hes a really big guy almost the size of the legendary pokemon sprites its wierd after interacting with it and going to a menu it makes me take control of him instead of my character!? and wont let me leave an area




Rezordaxx

Asks many questions!

Age 24
Male
The Netherlands
Seen January 15th, 2017
Posted June 17th, 2015
290 posts
9.7 Years
as i said earlier its what i found on a tutorial somewhere and i already have offsets there is no reason to make new ones and i also wanted the script to say something else if you choose yes of course i guess i could do that myself
Spoiler:
#dynamic 0x800000
#org @start '----gonna repoint the script now
lock
faceplayer
checkitem 0x2 0xA
if 0x4 goto @youhave '----0x4 means: if bigger or equal
preparemsg 0x88699F4 '"Oh, you... dont have ten Ultra Bal..."
callstd 0x6
release
end

'---------------
#org @youhave
preparemsg 0x885D5B2
callstd 0x5
compare 0x800D 0x1
if 0x1 call @yes
Message @no 0x6
release
end

#org @yes
removeitem 0x2 0xA
giveitem 0x1 0x1 0x0 0x0 0x0
return

'---------
' Strings
'---------
#org 0x85D5B2
= Oh, You have ten Ultra Balls.\nIf you want i can trade you a MasterBall\lfor ten of your UltraBalls...\pWhat do you say?

#org 0x8699F4
= Oh, you... dont have ten Ultra Balls!?\nCome back when you get ten!!

#org @no
= Well thats too bad


Then use this

My hack

Danny0317

Fluorite's back, brah

Age 23
Male
Seen February 19th, 2021
Posted March 11th, 2017
1,067 posts
10 Years
Hello again :]

Is it possible, in FR, to create a double Wild Pokemon battle, and/or a double Wild Pokemon + Trainer battle?
Yes, but you have to be an ASM genius to do so.

EDIT: This doesn't belong in this thread. You would have to go to the Simple Question and Answers thread.

Rezordaxx

Asks many questions!

Age 24
Male
The Netherlands
Seen January 15th, 2017
Posted June 17th, 2015
290 posts
9.7 Years
Yes, but you have to be an ASM genius to do so.

EDIT: This doesn't belong in this thread. You would have to go to the Simple Question and Answers thread.
Well if you need to be an ASM genius it isnt a simple question either haha

My hack
Seen September 12th, 2015
Posted December 23rd, 2014
30 posts
9.7 Years
This may help you: http://www.pokecommunity.com/showthread.php?t=205651
Its still buggy though.
Although a few people have mentioned this is the wrong thread, I feel bad not to thank people for replies. Ive been looking into ASM for about 7 hours straight, after school, and daaaaaamn... I hope, at some point, I will be able to contribute and bring that thread back to the spotlight.. We'll see how far I can take this assembly stuff :P

Thanks a bunch for your reply :) And sorry for making this small off-topic scene :<