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.
hi i made a simple gameboy map editor in lua + SDL2
its outputs for RGBDS but i could add gbdk support easily if anyone wanted it
it was created due to the fact that i could not find a cross platform tile editor that was free as in freedom software for the gameboy
requires lua5.2 and the LuaSDL2 Libary(https://github.com/Tangent128/luasdl2)
to start the program just use lua5.2 main.lua providing you have lua5.2 and luasdl2 installed
Scroll wheel to Select different Colours
Left Mouse to Paint a Pixel
Right Mouse to Set a Pixel to White
The Program writes the tile data to a file constantly
so when your finished just exit the program and the
file will have your tile data
This File(./OutputTile.asm) is in the same directory as the Tile program
and you can then just include it in your RGBDS Gameboy Program
if you want the program to start fullscreen run it like so
lua main.lua FULLSCREEN
download link:
http://92.19.232.58:60000/owncloud/inde … o/download
screenshot:
https://trisquel.info/files/Screenshot% … :35:01.png
Last edited by a cat (2015-08-21 17:49:08)
Offline
Hey!
From what I can tell, it looks pretty sweet. I was having a hard time running it on a 64bit Ubuntu (luaSDL was complaining) and I can't be arsed to fix it haha.
But I was curious - do you not like Gameboy Tile Designer/Gameboy Map Builder? They can output to a bunch of different formats, assembly included. AFAIK they are freeware, but I'm not sure on the exact license.
Offline
the GBMB and GBTB are under non-commercial licenses
and i have a policy of only using free as in freedom software
"I was having a hard time running it on a 64bit Ubuntu (luaSDL was complaining)"
do you have the error output?(i could probably find the problem)
also remember you need luasdl2 installed aswell as lua5.2
Last edited by a cat (2015-08-22 04:54:42)
Offline
a cat wrote:
the GBMB and GBTB are under non-commercial licenses
and i have a policy of only using free as in freedom software
Fair enough! =]
a cat wrote:
"I was having a hard time running it on a 64bit Ubuntu (luaSDL was complaining)"
do you have the error output?(i could probably find the problem)
also remember you need luasdl2 installed aswell as lua5.2
Yeah, I have both lua5.2 and luasdl2 installed. Here's full output:
λ ~/p/TGTE> ls COPYING Input.lua Output.lua Text.lua Tiles.lua Fonts/ main.lua OutputTile.asm Textures/ λ ~/p/TGTE> lua5.2 -v Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio λ ~/p/TGTE> lua5.2 main.lua lua5.2: error loading module 'SDL' from file '/usr/local/lib/lua/5.2/SDL.so': /usr/local/lib/lua/5.2/SDL.so: wrong ELF class: ELFCLASS64 stack traceback: [C]: in ? [C]: in function 'require' main.lua:20: in main chunk [C]: in ? λ ~/p/TGTE>
Pretty sure it's an issue with my install of luasdl2, not with your script.
Offline
have you tried uninstalling your luasdl and compiling and installing the latest version from here:
https://github.com/Tangent128/luasdl2
Offline
It's a fresh (as of last night) install of that git repo, so yeah. =]
It has to do with linking/compiling the library for x64 instead of x32. I may work on it later, but it's not a super high priority for me right now. I'm not too savvy on how to do that.
Offline
Hopped on a 32-bit machine, successfully installed lua sdl2 from Github, and now it works perfectly.
Thank you much for this!
Offline
ok if you would like any features added i could try to implement them!
Offline
Cool now make tutorials of it please an make a code editor
Offline
Offline
npzman wrote:
Cool now make tutorials of it please an make a code editor
Tutorial is in the first post, sir. =]
Offline
You should add gbdk support. It would be very nice!
Offline
a cat wrote:
the GBMB and GBTB are under non-commercial licenses
and i have a policy of only using free as in freedom software
Just a quick update, found this while getting a new laptop set up for dev work - the source code was released into the public domain for these, so it should be okay for free-as-in-freedom people.
The exact wording:
GBTD & GBMB Source
------------------
DISCLAIMER:
You are free to use these sources for further development, both for personal, business
and public aims; so yes, if you want to make enhancements, and then release those
upgraded versions to the public, you have permission to do so.
Note that the 'standard' disclaimer for public domain applies; I can not be held
responsible for any damage caused by these sources, in any way.
Reusing these sources will probably require intimate knowledge of Delphi, and can not
be regarded as a task for novice users. Next to that, I will not be able to give help
or support while doing this; if you want to try using these source, you are on your own.
Harry Mulder
Offline
Thanks I found the link here:
http://www.devrs.com/gb/hmgd/source.html
Offline