Category Names
#1


Whatever happened to the Category Names mod? I can't find any mention of it here. MegaMod and 1.7 may have poked holes in it but it was/is a good workaround given the limitations on modding the inventory windows. Is it "on the list" of updates? What's needed to help it along?  




To be sure, nothing but respect, awe, and a huge thank-you for everything you folks have accomplished.    




 




 



[img]<fileStore.core_Attachment>/monthly_2017_01/CategoryNames.png.4ae8de4ecd9d4628562009ae7ac2dcb6.png[/img]
  Reply
#2


That's an interesting question.




When this was first brought up, I supplied someone (I forget who) with the necessary string tables for him to make the categories himself. I then compiled it all up into a mod, with the caveat that I personally wouldn't be keeping this up to date.




If someone wants to make an updated version, I would be happy to supply them with the old Category Names strings file, and the up to date <abbr title="Colonial Charter">CC</abbr> and/or <abbr title="MegaMod">MM</abbr> files. It's not terribly difficult to actually edit the files (I mainly just use notepad), so anyone with the patience could do it. And then I would compile it all into an updated mod.


  Reply
#3


I do remember reading your caveat back when it was released. Just thought it odd that no mention of the mod exists on the new website.




Anyways, if you would post or PM the old Category Names file and the new <abbr title="Colonial Charter">CC</abbr> & <abbr title="MegaMod">MM</abbr> string tables, that would be great. I'm happy to help out and get this mod updated.




Thanks.


  Reply
#4


The stringtables are actually already available over in the Translations section of the forum:




http://blackliquidsoftware.com/index.php?/forum/23-translations/




You can get the set of MegaMod stringtables and <abbr title="Colonial Charter">CC</abbr> 1.71. (You can just delete the <abbr title="Colonial Charter">CC</abbr> stringtable that comes with MegaMod and replace it with the <abbr title="Colonial Charter">CC</abbr> 1.71 version.)




 




Here is the old set of Category Names StringTables. It has <abbr title="Colonial Charter">CC</abbr> and <abbr title="New Medieval Town">NMT</abbr> and a bunch of addon mods and stuff. If you combine all of this with the above <abbr title="MegaMod">MM</abbr> and new <abbr title="Colonial Charter">CC</abbr> files into one big folder, then it should work great.




<a class="ipsAttachLink" href="<___base_url___>/applications/core/interface/file/attachment.php?id=1150" data-fileid="1150">CategoryNameV3s.zip</a>




 




Instructions for those new to StringTables. They have the file extension .rsc, but they are just plain text files. I use Notepad to open them, but any document editor will do.




There are two columns. Do Not Touch the column on the left. It needs to be left exactly as it is. You can change anything in the right hand column between the two ""s. That is the text that is displayed on screen.


  Reply
#5


Thanks. If I can ask a few questions about process, preference, and efficiency (aka, my laziness)...




Does/will the Inventory Window's Sort-By-Name function handle leading characters such as a space or hyphen? 


  • Basically, does it do a standard ASCII sort? If so, then by prefacing the C, F and T categories (Clothes, Fuel, and Tools) with a hyphen, or preferably a space character, (e.g., " T Iron Tool" or "-T Iron Tool" rather than "T Iron Tool") we'd get a much better sort order IMO. These 3 important categories would be at the top followed by building materials, dry goods, the various foods, health and luxuries. For me, it would add a bit of priority order to the category listings. Still not perfect, but based on how I play, I'd scroll a lot less looking for answers.

A simple question of preference.


  • Would dropping the trailing category hyphen provide a cleaner look? For example, replacing "DG-Reeds" with "DG Reeds" and "DG-Cured Leather" with "DG Cured Leather". I find scrolling though a long list is less distracting without the connecting hyphens. Any opinion or preference?

Local/global. I fear I know the answer but will ask anyway.


  • Are the "String _name"/"String _text" pairs only local to each specific .rsc file --meaning do I have to edit each and every file to categorize the _text value (of each of the seven instances of "Broccoli" for example  [img]<fileStore.core_Emoticons>/emoticons/wink.png[/img]/emoticons/wink@2x.png 2x" title=";)" width="20" />) --or-- hoping against hope, are they more global in scope --such that if I create a single .rsc with a single instance of each _name/_text pair and this single file gets handled last (after all the other .rsc files created their _name/_text pairs) then this last file will override the value(s) initialized by the earlier files. This latter approach would certainly be simple, easier to maintain, and less prone to error. Also unlikely maybe?

Note: Thanks to whoever put in such great effort with the existing versions of the category files!!     


  Reply
#6


1) Um.. I don't actually know what the game would do with spaces or hyphens before the name. I've literally never tried it before.




2) Whichever way you prefer is fine. If you're doing all the work, then you get to choose. [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" title=":)" width="20" />



3) Compiling all the strings into a single file won't work without some major recoding. Each individual items file references a specific StringTable file where it will look to find it's string text. If things get moved to a different file, the item can't find it's string and it will just show up blank. 


  Reply
#7

Didn't think it would be that easy, but had to ask... Working on all the files now.  Will enter preceding hyphens since the existing version uses hyphens already, albeit not at the beginning.  

  Reply
#8




Kralyerg,




There is an issue updating the Category Names mod related to the vanilla-Banished "String _name / String _text" pairs. Only 8 of 40 vanilla items are referenced in the .rsc files. (Root, Blueberry, Herb Ale, Iron Tool, Steel Tool, Coal, and Iron.)




The mod kit's BanishedKit_1.0.4.141123\resource\Dialog\StringTable.rsc file contains a "StringTable rawMaterial" section with all the needed entries but as neither ColonialStringTable1.7.rsc nor MegaModStringTables0.06\Dialog\StringTable.rsc (nor any other .rsc file) contains a copy of this section, I obviously cannot update them. 




Hopefully this section was left out only because prior to this nothing affected these entries? If so, can this section be included in some .rsc file (ColonialStringTable1.7.rsc or StringTable.rsc perhaps) without major recoding? Or is there an alternate way to accomplish this?




Below is a copy of the "StringTable rawMaterial" section with the "_text" updated for the Category Name mods. Otherwise it is exactly as listed in the mod kit's StringTable.rsc file.




 




StringTable rawMaterial

{

    Entry _strings

    [ 

        {    String _name = "Log";                String _text = "BM Log";    }

        {    String _name = "Stone";                String _text = "BM Stone";    }

        {    String _name = "Iron";                String _text = "BM Iron";    }

        {    String _name = "Coal";                String _text = "-F Coal";    }

        {    String _name = "Tool";                String _text = "-T Iron Tool";    }        

        {    String _name = "SteelTool";            String _text = "-T Steel Tool";    }        

        {    String _name = "Firewood";            String _text = "-F Firewood";    }        

        {    String _name = "Potato";            String _text = "<abbr title="Forest Village">FV</abbr> Potato"; }    

        {    String _name = "Wheat";                String _text = "FG Wheat";    }

        {    String _name = "Corn";                String _text = "FG Corn"; }

        {    String _name = "Cabbage";            String _text = "<abbr title="Forest Village">FV</abbr> Cabbage"; }

        {    String _name = "Squash";            String _text = "<abbr title="Forest Village">FV</abbr> Squash"; }

        {    String _name = "Bean";                String _text = "<abbr title="Forest Village">FV</abbr> Bean"; }

        {    String _name = "Pumpkin";            String _text = "<abbr title="Forest Village">FV</abbr> Pumpkin"; }

        {    String _name = "Pepper";            String _text = "<abbr title="Forest Village">FV</abbr> Pepper"; }

        {    String _name = "Apple";                String _text = "FF Apple";    }

        {    String _name = "Cherry";            String _text = "FF Cherry";    }

        {    String _name = "Pear";                String _text = "FF Pear";    }

        {    String _name = "Peach";                String _text = "FF Peach";    }

        {    String _name = "Plum";                String _text = "FF Plum";    }

        {    String _name = "Chestnut";            String _text = "FP Chestnut";    }

        {    String _name = "Pecan";                String _text = "FP Pecan";    }

        {    String _name = "Walnut";            String _text = "FP Walnut";    }

        {    String _name = "Fish";                String _text = "FP Fish"; }                

        {    String _name = "Chicken";            String _text = "FP Chicken"; }        

        {    String _name = "Venison";            String _text = "FP Venison"; }        

        {    String _name = "Beef";                String _text = "FP Beef"; }        

        {    String _name = "Mutton";            String _text = "FP Mutton"; }        

        {    String _name = "Mushroom";            String _text = "<abbr title="Forest Village">FV</abbr> Mushroom"; }                        

        {    String _name = "Onion";                String _text = "<abbr title="Forest Village">FV</abbr> Onions"; }                        

        {    String _name = "Blueberry";            String _text = "FF Berries"; }                        

        {    String _name = "Root";                String _text = "<abbr title="Forest Village">FV</abbr> Roots"; }                        

        {    String _name = "Herb";                String _text = "H Herbs"; }

        {    String _name = "Egg";                String _text = "FP Eggs"; }                        

        {    String _name = "Wool";                String _text = "DG Wool";    }            

        {    String _name = "Leather";            String _text = "DG Leather";    }            

        {    String _name = "WinterCoat";        String _text = "-C Warm Coat";    }            

        {    String _name = "WoolCoat";            String _text = "-C Wool Coat";    }            

        {    String _name = "LeatherCoat";        String _text = "-C Hide Coat";    }    

        {    String _name = "Ale";                String _text = "L Ale";    }    




        {    String _name = "Chickens";            String _text = "Chickens"; }

        {    String _name = "Cows";                String _text = "Cattle"; }

        {    String _name = "Sheeps";            String _text = "Sheep"; }




        {    String _name = "SeedApple";            String _text = "Apple Seeds"; }

        {    String _name = "SeedCherry";        String _text = "Cherry Seeds";    }

        {    String _name = "SeedPear";            String _text = "Pear Seeds";    }

        {    String _name = "SeedPeach";            String _text = "Peach Seeds";    }

        {    String _name = "SeedPlum";            String _text = "Plum Seeds";    }

        {    String _name = "SeedChestnut";        String _text = "Chestnut Seeds";    }

        {    String _name = "SeedPecan";            String _text = "Pecan Seeds";    }

        {    String _name = "SeedWalnut";        String _text = "Walnut Seeds";    }




        {    String _name = "SeedCabbage";        String _text = "Cabbage Seeds"; }

        {    String _name = "SeedCorn";            String _text = "Corn Seeds"; }

        {    String _name = "SeedPotato";        String _text = "Potato Seeds"; }

        {    String _name = "SeedSquash";        String _text = "Squash Seeds"; }

        {    String _name = "SeedWheat";            String _text = "Wheat Seeds"; }

        {    String _name = "SeedBean";            String _text = "Bean Seeds"; }

        {    String _name = "SeedPepper";        String _text = "Pepper Seeds"; }

        {    String _name = "SeedPumpkin";        String _text = "Pumpkin Seeds"; }




        {    String _name = "LeatherCoatRequire";String _text = "Hide Coat [Leather]"; }

        {    String _name = "WoolCoatRequire";    String _text = "Wool Coat [Wool]"; }

        {    String _name = "WinterCoatRequire";    String _text = "Warm Coat [Leather + Wool]"; }




        {    String _name = "ToolRequire";        String _text = "Iron Tool [Log + Iron]"; }

        {    String _name = "SteelToolRequire";    String _text = "Steel Tool [Log + Iron + Coal]"; }

        

        {    String _name = "CoalRequire";        String _text = "Coal"; }

        {    String _name = "IronRequire";        String _text = "Iron"; }




        {    String _name = "AleAppleRequire";        String _text = "Ale [Apple]"; }

        {    String _name = "AleBlueberryRequire";    String _text = "Ale [Berries]"; }

        {    String _name = "AleCherryRequire";        String _text = "Ale [Cherry]"; }

        {    String _name = "AlePearRequire";        String _text = "Ale [Pear]"; }

        {    String _name = "AlePeachRequire";        String _text = "Ale [Peach]"; }

        {    String _name = "AlePlumRequire";        String _text = "Ale [Plum]"; }

        {    String _name = "AleWheatRequire";        String _text = "Ale [Wheat]"; }

    ]

}




 




I've completed updating all the other files, and am hoping there is a work around to get these vanilla items included too.




Thanks.

-Freedom


  Reply
#9


Oh. Those were left out because I completely forgot to give them to you, since the vanilla string table is in the Dialog folder and not the UI folder.




Just make a new file called StringTable.rsc and paste what you posted in it, I'll handle the rest.


  Reply