forked from pret/pokered
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathhow to add the move relearner&deleter.txt
executable file
·31 lines (22 loc) · 1.38 KB
/
how to add the move relearner&deleter.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
In case these files are not present already:
- Copy over the move_relearner.asm that's in the text folder
- Copy over the move_deleter.asm that's in the text folder
- Copy over the move_relearner.asm that's in the scripts folder
- Copy over the move_deleter.asm that's in the scripts folder
The master and lite branches have undergone an organizational change so that the move relearn/delete nps can be added via tags in the makefile.
Open the makefile in a text editor like notepad++ and scroll down to the assembler tags.
You can tell you're in the right place because the lines start with "rgbasm -D".
You'll notice that each rom has a list of assembler tags assigned. Usually _RED or _BLUE and some others.
You can add the _MOVENPCS tag to compile the rom with code that allows for this option.
EXAMPLE: Say you wanted to compile red version with this feature.
You would modify the tags for red version from this
%_red.o: dep = $(shell tools/scan_includes $(@D)/$*.asm)
$(pokered_obj): %_red.o: %.asm $$(dep)
rgbasm -D _RED -h -o $@ $*.asm
To this
%_red.o: dep = $(shell tools/scan_includes $(@D)/$*.asm)
$(pokered_obj): %_red.o: %.asm $$(dep)
rgbasm -D _RED -D _MOVENPCS -h -o $@ $*.asm
All code involving this feature is searchable via the _MOVENPCS tag.
This allows it to be easily differentiated from the code around it.
Utilize this if you wish to add the feature code to your own project.