Mods / RPG Difficulty

Category: #Creatures #Tweak #Worldgen
Author: BoboDev
Side: Server
Created: Apr 28th at 10:45 PM
Last modified: Oct 31st at 11:45 PM
Downloads: 2020
Follow Unfollow 42

Latest file for v1.20.0-pre:
rpgdifficulty_1.1.1.zip 1-click install


RPG Difficulty

Monster and Creatures increases their status getting away from the spawn, getting deeper in the caves and by the world aging, highly configurable

Features:

  • Blacklist
  • Whitelist
  • Life status increase
  • Damage status increase
  • Loot drop increase
  • Increase by distance
  • Increase by height
  • Increase by world age
  • Level UP Mod increase experience kill based on distance/height/age

Observations

RPG Difficulty simple changes the base max health when new entity spawn

For the damage system to work correctly it is necessary to change the native function "ReceiveDamage", so mods that change the damage function will not work with RPG Difficulty

For the harvest system to work correctly it is neccessary to modify the native function "SetHarvested", this just creates a simple prefix to change the player "animalLootDropRate" status, and probably is compatibile with everthing.

Make a backup of the world before adding this mod, any error can drastically increase the life of a creature which can ruin your gameplay.

This mods changes the "animalLootDropRate", this can cause problems if you are removing the mod, if you are using the Level UP theres a special section for that, if not consider harvesting any entity in the world spawn X:0 Y:110 Z:0 to reset the player status before removing the mod. (Also set the world age status to 0)

Considerations

This mod changes some native functions and can break easily throught updates.

By default the blacklist with "game:player" is enabled, because of course we dont wanna get the players to receive the buffs from distance when entering in the server, but if you want feel free to remove it.

Adding lower values to the stats increase every... can cause performance problems in high numbers of status on low end cpus, this calculations is made every time a entity spawn in the world, but of course only if entity has a health status, if the entity doesn't have a health status is ignored by the mod, like anything that move and is not alive (arrows, rocks, buttlerfly (yeah buttlerfly doesn't have health)).

The configuration enableExtended logs can cause performances problems, because a lot of things in the mod is constantly logging, if the mod is very stable in your world/modpack please consider desabling it in configurations

About RPG Difficulty

RPG Difficulty is open source project and can easily be accessed on the github, all contents from this mod is completly free.

If you want to contribute into the project you can access the project github and make your pull request.

You are free to fork the project and make your own version of RPG Difficulty, as long the name is changed.

Inspirations:

  • Minecraft RpgDifficulty mod
 

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.1 161 Oct 31st at 11:45 PM Show rpgdifficulty_1.1.1.zip Install now
v1.0.8 576 Aug 10th at 1:12 PM Show rpgdifficulty_1.0.8.zip Install now
v1.0.7 441 Jul 8th at 11:23 PM Show rpgdifficulty_1.0.7.zip Install now
v1.0.6 114 Jul 6th at 2:50 PM Show rpgdifficulty_1.0.6.zip Install now
v1.0.5 133 Jun 27th at 10:04 PM Show rpgdifficulty_1.0.5.zip Install now
v1.0.4 136 Jun 15th at 1:35 PM Show rpgdifficulty_1.0.4.zip Install now
v1.0.3 67 Jun 13th at 10:38 PM Show rpgdifficulty_1.0.3.zip Install now
v1.0.2-rc.2 64 Jun 13th at 3:40 PM Show rpgdifficulty_1.0.2+2.zip Install now
v1.0.1-rc.1 84 Jun 11th at 10:16 PM Show rpgdifficulty_1.0.1+1.zip Install now
v1.0.0 244 Apr 28th at 10:46 PM Show rpgdifficulty_1.0.0.zip Install now

22 Comments (oldest first | newest first)

💬 Quiche, Sep 13th at 2:57 AM

Thank you very much! I'll go pop this bug on their page then. Also bless you for telling me how to disable! You're a star.

💬 BoboDevAuthor, Sep 8th at 9:51 AM

Quiche You can disable the logs in base.json in the RPGDifficulty configuration, the crash you are receiving is from the mod Attributer is not related to the RPGDifficulty

💬 Quiche, Sep 7th at 5:39 PM

Experiencing this crash for one of my players in my server.

[Server Error] Exception: Object reference not set to an instance of an object.
at attributer.src.patch.WearableStatsPatch.handleDamagedWearableStats(IPlayer player, Single damage, DamageSource dmgSource, ICoreAPI& ___api, Single& __result) in C:\Users\andy-\Documents\GitHub\VS-Attributer\mod-src\patch\WearableStatsPatch.cs:line 23
at Vintagestory.GameContent.ModSystemWearableStats.handleDamaged_Patch2(ModSystemWearableStats this, IPlayer player, Single damage, DamageSource dmgSource)
at Vintagestory.GameContent.EntityBehaviorHealth.OnEntityReceiveDamage(DamageSource damageSource, Single& damage) in VSEssentials\Entity\Behavior\BehaviorHealth.cs:line 169
at RPGDifficulty.DamageInteraction.ReceiveDamage(Entity __instance, DamageSource damageSource, Single damage) in E:\Templates\RPGDifficulty\RPGDifficulty\Overwrite.cs:line 140
at Vintagestory.API.Common.Entities.Entity.ReceiveDamage_Patch1(Entity this, DamageSource damageSource, Single damage)
at Vintagestory.API.Common.EntityAgent.ReceiveDamage_Patch1(EntityAgent this, DamageSource damageSource, Single damage)
at Vintagestory.API.Common.EntityAgent.OnInteract(EntityAgent byEntity, ItemSlot slot, Vec3d hitPosition, EnumInteractMode mode) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 355
at Vintagestory.Server.ServerSystemEntitySimulation.HandleEntityInteraction(Packet_Client packet, ConnectedClient client)

at Vintagestory.Server.ServerMain.ProcessNetMessage(NetIncomingMessage msg, NetServer mainSocket) in VintagestoryLib\Server\ServerMainNetworking.cs:line 138

💬 Quiche, Sep 4th at 10:14 AM

Brilliant mod, absolutely love the challenge it gives venturing out great distances for my players. I do have a teensy issue with getting a lot of console log spam however:

4.9.2024 10:12:20 [RPGDifficulty] game:drifter-nightmare increasing max health in: 39 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:23 [RPGDifficulty] game:drifter-tainted increasing max health in: 21 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:23 [RPGDifficulty] game:drifter-deep increasing max health in: 16 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:23 [RPGDifficulty] game:drifter-deep increasing max health in: 16 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:23 [RPGDifficulty] game:drifter-tainted increasing max health in: 21 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:23 [RPGDifficulty] game:drifter-tainted increasing max health in: 21 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:24 [RPGDifficulty] game:drifter-nightmare increasing max health in: 39 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:24 [RPGDifficulty] game:drifter-nightmare increasing max health in: 39 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:24 [RPGDifficulty] game:drifter-nightmare increasing max health in: 39 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:26 [RPGDifficulty] game:drifter-corrupt increasing max health in: 29 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:26 [RPGDifficulty] game:drifter-corrupt increasing max health in: 29 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:26 [RPGDifficulty] game:drifter-corrupt increasing max health in: 29 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:29 [RPGDifficulty] game:drifter-corrupt increasing max health in: 29 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:31 [RPGDifficulty] game:drifter-nightmare increasing max health in: 39 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:31 [RPGDifficulty] game:drifter-nightmare increasing max health in: 39 damage percentage: 0.1 loot percentage: 0.1
4.9.2024 10:12:31 [RPGDifficulty] game:drifter-nightmare increasing max health in: 39 damage percentage: 0.1 loot percentage: 0.1

Makes it difficult to catch when errors or crashes happen on my multiplayer server. Thank you!

💬 BoboDevAuthor, Aug 7th at 11:08 PM

SoulReaperz This is very strange, because rpgdifficulty is compatible with levelup, the only reason that i think is some versions inconsistence, you are using a levelup version that is not compatible, always use the last versions for the two mods

💬 SoulReaperz, Jul 26th at 6:18 PM

BoboDev

well i was able to get the rpg difficulty to fully work by turning the knife skill in level up to false, thuse disabling the knife skill completely

💬 SoulReaperz, Jul 20th at 12:23 AM

BoboDev

ok, just found the issue
didnt know you made level up aswell
and didnt know level up would cause all these issues
would love to see a compatibility patch for the two to work together
cant really have the rpg difficulty and not have the level up benefits to go with it accordingly

when i removed the Level up Mod, the RPG DIfficulty mod started working at 100% pefectly
but with Level up added, everything breaks

💬 BoboDevAuthor, Jul 19th at 9:10 PM

SoulReaperz I don't think the load order will make difference, but you can go to the source download it to your computer compile by your self, the only thing you will need to change is the function ExecuteOrder in the Initialization.cs to 0.1, if you struggle to do that you can send me a dm in discord #bobodev

💬 SoulReaperz, Jul 19th at 3:34 PM

BoboDev

not sure if its intentionall, but it appears this mod has to be loaded into the world/server as a very first mod before adding anything else for it to work for me
not sure if your able to just code it to load first on the mod list instead of loading wherever it is loading at, but adding this after adding other mob adding mods does not apply its effect to any of those mobs, and when restarting it just resets it back to a lower order on the list it appears

well i cant get it to increase in the mod load order at all to stay at the top no matter what i do, and all the guides say is change name and it made it worse lol

also rustbound mage

keeps throwing that it needs a patch for the mage class to be supported

💬 Thalius, Jul 9th at 3:30 AM

Thank you for adding the distance/depth/age parameters, and for making the mod so easily configurable! Makes for some interesting options.

 

💬 BoboDevAuthor, Jul 6th at 4:52 PM

NiclAss Yes should work

💬 NiclAss, Jul 6th at 3:27 PM

Does this also work for stuff like structures spawners ?

💬 BoboDevAuthor, Jul 6th at 2:48 PM

SoulReaperz Looking through the code theres is a bug when getting the entity status distance/height, fixed in the 1.0.6

adres4t If all entities from the vanilla works and the primitive simple bugs, theres nothing i can do

💬 SoulReaperz, Jul 5th at 8:22 PM

@BoboDev

when you say

Loot drop increase

do you mean increased drop chance?

or increased drop amounts?

ive been trying to get increased amounts but doesnt seem to be working for me, but chances seems to be higher tho

altho just tested with normal drifter and i actually was getting less amounts but more chance at farther distances

with two headed drifter(by default it already had higher drop chances to begin with) but at farther distances it did not yeild any differences for me

also none of the other entity mods are getting propper boosts, outlaws are still their 6-16 hp and no increase on anything

rhinos and several other fauna of the stone ages mobs dont get boosts either,

ive checked their respective mods and they do have health notes in them but no increase at all with the distance

ive tested at 500,000x500,000

250,000x250,000

125,000x125,000

67,500x67,500

32,500x32,500

16,000x16,000

and next to spawn at 220x115

and did not see any differences in any loot drops other then with normal drifters actually dropping less item amounts

💬 adres4t, Jun 30th at 9:46 PM

Following my previous post, pit viper one shot me just now and I cannot damage it at all. I won't be changing anything just for this mod to work.

Cheers.

my mod list:

aculinaryartillery, alchemy, offhandpenalty, anim
ationmanagerlib, atwatersedge, egocaribautomapmarkers, trophies, beartrap, betteritemflags, bettercrates, betterfirepit, bett
erjonasdevices, betterruinslootchanges, betterruins, blacksmithenhancements, branchcutter, bricklayers, bullseye-continued, b
utchering, cancrops, carpet, carryon, Ceramos, chiblocksel, chiseltools, Clumps, commonlib, composter, configureeverything, c
rackedrockweak, cruciblecapacity, cumanmod, decayingcreatures, deconstructchutes, decor, dont-place-sticks, doubleslabs, Drys
toneParity, eftraders, electricityaddon, electricity, expandedfoods, em, extendedcrafts, fairplayguardian, fancyplanters, fev
erstonehorses, flourbags, sirenia, fromgoldencombs, fruitpresstweaked, gardenerz, hangingbaskets, HangingOilLamps, herbarium,
 honeypressmittim, justanarrowheadmold, lastingarmor, lessannoyingdrifters, lichenredux, mannequinstand, medievalexpansion, m
illwright, minerz, moreanimals, morepiles, nailsmold, Spear-Expantion-by-Kanahaku, petai, pileful, pei, playercorpse, playerl
ist, potontheshelf, claywheel, primitivesurvival, prospecttogether, RedDyeFromBerries, reducedwater, rifteye, rivers, roadwor
ks, rotcraft, rpgdifficulty, sortablestorage, stonebakeoven, stonetobricks, stonequarry, storagecontroller, storageoptions, t
h3essentials, thatchexpanded, toolsrequirerope, trailmod, trailmod, usefulstuff17, vanity, vichnybackpack, viesblocks, vincon
omy, vsrecipes, wildcraftherb, wildfarmingrevival, worldgenfixremix, xlib, xskillscatchablepatch, xskills
 
Found in the log:
 
22:39:31 [Notification] [RPGDifficulty] primitivesurvival:pitviper increasing max health in: 1648 damage percentage: 206.4 loot percentage: 206.4
30.6.2024 22:39:35 [Notification] [RPGDifficulty] game:player is on blacklist, ignoring damage
30.6.2024 22:39:36 [Notification] [RPGDifficulty] game:drifter-tainted increasing max health in: 11 damage percentage: 0.5 loot percentage: 0.5
30.6.2024 22:39:36 [Notification] [RPGDifficulty] game:drifter-tainted increasing max health in: 11 damage percentage: 0.5 loot percentage: 0.5
30.6.2024 22:39:36 [Notification] [RPGDifficulty] game:drifter-tainted increasing max health in: 13 damage percentage: 0.6000000000000001 loot percentage: 0.6000000000000001
30.6.2024 22:39:36 [Notification] [RPGDifficulty] game:drifter-tainted increasing max health in: 15 damage percentage: 0.7000000000000001 loot percentage: 0.7000000000000001
30.6.2024 22:39:36 [Notification] [RPGDifficulty] game:drifter-tainted increasing max health in: 19 damage percentage: 0.8 loot percentage: 0.8
30.6.2024 22:39:36 [Notification] [RPGDifficulty] game:drifter-tainted increasing max health in: 12 damage percentage: 0.5 loot percentage: 0.5
30.6.2024 22:39:37 [Notification] [RPGDifficulty] game:drifter-tainted increasing max health in: 14 damage percentage: 0.6 loot percentage: 0.6
30.6.2024 22:39:38 [Notification] [RPGDifficulty] game:drifter-corrupt increasing max health in: 23 damage percentage: 0.7000000000000001 loot percentage: 0.7000000000000001
30.6.2024 22:39:38 [Notification] [RPGDifficulty] primitivesurvival:pitviper damage increased by 1647.2
30.6.2024 22:39:38 [Notification] [RPGDifficulty] playercorpse:playercorpse increasing max health in: 0 damage percentage: 0 loot percentage: 0
30.6.2024 22:39:38 [Notification] [playercorpse] Created adres4t's corpse at x=494, y=145, z=-20, id 2294852
💬 BoboDevAuthor, Jun 30th at 5:27 PM

Ryuu No the monster do not level up, the monster will be the same stats until they die.

SoulReaperz This mod should be compatible with any other mods, probably the mod you are talking about is not setting a health attribute to the entities, maybe they missing something in the json code.

💬 SoulReaperz, Jun 29th at 5:25 AM

any plans on outlaw and/or fauna of the stone ages support to bump up their stats? the drifters work wonders but imagin an outlaw or rhino or lion with high stats at 50k from spawn

ive ran off into the distance and the looters still had 6hp at 13k from spawn and the animals still had their 12-50 hp with no increase
the better drifters definitly got a good boost the double headed at 13k had over 200hp and the surface had over 50hp

 

💬 Ryuu, Jun 28th at 11:58 PM

Can monsters level up if they kill someone many times? Perhaps turning them into a 'named' mob or Tiered mob ?

💬 BoboDevAuthor, Jun 27th at 4:18 PM

adres4t The mod simples change the health attributes on spawning, should be compatible with any mod that adds new entities, try reducing the health scalling on mod configurations /assets/config/base.json

💬 adres4t, Jun 25th at 5:00 PM

I couldn't kill a snake from Primitive Survival and its healthbar was full after a few spears thrown at it.

I will give it another chance and see if it's clashing with other mods.

Do you know which mods might be incompattible?

💬 BoboDevAuthor, Jun 11th at 10:48 PM

Wandour The level up mod is this: LevelUP, its not increase the drop rate, actually only health and damage

💬 Wandour, Jun 11th at 10:24 PM

what do you mean by lvl up mod? 

are you referring to xskills?

does increased difficulity also give more drops?

(edit comment delete)