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.
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)
Offline
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
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.
Offline
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
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
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