RELEASED [SMAPI] Skill Prestige Mod

Discussion in 'Gameplay Mechanics' started by Alphablackwolf, Oct 8, 2016.

  1. FieryChaos

    FieryChaos Cosmic Narwhal

    What screen resolution and zoom are you using? I'd use/test this but the prestige screen gets cut off on the left and top side on my laptop resolution (1366x768) at 75% zoom (how I always have it).
     
    • Thvar

      Thvar Void-Bound Voyager

      Ooh, any chance you could release those in some 'unofficial fixes' thread? I'd love to have them. Or in the original threads for that matter.

      Edit: Wow, I should also say I'm super impressed. Just tested it. Seems to work flawlessly. It prestiges correctly, keeps recipes, I can assign points, and you managed to fix all the relative pathing. Fantastic work!
       
        Last edited: Oct 11, 2016
      • SirReality

        SirReality Intergalactic Tourist

        As a follow-up to my earlier comment, he has released a fix that address my particular issue and now works fine.

        On a separate matter, I think that the original post could use more documentation, better formatting. To wit:

        **********

        The Skill Prestige Mod allows you to earn permanent profession perks beyond that which can normally be obtained in Vanilla play. By spending Prestige Point(s), earned by resetting a skill from 10 to 0, you character can buy the level 5 or 10 profession of their choice. Level 5 professions cost 1 PP, while Level 10 professions cost 2 PP and require their associated level 5 profession already be purchased. For example, buying the Lv5 Tiller, Lv10 Artisan, and Lv10 Agriculturalist professions would require 1+2+2=5 PP. Only PP earned from a specific skill can be used to buy that skill's professions. By default, recipes are lost when a skill is reset to 0 for a PP, but this can be changed in the associated config file.

        Stardew Valley - Version 1.11-Z_MODDED _ SMAPI 0.40.0 1.1-3 10_10_2016 6_49_45 PM.png Stardew Valley - Version 1.11-Z_MODDED _ SMAPI 0.40.0 1.1-3 10_10_2016 6_50_12 PM.png Stardew Valley - Version 1.11-Z_MODDED _ SMAPI 0.40.0 1.1-3 10_10_2016 6_49_23 PM.png Stardew Valley - Version 1.11-Z_MODDED _ SMAPI 0.40.0 1.1-3 10_10_2016 6_49_53 PM.png Stardew Valley - Version 1.11-Z_MODDED _ SMAPI 0.40.0 1.1-3 10_10_2016 6_50_04 PM.png

        This mod requires SMAPI 40.1.1, and Stardew Valley 1.1. This mod is compatible with other skill mods; native support for the Luck Skill is included, and support for the Cooking Skill is included in the download, if you have personal 1.1-compatible versions of these mods. There is a guide on my github wiki which explains how to make other skill mods compatible.

        Future Development Goals include:
        - Gamepad Support
        - Stockalike Button Hover Effects
        - Language Support
        - New Options for Spending your 11th+ PP, i.e. efficiency or berry harvest bonuses
        - Additional automated Testing

        You may download the mod on the Nexus, and find my sourcecode here. I invite any bug reports on github. I will be sharing my lessons learned while making this mod as I can.

        **********

        I would be delighted if you deemed my work/writing worthy enough to use in your mod description. I think this is one of the few novel yet intuitive mods to come out recently, that requires work for reward.

        On a constructive criticism note, however, I feel that costing 2 PP per Lv 10 profession in addition to requiring the Lvl5 be purchased first is excessive. It makes much more intuitive sense to me to be able to unlock the Lv10 Prof one full leveling after unlocking the associated Lv5 Prof. As a middle ground, perhaps a config option for the price in PP of Professions?

        On the topic of additional features, perhaps unspent PP provide a passive XP gain bonus to help get more faster? Give a gameplay choice to save for later larger reward?
         
        • Alphablackwolf

          Alphablackwolf Void-Bound Voyager

          PM me with an email address and I'll send you what I have. Keep in mind several of the mods I have upgraded to 1.1 have issues of their own that I am not *currently* supporting, (no friend decay does some odd work with friendships, cooking skill mod has a number of bugs that make it incompatible with several mods) but I'd be happy to pass what I have along.

          I do indeed like your description, and am going to take what you wrote as implicit permission to use it. (if it isn't, say the word and I'll drop it) It's been a bit crazy at work lately and I have several other projects that have been eating my time lately, so I haven't had enough time to give this a good write-up, or as much testing as I would like to do.

          On the note of the cost per level I had similar feelings at first. I ended up having to require the level 5 professions first due to the complicated ways the mod has to interact with the level up menu. I like the idea of making it a per save config option for the price of the PP per level. I was planning on adding a +Efficiency bonus and a few other items eventually, although i like the passive increase idea. I would have to dig into whether or not I could hook into the game's gainExp function for that, otherwise it could be really difficult to modify the experience gains like that. If anyone knows of a mod that increases experience gain by a modifier I could decompile the mod and figure out how it does it. I also expect as the extended skills mods nears completion I will have a *lot* of work to make my mod compatible with it.

          Finally, I want to thank both of you (Thvar, SirReality) for your wonderful feedback and encouragement, it means a lot!
           
          • SirReality

            SirReality Intergalactic Tourist

            Alpha, that is EXPLICIT permission to use it, that's why I wrote it. :) As a mod author myself (Skyrim, a while back), and documentation specialist for another mod (Kerbal Space Program), I understand how hard it can be to write about something you created in a way that others get, and I'm happy to help with some of that burden. On that note, check your nexus description - the link to SMAPI there is broken on account of missing a colon in the "http://" initiator.

            I'm currently attempting to track down a weird bug that makes one (but only one) of my savefiles frequently (but not always) CTD when loading it - quite strange to narrow down necessary and sufficient conditions. More info as it develops ;)
             
            • charlottenoyen

              charlottenoyen Scruffy Nerf-Herder

              I'm not sure if this is a bug or I'm misunderstanding how this mod works. I got farming to level 10 for the second time, but the prestige button in the new menu (farming prestige) is greyed out, so I can't cash in.

              EDIT: never mind, I got the skill that day and needed to sleep first. Sorry.
               
                Last edited: Oct 11, 2016
              • Thvar

                Thvar Void-Bound Voyager

                Happy to help! And it's a great idea for a mod, so I was quite excited about it.

                I second the 1 PP for 2nd level professions suggestion since then it feels like you're accomplishing something each time you prestige. Although the passive increase idea would also work for that.
                 
                • charlottenoyen

                  charlottenoyen Scruffy Nerf-Herder

                  I've been playing around with this for a while now and I agree, 2 PP is just a little too steep.

                  Also, when you've been leveling and prestiging for a while, it becomes hard to quickly see which professions you actually have. Would it be possible to have a concise overview of professions?
                   
                  • rafaellouy93

                    rafaellouy93 Scruffy Nerf-Herder

                    Loved this mod! Hoping for an update soon. Keep up the good work!
                     
                    • KoderGames

                      KoderGames Space Hobo

                      Sorry if this was stated, and I missed it, but I have the cooking skill mod. Therefore, I would put in both, not just the adapter mod, correct?
                       
                      • rafaellouy93

                        rafaellouy93 Scruffy Nerf-Herder

                        Yes. Both.
                         
                        • Alphablackwolf

                          Alphablackwolf Void-Bound Voyager

                          Okay, I've finished the project I was working on about half an hour ago, which frees me up to work on this mod again. I already coded up the per-save config options for prestige cost, which will be going out sometime this week. I'm working on a few other fixes in the meanwhile. I may need to spend more of my weekend on my actual life soon though, lol.
                           
                            Thvar, rafaellouy93 and GBDetective like this.
                          • Alphablackwolf

                            Alphablackwolf Void-Bound Voyager

                            Update on my work for Skill Prestige 1.0.4.0:

                            Done:
                            add per save config setting for tier one and tier two profession costs
                            fix prestige screen not being centered on non-100% zoom levels
                            add more clear hover text to the prestige button to indicate what is required in order to prestige
                            replace the skills menu prestige buttons with much smaller icons
                            overhaul the prestige menu to make it much smaller, move skill description text to hover text
                            test smaller prestige menu to ensure it works for more resolutions
                            fix incorrect icons on certain skill's prestige menus

                            Updated as of 10/27 10:27pm (EST):
                            Tweak placement of new prestige buttons so they no longer overlap with community center button - done
                            Update compatibility with Luck skill mod after it's 1.1 update - no work was needed
                            Update compatibility with Cooking skill mod after it's 1.1 update - done

                            Updated as of 10/29 3:53pm (EST):
                            Add menu for changing PSconfig settings - done

                            Updated as of 10/31 10:58pm (EST):
                            Fix button draw location/detected location synchronicity issue caused by viewport changes. - done
                            Fix display of cost on prestige page when cost is set to large values. - done
                            Change background color of new prestige button for better contrast and similarity to SDV colorscheme. - done
                            Add checkmark to denote obtained professions - done.
                            Now testing for release. Noted some changes that will need to be in 1.0.5 for luck/cooking skill level up menus, they are going to be large changes so it will have to be another release.
                             
                              Last edited: Nov 1, 2016
                              rafaellouy93 and Thvar like this.
                            • Thvar

                              Thvar Void-Bound Voyager

                              Awesome dude! Very excited for profession cost config especially, but these all sound like good fixes.
                               
                              • Alphablackwolf

                                Alphablackwolf Void-Bound Voyager

                                Okay, I've tested my 1.0.4 version a fair bit, but it's getting late. Barring anything coming up in my personal life the new version should be up tomorrow (Tuesday) night. I have to redo all of the mod's descriptions and images and a bunch of other things, as it is quite an overhaul.
                                 
                                  spiritslive99 likes this.
                                • Alphablackwolf

                                  Alphablackwolf Void-Bound Voyager

                                  1.0.4.4 Released!
                                   
                                    Guy'YeahThatGuy and rafaellouy93 like this.
                                  • blackkat1325

                                    blackkat1325 Space Hobo

                                    I am unable to get the mod to work with the cooking skill or luck skill. I know that I am missing something.

                                    [09:06:49.491 PM] Found Manifest: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\OSkillPrestigeCookingAdapter\manifest.json
                                    [09:06:49.512 PM] Created psconfigs directory @C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\OSkillPrestigeCookingAdapter\psconfigs
                                    [09:06:49.518 PM] Failed to load mod 'C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\OSkillPrestigeCookingAdapter\SkillPrestigeCookingAdapter.dll'. Exception details:
                                    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
                                    at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
                                    at System.Reflection.RuntimeAssembly.get_DefinedTypes()
                                    at StardewModdingAPI.Program.LoadMods() in Z:\Projects\SMAPI\src\StardewModdingAPI\Program.cs:line 326

                                    This is what SMAPI is showing me for the cooking adapter when it loads all the mods. What am I missing?

                                    Thank you for any help.
                                     
                                    • Alphablackwolf

                                      Alphablackwolf Void-Bound Voyager

                                      Ah, that would be the name of the cooking adapter folder. I send it up to the download with an ASCII omega character so it will be the last folder in the list. Unfortunately the only way to control what order mods get loaded in is to arrange them alphabetically by folder, and the skill prestige cooking adapter has to be AFTER the skill prestige mod and the cooking skill mod, since the cooking skill adapter references both of them. I don't know why it wouldn't be working with the luck skill though. If you open the skill prestige config.json file and change the "LogLevel" from 3 to 5, run the game, and then post the log I can look into that further.
                                       
                                      • blackkat1325

                                        blackkat1325 Space Hobo

                                        I changed the name of the folder from "OSkillPrestigeCookingAdapter" to "SkillPrestigeCookingAdapter" and both the cooking skill and luck skill worked just fine. I also double checked the original zip file. It seems the way my computer read the folder name was the letter O instead of the ASCII omega character.

                                        [05:46:36.135 PM] Found Manifest: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\SkillPrestige\manifest.json
                                        [05:46:36.165 PM] Created psconfigs directory @C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\SkillPrestige\psconfigs
                                        [05:46:36.170 PM] Loading Mod DLL...
                                        [05:46:36.171 PM] Skill Prestige Mod: options file path: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\SkillPrestige\config.json
                                        [05:46:36.171 PM] Skill Prestige Mod: Deserializing options file...
                                        [05:46:36.170 PM] LOADED MOD: Skill Prestige by Alphablackwolf - Version StardewModdingAPI.Version | Description: (@ C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\SkillPrestige\SkillPrestige.dll)
                                        [05:46:36.286 PM] Skill Prestige Mod version 1.0.4.4 by Alphablackwolf Initialized.
                                        [05:46:36.287 PM] Found Manifest: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\SkillPrestigeCookingAdapter\manifest.json
                                        [05:46:36.299 PM] Created psconfigs directory @C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\SkillPrestigeCookingAdapter\psconfigs
                                        [05:46:36.300 PM] Loading Mod DLL...
                                        [05:46:36.301 PM] Found Manifest: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\TimeSpeed\manifest.json
                                        [05:46:36.300 PM] LOADED MOD: Cooking Skill Prestige Adapter by Alphablackwolf - Version StardewModdingAPI.Version | Description: (@ C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\SkillPrestigeCookingAdapter\SkillPrestigeCookingAdapter.dll)
                                        ~*~
                                        [05:46:37.418 PM] Game Loaded
                                        [05:46:37.421 PM] [CookingSkill] Experience Bars found, adding cooking experience bar renderer.
                                        [05:46:37.422 PM] [CookingSkill] Luck found, making a note for later.
                                        [05:46:37.423 PM] [CookingSkill] All Professions not found.
                                        [05:46:37.424 PM] [LuckSkill] Experience Bars found, adding luck bar.
                                        [05:46:37.426 PM] [LuckSkill] All Professions not found.
                                        [05:46:37.566 PM] [Skill Prestige Cooking Adapter] failed to load icon: System.IO.IOException: The process cannot access the file 'C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\CookingSkill\iconA.png' because it is being used by another process.
                                        at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
                                        at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
                                        at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
                                        at System.IO.FileStream..ctor(String path, FileMode mode)
                                        at SkillPrestigeCookingAdapter.SkillPrestigeCookingAdapterMod.GetCookingSkillTexture()
                                         
                                          Last edited: Nov 4, 2016
                                        • crymblade

                                          crymblade Void-Bound Voyager

                                          Similar problem here. Without cooking skill, it seems to work just fine. I don't mind playing without cooking, but leaving my error log here.


                                          [08:48:02.635 PM] SDV Version: 1.11
                                          [08:48:02.635 PM] Validating api paths...
                                          [08:48:02.635 PM] SMAPI Version: 0.40.0 1.1-3
                                          [08:48:02.641 PM] Initializing SDV Assembly...
                                          [08:48:02.641 PM] Injecting New SDV Version...
                                          [08:48:02.641 PM] Starting SDV...
                                          [08:48:02.747 PM] Patching SDV Graphics Profile...
                                          [08:48:02.750 PM] LOADING MODS
                                          [08:48:02.751 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\CookingSkill\manifest.json
                                          [08:48:03.031 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\CookingSkill\psconfigs
                                          [08:48:03.035 PM] Loading Mod DLL...
                                          [08:48:03.035 PM] LOADED MOD: Cooking Skill by spacechase0 - Version StardewModdingAPI.Version | Description: Adds a cooking skill. (@ C:\GOG Games\Stardew Valley\Mods\CookingSkill\CookingSkill.dll)
                                          [08:48:03.039 PM] Registered command: giveCookingExp
                                          [08:48:03.039 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\ExperienceBars\manifest.json
                                          [08:48:03.055 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\ExperienceBars\psconfigs
                                          [08:48:03.056 PM] Loading Mod DLL...
                                          [08:48:03.056 PM] LOADED MOD: Experience Bars by spacechase0 - Version StardewModdingAPI.Version | Description: Shows experience bars in the top-left corner. (@ C:\GOG Games\Stardew Valley\Mods\ExperienceBars\ExperienceBars.dll)
                                          [08:48:03.058 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\GiftTasteHelper\manifest.json
                                          [08:48:03.072 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\GiftTasteHelper\psconfigs
                                          [08:48:03.074 PM] Loading Mod DLL...
                                          [08:48:03.074 PM] LOADED MOD: GiftTasteHelper by Tyler - Version StardewModdingAPI.Version | Description: Displays NPC gift tastes in a handy tooltip. (@ C:\GOG Games\Stardew Valley\Mods\GiftTasteHelper\GiftTasteHelper.dll)
                                          [08:48:03.077 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\HappyAnimals\manifest.json
                                          [08:48:03.091 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\HappyAnimals\psconfigs
                                          [08:48:03.092 PM] Loading Mod DLL...
                                          [08:48:03.093 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\JJB\manifest.json
                                          [08:48:03.092 PM] LOADED MOD: Happy Animals by StarPeanut - Version StardewModdingAPI.Version | Description: Keeps animal happiness high to work around bugs. (@ C:\GOG Games\Stardew Valley\Mods\HappyAnimals\HappyAnimals.dll)
                                          [08:48:03.109 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\JJB\psconfigs
                                          [08:48:03.209 PM] Loading Mod DLL...
                                          [08:48:03.210 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\Lasurs-TimeSpeed-Mod-V2.0.0\manifest.json
                                          [08:48:03.209 PM] LOADED MOD: Jiggly Junimo Bundles by Jonas Henriksson - Version StardewModdingAPI.Version | Description: Shows needed ingredients for a bundle, and jiggles bundles if you have a depositable item. (@ C:\GOG Games\Stardew Valley\Mods\JJB\JJB.dll)
                                          [08:48:03.226 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\Lasurs-TimeSpeed-Mod-V2.0.0\psconfigs
                                          [08:48:03.227 PM] Loading Mod DLL...
                                          [08:48:03.227 PM] LOADED MOD: TimeSpeed Mod (unofficial) by cantorsdust and Syndlig (patched by alexb5dh) - Version StardewModdingAPI.Version | Description: Allows for a configurable ten minute tick length. (@ C:\GOG Games\Stardew Valley\Mods\Lasurs-TimeSpeed-Mod-V2.0.0\TimeSpeed.dll)
                                          [08:48:03.342 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\LuckSkill\manifest.json
                                          [08:48:03.360 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\LuckSkill\psconfigs
                                          [08:48:03.361 PM] Loading Mod DLL...
                                          [08:48:03.363 PM] LOADED MOD: Luck Skill by spacechase0 - Version StardewModdingAPI.Version | Description: Adds ways of getting the vanilla luck skill. (@ C:\GOG Games\Stardew Valley\Mods\LuckSkill\LuckSkill.dll)
                                          [08:48:03.364 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\SMAPIHealthBarMod\manifest.json
                                          [08:48:03.383 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\SMAPIHealthBarMod\psconfigs
                                          [08:48:03.384 PM] Loading Mod DLL...
                                          [08:48:03.384 PM] LOADED MOD: Health Bars Mod by Maurício Gomes (Speeder) - Version StardewModdingAPI.Version | Description: Add health bars to monsters. (@ C:\GOG Games\Stardew Valley\Mods\SMAPIHealthBarMod\SMAPIHealthBarMod.dll)
                                          [08:48:03.390 PM] Found Manifest: C:\GOG Games\Stardew Valley\Mods\ΩSkillPrestigeCookingAdapter\manifest.json
                                          [08:48:03.404 PM] Created psconfigs directory @C:\GOG Games\Stardew Valley\Mods\ΩSkillPrestigeCookingAdapter\psconfigs
                                          [08:48:03.410 PM] Failed to load mod 'C:\GOG Games\Stardew Valley\Mods\ΩSkillPrestigeCookingAdapter\SkillPrestigeCookingAdapter.dll'. Exception details:
                                          System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
                                          at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
                                          at System.Reflection.RuntimeAssembly.get_DefinedTypes()
                                          at StardewModdingAPI.Program.LoadMods() in Z:\Projects\SMAPI\src\StardewModdingAPI\Program.cs:line 326

                                          [08:48:03.412 PM] Applying Final SDV Tweaks...
                                          [08:48:03.412 PM] SDV Loaded Into Memory
                                          [08:48:03.410 PM] LOADED 8 MODS
                                          [08:48:03.411 PM] Initializing Console Input Thread...
                                          [08:48:03.412 PM] Registered command: help
                                          [08:48:03.482 PM] XNA Initialize
                                          [08:48:03.485 PM] XNA LoadContent
                                          [08:48:03.702 PM] Initializing Debug Assets...
                                          [08:48:04.286 PM] Game Loaded
                                          [08:48:04.289 PM] [CookingSkill] Experience Bars found, adding cooking experience bar renderer.
                                          [08:48:04.290 PM] [CookingSkill] Luck found, making a note for later.
                                          [08:48:04.291 PM] [CookingSkill] All Professions not found.
                                          [08:48:04.311 PM] [LuckSkill] Experience Bars found, adding luck bar.
                                          [08:48:04.312 PM] [LuckSkill] All Professions not found.
                                          [08:48:04.312 PM] Type 'help' for help, or 'help <cmd>' for a command's usage
                                          [08:48:06.716 PM] Game Execution Finished
                                          [08:48:06.716 PM] Shutting Down...


                                          EDIT: Also, it doesn't look like SMAPI 1.0 works with Skill Prestige. Not unusual, just a heads up.
                                           
                                            Last edited: Nov 12, 2016

                                          Share This Page