Ludeon Forums

RimWorld => Mods => Releases => Topic started by: krafs on April 02, 2019, 03:16:11 PM

Title: [1.1] Level Up!
Post by: krafs on April 02, 2019, 03:16:11 PM
Notifications when a colonist levels up a skill.

How to use
Just play like normal. You'll get notified whenever a colonist levels up.
Level up is enabled by default. If you want to get notifications when a colonist levels down, enable it in the mod settings.

Compatibility
- Compatible with RimWorld v1.0, v1.1 and the Royalty DLC.
- Should be compatible with any mods.

Notes
- Safe to add and remove from existing saves.
- Add anywhere in your load order.
- This mod is different on v1.0 and v1.1 of RimWorld. You can use it on both versions, but they are slightly different. Read the Release notes (https://github.com/krafs/LevelUp/releases/tag/v2.0.0) to learn what has changed.

"My colonist levels up and then almost instantly down again!"
This is caused by a feature in vanilla RimWorld known as skill decay. Skills at lvl 10 and higher lose xp. If xp goes low enough, the skill levels down. The rate of skill decay increases with every level - It is slow at lvl 10, and fast at lvl 20. This can lead to two problems:

A colonist on level 10 or higher in a skill she almost never uses will lead to that skill almost always ending up at the very top of lvl 9, because skill decay stops as soon as a skill goes below lvl 10. This means that only a tiny bit of xp is needed to level her up to lvl 10 again, which then goes down to 9 again, and so on.

A colonist with a high level skill she uses almost all the time will likewise lead to that skill jumping up and down between e.g. lvl 19 and 20.

Level Up! has a cooldown between notifications to make this feel less irritating, but it does not in any way prevent or slow down skill decay. There are other excellent mods that do that though, e.g. RIMMSqol (https://steamcommunity.com/sharedfiles/filedetails/?id=1084452457).

Languages
- English
- Russian (Credit: Player.exe)
- German (Credit: Paradies)
- French (Credit: Acaila)
- Simplified Chinese (Credit: HawnHan)
- Portuguese/Brazilian (Credit: randrade86)

Download
Download the mod from GitHub (https://github.com/krafs/LevelUp/releases/latest) or Steam Workshop (https://steamcommunity.com/sharedfiles/filedetails/?id=1701592470).
Title: Re: [1.0] Level Up! 1.0
Post by: Kori on April 02, 2019, 03:42:01 PM
Good idea!
Title: Re: [1.0] Level Up! 1.0
Post by: togfox on April 02, 2019, 05:11:59 PM
I didn't realise how much I wanted this!
Title: Re: [1.0] Level Up! 1.0
Post by: kaptain_kavern on April 02, 2019, 05:28:06 PM
Quote from: togfox on April 02, 2019, 05:11:59 PM
I didn't realise how much I wanted this!
+1

Thank you for the mod
Title: Re: [1.0] Level Up! 1.0
Post by: LiteEmUp on April 02, 2019, 06:41:27 PM
- Bookmarked -

This is definitely looking awesome... going to wait for a few days before adding, to see someone reports bugs lol
Title: Re: [1.0] Level Up! 1.0
Post by: DiamondBorne on April 02, 2019, 08:43:59 PM
Quote from: togfox on April 02, 2019, 05:11:59 PM
I didn't realise how much I wanted this!
+2
Title: Re: [1.0] Level Up! 1.0
Post by: krafs on April 03, 2019, 02:00:59 PM
Glad you like it! Let me know if there are any issues or other ideas :)
Title: Re: [1.0] Level Up! 1.0
Post by: Exende on April 03, 2019, 06:56:26 PM
Great mod!  Although personally not sure it's worth the 20+minutes to add it to my current game, maybe next game :/
Title: Re: [1.0] Level Up! 1.0
Post by: Lex Silvas on April 03, 2019, 07:32:48 PM
Another mod that i didn't know i really needed until today. Thanks mate  ;) ;) ;)
Title: Re: [1.0] Level Up! 1.0
Post by: Sonsalt on April 05, 2019, 05:49:26 AM
@krafs great job!

You should also implement an animation that shows when a pawn is loosing a level.

Eventually, you can add also small icons to show what LVL up the pawn just aquired. :)
Title: Re: [1.0] Level Up! 1.0
Post by: krafs on April 05, 2019, 06:13:28 AM
Quote from: Sonsalt on April 05, 2019, 05:49:26 AM
@krafs great job!

You should also implement an animation that shows when a pawn is loosing a level.

Eventually, you can add also small icons to show what LVL up the pawn just aquired. :)

Thanks!

Those are some cool ideas. Notifications on level downs would have to be toggleable in the mod settings (because I don't think everyone wants that) but that's definitely doable.
Are you thinking icons of e.g. stone cutting, shooting, social, etc? On the pawn or on the text message notification?
Title: Re: [1.0] Level Up! 1.0
Post by: Sonsalt on April 05, 2019, 06:25:08 AM
(http://i.imgur.com/4yAtzOS.png)

This is what I found so far.

One final idea would be to show the lvl along with the animation. :P

Title: Re: [1.0] Level Up! 1.0
Post by: krafs on April 05, 2019, 07:09:53 AM
Ah, ok. Yeah, I'll look into it and see if it fits. Good feedback @Sonsalt!
Title: Re: [1.0] Level Up! 1.0
Post by: krafs on April 05, 2019, 02:09:47 PM
1.0.1 The 'Toggle Settings' Update

- Players can now disable unwanted mod effects occurring at level up:
- Text Notification
- Animation
- Sound Effect
Only want the text message? Or just the animation and sound? Now you can :)
- Adjusted duration of animation. It is now slightly longer.
Title: Re: [1.0] Level Up! 1.0.1
Post by: Greed_GorAshaar on April 05, 2019, 02:32:10 PM
hey, what about unlock skill cap? u can change skill max level from 20 to X where X u can set by yourself
Title: Re: [1.0] Level Up! 1.0.1
Post by: krafs on April 05, 2019, 02:43:07 PM
Quote from: Greed_GorAshaar on April 05, 2019, 02:32:10 PM
hey, what about unlock skill cap? u can change skill max level from 20 to X where X u can set by yourself

Unfortunately, an unlocked skill cap is a bit complex. Not that I couldn't do it, just that it most likely breaks a lot of mods and fundamental game mechanics. Don't get me wrong, it's a fun idea, I just don't want to tamper with that.
Title: Re: [1.0] Level Up! 1.0.1
Post by: Greed_GorAshaar on April 05, 2019, 02:53:21 PM
sure i get it ;) its just an idea
Title: Re: [1.0] Level Up! 1.0.1
Post by: Sonsalt on April 06, 2019, 02:26:37 AM
@krafs

Great work on the update :) coming together nicely.

It feels almost like this would belong into the game :P

A small but very useful mod.
Title: Re: [1.0] Level Up! 1.0.1
Post by: krafs on April 08, 2019, 05:04:02 AM
1.0.2 The 'Level Down' Update

- Get notified when pawns level down.
This feature is disabled by default. Toggle it in the mod settings.
Title: Re: [1.0] Level Up! 1.0.2
Post by: Sonsalt on April 08, 2019, 05:46:06 AM
Oh nice, well done.

This is quite useful for late game when it comes down to the top levels :D

While testing your mod I had the thought of highlighting if pawns are about to downgrade.
This is relevant especially when you need them at a high level for late game stuff.

I think this is not 100% related to this mod though.

Title: Re: [1.0] Level Up! 1.0.2
Post by: Kirby23590 on April 08, 2019, 06:34:49 AM
So when you get a Level down. At least i now know that i have re-train that curtain person in that skill... :)

Nice touches i love it!
Title: Re: [1.0] Level Up! 1.0.2
Post by: Kori on April 08, 2019, 07:04:05 AM
While the mod was working fine when it was 1.0, it stopped working with the update of 1.0.1 or 1.0.2 for me.
Also all mod settings were disabled by default.  :-\
Title: Re: [1.0] Level Up! 1.0.2
Post by: krafs on April 08, 2019, 07:54:38 AM
Quote from: Kori on April 08, 2019, 07:04:05 AM
While the mod was working fine when it was 1.0, it stopped working with the update of 1.0.1 or 1.0.2 for me.
Also all mod settings were disabled by default.  :-\

Some peope who've updated seem to have had their mod settings disabled, like you say. That's unfortunate. Does everything work after enabling them again?
Title: Re: [1.0] Level Up! 1.0.2
Post by: Kori on April 08, 2019, 01:11:37 PM
Quote from: krafs on April 08, 2019, 07:54:38 AM
Some peope who've updated seem to have had their mod settings disabled, like you say. That's unfortunate. Does everything work after enabling them again?

Unfortunately no. When I noticed it's not working anymore I checked the new settings, enabled everything and still don't receive any messages on level up.
Title: Re: [1.0] Level Up! 1.0.2
Post by: krafs on April 08, 2019, 01:40:44 PM
Quote from: Kori on April 08, 2019, 01:11:37 PM
Unfortunately no.

Ok. I'm gonna spitball some ideas:
- Did you add the mod to an existing save or new?
- Are the pawns levelling up by learning? Levels gained via items and the debug menu won't work.
- Have you recently added mods that also modify or relate to skills?
- Do you receive no notifications at all, or just for levels above/below a certain level?
- Is it for all pawns or just some? All skills?
- Does the problem carry over to other saves, or just one save game?
- What happens if you create a new save with only Level Up and Core?
Title: Re: [1.0] Level Up! 1.0.2
Post by: Kori on April 08, 2019, 05:18:18 PM
- Did you add the mod to an existing save or new?
new colony
- Are the pawns levelling up by learning? Levels gained via items and the debug menu won't work.
yes, by learning
- Have you recently added mods that also modify or relate to skills?
no, I use Static Quality Plus ( https://ludeon.com/forums/index.php?topic=24718.0 ), but that mod was working fine with Level Up 1.0.0
- Do you receive no notifications at all, or just for levels above/below a certain level?
no notifications at all, but I just started the colony and need more testing
- Is it for all pawns or just some? All skills?
so far for all pawns and all skills, haven't seen a notification once
- Does the problem carry over to other saves, or just one save game?
- What happens if you create a new save with only Level Up and Core?
I will test these things tomorrow :)

edit: I'm sure it is a mod conflict, I will find the conflicting mod tomorrow and let you know
Title: Re: [1.0] Level Up! 1.0.2
Post by: Kori on April 09, 2019, 06:24:16 AM
The conflicting mod is Static Quality Plus and changing the load order does not help.
Once it is deactivated, Level Up works fine again, even in existing saves.
Title: Re: [1.0] Level Up! 1.0.2
Post by: krafs on April 09, 2019, 11:05:21 AM
I just had a look at the source code for Static Quality Plus, and yeah, no wonder it didn't work for you. That mod completely overrides every bit of skill-related code, leaving no room for other mods to affect the same features. I would have to make a mod for that mod to be able to co-exist.

It seems to bring a lot more features than its name suggests. Is it mainly the skill degradation you're after? Because Mad Skillz does that too, but in a way that is much more compatibility friendly.
Title: Re: [1.0] Level Up! 1.0.2
Post by: Kori on April 09, 2019, 11:41:34 AM
Quote from: krafs on April 09, 2019, 11:05:21 AM
I just had a look at the source code for Static Quality Plus, and yeah, no wonder it didn't work for you. That mod completely overrides every bit of skill-related code, leaving no room for other mods to affect the same features. I would have to make a mod for that mod to be able to co-exist.

It seems to bring a lot more features than its name suggests. Is it mainly the skill degradation you're after? Because Mad Skillz does that too, but in a way that is much more compatibility friendly.

That's too bad. :(
It's strange that it was working before the update. I have a list of mods I never touch except for adding something, so Static Quality Plus has always been there and I definitely got the Level Up notifications when your mod was released.

From SQP I use all features it offers: level based daily XP cap, the passion gain, crafting quality...  :-\

Thank you for having a look at the other mod!
Title: Re: [1.0] Level Up! 1.0.2
Post by: krafs on April 09, 2019, 02:08:34 PM
Quote from: Kori on April 09, 2019, 11:41:34 AM
It's strange that it was working before the update.

So, I just couldn't shake this feeling that I'd missed something. You said that it worked before, and it shouldn't have, unless I was wrong about something. I did some more digging, and it seems I was wrong. The mods can be compatible with each other. I just needed to revert to a specific code design that I used in v1.0.0. It was just a small entry that decided where the mod is implemented.

I haven't updated the mod on Steam yet. I wanted to ask you if you'd try it out first. It's on GitHub (https://github.com/krafs/LevelUp/releases/tag/v1.0.3). You probably need to unsubscribe on steam before adding it. Wanna help me out? :)
Title: Re: [1.0] Level Up! 1.0.2
Post by: Kori on April 09, 2019, 02:39:40 PM
Quote from: krafs on April 09, 2019, 02:08:34 PM
Quote from: Kori on April 09, 2019, 11:41:34 AM
It's strange that it was working before the update.

So, I just couldn't shake this feeling that I'd missed something. You said that it worked before, and it shouldn't have, unless I was wrong about something. I did some more digging, and it seems I was wrong. The mods can be compatible with each other. I just needed to revert to a specific code design that I used in v1.0.0. It was just a small entry that decided where the mod is implemented.

I haven't updated the mod on Steam yet. I wanted to ask you if you'd try it out first. It's on GitHub (https://github.com/krafs/LevelUp/releases/tag/v1.0.3). You probably need to unsubscribe on steam before adding it. Wanna help me out? :)

That's great, of course I want to! :)
Title: Re: [1.0] Level Up! 1.0.2
Post by: Kori on April 09, 2019, 04:09:58 PM
Everything works like a charm now with all my (too many) mods, just wonderful!  :)

Again all mod settings were disabled by default after switching to the new version, just as a heads-up.

Thank you so much for your help!
Title: Re: [1.0] Level Up! 1.0.2
Post by: krafs on April 09, 2019, 04:42:23 PM
Awesome! Thanks for testing.

However, this mod and Static Quality Plus are competing for the same method in the RimWorld codebase, so it's not perfect. The method in question relates to Passion Gain and Daily XP Cap in SQP, and I am probably overriding those features in 1.0.3 now. Basically, everything else should work, but those particular features in SQP won't.

Also still can't understand why the mod settings reset. I'm gonna have another look at that. Might take me a day or two before I update Steam. Again, thanks for the help!
Title: Re: [1.0] Level Up! 1.0.3
Post by: krafs on April 14, 2019, 11:39:36 AM
1.0.3 The 'Static Quality Plus' Hotfix

- Added compatibility with mod Static Quality Plus 1.1.
- Hopefully resolved issue where mod settings occasionally reset.
Title: Re: [1.0] Level Up! 1.0.4
Post by: krafs on April 28, 2019, 04:23:59 AM
1.0.4 The 'Letter' Update

- Added option of receiving a letter on leveling. Disabled by default.
- Adjusted volume of sound notifications.
Title: Re: [1.0] Level Up! 1.0.4
Post by: krafs on May 18, 2019, 09:58:50 AM
1.0.6 The 'Additional Sound' Update

- Sound effect for level up is now selectable. Available sounds are Classic (default) and Punchy.

Thanks Scott Wilco, who kindly created and provided the Punchy sound effect.
Title: Re: [1.0] Level Up! 1.0.6
Post by: randomperson415012 on July 03, 2019, 06:11:21 PM
Hey!

Thank you for your mod!

I'd like to report a sort of "bug". My pawn's construction level keeps reaching 20 then going down to 19 then up to 20 again, and that spams the sound effects that I very much like, just not at that rate.

I don't know the proper way to fix this issue, but I have an idea. You could provide us an option to only see it the first time when the skill reaches level 20, and then it would only show again IF it downgraded to level 18 (eighteen) OR some threshold in between level 18-20, or only after some time. (up to you, whatever suits you for me at least is perfect).

Thank you

Title: Re: [1.0] Level Up! 1.0.6
Post by: krafs on July 04, 2019, 01:20:03 AM
Quote from: randomperson415012 on July 03, 2019, 06:11:21 PM
You could provide us an option to only see it the first time when the skill reaches level 20, and then it would only show again IF it downgraded to level 18 (eighteen) OR some threshold in between level 18-20, or only after some time.

Thanks! I'm glad people are enjoying it.

Yeah, it's a problem. The same thing happens at lvl 9 and 10, pawns leveling up and down in a fast pace, and receiving lots of notifications. I solved that temporarily by giving the option of never alerting when pawns go from 10 to 9 (Mod Settings: 'Silent Lvl10-9'). It's not perfect, but it seems to work well enough. Hmm... But maybe a timer could work. No notifications if a pawn has leveled up or down within a certain amount of time. I'll look into it. Thanks for the feedback!
Title: Re: [1.0] Level Up! 1.0.9
Post by: krafs on July 04, 2019, 03:12:14 PM
1.0.9 The 'Notification Timer' Update

- Added experimental option to the mod settings - Notification Timer.

It is another workaround for those who constantly experience pawns leveling up and down. This allows the player to set the number of seconds that must pass between each level notification for an individual pawn.
Title: Re: [1.0] Level Up! 1.0.9
Post by: randomperson415012 on July 05, 2019, 12:57:06 PM
I'm glad to be of help!

So, I'll test the modification. Thank you for listening!
Title: Re: [1.0] Level Up! 1.0.9.3
Post by: krafs on September 19, 2019, 03:10:59 PM
1.0.9.3 The 'SQP Version' Bugfix

- Fixed issue where players using Level Up! and Static Quality Plus 1.2 wouldn't receive level notifications.

Issue was caused by SQP having been updated to 1.2, changing the mod name from Static Quality Plus 1.1 to Static Quality Plus 1.2. This caused Level Up! to not realize the conflicting mod was running, resulting in Level Up! not working at all.

Any future updates from SQP should now work, regardless of version suffix in its mod name.