![]() |
Game freezes when this script runs
Very new to rom hacking, the error i have is that when this script is walked on the player gets locked in place. I think the game crashes, but the music keeps playing but the visuals all stop. its using pksv-ui if that helps
any help appreciated :) #org 0x8740BE6 - i have put this in the script offset '----------------------------------- checkflag 0x256 if false jump 0x8740BA5 end #org 0x8740BA5 '----------------------------------- setflag 0x256 lock msgbox 0x8740A6A callstd MSG_LOCK reappear 0x4 applymovement PLAYER 0x8740B8B applymovement 0x4 0x8740B8E msgbox 0x8740A78 callstd MSG_YESNO msgbox 0x8740AA9 callstd MSG_LOCK applymovement 0x4 0x8740B94 disappear 0x4 releaseall end #org 0x8740A6A = (speech, igonre this) #org 0x8740A78 = (speech, igonre this) #org 0x8740AA9 = (speech, igonre this) #org 0x8740B8B M (movement, igonre this) #org 0x8740B8E M (movement, igonre this) #org 0x8740B94 M (movement, igonre this) |
Try setting a variable into the tile's var number in advance map. Set the var value to 0 and then never increment it and the tile should work properly forever
|
Quote:
-do i have to set other script tiles different values per map or at all? -if i set it back to 0000 will i get the same problem? -the game now resets at the line Quote:
thanks for the help again, sorry to bother u :) edit: on doing some further research, i found out that it is only the specific person i am trying to make appear that doesnt. their movement on advance map is set to hidden and they have a person id. |
Quote:
I never use that variable inside my scripts, so I know it will always be 0, so all my permanent script tiles will be set to it. I should've mentioned earlier, but don't use a variable like 0001. It's probably used by the game for other things. Variables 0x4000 to 0x40FF (inclusive) are the safe ones to use. So yeah, to attempt to sum up, pick a permanent variable, keep its value the same forever, and put it on any permanent script tiles that are freezing the game (regardless of the map) Quote:
|
first off, thanks a bunch for the help at the first part, i understand this now
secondly, by reset i mean the rom completely restarts and im sent back to the title screen. i am still getting issues with this, is it maybe something to do with their movement number? it is currently at 0 |
Quote:
|
ok, so i think i averted the issue
i just occupied the character with something else while the script wasn't running so it looked natural. thanks for all the help though, i am eternally greatful :) |
| All times are GMT -8. The time now is 9:18 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.