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-05-17 23:20:52

chris
Member
From: USA
Registered: 2016-11-27
Posts: 67
Website

Help with using mod2gbt

So I made a .mod file. What command do I type in CMD to convert it to a .gbt file? I searched all the documentation and they left this key information out.
EDIT: Never mind. I guess I can't use it. It's for Linux.

Last edited by chris (2017-05-17 23:51:59)


Frank the Fruit Fly: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/ftff.html

Offline

 

#2 2017-05-18 09:03:09

tmk
Member
Registered: 2017-05-01
Posts: 12

Re: Help with using mod2gbt

I see no reason why you couldn't use it with Windows. Here's compiled ver.

Offline

 

#3 2017-05-18 15:14:07

AntonioND
Member
Registered: 2014-06-17
Posts: 93

Re: Help with using mod2gbt

It's not left out of the documentation. There are sample scripts to compile the test ROMs, just take a look at the first line. Also, if you run the tool with no arguments, it shows the help text.

And yes, the scripts are for Linux (or Cygwin or something). However, they are just a list of commands, they don't do anything clever, converting them to Windows is as easy as change the / by \ and maybe remove the last line that removes the temorary files.

Basically: mod2gbt mysong.mod songname

Offline

 

#4 2017-05-18 16:33:50

chris
Member
From: USA
Registered: 2016-11-27
Posts: 67
Website

Re: Help with using mod2gbt

OK, I downloaded tmk's program, got the mod switched, put the gbt_player.h in the file folder, but when I go to compile the game, I get 7 ASlink-Warning-Undefined Global notifications.


Frank the Fruit Fly: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/ftff.html

Offline

 

#5 2017-05-18 21:56:38

chris
Member
From: USA
Registered: 2016-11-27
Posts: 67
Website

Re: Help with using mod2gbt

I finally saw that I must'nt use GBDK when using this. Oh well.


Frank the Fruit Fly: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/ftff.html

Offline

 

#6 2017-05-19 13:56:26

AntonioND
Member
Registered: 2014-06-17
Posts: 93

Re: Help with using mod2gbt

You can use it... There's a folder called 'gbdk_legacy'. That's the source code you have to use. But you have to tell GBDK to assemble and link the .s files as well, the header file isn't enough.

Now that I think of this, maybe the binary of mod2gbt that you have downloaded isn't the legacy one. If it's the new one, it won't work with the legacy code.

Last edited by AntonioND (2017-05-19 13:57:11)

Offline

 

#7 2017-05-19 18:55:48

chris
Member
From: USA
Registered: 2016-11-27
Posts: 67
Website

Re: Help with using mod2gbt

Is there a way to get past versions of the gbt player?


Frank the Fruit Fly: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/ftff.html

Offline

 

#8 2017-05-19 19:09:28

chris
Member
From: USA
Registered: 2016-11-27
Posts: 67
Website

Re: Help with using mod2gbt

Also, how do I tell GBDK to assemble and link .s files?


Frank the Fruit Fly: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/ftff.html

Offline

 

#9 2017-05-19 19:18:37

AntonioND
Member
Registered: 2014-06-17
Posts: 93

Re: Help with using mod2gbt

On GitHub, in the legacy folder, there's all source code of the last version that supported GBDK, and an example script with the things that you have to do to compile it.

There's even a precompiled exe in the repository, have you even taken a real look at it? https://github.com/AntonioND/gbt-player … egacy_gbdk

Last edited by AntonioND (2017-05-19 19:21:22)

Offline

 

#10 2017-05-19 22:10:48

drludos
Member
Registered: 2017-05-11
Posts: 29

Re: Help with using mod2gbt

The GBT player is actually included in the ZGB engine.

It uses the source assembly file, and link it to be useable with gbdk when compiling the game. I guess you should look at the Makefile of this engine to see how to add gbtplayer ASM code to a GBDK C project:
https://github.com/Zal0/ZGB/tree/master/common

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson