• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

My pokecrystal hack would not compile.

Marky Vigoroth

...I just liked the Skarmory icon.
171
Posts
8
Years
  • I am making a hack called 'Pok?mon Crystal Lite' through the pokecrystal project. This hack was inspired by Pokemon Patched Crystal. I also got ideas from Pokemon Crystal Restored.

    The problem is that, when I tried to compile, I got this mess:

    ERROR: main.asm(573) -> unknown/013a47.asm(22) :
    Expression must be 8-bit
    ERROR: main.asm(1707) -> trainers/trainers.asm(58) :
    Expression must be 8-bit
    ERROR: main.asm(1707) -> trainers/trainers.asm(973) :
    Expression must be 8-bit
    ERROR: main.asm(1707) -> trainers/trainers.asm(2821) :
    Expression must be 8-bit
    ERROR: main.asm(1719) -> battle/moves/moves.asm(265) -> >move(1) :
    Expression must be 8-bit
    ERROR: main.asm(1719) -> battle/moves/moves.asm(266) -> >move(1) :
    Expression must be 8-bit
    ERROR: main.asm(1719) -> battle/moves/moves.asm(267) -> >move(1) :
    Expression must be 8-bit
    ERROR: main.asm(1719) -> battle/moves/moves.asm(268) -> >move(1) :
    Expression must be 8-bit
    ERROR: main.asm(4646) -> data/base_stats.asm(2) -> >data/base_stats/missingno_.asm(18) :
    'dn' already defined
    ERROR: main.asm(4646) -> data/base_stats.asm(2) -> >data/base_stats/missingno_.asm(18) -> HUMANSHAPE(-1) :
    Macro 'HUMANSHAPE' not defined
    make: *** [Makefile:62: main.o] Error 5

    What is the problem here... especially with the 8-bit issues?

    Here is the full, buildable project: https://www.mediafire.com/file/msz8h2ujd01100t/pokecrystal_test1.zip

    Here is also a reduced version that has just the changes: https://www.mediafire.com/file/hd6xj913ecrf1f3/pokecrystaldelta_test1.zip

    The readme.txt (not 'README.MD') file in both archives lists my changes.


    ADDENDUM 1: I did a bit of more research here.
    • 013a47.asm has problems trying to resolve the position of the EGG, which I moved to 255 because I wanted the additional Pok?mon I added to be contiguous with the rest of the Pok?mon. I also made the pokemon+constants.asm list start from 0 and put MissingNo. there. I erased the '+ 1' part in 'cp EGG + 1'. let me see how things go.
    • The rest of the 'Expression must be 8-bit' problems are related to the new moves I added. moves.asm does not know how to handle the new moves (even though the new total number of moves is 255). All problems related to trainers.asm are in reference to the new moves. Maybe there is a constant that I forgot?
    • The only difference the structure of missingno_.asm has with the others is that I commented out the INCBIN like because I deliberately intended the game to generate garbage in trying to render MissingNo's sprite (and cry, by the way). I shall uncomment that part and do adjustments.
    I did not upload the changes yet, but I shall tell you how things go.


    ADDENDUM 2: I needed to adjust 'NUM_POKEMON + 1' also. I moved my new moves to directly after the old moves, making the move list contiguous. I actually did not need to do anything other than fix the PSYCHIC_M error in missingno_.asm.
    However, now kangachan.asm (the 252nd Pok?mon, making MissingNo. the 0th Pok?mon) is having the same "'dn' already defined" problem that missingno_.asm had. What is the problem?

    https://www.mediafire.com/file/5x3rccm8mbzm04q/pokecrystal_test2.zip
    https://www.mediafire.com/file/13r7vwij0l2pwba/pokecrystaldelta_test2.zip
     
    Last edited:
    Back
    Top