Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Help/Question
  • → Need help replacing BLUE front sprites with JPN GREEN ones... again...

#1 2019-03-25 09:09:33

NitroHedgehog
Member
Registered: 2017-06-25
Post 46/53

Need help replacing BLUE front sprites with JPN GREEN ones... again...

As everyone knows, simply replacing the ''bmon'' with ''rgmon'' in main.asm gives this annoying error:

$ make blue
rgbasm -D _BLUE -h -o main_blue.o main.asm
warning: main.asm(46) -> engine/overworld/movement.asm(225) -> lb(1):
    Left shift of negative value: -1
ERROR: main.asm(810):
    Section 'Pics 4' is too big (max size = 0x4000 bytes).
make: *** [Makefile:47: main_blue.o] Error 5


So, by following another tutorial, I moved a few sprites from Bank 4 and other banks as well in an entirely new bank. They shows up as this in top of main.asm:

PICS_1 EQU $9
PICS_2 EQU $A
PICS_3 EQU $B
PICS_4 EQU $C
PICS_5 EQU $D
PICS_6 EQU $2D


Here is my new bank at the bottom of main.asm:

SECTION "Pics 6",ROMX,BANK[PICS_6]

PidgeotPicFront::      INCBIN "pic/rgmon/pidgeot.pic"
PidgeotPicBack::       INCBIN "pic/monback/pidgeotb.pic"
StarmiePicFront::      INCBIN "pic/rgmon/starmie.pic"
StarmiePicBack::       INCBIN "pic/monback/starmieb.pic"
FossilKabutopsPic::   INCBIN "pic/rgmon/fossilkabutops.pic"
FossilAerodactylPic::  INCBIN "pic/rgmon/fossilaerodactyl.pic"
GhostPic::             INCBIN "pic/other/ghost.pic"

RedPicBack::           INCBIN "pic/trainer/redb.pic"
OldManPic::            INCBIN "pic/trainer/oldman.pic"



...but then THIS error shows up:

$ make blue
rgbasm -D _BLUE -h -o main_blue.o main.asm
warning: main.asm(47) -> engine/overworld/movement.asm(225) -> lb(1):
    Left shift of negative value: -1
warning: main.asm(911) -> engine/trade.asm(657) -> lb(1):
    Left shift of negative value: -4
warning: main.asm(1931) -> engine/town_map.asm(450) -> lb(1):
    Left shift of negative value: -4
warning: main.asm(47) -> engine/overworld/movement.asm(225) -> lb(1):
    Left shift of negative value: -1
warning: main.asm(911) -> engine/trade.asm(657) -> lb(1):
    Left shift of negative value: -4
warning: main.asm(1931) -> engine/town_map.asm(450) -> lb(1):
    Left shift of negative value: -4
rgblink -n pokeblue.sym -l starterpak.link -o pokeblue.gbc audio_blue.o main_blue.o text_blue.o wram_blue.o
error: Unable to place 'Battle (bank 9)' (ROMX section) at $7DCE in bank $09
make: *** [Makefile:54: pokeblue.gbc] Error 1


Either it is Bank 9 or Bank B, there is nothing I can do since I always get this error, no matter what I do... Help?

Offline

#2 2019-03-25 09:35:21

J92R
Member
Registered: 2018-09-07
Post 17/23

Re: Need help replacing BLUE front sprites with JPN GREEN ones... again...

Ya know, there's a patch that does that. Why not just patch, then ASM after?

Offline

#3 2019-03-25 09:41:44

NitroHedgehog
Member
Registered: 2017-06-25
Post 47/53

Re: Need help replacing BLUE front sprites with JPN GREEN ones... again...

I know, but the patch I have to change graphics from Blue to Green messes-up the Ghost and both museum fossil sprites... Plus, there is no changed dialogues such as the drunk old man or priest in the Pewter museum... That's why I wanted to do my own.

EDIT : How do I ASM after patching a ROM?

Last edited by NitroHedgehog (2019-03-25 09:43:03)

Offline

#4 2019-03-28 22:17:04

KeiTaRo
Member
Registered: 2015-12-05
Post 67/71
Website

Re: Need help replacing BLUE front sprites with JPN GREEN ones... again...

it means exactly what it says: it is unable to place Bank 9 at the section defined. It means that Bank 9 (which is also your Pics 1) is too big, you'll need to move things out of that as well. Just try one or two at a time until the error goes away, though I suspect that won't be the only error of this kind you encounter.

Offline

  • Index
  • → Help/Question
  • → Need help replacing BLUE front sprites with JPN GREEN ones... again...

Board footer

Powered by FluxBB