GRF encoder tool: GRFMaker [under development]

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

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

Post by Szappy »

Aegir, we haven't forgot about you, and your ideas. The custom station classes is underway.

The other request... well... it's seems too complex to me to even think about implementation.
OTOH I don't see _that_ much benefit, to warrant for the work it requires. But sometimes an good idea makes something impossible, easy to implement anyway.
So it's not a NO, rather a not now ;)
Image please use email instead of PM
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus »

I've tried importing an NFO today, a rather large and complicated one. It belongs to a train with multiple variable action 2's, the GRF of this train works fine in a58. As soon as I press enter after selecting the NFO, GRFmaker launches itself for a second time and both become unresponsive.
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

You've got A58 already ? :shock:

You lucky bas.....d. :lol:
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus »

OK, I was overzealous. a57 and it works fine :)
BobDendry
Tycoon
Tycoon
Posts: 2215
Joined: 06 May 2004 09:10
Location: Sydney

Post by BobDendry »

I have a small problem. Only small, but, meh.
OK. When I started trying to make articulated engines, I had this problem, though I didn't really notice it. Now that I've started on Comments for my locos, I had this problem.
OK, when you select 0C Current Callback from the drop down list in the Variational Graphics Block, It shows the different callbacks you can do. They are shown with hexidecimal numbers, yet the form where you input the callback number is decimal. Maybe in brackets after the callbacks they could have the decimal number?
Attachments
problem.PNG
problem.PNG (83.84 KiB) Viewed 1041 times
Formerly known as Lachie
User avatar
gl2
Engineer
Engineer
Posts: 21
Joined: 21 Jun 2004 08:20
Location: Budapest, Hungary

Post by gl2 »

WhiteHand wrote:I have a small problem. Only small, but, meh.
OK. When I started trying to make articulated engines, I had this problem, though I didn't really notice it. Now that I've started on Comments for my locos, I had this problem.
OK, when you select 0C Current Callback from the drop down list in the Variational Graphics Block, It shows the different callbacks you can do. They are shown with hexidecimal numbers, yet the form where you input the callback number is decimal. Maybe in brackets after the callbacks they could have the decimal number?
Hello WhiteHand!

You right!
In the next version I will do this.

Laci
User avatar
Zimmlock
Tycoon
Tycoon
Posts: 2112
Joined: 02 Dec 2003 16:01
Location: Belgium

Post by Zimmlock »

Need a little help, i have produced my first grf with this fine tool, but i did something wrong, the grf has a mistake and ll not load in the game.
Second, questions, how do i know what compression to use, look at trg1?
How do i get the right X-Yrel, the old verry time taking way or is there a other?.
Attachments
error.png
error.png (1.02 KiB) Viewed 6036 times
Hodie Mihi Cras Tibi
BobDendry
Tycoon
Tycoon
Posts: 2215
Joined: 06 May 2004 09:10
Location: Sydney

Post by BobDendry »

The grf file has multiple action 8 entries
This basically means that the block which contains the name, GRF-ID and description of the GRF has been added more then once.
Formerly known as Lachie
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Zimmlock wrote:Need a little help, i have produced my first grf with this fine tool, but i did something wrong, the grf has a mistake and ll not load in the game.
Code 12 means that there are multiple action 8s, though I'm not sure why exactly GRFMaker would let you do that.
Zimmlock wrote:Second, questions, how do i know what compression to use, look at trg1?
I always use 01. The other three valid values are 03, 09, and 0B. See the Action 1 page for exactly what those values mean.
Zimmlock wrote:How do i get the right X-Yrel, the old verry time taking way or is there a other?.
Trial and error, a bit of luck, and, occasionally, a little bit of knowing-what-you're-doing. If you can align your sprite with a very similar one in trg?r, start with the same offsets as the trg?r sprite.
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
Zimmlock
Tycoon
Tycoon
Posts: 2112
Joined: 02 Dec 2003 16:01
Location: Belgium

Post by Zimmlock »

DaleStan wrote:
Zimmlock wrote:Need a little help, i have produced my first grf with this fine tool, but i did something wrong, the grf has a mistake and ll not load in the game.
DaleStan wrote: Code 12 means that there are multiple action 8s, though I'm not sure why exactly GRFMaker would let you do that.
I added commentairy later i guess it happend there.
Zimmlock wrote:Second, questions, how do i know what compression to use, look at trg1?
DaleStan wrote: I always use 01. The other three valid values are 03, 09, and 0B. See the Action 1 page for exactly what those values mean.
I copy the compression values from trg1 this is a small road set and all roads have 09.
Zimmlock wrote:How do i get the right X-Yrel, the old verry time taking way or is there a other?.
DaleStan wrote: Trial and error, a bit of luck, and, occasionally, a little bit of knowing-what-you're-doing. If you can align your sprite with a very similar one in trg?r, start with the same offsets as the trg?r sprite.
I do it this way but its a hell of a job when you have 12 verry different sprites then the "original" sprites. i Have not enough knowlidge of programming otherwise i would make a sprite image ajustment tool i have an idea for it, just select the ground tile (for building) mostly this has -31 0 as X-Yrel this is place automatic in a small grid, than select the building sprite, now you can move with mouse that building sprits to its required position on the ground tile, when in place clik a button and the X-Yrel is outputted to a txt file. I could draw (how it would look) the program but i cant write the software :cry:
Hodie Mihi Cras Tibi
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

There is an extension in the works, that will help x/yrel placing easier, by displaying a grid, and - for vehicles - road/rail tiles.
Don't ask when it will get done, tho ;)
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 »

The latest version (2.21) has already implemented this, I just forgot to PM you about it :oops: In that version, there is a sprite-positioner button in the action1 sprite list window (at least for houses, I haven't tried the others), so you can position the sprites visually. I'm sure GL2 can make a stand-alone tool for you as well if you need one.
Reality is that which, when you stop believing in it, doesn't go away.—Philip K. Dick
User avatar
Grigory1
Traffic Manager
Traffic Manager
Posts: 204
Joined: 07 Jun 2005 09:36
Location: Tallinn, Estonia
Contact:

Post by Grigory1 »

Csaboka wrote:I'm sure GL2 can make a stand-alone tool for you as well if you need one.
And for coding planes GL2
Can make the independent tool :?: :oops:
BobDendry
Tycoon
Tycoon
Posts: 2215
Joined: 06 May 2004 09:10
Location: Sydney

Post by BobDendry »

There's no need for a standalone tool for coding planes. GRF Maker can already do that. besides, it would be a waste of time to rip the plane code from the rest of the program.
Formerly known as Lachie
User avatar
Zimmlock
Tycoon
Tycoon
Posts: 2112
Joined: 02 Dec 2003 16:01
Location: Belgium

Post by Zimmlock »

Dont need a stand alone version, but uh :oops: action1 sprite list window ? how do i get that and does it do 2 and 4 tile buildings to?
Hodie Mihi Cras Tibi
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus »

I need GRFmaker help for coding trains. If anyone can supply me with a(n extensively) commented example of one of the following you're bound to go to heaven:

I saved 1 ID for all tenders in the Dutch Trainset but not all steam engines have the same tender, they differ in shape. How can I arrange that the proper engines end up with the proper tenders?

I'm also dying to find out how to enable livery refits with GRFmaker. We've got 1 particular steamer that we prefer to present as a livery refit instead of a stand-alone ID.
BobDendry
Tycoon
Tycoon
Posts: 2215
Joined: 06 May 2004 09:10
Location: Sydney

Post by BobDendry »

Use the assign windows to allow livery overrides for tender, just like you would with coaches.
I'm also interested in how to do Livery refits, so we're not alone. Did you get comments working?
RK
Transport Coordinator
Transport Coordinator
Posts: 264
Joined: 13 Oct 2003 10:43
Location: Dortmund, Germany

Post by RK »

Hey I'am also interested in Livery refits, I just got Cargo refits to work...
User avatar
jvassie
Tycoon
Tycoon
Posts: 3421
Joined: 18 Dec 2002 18:00
Location: High Wycombe, England
Contact:

Post by jvassie »

Szappy, could you send me a copy of GRFMaker please?

Cheers
James
(British) Modular Stations Set - Thread: | Website:
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
User avatar
jvassie
Tycoon
Tycoon
Posts: 3421
Joined: 18 Dec 2002 18:00
Location: High Wycombe, England
Contact:

Post by jvassie »

Hey all!

Im not sure if this is a bug, probably isnt though, maybe a need for help! When i try to add a vehicle sprite block, i choose my options, click ok, and i get errors saying firstly that the BMP file contains more than 500 sprites, then an error saying no sprite selected in the sprite block.

Any ideas to fix this please?

Sorry for the double post btw

Cheers
James
(British) Modular Stations Set - Thread: | Website:
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 7 guests