mega happy sprite version 1 is out!

Talk about development tools here

Moderator: BigEvilCorporation

sigflup
Very interested
Posts: 111
Joined: Mon Sep 06, 2010 12:05 pm
Contact:

mega happy sprite version 1 is out!

Post by sigflup » Wed Aug 01, 2012 2:59 am

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.
Last edited by sigflup on Wed Aug 01, 2012 8:37 pm, edited 1 time in total.

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Wed Aug 01, 2012 3:51 am

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.

sigflup
Very interested
Posts: 111
Joined: Mon Sep 06, 2010 12:05 pm
Contact:

Post by sigflup » Wed Aug 01, 2012 11:49 am

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

Oerg866
Very interested
Posts: 211
Joined: Sat Apr 19, 2008 10:58 am
Location: Frankfurt, Germany
Contact:

Post by Oerg866 » Wed Aug 01, 2012 2:36 pm

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

djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

Post by djcouchycouch » Wed Aug 01, 2012 2:49 pm

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

sigflup
Very interested
Posts: 111
Joined: Mon Sep 06, 2010 12:05 pm
Contact:

Post by sigflup » Wed Aug 01, 2012 3:39 pm

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.

tristanseifert
Interested
Posts: 35
Joined: Tue Sep 06, 2011 2:16 am
Location: /dev/sa0
Contact:

Post by tristanseifert » Wed Aug 01, 2012 4:29 pm

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
Very interested
Posts: 111
Joined: Mon Sep 06, 2010 12:05 pm
Contact:

Post by sigflup » Wed Aug 01, 2012 5:47 pm

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.

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Wed Aug 01, 2012 5:54 pm

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

sasuke
Newbie
Posts: 7
Joined: Tue Jun 09, 2009 5:39 pm
Location: Nowhere, USA

Post by sasuke » Wed Aug 01, 2012 8:25 pm

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
Very interested
Posts: 111
Joined: Mon Sep 06, 2010 12:05 pm
Contact:

Post by sigflup » Wed Aug 01, 2012 8:38 pm

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

sasuke
Newbie
Posts: 7
Joined: Tue Jun 09, 2009 5:39 pm
Location: Nowhere, USA

Post by sasuke » Wed Aug 01, 2012 9:19 pm

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.

sigflup
Very interested
Posts: 111
Joined: Mon Sep 06, 2010 12:05 pm
Contact:

Post by sigflup » Wed Aug 01, 2012 9:57 pm

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

sasuke
Newbie
Posts: 7
Joined: Tue Jun 09, 2009 5:39 pm
Location: Nowhere, USA

Post by sasuke » Wed Aug 01, 2012 11:00 pm

Ok. It compiled sucessfully. :D

sigflup
Very interested
Posts: 111
Joined: Mon Sep 06, 2010 12:05 pm
Contact:

Post by sigflup » Wed Aug 01, 2012 11:05 pm

sasuke wrote:Ok. It compiled sucessfully. :D
ossum!!

Post Reply