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 2015-08-21 17:48:37

a cat
Member
Registered: 2014-07-27
Posts: 98

I Made a tile editor

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)


a cat in need of knowledge!!

Offline

 

#2 2015-08-22 03:25:46

l0k1
Member
Registered: 2014-10-23
Posts: 44

Re: I Made a tile editor

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

 

#3 2015-08-22 04:54:29

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: I Made a tile editor

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)


a cat in need of knowledge!!

Offline

 

#4 2015-08-22 12:06:33

l0k1
Member
Registered: 2014-10-23
Posts: 44

Re: I Made a tile editor

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:

Code:

λ ~/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

 

#5 2015-08-22 20:50:16

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: I Made a tile editor

have you tried uninstalling your luasdl and compiling and installing the latest version from here:
https://github.com/Tangent128/luasdl2


a cat in need of knowledge!!

Offline

 

#6 2015-08-22 21:46:18

l0k1
Member
Registered: 2014-10-23
Posts: 44

Re: I Made a tile editor

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

 

#7 2015-09-18 22:02:31

l0k1
Member
Registered: 2014-10-23
Posts: 44

Re: I Made a tile editor

Hopped on a 32-bit machine, successfully installed lua sdl2 from Github, and now it works perfectly.
Thank you much for this!

Offline

 

#8 2015-09-19 19:02:31

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: I Made a tile editor

ok if you would like any features added i could try to implement them!


a cat in need of knowledge!!

Offline

 

#9 2015-10-05 20:20:21

npzman
Banned
From:
Registered: 2014-11-19
Posts: 197

Re: I Made a tile editor

Cool now make tutorials of it please an make a code editor


Twitter : @Sfeedman please follow
Join : sfeed.club my website please join

Offline

 

#10 2015-10-06 16:29:55

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: I Made a tile editor


a cat in need of knowledge!!

Offline

 

#11 2015-10-08 13:51:06

l0k1
Member
Registered: 2014-10-23
Posts: 44

Re: I Made a tile editor

npzman wrote:

Cool now make tutorials of it please an make a code editor

Tutorial is in the first post, sir. =]

Offline

 

#12 2015-11-07 19:48:59

MrElephant
Member
Registered: 2014-01-29
Posts: 40

Re: I Made a tile editor

You should add gbdk support. It would be very nice!


Working in Gameboy BASIC.

Offline

 

#13 2016-01-08 19:54:39

l0k1
Member
Registered: 2014-10-23
Posts: 44

Re: I Made a tile editor

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

 

#14 2017-01-06 03:21:20

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: I Made a tile editor

Thanks I found the link here:
http://www.devrs.com/gb/hmgd/source.html


a cat in need of knowledge!!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson