Tool: GRF Creator [developing]

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
orudge
Administrator
Administrator
Posts: 24010
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Tool: GRF Creator [developing]

Post by orudge » 09 Feb 2004 23:59

This is now the official topic for GRF Creator, a program to create GRF files.

At the moment, the way I plan for GRF Creator to work is as follows:

1. You create all the vehicle stats, import graphics, and so on, in GRF Creator

2. You can save your parameters to a data file (NOT a GRF file).

3. You can then export this to a GRF file.

Please be aware that it is not currently planned that this program will edit existing GRF files directly! This might be added in a future version.

Currently implemented actions

Action 0
- Properties and features read from an INI file
- Currently rewriting GRF writing routines for action 0 to deal with INI system

Action 8
- Complete (dialog box to add GRFID, description, copyright and required version)

Action A
- In progress
- Can import PCX, BMP, GIF, PNG, RLE files
- Can select a part of the file to use
- Graphics Editor (by Andrex) to position graphic, etc, for TTD
- Can write out to GRF

Action B
- Doing some experimentation with this

The next actions I'm going to attempt will probably be actions 1 and 4.

Attached are a couple of screenshots of how the program is just now. (Please excuse the various "Command1" type buttons spread about the place and the problems with the XP theming).
Attachments
grf_creator_4.png
Look familiar? Parts of Andrex's NFO Editor have been integrated into this program.
grf_creator_4.png (33.39 KiB) Viewed 23486 times
grf_creator_3.png
Action A (modification of existing TTD sprites). PCX, PNG, GIF, BMP and RLE files can be read, and you have a little movable box to select which part of a large image you want to use.
grf_creator_3.png (23.2 KiB) Viewed 23495 times
grf_creator_2.png
Action 0 Trains
grf_creator_2.png (17.9 KiB) Viewed 23506 times
grf_creator_1.png
The Action 0 editing section, for ships. All the properties are stored in an INI and controls are dynamically generated.
grf_creator_1.png (17.13 KiB) Viewed 23505 times

Kruz
Traffic Manager
Traffic Manager
Posts: 253
Joined: 04 Dec 2003 11:44
Location: Einherjerland

Post by Kruz » 10 Feb 2004 00:08

Sweet :D
That program will be exctremely usefull :!:
Image

User avatar
orudge
Administrator
Administrator
Posts: 24010
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge » 10 Feb 2004 00:22

It'll look a lot better when it's done, obviously, but right now, I just want to get it working. :)

alphanumeric
Director
Director
Posts: 516
Joined: 02 Aug 2003 23:45

Post by alphanumeric » 10 Feb 2004 02:30

I will definitly be using this once its out.. great work owen =) very impressed

User avatar
George
Tycoon
Tycoon
Posts: 4306
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: SPb, Russia.
Contact:

Re: Tool: GRF Creator [developing]

Post by George » 10 Feb 2004 07:04

orudge wrote:This is now the official topic for GRF Creator, a program to create GRF files.
Attached are a couple of screenshots of how the program is just now. (Please excuse the various "Command1" type buttons spread about the place and the problems with the XP theming).
As I can see, it includes NFO editor. Would my suggestions for that program be implemented? Without zoom it's very hard to work with sprites. And now I also suggest to have 3 times and 5 times zoom to see the control line in the middle of the zoomed pixels

User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11597
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase » 10 Feb 2004 07:15

Cheers Owen! This might finally give me the excuse to get an Australian Set underway :shock:. Just need some art talent next ;)
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club

User avatar
orudge
Administrator
Administrator
Posts: 24010
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Re: Tool: GRF Creator [developing]

Post by orudge » 10 Feb 2004 09:45

George wrote:Would my suggestions for that program be implemented? Without zoom it's very hard to work with sprites. And now I also suggest to have 3 times and 5 times zoom to see the control line in the middle of the zoomed pixels
I'll see what I can do. I agree that it can be a bit difficult to get everything lined up just the way you want it to be.

goalie
Route Supervisor
Route Supervisor
Posts: 406
Joined: 28 Aug 2003 14:54
Location: Düsseldorf
Contact:

Post by goalie » 10 Feb 2004 12:40

looks great

User avatar
krtaylor
Tycoon
Tycoon
Posts: 11773
Joined: 07 Feb 2003 01:58
Location: Washington DC, USA
Contact:

Post by krtaylor » 13 Feb 2004 00:29

Looks great so far! It's coming along so well. Any idea of its ETA? We're going to badly need it soon, the US and Japan sets are I think maybe half done.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there

User avatar
orudge
Administrator
Administrator
Posts: 24010
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge » 13 Feb 2004 13:53

I'm not too sure when it'll be done - I'm in the middle of exams right now, which finish next week. I'll be busy this weekend reinstalling everything on my nice new 120GB HD too, but I'll see if I can get a bit of work done, and I'll release a version of the program sometime that can add new vehicles and specify parameters, etc, but it won't be able to do everything possible (don't expect callbacks and different liveries, etc, in the first version!).

User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11597
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase » 14 Feb 2004 07:06

A little OT, but good luck with exams :)). I will be excited to see this program released, no matter how *basic* you claim it to be (antyhing that makes grf files will be a big help!)
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club

User avatar
orudge
Administrator
Administrator
Posts: 24010
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge » 03 Mar 2004 15:32

For those who are interested, I'll see if I can do some more work on this sometime soon. I'm still awfully busy right now. :(

User avatar
krtaylor
Tycoon
Tycoon
Posts: 11773
Joined: 07 Feb 2003 01:58
Location: Washington DC, USA
Contact:

Post by krtaylor » 03 Mar 2004 15:56

Can't wait to have it working. Espc. since minime seems to have dropped off the Net, and he was coding the GRF files for the Japan set :(
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there

User avatar
Andrex
Tycoon
Tycoon
Posts: 1308
Joined: 22 Nov 2002 05:08
Contact:

Post by Andrex » 04 Mar 2004 18:15

Owen, for the tabs control you must use a picture box for each tab and then show or hide the apropiate picture box according to the selected tab. Check the TTDXC code when you click the tab.

User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7571
Joined: 10 Dec 2002 20:36
Skype: Bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn » 04 Mar 2004 18:42

I am soooo going to use this in making random graphics. 8)

User avatar
orudge
Administrator
Administrator
Posts: 24010
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge » 04 Mar 2004 19:48

Andrex wrote:Owen, for the tabs control you must use a picture box for each tab and then show or hide the apropiate picture box according to the selected tab. Check the TTDXC code when you click the tab.
Yes, I know that, but for various reasons, I'm trying it another way (which is similar).

User avatar
krtaylor
Tycoon
Tycoon
Posts: 11773
Joined: 07 Feb 2003 01:58
Location: Washington DC, USA
Contact:

Post by krtaylor » 09 Mar 2004 00:39

How is this going, Owen?
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there

User avatar
spaceman-spiff
Retired Moderator
Retired Moderator
Posts: 20666
Joined: 28 Jul 2002 07:08
Location: Belgium
Contact:

Post by spaceman-spiff » 09 Mar 2004 03:09

Can this thing remove statues and fountains ?
Cause these things are holding me back from playing TTD more than 1 hour a day
Well, back to work, lot's of it in the near future

User avatar
krtaylor
Tycoon
Tycoon
Posts: 11773
Joined: 07 Feb 2003 01:58
Location: Washington DC, USA
Contact:

Post by krtaylor » 09 Mar 2004 03:17

No, this is something totally else. It's a tool to turn sprites into working GRF files that can be included. Like the US set, the Japan set, the DB set, etc. You're talking about TTDAlter. Although, I have asked that the Patch be extended to let you change building attributes in the same was as you can vehicles, so then there could be a GRF file that replaced statues and fountains with, say, high-rise office buildings that actually did something useful. Which would be great.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13190
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus » 09 Mar 2004 07:26

This tool should enable you to turn the statues and fountains into something more sensible.

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ragin1_ and 5 guests