Individual tool bar icons for mods - Printable Version +- BlackLiquid Forums (https://www.blackliquidsoftware.com/forum) +-- Forum: Banished General (https://www.blackliquidsoftware.com/forum/forumdisplay.php?fid=6) +--- Forum: Mods General Discussion (https://www.blackliquidsoftware.com/forum/forumdisplay.php?fid=29) +--- Thread: Individual tool bar icons for mods (/showthread.php?tid=852) |
Individual tool bar icons for mods - Necora - 02-12-2017 Good day everyone,<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /><br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />I was playing around with getting my own space on each sub-tool bar, so that I can break my main mod up and release bits independently, with out worrying about multiple placement issues or spamming up existing tool bars.<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /><br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />First, I started a new mod, based on the apiary example. I made a trapper. In the 'MyMods/Trapper folder', I added another folder, 'Game' and a file 'NecoraToolbar.rsc' so it is 'MyMods/Trapper/Game/NecoraToolbar.rsc'. This rsc looked like this...<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /> <div> Quote </div> Quote: - MyMods/Trapper/Game/NecoraToolbar.rsc <div> </div> <br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />You'll see I added a sprite sheet (and associated texture, material etc.) into the 'Trapper/Dialog' folder, along with a string table. The sprite sheet just points to a few 32x32 icons, in this case one, a maple leaf, for each tool bar icon. Same with string table.<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /> <div> Quote </div> Quote: MyMods/Trapper/Dialog/NecoraTBStringTable.rsc <div> </div> <div> Quote </div> Quote: MyMods/Trapper/Dialog/NecoraTBSpriteSheet.rsc <div> </div> <br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />So now, I can add a tool bar icon to each sub menu, one for housing, food, storage, industry etc.<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /><br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />All I need to do, is make sure that these files are in the 'Dialog' and 'Game' folder of every mod I break my big one up into.<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /><br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />For example, I made this trapper, then copied the whole Trapper folder, renamed it AnotherTrapper, and three files within to AnotherTrapper/AnotherTrapper.rsc, AnotherTrapper/AnotherTrapperResources.rsc, and AnotherTrapper/Template/AnotherTrapper.rsc. Everything else was left the same. I built and packaged it up.<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /><br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />I moved both mods, Trapper.pkm and AnotherTrapper.pkm into my Windata in the steam folder, fired it up, enabled both mods, loaded a game, and the results are in the attached picture. As you can see, there is 1 maple leaf icon in the food tool bar, and both trappers are sitting happily side by side within it, despite both being separate mods. [img]<fileStore.core_Attachment>/monthly_2017_02/ToolBar.jpg.d5c0d59226a6ee507baa404b39a91140.jpg[/img] <br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />So<span> modders can have their own</span> menu on either the main tool bar or in different sub tool bars, with all individual mods into it with no crashes etc.!<br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" /><br style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12.48px;font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(231,234,239);" />Somebody with lots of separate mods please test this! Individual tool bar icons for mods - Kralyerg - 02-12-2017 Did you actually test it creating a main toolbar icon, or just assume that it would be the same since the sub-toolbar worked? I haven't actually tested it myself, but RedKetchup has worked on it, and even has an email from Luke about it, and doing it with a main toolbar never worked for him, it just created a second copy, instead of merging them into one. Individual tool bar icons for mods - Necora - 02-12-2017 I didn't test the main toolbar just the secondary. I would assume you put the main toolbar in this folder as well and it should work. I'll try it tonight when I get back from skating (adult learn to skate, fun times). Edit - Ketchup did show me the email from Luke, and I think this is what he might have been getting at, just he didn't explain it very well in the email... Individual tool bar icons for mods - Ketchup - 02-12-2017 i confirm ! i did what Luke email said : never worked i did what Necora said : it worked awesome !!!! never Luke talked about the Game folder (and Dialog folder) in his email .. i just verified. Look at my screenshots : RKBeachParty.pkm ChooChoo.pkm RKTrainingCamp.pkm CountryLittleHouse.pkm newmedievaltown.pkm all gone to set on my RK Toolbar at the base ^^ [img]<fileStore.core_Attachment>/monthly_2017_02/58a0e2046221c_Fifthmod.thumb.jpg.c6938c085d795bff25dc9dd631de525d.jpg[/img] [img]<fileStore.core_Attachment>/monthly_2017_02/58a0e206966de_Firstmod.thumb.jpg.e9c7a8d82a747e435d85a01e8de559d9.jpg[/img] [img]<fileStore.core_Attachment>/monthly_2017_02/58a0e20b850f8_Fourthmod.thumb.jpg.65f596aae973d23f558e50824524ae22.jpg[/img] [img]<fileStore.core_Attachment>/monthly_2017_02/58a0e20dae382_Secondmod.thumb.jpg.2443d716ee166d1ec9c5b86c8e6fe11f.jpg[/img] [img]<fileStore.core_Attachment>/monthly_2017_02/58a0e20fba066_Thirdmod.thumb.jpg.ca639a426400ebba0a8a4291aebe1521.jpg[/img] Individual tool bar icons for mods - Ketchup - 02-12-2017 [img]<fileStore.core_Emoticons>/emoticons/biggrin.png[/img]/emoticons/biggrin@2x.png 2x" title=":D" width="20" /> so that mean ... you guys can do a <abbr title="Colonial Charter">CC</abbr> icon at the base and put everything you ve done inside it and free everything else [img]<fileStore.core_Emoticons>/emoticons/biggrin.png[/img]/emoticons/biggrin@2x.png 2x" title=":D" width="20" /> Individual tool bar icons for mods - Kralyerg - 02-12-2017 <a contenteditable="false" data-ipshover="" data-ipshover-target="<___base_url___>/index.php?/profile/3183-ketchup/&do=hovercard" data-mentionid="3183" href="<___base_url___>/index.php?/profile/3183-ketchup/">@Ketchup</a>I'm confused about what you did differently this time that you didn't do last time? Just put the toolbar in the Game folder? Individual tool bar icons for mods - stiles - 02-12-2017 he is adding mods under his own toolbar icon.he now has his own icon button to add mods to at will.super awesome Individual tool bar icons for mods - Ketchup - 02-12-2017 exactly the RKtoolbar.rsc in Game folder , its spritesheets files and stringtable (and all icons) in dialog (changed the links from /UI/ to /dialog/ inside the files) and everything worked out. and i just copy paste my game folder and my dialog folder in all my mods and everything go sit there) of course all the mods you want to sit on RK icons needs to be changed to go sit on RKtoolbar.rsc:RKtoolbar (instead of game/toolbar.rsc:food for example) Individual tool bar icons for mods - Ketchup - 02-12-2017 screenshot of my RKtoobar.rsc and screenshots of all my other files [img]<fileStore.core_Attachment>/monthly_2017_02/58a0e817ede88_Gamerktoolbar.thumb.jpg.899311f4b9088b22b3f6fada07b66a82.jpg[/img] [img]<fileStore.core_Attachment>/monthly_2017_02/58a0e81a47129_RKnewsetup.thumb.jpg.3708489cbe3d054d2fca6c0afffaaeaf.jpg[/img] Individual tool bar icons for mods - Ketchup - 02-12-2017 Quote: everyone can now do that... i mean... all people like us who made hundreds and thousands of buildings [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" title=":)" width="20" /> everything we do we can put it on our own toolbar and free everything else [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" title=":)" width="20" /> people will stop to get headaches each time they open the game ^^ |