GPWiki.org
GPWiki.org
It is currently Wed May 22, 2013 11:46 pm

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: OpenJigsaw
PostPosted: Tue Jan 18, 2005 9:57 am 
Carmack Clone

Joined: Fri Sep 24, 2004 2:49 pm
Posts: 681
Finally got something to announce. It was hard to leave such a nice new forum alone for all of the four days it has existed.

After working on overambitious programs that I just know are never going to be finished for a while I decided to tackle something workable. I'm not sure why, but I chose a jigsaw puzzle program. After three days of doing little but coding and thinking about coding I finished it yesterday.

I used wxWindows/wxWidgets (http://www.wxwindows.org) for the GUI stuff. First time I used that so I actually learned something new there. I can really recommend this library - quite well-designed and flexible. The only downside is a that it's a little bloated (a 5 mb dll in windows).

Anyway, if you'd like to test out my new creation, get it at http://marijn.haverbeke.nl/jigsaw. The source is there, as well as binaries. It is released under the Zlib license, which means you can do almost anything you like with it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 5:04 pm 
Also known as "Lucky"

Joined: Sat Aug 07, 2004 9:22 pm
Posts: 5853
Location: Vancouver, Canada
Cool, Marijn! I'll test it out later today, and let you know how it goes :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 5:32 pm 
Super Donkey Monkey Wrestler

Joined: Wed Oct 20, 2004 8:15 pm
Posts: 951
Location: Saskatchewan
Hey. I just compiled it under Linux (note to other people that don't read the docs: change the platform in the Makefile from windows to linux), but I'm getting some funky glitches with it.

Here's what I mean:
http://digitalhell.cjb.net/~ryan/openjigsaw.png

I'll take a look at the code and see if I can figure anything out, but you might have a better idea what's going on than I do. I've never use wx before, either.

_________________
Ryan

"What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty and democracy?" - Gandhi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 5:37 pm 
Super Donkey Monkey Wrestler

Joined: Wed Oct 20, 2004 8:15 pm
Posts: 951
Location: Saskatchewan
Oh, I should mention that you should consider using a PNG for your icon. It's the standard icon format on Linux (pretty much) and I believe Windows can use PNG's for icons, too.

_________________
Ryan

"What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty and democracy?" - Gandhi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 6:38 pm 
Carmack Clone

Joined: Fri Sep 24, 2004 2:49 pm
Posts: 681
It currently only has an icon in windows, I haven't gotten to the X icon yet. I'm pretty sure windows only supports .ico icons though.

Those glitches do look pretty bad. Which wx platform are you using? I'm afraid I only tested wxGTK (and the one for windows). It looks as if some of the masks for the pieces are screwed up - the wrong areas are transparant. It is like this right when you start the game right? Or does it degrade when you start pulling stuff around?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 7:06 pm 
Super Donkey Monkey Wrestler

Joined: Wed Oct 20, 2004 8:15 pm
Posts: 951
Location: Saskatchewan
Marijn wrote:
It currently only has an icon in windows, I haven't gotten to the X icon yet. I'm pretty sure windows only supports .ico icons though.


I'm pretty sure Windows supports PNG, too. Anyway, it doesn't matter, it's probably best to have both anyway.

Quote:
Those glitches do look pretty bad. Which wx platform are you using? I'm afraid I only tested wxGTK (and the one for windows).


Yeah, I'm using wxGTK

Quote:
It looks as if some of the masks for the pieces are screwed up - the wrong areas are transparant. It is like this right when you start the game right? Or does it degrade when you start pulling stuff around?


Yeah, as soon as I pick an image and puzzle size they are screwed up. They stay in the same screwed up shape the whole time, it doesn't change or flicker or anything.

I also get this warning (which I noticed after initially posting the problem):
(jigsaw:20446): GLib-GObject-WARNING **: invalid cast from `GdkPixmap' to `GdkWindow'

I think it likely has something to do with whatever's wrong.

_________________
Ryan

"What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty and democracy?" - Gandhi


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 3:25 pm 
Carmack Clone

Joined: Fri Sep 24, 2004 2:49 pm
Posts: 681
Hmm, can you give me the exact version of wxWidgets you are using? I'm not getting any warnings myself.

Oh and I still had to reply to this: "note to other people that don't read the docs: change the platform in the Makefile from windows to linux"

Doesn't anyone read README files anymore these days?! Well, the first zip I uploaded contained a REAME instead of a README so if you got that one you have a reasonable excuse.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 6:27 pm 
Super Donkey Monkey Wrestler

Joined: Wed Oct 20, 2004 8:15 pm
Posts: 951
Location: Saskatchewan
Marijn wrote:
Hmm, can you give me the exact version of wxWidgets you are using? I'm not getting any warnings myself.


I'm at work right now but I can check that for you when I get home. I did try updating to the newest wxGTK and Gtk+, though (I forget the version numbers).

Quote:
Doesn't anyone read README files anymore these days?!


Nope. Of course not :). I looked at the Makefile before I looked at the README (okay.. I actually haven't even opened up the README at all).

What you should do is make a Makefile and a Makefile.linux, that way I know what to do by just doing a directory listing.

Quote:
Well, the first zip I uploaded contained a REAME instead of a README so if you got that one you have a reasonable excuse.


Uhh.. yeah.. that's probably it.

_________________
Ryan

"What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty and democracy?" - Gandhi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 2:03 am 
Super Donkey Monkey Wrestler

Joined: Wed Oct 20, 2004 8:15 pm
Posts: 951
Location: Saskatchewan
I guess wxGTK is all there is for the wxWidgets library.

I'm using wxGTK 2.4.2 and Gtk+ 2.6.1 (latest versions, I think).

Are you testing wxGTK under Linux or another platform (FreeBSD?)?

_________________
Ryan

"What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty and democracy?" - Gandhi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 12:19 pm 
Carmack Clone

Joined: Fri Sep 24, 2004 2:49 pm
Posts: 681
There's also a MOTIF version for X. I did only test under FreeBSD indeed, I don't have a linux install at the moment. I'm using the same wxGTK version, I think my GTK is an earlier version than yours. Will look into it.

Bugs suck.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 6:17 pm 
Super Donkey Monkey Wrestler

Joined: Wed Oct 20, 2004 8:15 pm
Posts: 951
Location: Saskatchewan
Marijn wrote:
There's also a MOTIF version for X. I did only test under FreeBSD indeed, I don't have a linux install at the moment. I'm using the same wxGTK version, I think my GTK is an earlier version than yours. Will look into it.


Maybe I'll try the MOTIF version if I have time.

Quote:
Bugs suck.


They sure do. Especially with something like wxWidgets, because you can't see the actual Gtk calls you're making that are messing things up. Might want to ask about it on the wxGTK mailing list or something.

_________________
Ryan

"What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty and democracy?" - Gandhi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 9:46 pm 
Also known as "Lucky"

Joined: Sat Aug 07, 2004 9:22 pm
Posts: 5853
Location: Vancouver, Canada
It works perfectly on my Windows98 boot... good stuff!

I used one of the photos I posted on this thread and it was flawless.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 11:34 pm 
Super Donkey Monkey Wrestler

Joined: Wed Oct 20, 2004 8:15 pm
Posts: 951
Location: Saskatchewan
Ryan Clark wrote:
It works perfectly on my Windows98 boot... good stuff!


How about under Linux?

_________________
Ryan

"What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty and democracy?" - Gandhi


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 21, 2005 12:00 am 
Also known as "Lucky"

Joined: Sat Aug 07, 2004 9:22 pm
Posts: 5853
Location: Vancouver, Canada
I don't have wxGTK installed on my Linux boot, but perhaps I'll try it out when I next have some time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group