Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-07-26 01:39:00

NitroHedgehog
Member
Registered: 2017-06-25
Post 6/38

What's wrong with Cygwin?

I haven't used Cygwin for quite a while, so when I tried to compile a Pokemon ROM tonight, I got the following error message:

$ make
rgbasm -D "_RED" -h -o main_red.o main.asm
warning: main.asm(15) -> home.asm(118) -> home/overworld.asm(1998):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(896) -> home/vcopy.asm(126):
        'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(896) -> home/vcopy.asm(208):
        'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(896) -> home/vcopy.asm(241):
        'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(896) -> home/vcopy.asm(293):
        'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(896) -> home/vcopy.asm(319):
        'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(896) -> home/vcopy.asm(363):
        'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(2949):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(4402):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(4560) -> home/predef.asm(27):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(4585):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(587) -> engine/cable_club.asm(307):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(1188):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(2195):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(2994) -> engine/items/items.asm(16):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(4824) -> engine/menu/start_sub_menus.asm(121):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5449) -> engine/slot_machine.asm(454):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5462) -> engine/battle/trainer_ai.asm(54):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5462) -> engine/battle/trainer_ai.asm(369):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5519) -> engine/battle/core.asm(3153):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5519) -> engine/battle/core.asm(5693):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5519) -> engine/battle/core.asm(7148):
        'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5715) -> engine/trade.asm(49):
        'JP [HL]' is obsolete, use 'JP HL' instead.
ERROR: main.asm(6098):
        Section 'bank13' is too big (max size = 0x4000 bytes).
make: *** [Makefile:46: main_red.o] Error 5

What's wrong? It wasn't acting like that before...

Offline

#2 2017-07-26 01:44:33

Rangi
Member
Registered: 2016-05-09
Post 775/870

Re: What's wrong with Cygwin?

Use RGBDS 0.2.5.

Last edited by Rangi (2017-07-26 01:45:01)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#3 2017-07-26 02:19:28

NitroHedgehog
Member
Registered: 2017-06-25
Post 7/38

Re: What's wrong with Cygwin?

Thanks, but now I always get this :

$ make red
rgbasm -D _RED -h -o audio_red.o audio.asm
rgbasm -D _RED -h -o main_red.o main.asm
C:\cygwin\usr\local\bin\rgbasm.exe: Section 'Pics 4' is too big (old size 16299 + 144 > 16384)
make: *** [Makefile:37: main_red.o] Error 1

I don't know what's the error...

Offline

#4 2017-07-26 03:19:57

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,497/3,578

Re: What's wrong with Cygwin?

The error is you have too much stuff in that bank and need to move something.

Offline

#5 2017-07-27 02:24:53

NitroHedgehog
Member
Registered: 2017-06-25
Post 8/38

Re: What's wrong with Cygwin?

What's the ''Pics 4'' bank and what must I do? I am only copying and pasting the Green sprites from the ''rgmon'' into the ''bmon'' folder...

Offline

#6 2017-07-28 02:12:14

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,028/1,119

Re: What's wrong with Cygwin?

You need to reorganize how the pics are spread out across the banks.

The unfortunate part about this is that there is an assembly routine which determines the bank number to read from in order to access a mon's pic, and unfortunately this routine hardcodes all the banks that are used.
So if you move some mon pics to new banks, this routine will need to be modified in order for the game to load all pics properly.

You can read a detailed discussion on this subject in this thread here.
That thread is about moving pics around to new banks, and also about how to allow larger pics. You can ignore that part of the discussion.
The thread is also rather old, so don't directly copy/paste any code from there. However the thread should give you a thorough explanation of the problem if you read it through.

A good example of a re-rewrite of that routine can be found here.
However, as you will learn from the thread I linked you to, this solution also requires you to edit the last line of each mon's base stats (in data/baseStats/) to include the bank number for that mon's front and back pics.

I can also answer any additional questions you have to clarify information in that thread.

Offline

Board footer

Powered by FluxBB