TheRisingSean
Back, and better than ever
- 31
- Posts
- 9
- Years
- They/Them
- UK
- Seen Sep 5, 2023
cheers egg..!
You absolute legend you didnt need too do that! I'll add your edits to the tutorial and credit you, thank you so much holy shit
Hi, i do everything till step 9, which give this error, ill try to do the others without this and give some other errors. +
other thing the git software dont do the compiled process whit de Lunos tutorial.
Spoiler:
CONFLICT (content): Merge conflict in data/scripts/item_ball_scripts.inc
Automatic merge failed; fix conflicts and then commit the result.
USER@COMPUTER MSYS /c/pokeemerald
$ make -j2
In file included from src/pokemon.c:40:
include/constants/abilities.h:260: warning: "ABILITIES_COUNT_GEN7" redefined
260 | #define ABILITIES_COUNT_GEN7 234
|
include/constants/abilities.h:257: note: this is the location of the previous definition
257 | #define ABILITIES_COUNT_GEN7 235
|
In file included from src/battle_main.c:52:
include/constants/abilities.h:260: warning: "ABILITIES_COUNT_GEN7" redefined
260 | #define ABILITIES_COUNT_GEN7 234
|
include/constants/abilities.h:257: note: this is the location of the previous definition
257 | #define ABILITIES_COUNT_GEN7 235
|
In file included from src/pokemon.c:1400:
src/data/pokemon/level_up_learnsets.h:2: warning: "LEVEL_UP_END" redefined
2 | #define LEVEL_UP_END (0xffff)
|
In file included from include/pokemon.h:4,
from include/global.h:520,
from src/pokemon.c:1:
include/constants/pokemon.h:230: note: this is the location of the previous definition
230 | #define LEVEL_UP_END 0xFFFF
|
In file included from src/pokemon.c:40:
include/constants/abilities.h:254: syntax error before `<'
include/constants/abilities.h:261: missing white space after number `62755e250124'
src/pokemon.c:57: syntax error before `}'
In file included from src/battle_main.c:52:
include/constants/abilities.h:254: syntax error before `<'
include/constants/abilities.h:261: missing white space after number `62755e250124'
agbcc: warnings being treated as errors
In file included from src/battle_main.c:404:
src/data/text/abilities.h:461: warning: excess elements in array initializer after `gAbilityNames'
src/data/text/abilities.h:700: warning: excess elements in array initializer after `gAbilityDescriptionPointers'
make: *** [Makefile:249: build/emerald/src/battle_main.o] Fout 1 // Translation: "Error 1"
make: *** Wachten op onvoltooide taken... // Translation: "Waiting for incompleted tasks"
In file included from src/pokemon.c:1402:
src/data/pokemon/level_up_learnset_pointers.h:823: `sMeltanLevelUpLearnset' undeclared here (not in a function)
src/data/pokemon/level_up_learnset_pointers.h:823: initializer element for `gLevelUpLearnsets[808]' is not constant
src/data/pokemon/level_up_learnset_pointers.h:824: `sMelmetalLevelUpLearnset' undeclared here (not in a function)
src/data/pokemon/level_up_learnset_pointers.h:824: initializer element for `gLevelUpLearnsets[809]' is not constant
src/pokemon.c:2335: elements of array `sAlteringCaveWildMonHeldItems' have incomplete type
agbcc: warnings being treated as errors
src/pokemon.c:2337: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[0]'
src/pokemon.c:2337: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[0]'
src/pokemon.c:2338: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[1]'
src/pokemon.c:2338: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[1]'
src/pokemon.c:2339: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[2]'
src/pokemon.c:2339: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[2]'
src/pokemon.c:2340: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[3]'
src/pokemon.c:2340: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[3]'
src/pokemon.c:2341: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[4]'
src/pokemon.c:2341: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[4]'
src/pokemon.c:2342: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[5]'
src/pokemon.c:2342: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[5]'
src/pokemon.c:2343: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[6]'
src/pokemon.c:2343: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[6]'
src/pokemon.c:2344: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[7]'
src/pokemon.c:2344: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[7]'
src/pokemon.c:2345: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[8]'
src/pokemon.c:2345: warning: excess elements in struct initializer after `sAlteringCaveWildMonHeldItems[8]'
src/pokemon.c:2346: invalid use of undefined type `struct SpeciesItem'
src/pokemon.c: In function `GetWildMonTableIdInAlteringCave':
src/pokemon.c:6567: sizeof applied to an incomplete type
src/pokemon.c:6567: invalid use of undefined type `struct SpeciesItem'
src/pokemon.c:6568: invalid use of undefined type `struct SpeciesItem'
src/pokemon.c: In function `SetWildMonHeldItem':
src/pokemon.c:6603: invalid use of undefined type `struct SpeciesItem'
make: *** [Makefile:249: build/emerald/src/pokemon.o] Fout 1 // Translation: "Error 1"
static const struct SpeciesItem sAlteringCaveWildMonHeldItems[] =
{
{SPECIES_NONE, ITEM_NONE},
{SPECIES_MAREEP, ITEM_GANLON_BERRY},
{SPECIES_PINECO, ITEM_APICOT_BERRY},
{SPECIES_HOUNDOUR, ITEM_BIG_MUSHROOM},
{SPECIES_TEDDIURSA, ITEM_PETAYA_BERRY},
{SPECIES_AIPOM, ITEM_BERRY_JUICE},
{SPECIES_SHUCKLE, ITEM_BERRY_JUICE},
{SPECIES_STANTLER, ITEM_PETAYA_BERRY},
{SPECIES_SMEARGLE, ITEM_SALAC_BERRY},
};
Does anyone have an idea what caused this and how to fix this?
In file included from src/pokemon.c:40:
include/constants/abilities.h:260: warning: "ABILITIES_COUNT_GEN7" redefined
260 | #define ABILITIES_COUNT_GEN7 234
|
include/constants/abilities.h:257: note: this is the location of the previous definition
257 | #define ABILITIES_COUNT_GEN7 235
Not sure specifically, but I feel like you might have made a mistake merging some of the files.
This error (and the ones like it) are saying that you've defined ABILITIES_COUNT_GEN7 twice (in include/constants/abilities.h). And you've got two different definitions too, which is doubly-weird.Code:In file included from src/pokemon.c:40: include/constants/abilities.h:260: warning: "ABILITIES_COUNT_GEN7" redefined 260 | #define ABILITIES_COUNT_GEN7 234 | include/constants/abilities.h:257: note: this is the location of the previous definition 257 | #define ABILITIES_COUNT_GEN7 235
EDIT: The other error about "struct SpeciesItem" appears to be happening because there isn't a definition of SpeciesItem in scope. Probably a missing #include at the top of pokemon.c. You could try searching to see if a file defines "struct SpeciesItem { ... };" (stuff will be in that ... bit).
USER@COMPUTER MSYS /c/pokeemerald
$ make -j2
In file included from src/pokemon.c:1400:
src/data/pokemon/level_up_learnsets.h:2: warning: "LEVEL_UP_END" redefined
2 | #define LEVEL_UP_END (0xffff)
|
In file included from include/pokemon.h:4,
from include/global.h:520,
from src/pokemon.c:1:
include/constants/pokemon.h:230: note: this is the location of the previous definition
230 | #define LEVEL_UP_END 0xFFFF
|
arm-none-eabi-as -mcpu=arm7tdmi --defsym MODERN=0 -o build/emerald/src/battle_main.o build/emerald/src/battle_main.s
arm-none-eabi-as -mcpu=arm7tdmi --defsym MODERN=0 -o build/emerald/src/title_screen.o build/emerald/src/title_screen.s
In file included from src/pokemon.c:1402:
src/data/pokemon/level_up_learnset_pointers.h:823: `sMeltanLevelUpLearnset' undeclared here (not in a function)
src/data/pokemon/level_up_learnset_pointers.h:823: initializer element for `gLevelUpLearnsets[808]' is not constant
src/data/pokemon/level_up_learnset_pointers.h:824: `sMelmetalLevelUpLearnset' undeclared here (not in a function)
src/data/pokemon/level_up_learnset_pointers.h:824: initializer element for `gLevelUpLearnsets[809]' is not constant
make: *** [Makefile:249: build/emerald/src/pokemon.o] Fout 1
make: *** Wachten op onvoltooide taken...
arm-none-eabi-as -mcpu=arm7tdmi --defsym MODERN=0 -o build/emerald/src/contest_effect.o build/emerald/src/contest_effect.s
Snap.[/B]
$ make -j4
/bin/bash: tools/agbcc/bin/agbcc.exe: No such file or directory
arm-none-eabi-as -mcpu=arm7tdmi --defsym MODERN=0 -o build/emerald/src/item_menu.o src/item_menu.s
/bin/bash: tools/agbcc/bin/agbcc.exe: No such file or directory
Assembler messages:
Error: can't open src/item_menu.s for reading: No such file or directory
make: *** [Makefile:276: build/emerald/src/item_menu.o] Error 1
make: *** Venter på uafsluttede job....
make: *** [Makefile:253: build/emerald/src/battle_anim_ground.o] Error 127
make: *** [Makefile:253: build/emerald/src/battle_setup.o] Error 127
In file included from include/gba/gba.h:4,
from src/agb_flash.c: 1 :
include/gba/defines.h: 4 : 10 : fatal error: stddef.h: No such file or directory
4 | #include <stddef.h>
| ^~~~~~~~~~
compilation terminated.
In file included from include/gba/gba.h:4,
from src/rtc.c: 1 :
include/gba/defines.h: 4 : 10 : fatal error: stddef.h: No such file or directory
4 | #include <stddef.h>
| In file included from ^~~~~~~~~~include/gba/gba.h:4
c,
from src/agb_flash_le.c:1m:
p linclude/gba/defines.h: 4 : 10 :at i nfatal error: terstddef.h: No such file or directory
4 | #include mina <stddef.h>d.
|
^~~~~~~~~~
compilation terminated.
In file included from include/gba/gba.h:4make[2]: *** [Makefile: 151 : build/src/agb_flash.o] Error 1
,
from make[2]: *** Venter på uafsluttede job....
src/main.c: 1 :
include/gba/defines.h: 4 : 10 : fatal error: stddef.h: No such file or directory
4 | #include <stddef.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:151: build/src/main.o] Error 1
make[2]: *** [Makefile:151: build/src/agb_flash_le.o] Error 1
make[2]: *** [Makefile:151: build/src/rtc.o] Error 1
make[1]: *** [Makefile:169: payload] Error 2
make: *** [Makefile:332: berry_fix] Error 2
Pretty sure that happens when you don't have agbcc installed in your repository/Pokeemerald folder.include/gba/defines.h: 4 : 10 : fatal error: stddef.h: No such file or directory
Pretty sure that happens when you don't have agbcc installed in your repository/Pokeemerald folder.
Yeah, I figured. Doesn't matter too much tho since I get a plethora of compiler errors :/
But thank you for your help! :)
To anyone reading this:
Does anyone coincidentally have a repo that is fully merged with all 3 branches on thier GitHub with no compiler errors that I can fork, clone and then compile? I won't have the time to look at the whole thing for quite a while after today, so it wóuld be really nice.
I do, but the folder /tools/agbcc is not synchronized with Github, so it won't be of much help for. In general, also, I don't think that's the best way to go about it anyway, as it may make it harder for you to keep everything up to date in the future.
(Setting everything up is pretty frustrating, but once you go through it, and try to understand why errors are given, it makes it much easier to go from there.)
static const struct LevelUpMove sMeltanLevelUpLearnset[] = {
LEVEL_UP_MOVE( 1, MOVE_HEADBUTT),
LEVEL_UP_MOVE( 1, MOVE_HARDEN),
LEVEL_UP_MOVE( 9, MOVE_TAIL_WHIP),
LEVEL_UP_MOVE( 18, MOVE_THUNDER_WAVE),
LEVEL_UP_MOVE( 27, MOVE_THUNDER_SHOCK),
LEVEL_UP_MOVE( 36, MOVE_ACID_ARMOR),
LEVEL_UP_MOVE( 45, MOVE_FLASH_CANNON),
LEVEL_UP_END
};
static const struct LevelUpMove sMelmetalLevelUpLearnset[] = {
LEVEL_UP_MOVE( 1, MOVE_THUNDER_PUNCH),
LEVEL_UP_MOVE( 1, MOVE_HEADBUTT),
LEVEL_UP_MOVE( 1, MOVE_HARDEN),
LEVEL_UP_MOVE( 1, MOVE_TAIL_WHIP),
LEVEL_UP_MOVE( 1, MOVE_THUNDER_WAVE),
LEVEL_UP_MOVE( 9, MOVE_TAIL_WHIP),
LEVEL_UP_MOVE( 18, MOVE_THUNDER_WAVE),
LEVEL_UP_MOVE( 27, MOVE_THUNDER_SHOCK),
LEVEL_UP_MOVE( 36, MOVE_ACID_ARMOR),
LEVEL_UP_MOVE( 45, MOVE_FLASH_CANNON),
LEVEL_UP_MOVE( 54, MOVE_MEGA_PUNCH),
LEVEL_UP_MOVE( 63, MOVE_PROTECT),
//LEVEL_UP_MOVE( 72, MOVE_DOUBLE_IRON_BASH),
LEVEL_UP_MOVE( 81, MOVE_SUPERPOWER),
LEVEL_UP_MOVE( 90, MOVE_HYPER_BEAM),
LEVEL_UP_END
};
static const struct LevelUpMove sLycanrocMidnightLevelUpLearnset[] = {
LEVEL_UP_MOVE( 1, MOVE_COUNTER),
LEVEL_UP_MOVE( 1, MOVE_REVERSAL),
LEVEL_UP_MOVE( 1, MOVE_TAUNT),
LEVEL_UP_MOVE( 1, MOVE_TACKLE),
LEVEL_UP_MOVE( 1, MOVE_LEER),
LEVEL_UP_MOVE( 1, MOVE_SAND_ATTACK),
LEVEL_UP_MOVE( 1, MOVE_BITE),
LEVEL_UP_MOVE( 4, MOVE_SAND_ATTACK),
LEVEL_UP_MOVE( 7, MOVE_BITE),
LEVEL_UP_MOVE( 12, MOVE_HOWL),
LEVEL_UP_MOVE( 15, MOVE_ROCK_THROW),
LEVEL_UP_MOVE( 18, MOVE_ODOR_SLEUTH),
LEVEL_UP_MOVE( 23, MOVE_ROCK_TOMB),
LEVEL_UP_MOVE( 26, MOVE_ROAR),
LEVEL_UP_MOVE( 29, MOVE_STEALTH_ROCK),
LEVEL_UP_MOVE( 34, MOVE_ROCK_SLIDE),
LEVEL_UP_MOVE( 37, MOVE_SCARY_FACE),
LEVEL_UP_MOVE( 40, MOVE_CRUNCH),
LEVEL_UP_MOVE( 45, MOVE_ROCK_CLIMB),
LEVEL_UP_MOVE( 48, MOVE_STONE_EDGE),
LEVEL_UP_END
};
static const struct LevelUpMove sLycanrocDuskLevelUpLearnset[] = {
LEVEL_UP_MOVE( 1, MOVE_THRASH),
LEVEL_UP_MOVE( 1, MOVE_ACCELEROCK),
LEVEL_UP_MOVE( 1, MOVE_COUNTER),
LEVEL_UP_MOVE( 1, MOVE_TACKLE),
LEVEL_UP_MOVE( 1, MOVE_LEER),
LEVEL_UP_MOVE( 1, MOVE_SAND_ATTACK),
LEVEL_UP_MOVE( 1, MOVE_BITE),
LEVEL_UP_MOVE( 4, MOVE_SAND_ATTACK),
LEVEL_UP_MOVE( 7, MOVE_BITE),
LEVEL_UP_MOVE( 12, MOVE_HOWL),
LEVEL_UP_MOVE( 15, MOVE_ROCK_THROW),
LEVEL_UP_MOVE( 18, MOVE_ODOR_SLEUTH),
LEVEL_UP_MOVE( 23, MOVE_ROCK_TOMB),
LEVEL_UP_MOVE( 26, MOVE_ROAR),
LEVEL_UP_MOVE( 29, MOVE_STEALTH_ROCK),
LEVEL_UP_MOVE( 34, MOVE_ROCK_SLIDE),
LEVEL_UP_MOVE( 37, MOVE_SCARY_FACE),
LEVEL_UP_MOVE( 40, MOVE_CRUNCH),
LEVEL_UP_MOVE( 45, MOVE_ROCK_CLIMB),
LEVEL_UP_MOVE( 48, MOVE_STONE_EDGE),
LEVEL_UP_END