Page 1 of 2

[OTTD] NML Category System (GRF List Organizer) NOW ON BANANAS!

Posted: 27 Apr 2013 21:10
by NekoMaster
*UPDATED WITH TAR FORMAT FOR EASY DOWNLOADING!*
(Download at the bottom of this first post)

NOW ON BANANAS FOR DOWNLOADING INGAME VIA THE CONTENT DOWNLOADER!
(AS OF APRIL, 21, 2020)

So I was looking around for a NewGRF Separator GRF so I can clean up and manage my loaded GRF list, but I couldn't find any that worked (one wouldn't show, while the other didn't have all the categories I wanted)

So I whipped up a quick GRF pack that contains simple NewGRF Separators, all coded from NML. I even colored the names of the GRF's green to make finding them easier among all that grey text.

Its a bit crude, and may have spelling mistakes in the descriptions, but for now the main part of NML-CS has been dealt with. If there are any problems, major and minor, you can report them in this thread or drop me a private message and I'll get back to you when I can.

Image

[Installation]
1. Download to your computer and move the file to your newgrf\data folder, alternatively you can just download the TAR file to your newgrf\data folder directly.
For most users it will probably be in your user account folder (Eg. C:\Users\Neko\Documents\OpenTTD) or for linux users > (/home/Neko/.OpenTTD)
For other users it will probably be in your OpenTTD Install (Eg. C:\Program Files\OpenTTD)

*OpenTTD will load tars as of 0.6.3 (as far as I know), so extraction wont be necessary unless you need to do something special with the grfs!*

2. Use OpenTTD's ingame NewGRF Menu to load up the Category GRF's. Their names are colored green for quick access.

3. Enjoy a organized NewGRF List! Don't forget you can click and drag GRF's in modern OpenTTD builds (I think its been like this since the new NewGRF window)

Re: (OpenTTD) NML Category System (Organize your GRFS!)

Posted: 28 Apr 2013 07:05
by Kraks
And what about GRF order? How will category system take into account that one GRF can influence other and in different situations need to be placed before or after specific GRF?

Re: (OpenTTD) NML Category System (Organize your GRFS!)

Posted: 28 Apr 2013 07:58
by kamnet
Suggestion: bundle this in .tar format instead of .zip so it can be dropped into your newgrf folder without having to unpack before using.

Re: (OpenTTD) NML Category System (Organize your GRFS!)

Posted: 28 Apr 2013 12:56
by NekoMaster
Kraks wrote:And what about GRF order? How will category system take into account that one GRF can influence other and in different situations need to be placed before or after specific GRF?
I find most GRF's behave properly even in the order I have in that screen shot, but players are free to use any order they feel like. Infact 2 GRF's I know of that will freak out if in the wrong order is NuTracks and DB Set XL (Nutracks must be loaded after DB Set XL)
kamnet wrote:Suggestion: bundle this in .tar format instead of .zip so it can be dropped into your newgrf folder without having to unpack before using.
Done :)

Re: (OpenTTD) NML Category System (Organize your GRFS!)

Posted: 28 Apr 2013 15:01
by Nite Owl
Have a look at THIS. Perhaps a combination of the two would be best. Both Grfs contain categories that the other does not have. By combining them you would get the best of both in terms of categories. I do also like the fact that your Grf has the categories in another color. Nice work. Keep going.

Re: (OpenTTD) NML Category System (Organize your GRFS!)

Posted: 29 Apr 2013 00:54
by NekoMaster
I forgot about somethings, but I can add more separators.

So far I'm thinking of adding a category for New Objects, but if theres any others that I didn't see, let me know :p

EDIT : Updated with new category, and updated Readme, can't believe I forgot to update the install instructions for the tar download :\

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 29 Apr 2013 01:24
by Supercheese
Ooooh, you can use color codes in GRF titles? GRF authors should [ab]use that feature more. :twisted:

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 29 Apr 2013 05:07
by NekoMaster
Supercheese wrote:Ooooh, you can use color codes in GRF titles? GRF authors should [ab]use that feature more. :twisted:
Yup, in NML language files, for STR_GRF_NAME you can put a color code in the name like {GREEN}THIS_GRF_WILL_BE_GREEN

Perhaps it could be used as a way to organize new NML sets, having a color for each type like Stations, Trains, Road Vehicles, etc

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 29 Apr 2013 18:52
by Andrew350
In my experience, NewGRF's with names colored like that will always get sorted to the bottom of the NewGRF list since the game seems to factor in the color code brackets when arranging them alphabetically. So, something which one would expect to fall under the letter 'R' for example, instead gets sorted to the very bottom of the list because of the "{" at the beginning of the name in the language file, screwing up the natural sort order. It's not a huge deal, especially for a set like this, just something to be aware of.

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 29 Apr 2013 19:16
by NekoMaster
Andrew350 wrote:In my experience, NewGRF's with names colored like that will always get sorted to the bottom of the NewGRF list since the game seems to factor in the color code brackets when arranging them alphabetically. So, something which one would expect to fall under the letter 'R' for example, instead gets sorted to the very bottom of the list because of the "{" at the beginning of the name in the language file, screwing up the natural sort order. It's not a huge deal, especially for a set like this, just something to be aware of.
Actually its kinda good that way so that all you have to do is go to the bottom of your Unloaded GRF's list and find the separators.

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 29 Apr 2013 19:59
by Andrew350
Yes, for this instance it is a good thing, but my point was that for regular NewGRFs this could be seen as a disadvantage. (I was replying to your idea of coloring other NewGRF names this way, sorry if I wasn't clear on that. :oops: )

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 30 Apr 2013 00:26
by NekoMaster
Andrew350 wrote:Yes, for this instance it is a good thing, but my point was that for regular NewGRFs this could be seen as a disadvantage. (I was replying to your idea of coloring other NewGRF names this way, sorry if I wasn't clear on that. :oops: )
Oh, ok then, though if that starts happening I'll make sure my grfs are easy to find (i'll find some other way to keep them together, in a bunch)

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 02 May 2013 02:38
by hanadi51
Thanks for this one. This is very interesting and useful. I like it this way as adding colors make it more organize. Keep it up!

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 02 May 2013 05:17
by NekoMaster
hanadi51 wrote:Thanks for this one. This is very interesting and useful. I like it this way as adding colors make it more organize. Keep it up!
Thanks, the NML for this was pretty easy so I was like "Meh, Ill give it a shot". now If i can learn to code train sets and stuff :p

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 22 Jun 2014 15:18
by Digitalfox
Hi NekoMaster :)

Would you mind posting and sharing the Source code?

Thank you.

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 22 Jun 2014 21:44
by NekoMaster
Um, I actually lost the source code since I didnt think to back up my OpenTTD Projects last time I reformated my computer

What I did isn't very hard, I just coded each GRF's title and details/description to make them the NML categories. As for the green text, you can color text in GRF names and details by using tags like [GREEN] [RED] [BLUE] etc, I believe its limited to each company color.

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 22 Jun 2014 21:58
by Digitalfox
NekoMaster wrote:Um, I actually lost the source code since I didnt think to back up my OpenTTD Projects last time I reformated my computer

What I did isn't very hard, I just coded each GRF's title and details/description to make them the NML categories. As for the green text, you can color text in GRF names and details by using tags like [GREEN] [RED] [BLUE] etc, I believe its limited to each company color.
Thank you.

Would it be ok if created a NewGRF based on your idea and create a topic to share it with others, sharing the source code + instructions on how to compile and change to everyone taste? :D

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 22 Jun 2014 22:45
by Supercheese
I have very similar grfs with sources available: http://www.tt-forums.net/viewtopic.php? ... 77#p972477

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 22 Jun 2014 23:11
by Digitalfox
Supercheese wrote:I have very similar grfs with sources available: http://www.tt-forums.net/viewtopic.php? ... 77#p972477
My idea is to explain step by step on how to compile the separator, so you're not limited by characters chosen or language, just compile at your own taste. Of course nothing breathtaking :)

Re: (OpenTTD) NML Category System v1.1 (Organize your GRFS!)

Posted: 22 Jun 2014 23:47
by Supercheese
Digitalfox wrote:My idea is to explain step by step on how to compile the separator, so you're not limited by characters chosen or language, just compile at your own taste. Of course nothing breathtaking :)
Sure, go for it. 8)