Page 1 of 2

mega happy sprite version 1 is out!

Posted: Wed Aug 01, 2012 2:59 am
by sigflup
Version one of this:
Image
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.

Posted: Wed Aug 01, 2012 3:51 am
by Chilly Willy
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.

Posted: Wed Aug 01, 2012 11:49 am
by sigflup
oh! ./mega -w starts windowed mode. Maybe you're right- I'll change the default to windowed mode

EDIT: ok, the default is now windowed-mode. No saving what your preference is as of yet, I'll do that later

Posted: Wed Aug 01, 2012 2:36 pm
by Oerg866
sigflup wrote:oh! ./mega -w starts windowed mode. Maybe you're right- I'll change the default to windowed mode

EDIT: ok, the default is now windowed-mode. No saving what your preference is as of yet, I'll do that later
Hi. Long time no see :P

Posted: Wed Aug 01, 2012 2:49 pm
by djcouchycouch
Good job!

Any chance you'll be porting it to Windows or Mac?

Any chance you'll be using a UI toolkit like QT? Seems like you're rolling your own.

Thanks!
DJCC

Posted: Wed Aug 01, 2012 3:39 pm
by sigflup
Hey Oerg866!! fancy seeing you on here!

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.

Posted: Wed Aug 01, 2012 4:29 pm
by tristanseifert
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.

Posted: Wed Aug 01, 2012 5:47 pm
by sigflup
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.

Posted: Wed Aug 01, 2012 5:54 pm
by Chilly Willy
sigflup wrote:oh! ./mega -w starts windowed mode. Maybe you're right- I'll change the default to windowed mode

EDIT: ok, the default is now windowed-mode. No saving what your preference is as of yet, I'll do that later
Thanks! Much better. :D

Posted: Wed Aug 01, 2012 8:25 pm
by sasuke
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. :)

Posted: Wed Aug 01, 2012 8:38 pm
by sigflup
sasuke wrote:
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

Posted: Wed Aug 01, 2012 9:19 pm
by sasuke
Ok. I attempted to compile this and got this error

Code: Select all

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.

If you need more info, here is the man page for readdir on the apple website.

Posted: Wed Aug 01, 2012 9:57 pm
by sigflup
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.

If you need more info, here is the man page for readdir on the apple website.
ok, I got rid of getdirentries. try it now

Posted: Wed Aug 01, 2012 11:00 pm
by sasuke
Ok. It compiled sucessfully. :D

Posted: Wed Aug 01, 2012 11:05 pm
by sigflup
sasuke wrote:Ok. It compiled sucessfully. :D
ossum!!