The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script This should work but it doesn't (https://www.pokecommunity.com/showthread.php?t=449381)

JK0JK April 24th, 2021 10:09 AM

This should work but it doesn't
 
1 Attachment(s)
I have found a post here that has everything I was looking for: a script that would easily change your overworld sprite based on few flags and variables.
https://www.pokecommunity.com/showpost.php?p=8620314&postcount=465

Problem is... XSE doesn't want to compile it. I know there is the compiled version of the code but I don't know how to use it.

When I try to compile the script, XSE says the following: "no #org/#seek directives found"
Attachment 96765

What can I do to fix this? Apparently it works wonders but XSE is being stubborn.

Asith April 24th, 2021 10:19 AM

This is not a script. This is ASM Thumb code. You need a Thumb compiler

JK0JK April 24th, 2021 10:31 AM

Quote:

Originally Posted by Asith (Post 10343349)
This is not a script. This is ASM Thumb code. You need a Thumb compiler

W-what's the difference?

Asith April 24th, 2021 11:29 AM

Quote:

Originally Posted by JK0JK (Post 10343355)
W-what's the difference?

An xse script is just used for general, usually overworld-based game functions. There's a strongly imposed limit to what it can do, because that's all it was ever designed to do. It's high-level and easy for developers to understand, at the expense of those limitations. XSE was made to compile that code.
ASM/Thumb is low-level, and is gba machine code. That means you can do almost anything with it, but it is much harder to understand. XSE has no idea what to do with code like that, it was only designed for the predictable, easy to understand code we use in scripting. To compile ASM into your game, you need a Thumb compiler. There are a couple floating around here.
You should look up a tutorial on compiling ASM for rom hacks to better understand what you're actually doing.
This is slightly more advanced stuff (but if all you're doing is compiling other people's code, you should be fine).

JK0JK April 24th, 2021 12:07 PM

Alright, thanks
I'll look into it^^


All times are GMT -8. The time now is 9:16 AM.


Like our Facebook Page Follow us on Twitter © 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.