Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#76 2017-11-19 17:34:04

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,045/1,095

Re: [Pokered] Adding Gender Selection

In this case, ".NotLeaf1" is supposed to be a label.
There are two main possibilities.

Since labels that begin with a period are local labels (they are only valid in between the global label above and below where the local label is defined) it's possible that you are trying to reference the ".NotLeaf1" local label from outside that region that it is valid.

Second, it's possible that you just forgot to include the ".NotLeaf1" label at all.

Double check engine/oak_speech.asm and around line 99 make sure the label is defined in the local scope that it is referenced.


Red Hack: Pokémon Prototype

Total number of registered users: 8000+
Total number of active users: ~12

Offline

#77 2017-11-19 20:25:16

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 436/450
Website

Re: [Pokered] Adding Gender Selection

From that error message I think it's just the indentation. Macro and label definitions should not be tabulated or would otherwise be interpreted as macro instantiations (given that they are not assembly instructions). Make sure the ".NotLeaf1" line is aligned to the leftmost of the line, unlike regular code.

Offline

#78 2017-11-19 20:38:39

TRIFORCE89
Member
Registered: 2013-05-20
Post 16/23

Re: [Pokered] Adding Gender Selection

Crystal_ wrote:

From that error message I think it's just the indentation. Macro and label definitions should not be tabulated or would otherwise be interpreted as macro instantiations (given that they are not assembly instructions). Make sure the ".NotLeaf1" line is aligned to the leftmost of the line, unlike regular code.

Yup! You are correct. Thank you! I just de-indented the line for .NotLeaf1 (and .NotLeaf3, same issue) and the make got passed that step.

Output now is:

rgbasm -h -o main.o main.asm
rgbasm -h -o text.o text.asm
rgbasm -h -o wram.o wram.asm
rgblink -n pokeyellow.sym -l pokeyellow.link -o pokeyellow.gbc audio.o main.o text.o wram.o
error: Unable to place 'Main' (ROM0 section) at $150
make: *** [pokeyellow.gbc] Error 1

So, still not quite there yet

Offline

#79 2017-11-19 21:53:58

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 437/450
Website

Re: [Pokered] Adding Gender Selection

If you have anything allocated right after the cartridge header, move it elsewhere in the bank or just don't hardcode the main section. You might also have free space between 0060 and 00FF where you might be able to move things. I just don't know what that gender patch really adds but if it was meant to be for red/blue don't expect it to be as easy as copypasting.

Offline

#80 2017-11-20 00:28:20

TRIFORCE89
Member
Registered: 2013-05-20
Post 17/23

Re: [Pokered] Adding Gender Selection

Crystal_ wrote:

If you have anything allocated right after the cartridge header, move it elsewhere in the bank or just don't hardcode the main section. You might also have free space between 0060 and 00FF where you might be able to move things. I just don't know what that gender patch really adds but if it was meant to be for red/blue don't expect it to be as easy as copypasting.

I went and redid this all paying careful attention to the spaces and indentation. Same error message. If I had to guess, I think (based on nothing, really) that it is do to moving the Giovanni and Rocket sprites around?

How would I know if I have free space between 0060 and 00FF? And how would I utilize it?

It wasn't a straight copy/paste. Some blocks were revised since the original writing, I assume. But I got the gist of it. Didn't do bling pasting, just where it seemed to make sense (where Red sprite was loaded, not necessarily immediately before or after, depending).

Offline

#81 2018-03-07 09:22:07

TheRealLazerBlazer22
Member
From: United States
Registered: 2018-03-02
Post 2/10

Re: [Pokered] Adding Gender Selection

So, I finished the tutorial, and learned a lot along the way. Thank you Mateo. However, I receive this error that I am currently looking for the solution to. I will keep everyone posted the best I can, if I find the solution, as it's probably me just making a simple mistake.

rgbasm -D _RED -h -o main_red.o main.asm
ERROR: main.asm(215):
        Unterminated string
make: *** [Makefile:37: main_red.o] Error 5

I figured I might as well leave this here in case I cannot solve it. Thank you to everyone here at Skeetendo, for without you, learning assembly and some of the more complex algorithms would be much harder to learn. Thank you, and take care.


Currently working on Pokémon Shiro Version.

Pokémon Shiro Version 0.05a Release:
Pokémon Shiro Version 0.05a IPS Download Link

"The human heart and true love obey no timetables."
"I'll create my own Destiny, even if I have to will it into existence."

Offline

#82 2018-03-07 23:16:10

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,077/1,095

Re: [Pokered] Adding Gender Selection

In the first line of the error "main.asm(215)", that's telling you the exact file and the exact line number that is causing the problem.
And the next line of the error "Unterminated string" is telling you exactly what the problem on that line is.


Red Hack: Pokémon Prototype

Total number of registered users: 8000+
Total number of active users: ~12

Offline

Board footer

Powered by FluxBB