Page 1 of 1

GRF Maker "Invalid filename" error

Posted: 01 May 2015 09:57
by bsamu
Hi!
I started using GRF maker, but when I'm trying to save a project, I get an "Invalid filename" error. I looked for a solutions here, and other forums as well, but couldn't solve it. However, they're old posts, and I'm using the latest version of OpenTTD, and 4.01 version of GRF maker.
Not only my projects can't be saved, but when I load another .lst file and try to save it again, I can't do it either.
So if anyone could help me, I'd be grateful.

Re: GRF Maker "Invalid filename" error

Posted: 01 May 2015 10:55
by kamnet
As posted just a month ago: http://www.tt-forums.net/viewtopic.php? ... 2#p1146482
railroader123 wrote:I've done evrything that guide has told me to but I keep getting an 'Invalid Filename' error whenever I try to turn it into a grf file. I'm using the lastest version. I've cleared it out, reinstalled it and redone it word for word and it still continues to fail!!!! Can someone please help?
See here: http://www.tt-forums.net/viewtopic.php?p=895739#p895739

Keep in mind: GRFMaker is dead. The project was actually abandoned by its original authors several years ago, and nobody has submitted any code fixes for the open source branch in five years. It is not up-to-date with modern OpenTTD. It is likely a better use of your time to learn meta-languages like NML and M4NFO, or just the raw NFO.

Re: GRF Maker "Invalid filename" error

Posted: 01 May 2015 11:39
by bsamu
Thank you, I didn't know about it being dead. I couldn't even make it to work with "newgrf" folders. Seems like I have to look for other methods, as you said.

Re: GRF Maker "Invalid filename" error

Posted: 01 May 2015 12:22
by planetmaker
The recommended way to write NewGRFs is to use one of the two languages:
* NML, a higher-level programming language for NewGRFs
* NFO, the primary NewGRF language, similar to assembler programming

NML supports all features except support for NewGRF bridges and stations.

See http://newgrf-specs.tt-wiki.net/wiki/NML:Main and http://newgrf-specs.tt-wiki.net/wiki/Main_Page
There's also a lot of tutorials, and see also this forum's NewGRF development section

Re: GRF Maker "Invalid filename" error

Posted: 02 May 2015 03:49
by wallyweb
planetmaker wrote:The recommended way to write NewGRFs is to use one of the two languages:
* NML, a higher-level programming language for NewGRFs
* NFO, the primary NewGRF language, similar to assembler programming

NML supports all features except support for NewGRF bridges and stations.

See http://newgrf-specs.tt-wiki.net/wiki/NML:Main and http://newgrf-specs.tt-wiki.net/wiki/Main_Page
There's also a lot of tutorials, and see also this forum's NewGRF development section
m4nfo does both bridges and stations.

Re: GRF Maker "Invalid filename" error

Posted: 02 May 2015 09:05
by planetmaker
wallyweb wrote:
planetmaker wrote:The recommended way to write NewGRFs is to use one of the two languages:
* NML, a higher-level programming language for NewGRFs
* NFO, the primary NewGRF language, similar to assembler programming

NML supports all features except support for NewGRF bridges and stations.

See http://newgrf-specs.tt-wiki.net/wiki/NML:Main and http://newgrf-specs.tt-wiki.net/wiki/Main_Page
There's also a lot of tutorials, and see also this forum's NewGRF development section
m4nfo does both bridges and stations.
Except that it doesn't quite fit the list of compilers as it's a collection of macros which in turn generate plain NFO. Thus you need additional to the NFO-compiler even more boilerplate in form of the macro processor.

Re: GRF Maker "Invalid filename" error

Posted: 02 May 2015 13:56
by wallyweb
planetmaker wrote:Except that it doesn't quite fit the list of compilers as it's a collection of macros which in turn generate plain NFO. Thus you need additional to the NFO-compiler even more boilerplate in form of the macro processor.
Nevertheless m4nfo is still a valid tool that can assist the NewGRF coder and should be included if only out of common courtesy.

Re: GRF Maker "Invalid filename" error

Posted: 05 May 2015 12:04
by flogeza

Re: GRF Maker "Invalid filename" error

Posted: 05 May 2015 13:11
by flogeza
bsamu wrote:Hi!
I started using GRF maker, but when I'm trying to save a project, I get an "Invalid filename" error. I looked for a solutions here, and other forums as well, but couldn't solve it. However, they're old posts, and I'm using the latest version of OpenTTD, and 4.01 version of GRF maker.
Not only my projects can't be saved, but when I load another .lst file and try to save it again, I can't do it either.
So if anyone could help me, I'd be grateful.
Try to create a data and a newgrf folder in your openttd game folder, don't use accented characters ,check your setting and the colors/palette. Ups, and the grf maker needs projects and newgrf folder in himself" .

Re: GRF Maker "Invalid filename" error

Posted: 05 May 2015 13:14
by flogeza
kamnet wrote:As posted just a month ago: http://www.tt-forums.net/viewtopic.php? ... 2#p1146482
railroader123 wrote:I've done evrything that guide has told me to but I keep getting an 'Invalid Filename' error whenever I try to turn it into a grf file. I'm using the lastest version. I've cleared it out, reinstalled it and redone it word for word and it still continues to fail!!!! Can someone please help?
See here: http://www.tt-forums.net/viewtopic.php?p=895739#p895739

Keep in mind: GRFMaker is dead. The project was actually abandoned by its original authors several years ago, and nobody has submitted any code fixes for the open source branch in five years. It is not up-to-date with modern OpenTTD. It is likely a better use of your time to learn meta-languages like NML and M4NFO, or just the raw NFO.
and the last version is 4.09C2 or something :) and up to date :)

Re: GRF Maker "Invalid filename" error

Posted: 05 May 2015 13:34
by kamnet
Again, no, it's NOT up-to-date. GRFMaker's use should be discouraged as much as possible in favor of better and more frequently updated tools.