’Cause all games were better on the GBC

You are not logged in.

#1 2017-02-26 16:34:19

New member
Registered: 2017-02-13
Post 2/9

Some help about assembling the romhack.

In the last topic I made I was wondering about making the back sprites bigger in Pokemon Red. I found it out how to do it. But then I came with a problem that I can't find a solution about. In Cygwin it always says :
"C:\cygwin\bin\rgblink.exe: Unknown symbol 'SaveTrainerName'
make: *** [Makefile:47: pokered.gbc] Error 1"
How do I fix this? Any help would be appreciated.


#2 2017-02-27 00:49:55

Danny-E 33
Registered: 2012-06-09
Post 1,022/1,206

Re: Some help about assembling the romhack.

That error means that you referenced a label named "SaveTrainerName" in your code somewhere, but you did not define that label. It could simply be a typo and you didn't use exactly the same label name in all places. Or it could be that you forgot to include a new file. Without more information, that's all I can say.


#3 2017-03-01 12:42:46

New member
Registered: 2017-02-13
Post 4/9

Re: Some help about assembling the romhack.

Thanks again I fixed it. This has nothing to do with the thread but I imported moves from Red++ to my romhack (I will give credit) but the moves that have the index higher than 200 has  names that say for example TM39 or TM55. The moves do function but even when I edit the names on move_names.asm it still says TMXX. How do I fix this?


#4 2017-03-01 19:14:40

Registered: 2015-10-25
Post 287/332

Re: Some help about assembling the romhack.

Apparently, it has to do with something called "GetName". I had trouble with it, too--Zap Cannon and Ancientpower, respectively moves 196 (C4) and 199 (C7) in my hack, rendered as HM01 and HM04, respectively (HM01 and HM04 are items C4 and C7, respectively). So anything above 195 is rendered as a TM or HM unless the GetName function is changed to:

GetName:: ; 376b (0:376b)
; arguments:
; [wd0b5] = which name
; [wNameListType] = which list
; [wPredefBank] = bank of list
; returns pointer to name in de
    ld a,[wNameListType]
    cp ITEM_NAME
    ld a,[wd0b5]
    ld [wd11e],a
    jr nz, .noItem
    cp HM_01        ;it's TM/HM
    jp nc,GetMachineName
.noItem          ; Return here if not an item
    et cetera, et cetera, et cetera

Mateo taught me that one, by the way.

Last edited by Fotomac (2017-03-01 19:15:57)


Board footer

Powered by FluxBB