Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 3 4 [5] 6

Author Topic: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)  (Read 25534 times)

korora

  • Bay Watcher
    • View Profile

Yeah, it sends me an email when I get PMs (and incidentally also when someone replies to this post).  I'd be happy to post the source; I can't right now because I'm at work, but let me look it over and make sure there's nothing too ugly I've left behind in there and I'll put it up.
Logged
DFPaint, a cross-platform 'screenbuilder' utility

Rafal99

  • Bay Watcher
    • View Profile

Great! I can't wait to see it! :)

Btw. What development environment are you you using?
I have used Eclipse, but never wrote any separate application in Java (don't even know if you can do it in Eclipse, I only wrote some classes for another application which loaded them and was calling the methods etc.).
Although I have a lot a of experience with C++ applications, so shouldn't have much problems, and I have to learn Java anyway. ;)
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

korora

  • Bay Watcher
    • View Profile

OK, this may not be the best way to distribute source code, but here it is.  Each spoiler is a java class (yes, there are only 4).  I developed this in Eclipse.  To get it to run in Eclipse (without compiling to a jar first) you have to have your data in the DFPaint project folder in your Eclipse workspace.  If you're using a different IDE, I don't know where it should go but it has to find the data folder in the default directory.

The code has approximately zero documentation, so it's pretty much up to you to figure out what I did. I haven't looked at it for a good 2 months, but I can try to answer any questions you have.

Good luck!

Spoiler: DFPaintTileset.java (click to show/hide)

Spoiler: DFPaintTile.java (click to show/hide)

Spoiler: DFPaintPanel.java (click to show/hide)

Spoiler: DFPaintMainWindow.java (click to show/hide)
Logged
DFPaint, a cross-platform 'screenbuilder' utility

Rafal99

  • Bay Watcher
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #63 on: November 08, 2008, 06:14:04 am »

For everyone interested:
I am working on DFPaint code and if nothing comes wrong, new version should be ready in a few days.
I have added some new features but won't give any specifics until it is finished. ;)
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

sonerohi

  • Bay Watcher
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #64 on: November 28, 2008, 12:06:32 am »

Can anyone help me get this to work on a vista? I've got in unzipped but it absolutely refuses to open any sort of window or anything no matter how much clicking I do.
Logged
I picked up the stone and carved my name into the wind.

PTTG??

  • Bay Watcher
  • Kringrus! Babak crulurg tingra!
    • View Profile
    • http://www.nowherepublishing.com
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #65 on: November 29, 2008, 11:29:55 am »

Can anyone help me get this to work on a vista? I've got in unzipped but it absolutely refuses to open any sort of window or anything no matter how much clicking I do.

I'm not sure. What comes to mind is:
 Ya got java? Ya got compatabiliy mode on? Ya got electricity? Yar mouse plugged in?

If none of those are the problem, tell us some specifics.
Logged
A thousand million pool balls made from precious metals, covered in beef stock.

Rafal99

  • Bay Watcher
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #66 on: December 01, 2008, 03:58:09 am »

You need to have it in the same folder as 'dwarfort.exe'.
You also need to have 'curses_640x300.bmp' file (default tileset) in <DF folder>\data\art\ because it assumes it is there.

In the next version it popups a message when something goes wrong, instead of just closing.
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

Mikademus

  • Bay Watcher
  • Pirate ninja dwarves for great justice
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #67 on: December 01, 2008, 06:09:56 pm »

This thread needs moar screenshots. Of the app too.
Logged
You are a pirate!

Quote from: Silverionmox
Quote from: bjlong
If I wanted to recreate the world of one of my favorite stories, I should be able to specify that there is a civilization called Groan, ruled by Earls from a castle called Gormanghast.
You won't have trouble supplying the Countess with cats, or producing the annual idols to be offerred to the castle. Every fortress is a pale reflection of Ghormenghast..

A_Fey_Dwarf

  • Bay Watcher
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #68 on: December 01, 2008, 07:07:12 pm »

This thread needs moar screenshots. Of the app too.

Here you go:

Stage1
Spoiler (click to show/hide)
Stage2
Spoiler (click to show/hide)
Stage3
Spoiler (click to show/hide)

I couldn't use alt screenprint, so you could see both windows of the app (canvas and selector) I had to show you my desktop (oh noes).


Edit: just looked at the time between start and finish, I can't believe that took 40 minutes.
« Last Edit: December 01, 2008, 07:09:06 pm by A_Fey_Dwarf »
Logged

Mikademus

  • Bay Watcher
  • Pirate ninja dwarves for great justice
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #69 on: December 01, 2008, 08:09:14 pm »

Thanks! Reminds me of my younger days when I drew ANSI art for BBS welcome screens! I used a program called "ANSI Paint" and back then I never really understood why I always got a virus after running that program... Since then I've become considerably better at causality.
Logged
You are a pirate!

Quote from: Silverionmox
Quote from: bjlong
If I wanted to recreate the world of one of my favorite stories, I should be able to specify that there is a civilization called Groan, ruled by Earls from a castle called Gormanghast.
You won't have trouble supplying the Countess with cats, or producing the annual idols to be offerred to the castle. Every fortress is a pale reflection of Ghormenghast..

Rafal99

  • Bay Watcher
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #70 on: December 02, 2008, 01:02:06 pm »

Here you can see how the palette will look like in the next version:
Spoiler (click to show/hide)

Hope you like it. ;)
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

korora

  • Bay Watcher
    • View Profile
Re: DFPaint: A cross-platform 'screenbuilder' utility in Java (Source released)
« Reply #71 on: December 02, 2008, 01:31:13 pm »

Nice! You clearly have much more patience with swing than I do.
Logged
DFPaint, a cross-platform 'screenbuilder' utility

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile


The epic battle of Deathpain!
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Foa

  • Bay Watcher
  • And I thought foxfire was stylish in winter.
    • View Profile

Peasants.






The Reverse Trike Siege Mobile...

Logged

Duke 2.0

  • Bay Watcher
  • [CONQUISTADOR:BIRD]
    • View Profile

 That first image with the river, it must be sent to Toady NOW!
 I want more twisty rivers dammit!
Logged
Buck up friendo, we're all on the level here.
I would bet money Andrew has edited things retroactively, except I can't prove anything because it was edited retroactively.
MIERDO MILLAS DE VIBORAS FURIOSAS PARA ESTRANGULARTE MUERTO
Pages: 1 ... 3 4 [5] 6