Version one of this:
is out. This is my sprite editor for the sega genesis/mega drive.
Here's the source and binaries for ubuntu and debian. Most importantly here's a tutorial on how to use the darn thing youtube I hope someone finds all my work useful.
Last edited by sigflup on Wed Aug 01, 2012 8:37 pm, edited 1 time in total.
Not a bad start, but I can tell you right now that defaulting to full-screen mode is going to piss off a lot of folk. Especially as switching to windowed mode isn't remembered the next time you run.
Thanks, djcouchycouch!
probably going to stick to my own gui. Porting to windows is a possibility! This forum will be the first to know if that happens.
Hey, that's very nice. I was gonna write a sprite editor but now it seems I don't have to =P
I'm gonna try to see if I can compile this on OS X - it just links to SDL, so porting this to Windows should not be too hard unless some platform specific features are going to be used.
Holy crap! keep me informed if it compiles on OSX. Mind you you also need lex and perl in adition to SDL. Does OSX have the command, "xxd"? if so I can get rid of the perl dependency
tristanseifert wrote:Hey, that's very nice. I was gonna write a sprite editor but now it seems I don't have to =P
I'm gonna try to see if I can compile this on OS X - it just links to SDL, so porting this to Windows should not be too hard unless some platform specific features are going to be used.
sigflup wrote:Holy crap! keep me informed if it compiles on OSX. Mind you you also need lex and perl in adition to SDL. Does OSX have the command, "xxd"? if so I can get rid of the perl dependency
I can confirm that xxd does exist on OSX from trying it on Terminal.app. I have not tried compiling your app yet, though, but I will try later today.
It does look like a well-made app, though. Good job.
sigflup wrote:Holy crap! keep me informed if it compiles on OSX. Mind you you also need lex and perl in adition to SDL. Does OSX have the command, "xxd"? if so I can get rid of the perl dependency
I can confirm that xxd does exist on OSX from trying it on Terminal.app. I have not tried compiling your app yet, though, but I will try later today.
It does look like a well-made app, though. Good job.
ok, cool. I got rid of the perl dependency. I also changed the download-link, btw. since I just put it up on github. again, thank you
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 draw.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 mega.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 proc.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 vdp.c
./bin2head char\ help_text\[\] < MANUAL > help_text.h
printf "int help_text_len = %d;\n" `wc -c < MANUAL` >> help_text.h
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 bottom.c
lex mega_file.l
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 lex.yy.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 uu.c
cd gui && make
cc -c draw.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c font.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c gui.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c link.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c std_dialog.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c drop.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c timer.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c load_save.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -I./ `sdl-config --cflags` -w -m32 -ggdb -c -o menu.o menu.c
rm -rf libgui.a
ar -q -v libgui.a draw.o font.o gui.o link.o std_dialog.o drop.o timer.o load_save.o menu.o
ar: creating archive libgui.a
q - draw.o
q - font.o
q - gui.o
q - link.o
q - std_dialog.o
q - drop.o
q - timer.o
q - load_save.o
q - menu.o
ranlib libgui.a
cc -o mega draw.o mega.o proc.o vdp.o bottom.o lex.yy.o uu.o gui/libgui.a `sdl-config --libs` -O2 -ggdb -lSDL_image ./gui/libgui.a -m32
Undefined symbols for architecture i386:
"_getdirentries_is_not_available_when_64_bit_inodes_are_in_effect", referenced from:
_read_dir in libgui.a(load_save.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [mega] Error 1
I googled what this message meant and it turns out that the function getdirentries is not supported on OS X Lion and newer, at least when the kernel is 64 bit. Instead, the man page suggested to use opendir and readdir instead. I might try it out and see if it works.
sasuke wrote:Ok. I attempted to compile this and got this error
I googled what this message meant and it turns out that the function getdirentries is not supported on OS X Lion and newer, at least when the kernel is 64 bit. Instead, the man page suggested to use opendir and readdir instead. I might try it out and see if it works.