[Tool] Sprite editor for TTD

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

[Tool] Sprite editor for TTD

Post by Szappy »

Hello all!

I hereby present you a sprite editor specifically designed for TTD.
It contains TTD win palette, able to make DOS sprites automatically too.
Can easily pick up colors, shift patettes, has image/palette selection, even a pixel randomizer (very handy to draw textured surfaces).

Developed and programmed by gl2.
Certain ideas and features by Csaboka and Szappy

This program comes without warranty of any kind!
Be sure to save your work, before using, just in case...

This is the exact same unit, that is contained in the GRFMaker program as well.

[update 2004.11.17.]
added grid,
can save dos-paletted images
png support underway
window maximize underway

[update 2004.12.06.]
palette colors can be rearranged
hex display of color indices
select all
shortcuts added
rectangular select, copy/paste


[update 2005.02.21.]
corrected the 'corrupt' .pcx output
it wasn't really broken, it was just using a new pcx compression algorithm, that some graphic programs did not recognize.

[update 2005.04.29.]
middle click pipette corrected
rectangle select: palette selection applies only to selected area
version number will now follow GRFMaker version (date remains 2003 tho)
palette selection on importing truecolor bitmaps
action color conversion on importing truecolor bitmaps
paste from file
preview window (for previewing TTD recolor effects)

Szappy
Attachments
sprite210C.zip
(457.22 KiB) Downloaded 2348 times
Last edited by Szappy on 29 Apr 2005 13:19, edited 4 times in total.
Image please use email instead of PM
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

WOW! This works like a dream!

Can you makie it open .png files though? Im sure many people have their edited graphics as png's and they are perfect for showing on the forums.

Also, a pixel randomiser would be excellent!

Brilliant Work!
Image
AndrewA
Route Supervisor
Route Supervisor
Posts: 406
Joined: 13 Mar 2004 15:17

Post by AndrewA »

I agree: great :D , but the ability to work with .png files would be a good addition.
Nothing to see here
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

Randomizer is already in, you select multiple colors from the palette, and draw...

As for the .png... we'll need a good format documentation on that.
Image please use email instead of PM
User avatar
Csaboka
Tycoon
Tycoon
Posts: 1202
Joined: 25 Nov 2002 16:30
Location: Tiszavasvári, Hungary
Contact:

Post by Csaboka »

Born Acorn wrote:Also, a pixel randomiser would be excellent!
It already has one: select multiple colors from the palette (hold down ctrl), then draw with the left button, or do a floodfill. Here you are: randomized pixels.
Reality is that which, when you stop believing in it, doesn't go away.—Philip K. Dick
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Thats my fault, I was going to put png support would be great, but changed it to pixel randomisation.

It was meant to say is great
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Szappy wrote:As for the .png... we'll need a good format documentation on that.
libpng?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
orudge
Administrator
Administrator
Posts: 25213
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

libpng is nice and easy to use. I haven't downloaded your program, what language are you using?
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

It's in english...or perhaps not but then it was in some language that didn't bother me enough to not to notice :P

I gave the program a try, and being the devil I am, I tried trgr1.grf. It didn't really like it...pretty much hogged the CPU 100% for minutes after which I decided that it was not gonna work and terminated to program :).

But it looks nice, and I weren't so evil, it would have probably worked just fine.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Kruz
Traffic Manager
Traffic Manager
Posts: 253
Joined: 04 Dec 2003 11:44
Location: Einherjerland

Post by Kruz »

Errr... I tried to open some of my work but everything looks grey. Is this a bug or did I do something wrong? The file I tried to open was a bmp file.

I tried to attach a creenie but the server wouldnt let me. I got an error message stating: Upload Error: Could not upload Attachment to ./files/bugorsomething.png.


Edit: Aslo, a grid would be nice
Image
BobDendry
Tycoon
Tycoon
Posts: 2215
Joined: 06 May 2004 09:10
Location: Sydney

Post by BobDendry »

looks pretty good. Im a pretty newb artist but its still helpful.
Formerly known as Lachie
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

orudge wrote:... what language are you using?
Borland Delphi 7
Darkvater wrote:It's in english...or perhaps not but then it was in some language that didn't bother me enough to not to notice :P
Yes, is that a problem? What did you expect, you want the hungarian version maybe? ;)
Darkvater wrote:But it looks nice, and I weren't so evil, it would have probably worked just fine.
Yep, you're evil :P It wasn't really designed to handle files that large (its 800x19136, if decoded with grfcodec...). Even if it could load that file, moving around in it would be a PITA. I suggest breaking it up with grfcodec.

-edit-
Darkvater wrote:I gave the program a try, and being the devil I am, I tried trgr1.grf.
I never said it can handle .grf files...
Kruz wrote:Errr... I tried to open some of my work but everything looks grey. Is this a bug or did I do something wrong? The file I tried to open was a bmp file.
Please try to attach that screenie, or better yet, post the image, you were trying to open.
Kruz wrote:Edit: Aslo, a grid would be nice
probably a good idea
Image please use email instead of PM
Kruz
Traffic Manager
Traffic Manager
Posts: 253
Joined: 04 Dec 2003 11:44
Location: Einherjerland

Post by Kruz »

I still cant upload files to the forums so I had to host them myself.
http://www.home.no/kruz/BM5.bmp Is the file I tried to open
http://www.home.no/kruz/bugorsomething.png was the result
Image
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

It's because your .bmp is truecolor.
That' easily solved though:
use File/Import true color bitmap.
Image please use email instead of PM
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

it takes up more CPU than paint when directly opening tg1r.pcx

also I can't find a pipette tool. Is there one?
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Born Acorn wrote:also I can't find a pipette tool. Is there one?
It's supposedly middle-click (wheel button)

Szappy, that doesn't work on my computer, with the default mapping of MBUTTON to Auto Scroll

Also, disabling maximize is NOT a good way to endear your GFX program to those using anything larger than 640x480. Put it back, please.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
ThorRune
Tycoon
Tycoon
Posts: 5762
Joined: 09 Oct 2003 14:00
Location: Nordland, Norway
Contact:

Post by ThorRune »

Kruz wrote:Errr... I tried to open some of my work but everything looks grey. Is this a bug or did I do something wrong? The file I tried to open was a bmp file.
Select "Import truecolour BMP" instead of open


Isn't there a lot missing in the palette? I can't find any dark gray
Alcohol is not the answer, it just makes you forget the question.
Kruz
Traffic Manager
Traffic Manager
Posts: 253
Joined: 04 Dec 2003 11:44
Location: Einherjerland

Post by Kruz »

Szappy wrote:It's because your .bmp is truecolor.
That' easily solved though:
use File/Import true color bitmap.


Read the everything in the thread before you reply ThorRune.
Image
User avatar
ThorRune
Tycoon
Tycoon
Posts: 5762
Joined: 09 Oct 2003 14:00
Location: Nordland, Norway
Contact:

Post by ThorRune »

That's not the main part of the message anyways.
Alcohol is not the answer, it just makes you forget the question.
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

This is an excellent program! It even works (very slowly) under Linux in Wine, a cross-platform version would be brilliant but thats probably a bit too much to ask. :cry:

Anyway, one problem I had was when opening a pcx or bmp from an external source (Gimp) the palette got all stuffed up but I am probably doing something wrong.

Oh, and I love the pixel randomizer too!
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 15 guests