Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2017-10-24 18:32:12

turboboy215
Member
Registered: 2015-07-30
Posts: 15

GBDK mod2gbt example doesn't work properly - any ideas?

So, I'm still pretty new to GBDK, but I'm now trying to figure out how to get music in GBT player. So I'd figure I would try compiling the sample legacy GBDK example. I modified the paths in the "make_rom.bat" variable, and it compiles without any errors.
However, when I run the example test.gb, it only plays a low, continuous note which sounds nothing like the template.mod file. I tried running it in both VBA and bgb and I got the same result.
What is going on? I should be able to get a working ROM that plays the template music...

Here's all of my files, including the template MOD and mod2gbt:
https://drive.google.com/file/d/0B_zYoz … sp=sharing

Last edited by turboboy215 (2017-10-24 18:36:40)

Offline

 

#2 2017-10-25 16:15:28

turboboy215
Member
Registered: 2015-07-30
Posts: 15

Re: GBDK mod2gbt example doesn't work properly - any ideas?

Anyone? Nothing has changed since yesterday and I really need a response...

Last edited by turboboy215 (2017-10-25 16:16:17)

Offline

 

#3 2017-10-25 18:42:35

turboboy215
Member
Registered: 2015-07-30
Posts: 15

Re: GBDK mod2gbt example doesn't work properly - any ideas?

So I'm on my own, apparently, with a broken music player.

Offline

 

#4 2017-10-25 19:31:36

tbsp
Member
Registered: 2017-03-16
Posts: 12

Re: GBDK mod2gbt example doesn't work properly - any ideas?

You're using a music player that's labelled as legacy and not actively maintained by the author. That's often a struggle.

This is a fairly small community and a good portion of the members don't use GBDK in any way. You might want to give people some more time to help out. Not everyone checks the forum daily.

Offline

 

#5 2017-10-25 20:40:48

turboboy215
Member
Registered: 2015-07-30
Posts: 15

Re: GBDK mod2gbt example doesn't work properly - any ideas?

Sorry. It's just I'm kind of frustrated and I've seen examples of demos using it coded in GBDK that do work, and I'm kind of halted on Game Boy development right now.

Offline

 

#6 2017-10-26 18:35:04

turboboy215
Member
Registered: 2015-07-30
Posts: 15

Re: GBDK mod2gbt example doesn't work properly - any ideas?

Okay, update: I figured I was using the wrong version of GBDK since mine was 2.95 instead of 2.94, but now I get an error in the final compile step:

"ERROR: address flow (addr c142 >= 8000)
c:\gbdk\bin\lcc c:\gbdk\bin/link-gbz80: No error"

And it comes up with an unusable 0kb ROM. What am I doing wrong?

Offline

 

#7 2017-10-26 18:54:43

AntonioND
Member
Registered: 2014-06-17
Posts: 134
Website

Re: GBDK mod2gbt example doesn't work properly - any ideas?

turboboy215 wrote:

Okay, update: I figured I was using the wrong version of GBDK since mine was 2.95 instead of 2.94, but now I get an error in the final compile step:

"ERROR: address flow (addr c142 >= 8000)
c:\gbdk\bin\lcc c:\gbdk\bin/link-gbz80: No error"

And it comes up with an unusable 0kb ROM. What am I doing wrong?

Probably the version of GBDK is still wrong, that happens because it's trying to place the song data into WRAM instead of ROM as const data.

Someone sometime asked me about the same problem and eventually found a version of GBDK that worked, but I don't remember which one.

That's why I don't maintain that version of gbt player, GBDK is just a pain (and I can't even add new functionality as in RGBDS).

Last edited by AntonioND (2017-10-26 18:55:09)

Offline

 

#8 2017-10-26 23:43:21

turboboy215
Member
Registered: 2015-07-30
Posts: 15

Re: GBDK mod2gbt example doesn't work properly - any ideas?

AntonioND wrote:

turboboy215 wrote:

Okay, update: I figured I was using the wrong version of GBDK since mine was 2.95 instead of 2.94, but now I get an error in the final compile step:

"ERROR: address flow (addr c142 >= 8000)
c:\gbdk\bin\lcc c:\gbdk\bin/link-gbz80: No error"

And it comes up with an unusable 0kb ROM. What am I doing wrong?

Probably the version of GBDK is still wrong, that happens because it's trying to place the song data into WRAM instead of ROM as const data.

Someone sometime asked me about the same problem and eventually found a version of GBDK that worked, but I don't remember which one.

That's why I don't maintain that version of gbt player, GBDK is just a pain (and I can't even add new functionality as in RGBDS).

Thank you very much for your response, AntonioND. I thought something might be wrong in my code.
Now, I just need to find the version of GBDK that works...
EDIT: Finally found it! It's 2.95.3, the latest version.

Last edited by turboboy215 (2017-10-26 23:58:45)

Offline

 

#9 2017-10-28 14:25:54

AntonioND
Member
Registered: 2014-06-17
Posts: 134
Website

Re: GBDK mod2gbt example doesn't work properly - any ideas?

I'm glad that it worked in the end.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson