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

Tool: GRF Creator [developing]

Post by orudge »

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
Look familiar? Parts of Andrex's NFO Editor have been integrated into this program.
Look familiar? Parts of Andrex's NFO Editor have been integrated into this program.
grf_creator_4.png (33.39 KiB) Viewed 27573 times
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.
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 27582 times
Action 0 Trains
Action 0 Trains
grf_creator_2.png (17.9 KiB) Viewed 27593 times
The Action 0 editing section, for ships. All the properties are stored in an INI and controls are dynamically generated.
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 27592 times
Kruz
Traffic Manager
Traffic Manager
Posts: 253
Joined: 04 Dec 2003 11:44
Location: Einherjerland

Post by Kruz »

Sweet :D
That program will be exctremely usefull :!:
Image
User avatar
orudge
Administrator
Administrator
Posts: 25137
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

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 »

I will definitly be using this once its out.. great work owen =) very impressed
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Tool: GRF Creator [developing]

Post by George »

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: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

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

Re: Tool: GRF Creator [developing]

Post by orudge »

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 »

looks great
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

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

Post by orudge »

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: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

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

Post by orudge »

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: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

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
Location: AR
Contact:

Post by Andrex »

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: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

I am soooo going to use this in making random graphics. 8)
Image
User avatar
orudge
Administrator
Administrator
Posts: 25137
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

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: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

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: 20634
Joined: 28 Jul 2002 07:08
Location: Belgium
Contact:

Post by spaceman-spiff »

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: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

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: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus »

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: alan98, Google Adsense [Bot], luxtram and 27 guests