GRF encoder tool: GRFMaker [under development]
Moderator: Graphics Moderators
- Bob_Mackenzie
- Chairman
- Posts: 823
- Joined: 25 Mar 2010 13:36
Re: GRF encoder tool: GRFMaker [under development]
I have an articulated vehicle
http://www.tt-forums.net/viewtopic.php? ... 1&start=80
However I'm now struggling with how to get the graphics to change with a refit - help please
Cheers
Bob
http://www.tt-forums.net/viewtopic.php? ... 1&start=80
However I'm now struggling with how to get the graphics to change with a refit - help please
Cheers
Bob
Re: GRF encoder tool: GRFMaker [under development]
I was following the user guide while making my first train loco, and every time I set the image to "fstloco.BMP" in the vehicle sprite block, an error comes up:
RANGE CHECK ERROR.
How do I solve it?
RANGE CHECK ERROR.
How do I solve it?
Re: GRF encoder tool: GRFMaker [under development]
Make sure that "fstloco.BMP" is in 256 colors, using the correct palette. Also make sure that the sprites all start at the same pixel line, that you have a small white margin around all the sprites (and that the image isn't exactly 256 pixels wide?).
Re: GRF encoder tool: GRFMaker [under development]
What do you mean? Here's the sprites.
- Attachments
-
- fstloco.png (1.66 KiB) Viewed 10157 times
- Bob_Mackenzie
- Chairman
- Posts: 823
- Joined: 25 Mar 2010 13:36
Re: GRF encoder tool: GRFMaker [under development]
They look too close together to me - there must be at least 4 pixels between each element, and 4 white pixels between the elements and the outside edge of the picture
Re: GRF encoder tool: GRFMaker [under development]
Actually, that's not true. There are two things that are important, though:
- make sure the image is in 256 colors, preferably a .PCX
- make sure there are at least four empty lines *under* the sprites (GRFMaker uses this space to encode xrel/yrel in the image)
Doing those two changes on your image makes it work for me in GRFMaker 3.04B_r216
- make sure the image is in 256 colors, preferably a .PCX
- make sure there are at least four empty lines *under* the sprites (GRFMaker uses this space to encode xrel/yrel in the image)
Doing those two changes on your image makes it work for me in GRFMaker 3.04B_r216
- Attachments
-
- Image1.pcx
- (3.26 KiB) Downloaded 281 times
Re: GRF encoder tool: GRFMaker [under development]
Thanks. When I tried to make the .grf file, it says this:
ERROR: Invalid filename.
How come?
ERROR: Invalid filename.
How come?
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: GRF encoder tool: GRFMaker [under development]
The directory your trying to compile the grf to does not contain a "newgrf" folder (it must be named newgrf)kcjonesrr wrote:Thanks. When I tried to make the .grf file, it says this:
ERROR: Invalid filename.
How come?
Proud Canadian
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Re: GRF encoder tool: GRFMaker [under development]
You mean set the game's path to a newgrf folder?
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: GRF encoder tool: GRFMaker [under development]
Say you set it to "C:\Program Files\OpenTTD" then the folder the path points to must contain a folder called newgrfkcjonesrr wrote:You mean set the game's path to a newgrf folder?
Proud Canadian
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Re: GRF encoder tool: GRFMaker [under development]
Thanks. Now I've made my first grf file, you can find it in the Graphics Development forum.
BTW, if I'm making multiple locos, do I repeat the process as shown in the tutorial but give them different IDs?
BTW, if I'm making multiple locos, do I repeat the process as shown in the tutorial but give them different IDs?
- Bob_Mackenzie
- Chairman
- Posts: 823
- Joined: 25 Mar 2010 13:36
Re: GRF encoder tool: GRFMaker [under development]
Only the ID blocks need new ID;s the graphics blocks (G) can re-use ID's
- Bob_Mackenzie
- Chairman
- Posts: 823
- Joined: 25 Mar 2010 13:36
Re: GRF encoder tool: GRFMaker [under development]
I'm using v4.01 to code helicopters (see the release forum)
The speed certainly isn't in kmh - I've entered a value of 60 to get a game speed of 96mph (edit Ive sussed it - 60 is HEX for 96)
Also the button to change the running costs doesn't work
[EDIT]
It also fails to load rotor sprites and kills the prog with the following error
Cheers
Bob
The speed certainly isn't in kmh - I've entered a value of 60 to get a game speed of 96mph (edit Ive sussed it - 60 is HEX for 96)
Also the button to change the running costs doesn't work
[EDIT]
It also fails to load rotor sprites and kills the prog with the following error
Cheers
Bob
Re: GRF encoder tool: GRFMaker [under development]
Unfortunately, it's not much use reporting problems with GRFMaker 4.01, as the open source version is only at 3.04B_r_<something>. I don't know who is programming the 4.01 version, but it seems it is only available on the hungarian tt-forum?
Anyway, we can only find and (possibly) fix problems in the open source branch, not in other versions.
Anyway, we can only find and (possibly) fix problems in the open source branch, not in other versions.
Re: GRF encoder tool: GRFMaker [under development]
I dunno how do you call that but i want to make different skin for the same wagon depending of the train. Because i'm making train set and i want to do somehing like Temperate trainset GRF witch they change from the color of the train. Its is possible and how it would be. I'm using GRF Maker 4.01
Thanks
Thanks
- colossal404
- Chief Executive
- Posts: 652
- Joined: 07 Mar 2009 12:48
- Location: Szeged, Hungary
Re: GRF encoder tool: GRFMaker [under development]
It's possible, you have to set these things in vehicle assign block.
If a passenger car attached to this locomotive (red marked), the blue marked graphics ID will be shown in game. Of cours, you need to set a new graphics block with that ID to gt it works.
If a passenger car attached to this locomotive (red marked), the blue marked graphics ID will be shown in game. Of cours, you need to set a new graphics block with that ID to gt it works.
- Attachments
-
- ijkl.PNG (47.61 KiB) Viewed 3720 times
Re: GRF encoder tool: GRFMaker [under development]
By the way is this possible to add more train in the game? I would like to keep all those train who are already existing and i want to add a new Maglev. It is possible to create some ID that don'T exist?.
- colossal404
- Chief Executive
- Posts: 652
- Joined: 07 Mar 2009 12:48
- Location: Szeged, Hungary
Re: GRF encoder tool: GRFMaker [under development]
No, you have to overwrite an existing vehicle, but use the toyland vehicle IDs.
- Bob_Mackenzie
- Chairman
- Posts: 823
- Joined: 25 Mar 2010 13:36
Re: GRF encoder tool: GRFMaker [under development]
I fear you are right - I was wondering if Colossal 404 has contacts?Unfortunately, it's not much use reporting problems with GRFMaker 4.01,
- colossal404
- Chief Executive
- Posts: 652
- Joined: 07 Mar 2009 12:48
- Location: Szeged, Hungary
Re: GRF encoder tool: GRFMaker [under development]
Yeah, I have contact with the programmer, so I can report bugs to him.
Who is online
Users browsing this forum: No registered users and 9 guests