Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug build target #4664

Closed
wants to merge 70 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
bef2fca
inital port of BSBob's map pop-ups
Jan 10, 2024
143332e
update readme
Jan 10, 2024
499354d
fix performance issues, add config for alpha blend and 24 hour time, …
Jan 15, 2024
c0fe25c
forgot to remove gif as well
Jan 15, 2024
8041200
clean up extra space in graphics.c
Jan 15, 2024
6d2a869
add better support for theming, rename a few things to match vanilla
Jan 15, 2024
f67c012
fix dumb rtc mistake, disable blending when the weather conflicts wit…
Jan 24, 2024
5530eb7
merge with pret
ravepossum Apr 6, 2024
8098b6e
Merge with pret
ravepossum Apr 15, 2024
b4537e2
add configuration to remove the clock entirely
ravepossum Apr 15, 2024
406f87c
first stab at making configable BW map pop-ups in expansion
ravepossum Apr 15, 2024
7e4daea
rip out preprocs in favor of inlines, fix typo/wording
ravepossum Apr 15, 2024
8499f68
remove unnecessary ubfix check
ravepossum Apr 15, 2024
46f11ca
cleanup for bw theme
ravepossum Apr 15, 2024
a7701dd
fix BW theme table names
ravepossum Apr 15, 2024
0620ac3
add newline to end of config file
ravepossum Apr 16, 2024
86800d2
add restore newline at end of menu.c
ravepossum Apr 16, 2024
afb66b4
preproc assets, move config to overworld config, add some antialiasin…
ravepossum May 8, 2024
00b3e29
add debug build target
u8-Salem May 30, 2024
ebf57f5
fix maybe uninitialized error
u8-Salem May 31, 2024
5031acb
add option to undef NDEBUG
u8-Salem May 31, 2024
2c158ec
debug for agbcc
u8-Salem May 31, 2024
098ff93
init instead of ignore to not break agbcc
u8-Salem May 31, 2024
29bacfc
make clean removes modern and agbcc artifacts. explicit use of -O0 ag…
u8-Salem Jun 1, 2024
92bf7de
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
fc81787
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
2d93a92
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
fc9a00e
Merge branch 'noopt' of github.com:u8-Salem/pokeemerald into noopt
u8-Salem Jun 1, 2024
e2b5a82
clean up previous mess omg
u8-Salem Jun 1, 2024
69b367e
PR feedback - 32 bit params, multiline condition formatting
ravepossum Jun 3, 2024
a14f166
remove preproc around debug menus
u8-Salem Jun 4, 2024
2180493
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
db12b18
clean up previous mess omg
u8-Salem Jun 1, 2024
f084b56
remove preproc around debug menus
u8-Salem Jun 4, 2024
9a42cc3
Merge branch 'noopt' of github.com:u8-Salem/pokeemerald into noopt
u8-Salem Jun 4, 2024
e2d933b
Merge branch 'upcoming' into noopt
u8-Salem Jun 4, 2024
7fd0239
Rampage moves always confuse on final turn (#4722)
Sneed69 Jun 5, 2024
8e15603
Fix center crash (#4725)
Bassoonian Jun 5, 2024
d0a8e9f
Use AI_DATA->abilities in more places (#4729)
Sneed69 Jun 6, 2024
7f5afc2
Apply suggestions from code review
u8-Salem Jun 6, 2024
5770446
Update Makefile
u8-Salem Jun 6, 2024
dad462b
Update field_control_avatar.c
u8-Salem Jun 6, 2024
1241cbe
FIx mummy and lingering aroma abilities (#4731)
Sneed69 Jun 7, 2024
8b09ef0
Merge branch '_RHH/master' into _RHH/upcoming
AsparagusEduardo Jun 7, 2024
fa81861
Add newer generation Heal Bell interactions with Soundproof (#4732)
Sneed69 Jun 7, 2024
0a049ea
Add followers to readme & update migration script readme (#4719)
Bassoonian Jun 7, 2024
78f1da4
Adds 1 vs 2 macro (#4741)
AlexOn1ine Jun 8, 2024
d83f90d
Tera Shell AI calcs (#4742)
AlexOn1ine Jun 8, 2024
650127e
clean and generate src/data/map_group_count.h (#4727)
rayrobdod Jun 9, 2024
bbc0523
Make Pokémon Sprite Visualizer name official (#4745)
Bassoonian Jun 9, 2024
7df0219
BW2 Style Map Pop-Ups (#4396)
AsparagusEduardo Jun 9, 2024
911af21
Merge remote-tracking branch 'ravepossum/bsbob_map_popups' into _RHH/…
AsparagusEduardo Jun 9, 2024
43e4835
Fix conflicts with RavePossum's standalone BW pop up (#4752)
AlexOn1ine Jun 9, 2024
e68abd0
add debug build target
u8-Salem May 30, 2024
8b59a02
fix maybe uninitialized error
u8-Salem May 31, 2024
52438c3
add option to undef NDEBUG
u8-Salem May 31, 2024
5d0f8bc
debug for agbcc
u8-Salem May 31, 2024
007c467
init instead of ignore to not break agbcc
u8-Salem May 31, 2024
2950f4d
make clean removes modern and agbcc artifacts. explicit use of -O0 ag…
u8-Salem Jun 1, 2024
b7c195a
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
e5d4827
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
e325c79
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
83a69d9
clean up previous mess omg
u8-Salem Jun 1, 2024
49e0dd4
remove preproc around debug menus
u8-Salem Jun 4, 2024
95ce876
automatically enable debug menu when building for debug
u8-Salem Jun 1, 2024
fad12d6
clean up previous mess omg
u8-Salem Jun 1, 2024
3e56417
Apply suggestions from code review
u8-Salem Jun 6, 2024
d2f1af4
Update Makefile
u8-Salem Jun 6, 2024
a0544a2
Update field_control_avatar.c
u8-Salem Jun 6, 2024
77870d0
Merge branch 'noopt' of github.com:u8-Salem/pokeemerald into noopt
u8-Salem Jun 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 50 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ MODERN ?= 1
TEST ?= 0
ANALYZE ?= 0
UNUSED_ERROR ?= 0
DEBUG ?= 0

ifeq (agbcc,$(MAKECMDGOALS))
MODERN := 0
Expand All @@ -53,6 +54,10 @@ ifeq (check,$(MAKECMDGOALS))
TEST := 1
endif

ifeq (debug,$(MAKECMDGOALS))
DEBUG := 1
endif

# use arm-none-eabi-cpp for macOS
# as macOS's default compiler is clang
# and clang's preprocessor will warn on \u
Expand Down Expand Up @@ -89,10 +94,15 @@ SYM = $(ROM:.gba=.sym)
TEST_OBJ_DIR_NAME_MODERN := build/modern-test
TEST_OBJ_DIR_NAME_AGBCC := build/test

DEBUG_OBJ_DIR_NAME_MODERN := build/modern-debug
DEBUG_OBJ_DIR_NAME_AGBCC := build/debug

ifeq ($(MODERN),0)
TEST_OBJ_DIR_NAME := $(TEST_OBJ_DIR_NAME_AGBCC)
DEBUG_OBJ_DIR_NAME := $(DEBUG_OBJ_DIR_NAME_AGBCC)
else
TEST_OBJ_DIR_NAME := $(TEST_OBJ_DIR_NAME_MODERN)
DEBUG_OBJ_DIR_NAME := $(DEBUG_OBJ_DIR_NAME_MODERN)
endif
TESTELF = $(ROM:.gba=-test.elf)
HEADLESSELF = $(ROM:.gba=-test-headless.elf)
Expand Down Expand Up @@ -120,14 +130,14 @@ ASFLAGS := -mcpu=arm7tdmi --defsym MODERN=$(MODERN)

ifeq ($(MODERN),0)
CC1 := tools/agbcc/bin/agbcc$(EXE)
override CFLAGS += -mthumb-interwork -Wimplicit -Wparentheses -Werror -O2 -fhex-asm -g
override CFLAGS += -mthumb-interwork -Wimplicit -Wparentheses -Werror -fhex-asm
ROM := $(ROM_NAME)
OBJ_DIR := $(OBJ_DIR_NAME)
LIBPATH := -L ../../tools/agbcc/lib
LIB := $(LIBPATH) -lgcc -lc -L../../libagbsyscall -lagbsyscall
else
CC1 = $(shell $(PATH_MODERNCC) --print-prog-name=cc1) -quiet
override CFLAGS += -mthumb -mthumb-interwork -O2 -mabi=apcs-gnu -mtune=arm7tdmi -march=armv4t -fno-toplevel-reorder -Wno-pointer-to-int-cast -std=gnu17 -Werror -Wall -Wno-strict-aliasing -Wno-attribute-alias -Woverride-init
override CFLAGS += -mthumb -mthumb-interwork -mabi=apcs-gnu -mtune=arm7tdmi -march=armv4t -fno-toplevel-reorder -Wno-pointer-to-int-cast -std=gnu17 -Werror -Wall -Wno-strict-aliasing -Wno-attribute-alias -Woverride-init
ifeq ($(ANALYZE),1)
override CFLAGS += -fanalyzer
endif
Expand All @@ -143,19 +153,37 @@ LIBPATH := -L "$(dir $(shell $(PATH_MODERNCC) -mthumb -print-file-name=libgcc.a)
LIB := $(LIBPATH) -lc -lnosys -lgcc -L../../libagbsyscall -lagbsyscall
endif

ifeq ($(DEBUG),1)
ifeq ($(MODERN),1)
override CFLAGS += -Og -g
else
override CFLAGS += -O1 -g
endif
else
override CFLAGS += -O2
endif

ifeq ($(TESTELF),$(MAKECMDGOALS))
TEST := 1
endif

ifeq ($(TEST),1)
OBJ_DIR := $(TEST_OBJ_DIR_NAME)
endif
ifeq ($(DEBUG),1)
OBJ_DIR := $(DEBUG_OBJ_DIR_NAME)
endif


CPPFLAGS := -iquote include -iquote $(GFLIB_SUBDIR) -Wno-trigraphs -DMODERN=$(MODERN) -DTESTING=$(TEST)
ifneq ($(MODERN),1)
CPPFLAGS += -I tools/agbcc/include -I tools/agbcc -nostdinc -undef
endif

ifeq ($(DEBUG),1)
CPPFLAGS += -DDEBUG_TARGET
endif

SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
GFX := tools/gbagfx/gbagfx$(EXE)
AIF := tools/aif2pcm/aif2pcm$(EXE)
Expand Down Expand Up @@ -191,15 +219,15 @@ MAKEFLAGS += --no-print-directory
# Secondary expansion is required for dependency variables in object rules.
.SECONDEXPANSION:

.PHONY: all rom clean compare tidy tools check-tools mostlyclean clean-tools clean-check-tools $(TOOLDIRS) $(CHECKTOOLDIRS) libagbsyscall agbcc modern tidymodern tidynonmodern check history
.PHONY: all rom clean compare tidy tools check-tools mostlyclean clean-tools clean-check-tools $(TOOLDIRS) $(CHECKTOOLDIRS) libagbsyscall agbcc modern tidymodern tidynonmodern check history debug

infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst __SPACE__, ,$(line))))

# Build tools when building the rom
# Disable dependency scanning for clean/tidy/tools
# Use a separate minimal makefile for speed
# Since we don't need to reload most of this makefile
ifeq (,$(filter-out all rom compare agbcc modern check libagbsyscall syms $(TESTELF),$(MAKECMDGOALS)))
ifeq (,$(filter-out all rom compare agbcc modern check libagbsyscall syms $(TESTELF) debug,$(MAKECMDGOALS)))
$(call infoshell, $(MAKE) -f make_tools.mk)
else
NODEP ?= 1
Expand Down Expand Up @@ -291,17 +319,17 @@ clean-tools:
clean-check-tools:
@$(foreach tooldir,$(CHECKTOOLDIRS),$(MAKE) clean -C $(tooldir);)

mostlyclean: tidynonmodern tidymodern tidycheck
mostlyclean: tidynonmodern tidymodern tidycheck tidydebug
find sound -iname '*.bin' -exec rm {} +
rm -f $(MID_SUBDIR)/*.s
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.rl' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
rm -f $(DATA_ASM_SUBDIR)/layouts/layouts.inc $(DATA_ASM_SUBDIR)/layouts/layouts_table.inc
rm -f $(DATA_ASM_SUBDIR)/maps/connections.inc $(DATA_ASM_SUBDIR)/maps/events.inc $(DATA_ASM_SUBDIR)/maps/groups.inc $(DATA_ASM_SUBDIR)/maps/headers.inc
rm -f $(DATA_ASM_SUBDIR)/maps/connections.inc $(DATA_ASM_SUBDIR)/maps/events.inc $(DATA_ASM_SUBDIR)/maps/groups.inc $(DATA_ASM_SUBDIR)/maps/headers.inc $(DATA_SRC_SUBDIR)/map_group_count.h
find $(DATA_ASM_SUBDIR)/maps \( -iname 'connections.inc' -o -iname 'events.inc' -o -iname 'header.inc' \) -exec rm {} +
rm -f $(AUTO_GEN_TARGETS)
@$(MAKE) clean -C libagbsyscall

tidy: tidynonmodern tidymodern tidycheck
tidy: tidynonmodern tidymodern tidycheck tidydebug

tidynonmodern:
rm -f $(ROM_NAME) $(ELF_NAME) $(MAP_NAME)
Expand All @@ -317,6 +345,10 @@ tidycheck:
rm -rf $(TEST_OBJ_DIR_NAME_AGBCC)


tidydebug:
rm -rf $(DEBUG_OBJ_DIR_NAME_MODERN)
rm -rf $(DEBUG_OBJ_DIR_NAME_AGBCC)

ifneq ($(MODERN),0)
$(C_BUILDDIR)/berry_crush.o: override CFLAGS += -Wno-address-of-packed-member
endif
Expand Down Expand Up @@ -375,6 +407,15 @@ ifeq ($(DINFO),1)
override CFLAGS += -g
endif

ifeq ($(NOOPT),1)
override CFLAGS := $(filter-out -O1 -Og -O2,$(CFLAGS))
override CFLAGS += -O0
endif

ifeq ($(DPRINT),1)
override CPPFLAGS += -DDEBUG_TARGET
endif

# The dep rules have to be explicit or else missing files won't be reported.
# As a side effect, they're evaluated immediately instead of when the rule is invoked.
# It doesn't look like $(shell) can be deferred so there might not be a better way.
Expand Down Expand Up @@ -513,6 +554,8 @@ agbcc: all

modern: all

debug: all

LD_SCRIPT_TEST := ld_script_test.ld

$(OBJ_DIR)/ld_script_test.ld: $(LD_SCRIPT_TEST) $(LD_SCRIPT_DEPS)
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ Based off RHH's pokeemerald-expansion v1.8.0 https://github.com/rh-hideout/pokee
- [Nature Colors](https://github.com/DizzyEggg/pokeemerald/tree/nature_color) in summary screen by @DizzyEggg
- [Dynamic Multichoice](https://github.com/SBird1337/pokeemerald/tree/feature/dynmulti) by @SBird1337
- [Saveblock Cleansing](https://github.com/ghoulslash/pokeemerald/tree/saveblock) by @ghoulslash
- [Followers & Expanded IDs](https://github.com/aarant/pokeemerald/tree/followers-expanded-id) by @aarant
- May be disabled.
- Includes Pokémon followers like in HGSS, including interactions.
- ***Expands the amount of possible object event IDs beyond 255.***
- ***Includes an implementation of dynamic overworld palettes (DOWP).***
- **Additional features**:
- *Pokémon overworld sprites up to Generation 8.*
- *Integration with our Pokémon Sprite Visualizer, allowing users to browse through the follower sprites alongside battle sprites.*
- ***Other features***
- Pressing B while holding a Pokémon drops them like in modern games (configurable).
- Running indoors (configurable).
Expand Down
12 changes: 11 additions & 1 deletion asm/macros/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,16 @@
trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, \trainer, 0, \lose_text
.endm

@ Starts a double battle with the player against two trainers
@ Takes two trainers and defeat text for each
.macro trainerbattle_two_trainers trainer_a:req, lose_text_a:req, trainer_b:req, lose_text_b:req
.byte 0x5c
.byte TRAINER_BATTLE_TWO_TRAINERS_NO_INTRO
.2byte \trainer_a
.4byte \lose_text_a
.2byte \trainer_b
.4byte \lose_text_b
.endm

@ Starts a trainer battle using the battle information stored in RAM (usually by the scripts in trainer_battle.inc, which
@ are run by trainerbattle), and blocks script execution until the battle finishes.
Expand Down Expand Up @@ -2095,7 +2105,7 @@
setvar VAR_0x8002, \tryMultiple
special TrySpecialOverworldEvo
.endm

.macro ai_vs_ai_battle trainer1:req, trainer2:req
setflag B_FLAG_AI_VS_AI_BATTLE
setvar VAR_0x8004, \trainer1
Expand Down
3 changes: 0 additions & 3 deletions data/scripts/debug.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.if DEBUG_OVERWORLD_MENU == TRUE
Debug_MessageEnd:
waitmessage
waitbuttonpress
Expand Down Expand Up @@ -430,5 +429,3 @@ Debug_EventScript_InflictStatus1_Text_Freeze:

Debug_EventScript_InflictStatus1_Text_Frostbite:
.string "Frostbite$"

.endif
19 changes: 19 additions & 0 deletions graphics/map_popup/bw/black.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
JASC-PAL
0100
16
0 0 0
0 0 0
255 255 255
84 85 89
0 0 0
238 230 238
189 180 197
139 139 164
90 90 123
41 49 90
27 27 27
40 40 40
51 51 51
62 62 62
0 0 0
0 0 0
Binary file added graphics/map_popup/bw/bw_primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/map_popup/bw/bw_secondary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions graphics/map_popup/bw/white.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
JASC-PAL
0100
16
0 0 0
255 255 255
0 0 0
158 158 158
0 0 0
238 230 238
189 180 197
139 139 164
90 90 123
41 49 90
228 228 228
215 215 215
204 204 204
193 193 193
0 0 0
0 0 0
1 change: 1 addition & 0 deletions include/battle.h
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ struct BattleStruct
} multiBuffer;
u8 wishPerishSongState;
u8 wishPerishSongBattlerId;
u8 aiCalcInProgress:1;
u8 overworldWeatherDone:1;
u8 startingStatusDone:1;
u8 isAtkCancelerForCalledMove:1; // Certain cases in atk canceler should only be checked once, when the original move is called, however others need to be checked the twice.
Expand Down
4 changes: 4 additions & 0 deletions include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
// Ruby's actual debug build does not use the AGBPrint features.
#define NDEBUG

#ifdef DEBUG_TARGET
#undef NDEBUG
#endif

// To enable printf debugging, comment out "#define NDEBUG". This allows
Bassoonian marked this conversation as resolved.
Show resolved Hide resolved
// the various AGBPrint functions to be used. (See include/gba/isagbprint.h).
// See below for enabling different pretty printing versions.
Expand Down
1 change: 1 addition & 0 deletions include/config/battle.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
#define B_ALLY_SWITCH_FAIL_CHANCE GEN_LATEST // In Gen9, using Ally Switch consecutively decreases the chance of success for each consecutive use.
#define B_SKETCH_BANS GEN_LATEST // In Gen9+, Sketch is unable to copy more moves than in previous generations.
#define B_KNOCK_OFF_REMOVAL GEN_LATEST // In Gen5+, Knock Off removes the foe's item instead of rendering it unusable.
#define B_HEAL_BELL_SOUNDPROOF GEN_LATEST // In Gen5, Heal Bell affects all mons with Soundproof. In Gen6-8 it affects inactive mons, but not battlers. In Gen9 it always affects the user.

// Ability settings
#define B_EXPANDED_ABILITY_NAMES TRUE // If TRUE, ability names are increased from 12 characters to 16 characters.
Expand Down
18 changes: 15 additions & 3 deletions include/config/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,28 @@
#define GUARD_CONFIG_DEBUG_H

// Overworld Debug
#define DEBUG_OVERWORLD_MENU TRUE // Enables an overworld debug menu to change flags, variables, giving pokemon and more, accessed by holding R and pressing START while in the overworld by default.
#define DEBUG_OVERWORLD_MENU FALSE // Enables an overworld debug menu to change flags, variables, giving pokemon and more, accessed by holding R and pressing START while in the overworld by default.
#define DEBUG_OVERWORLD_HELD_KEYS (R_BUTTON) // The keys required to be held to open the debug menu.
#define DEBUG_OVERWORLD_TRIGGER_EVENT pressedStartButton // The event that opens the menu when holding the key(s) defined in DEBUG_OVERWORLD_HELD_KEYS.
#define DEBUG_OVERWORLD_IN_MENU FALSE // Replaces the overworld debug menu button combination with a start menu entry (above Pokédex).

// Battle Debug Menu
#define DEBUG_BATTLE_MENU TRUE // If set to TRUE, enables a debug menu to use in battles by pressing the Select button.
#define DEBUG_BATTLE_MENU FALSE // If set to TRUE, enables a debug menu to use in battles by pressing the Select button.
#define DEBUG_AI_DELAY_TIMER FALSE // If set to TRUE, displays the number of frames it takes for the AI to choose a move. Replaces the "What will PKMN do" text. Useful for devs or anyone who modifies the AI code and wants to see if it doesn't take too long to run.

// Pokémon Debug
#define DEBUG_POKEMON_MENU TRUE // Enables a debug menu for pokemon sprites and icons, accessed by pressing SELECT in the summary screen.
#define DEBUG_POKEMON_SPRITE_VISUALIZER FALSE // Enables a debug menu for Pokémon sprites and icons, accessed by pressing Select in the summary screen.

// Automatically enable all debug menus if building with debug target
#ifdef DEBUG_TARGET
#undef DEBUG_OVERWORLD_MENU
#define DEBUG_OVERWORLD_MENU TRUE

#undef DEBUG_BATTLE_MENU
#define DEBUG_BATTLE_MENU TRUE

#undef DEBUG_POKEMON_SPRITE_VISUALIZER
#define DEBUG_POKEMON_SPRITE_VISUALIZER TRUE
#endif

#endif // GUARD_CONFIG_DEBUG_H
18 changes: 18 additions & 0 deletions include/config/overworld.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,22 @@

#define BATTLE_PYRAMID_RANDOM_ENCOUNTERS FALSE // If set to TRUE, battle pyramid Pokemon will be generated randomly based on the round's challenge instead of hardcoded in src/data/battle_frontier/battle_pyramid_level_50_wild_mons.h (or open_level_wild_mons.h)

// Map pop-up config
#define OW_POPUP_GENERATION GEN_3 // Different generations display location names in overworld pop-ups differently.
// Only choies are currently GEN_3 and GEN_5, all others will default to Gen3 pop-ups.

// Gen5 map pop-up config
// Constants
#define OW_POPUP_BW_TIME_NONE 0 // Don't show the time
#define OW_POPUP_BW_TIME_12_HR 1 // Use 12 hour (AM/PM) time
#define OW_POPUP_BW_TIME_24_HR 2 // Use 24 hour time

#define OW_POPUP_BW_COLOR_BLACK 0 // Black pop-up from B2
#define OW_POPUP_BW_COLOR_WHITE 1 // White pop-up from W2

// Configuration
#define OW_POPUP_BW_COLOR OW_POPUP_BW_COLOR_BLACK // B2W2 use different colors for their map pop-ups.
#define OW_POPUP_BW_TIME_MODE OW_POPUP_BW_TIME_NONE // Determines what type of time is shown.
#define OW_POPUP_BW_ALPHA_BLEND FALSE // Enables alpha blending/transparency for the pop-ups. Mainly intended to be used with the black color option.

#endif // GUARD_CONFIG_OVERWORLD_H
1 change: 1 addition & 0 deletions include/constants/battle_setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
#define TRAINER_BATTLE_SET_TRAINER_A 10
#define TRAINER_BATTLE_SET_TRAINER_B 11
#define TRAINER_BATTLE_HILL 12
#define TRAINER_BATTLE_TWO_TRAINERS_NO_INTRO 13

#endif // GUARD_CONSTANTS_BATTLE_SETUP_H
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#ifndef GUARD_CONSTANTS_POKEMON_DEBUG_H
#define GUARD_CONSTANTS_POKEMON_DEBUG_H
#ifndef GUARD_CONSTANTS_POKEMON_SPRITE_VISUALIZER_H
#define GUARD_CONSTANTS_POKEMON_SPRITE_VISUALIZER_H

//Defines
#define DEBUG_MON_BACK_X 62
#define DEBUG_MON_BACK_Y 80
#define DEBUG_ICON_X 224
#define DEBUG_ICON_Y 144
#define DEBUG_MON_SHINY 0
#define DEBUG_MON_NORMAL 9
#define DEBUG_FOLLOWER_X 176
#define DEBUG_FOLLOWER_Y 128
#define VISUALIZER_MON_BACK_X 62
#define VISUALIZER_MON_BACK_Y 80
#define VISUALIZER_ICON_X 224
#define VISUALIZER_ICON_Y 144
#define VISUALIZER_FOLLOWER_X 176
#define VISUALIZER_FOLLOWER_Y 128

#define MODIFY_DIGITS_MAX 4
#define MODIFY_DIGITS_ARROW_X 129
Expand Down Expand Up @@ -52,4 +50,4 @@
#define MAP_BATTLE_SCENE_KYOGRE 12
#define MAP_BATTLE_SCENE_RAYQUAZA 13

#endif // GUARD_CONSTANTS_POKEMON_DEBUG_H
#endif // GUARD_CONSTANTS_POKEMON_SPRITE_VISUALIZER_H
1 change: 1 addition & 0 deletions include/field_weather.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void SetWeatherScreenFadeOut(void);
void SetWeatherPalStateIdle(void);
void PreservePaletteInWeather(u8 preservedPalIndex);
void ResetPreservedPalettesInWeather(void);
bool32 IsWeatherAlphaBlend(void);

// field_weather_effect.c
void Clouds_InitVars(void);
Expand Down
6 changes: 3 additions & 3 deletions include/list_menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ struct ListMenuTemplate
const struct ListMenuItem *items;
void (* moveCursorFunc)(s32 itemIndex, bool8 onInit, struct ListMenu *list);
void (* itemPrintFunc)(u8 windowId, u32 itemId, u8 y);
u16 totalItems:12;
u16 maxShowed:12;
u16 textNarrowWidth:8;
u32 totalItems:12;
u32 maxShowed:12;
u32 textNarrowWidth:8;
u8 windowId;
u8 header_X;
u8 item_X;
Expand Down
Loading
Loading