For those wondering why bows aren't working for Friendlies, author is inactive but there is a workaround and this only seems to work.
This is for Friendly05: You need to add a custom attack, see: "aAdvancedCustomAttacks":[ { "sOriginalPrefabName":"skeleton_bow",
skeleton_bow is important here as it appears to be the only bow that currently works and must be set here.
Then under default items or aRandomWeapon, you can add @1 (which refers to the first custom attack you specified with skeleton_bow)
"aRandomWeapon" : [ "@1", "SpearFlint" ],
For balancing at different Friendly tiers, I used these numbers: Bow (Crude) - Damage 25 BowFineWood - Damage 35 BowHuntsman - Damage 45 BowDraugrFang - Damage 55 BowSpineSnap - Damage 65
In this example, Friendly05 uses "fPierce":25,
You can also set additional damage like "fFire":15, etc. to further specialize certain characters Also feel free to modify the "fAIAttackInterval":4, else all bow attacks will have a 4 second delay between attacks. Good luck!
Thanks for that tip, got it to work perfectly! At first, I had overlooked the need to put "1@" in the random weapon line, but once I got that in there, it was good to go. Very heartening to find a fix for my Ranged NPC's!
That being said, I'm still havin problems with all three Freindlies .dll's loaded. I typically just spawn my custom NPC's from the console, but with the main dll and the FreindliesAI dll, console spawning does not work. It as if the console can't read any of the configs that are normally picked up with " /spawn RRRN_YourNameHere".
I'm still messing around with it, but I'm thinking the FreindliesAI file as well as the MobAILib are out of date?
Is this mod working with Mistlands? The idea of using actual NPCs just to do menial tasks around my base (instead of using like Autofuel) seems very cool to me and I can see RRRNpcs and Spawn That? were updated to work with the new release. Can you also set the NPCs to be like guards? Kinda like the mod Kukus Villager Mod v2 but that is still in WIP I play alone so it feels really lonely sometimes to come back to base lol?
This already fixed [Warning:Spawn That!] Unable to find prefab 'RRRN_FriendlyMelee_Male_0' for RRRN_FriendlyMelee_Male_0. Skipping world spawn template Friendly_Tier0_Melee [Warning:Spawn That!] Unable to find prefab 'RRRN_FriendlyMelee_Fem_0' for RRRN_FriendlyMelee_Fem_0. Skipping world spawn template Friendly_Tier0_Ranged
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly05' for RRRN_Friendly05. Skipping world spawn template Friendly_Tier05 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly1' for RRRN_Friendly1. Skipping world spawn template Friendly_Tier1 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly15' for RRRN_Friendly15. Skipping world spawn template Friendly_Tier15 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly2' for RRRN_Friendly2. Skipping world spawn template Friendly_Tier2 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly25' for RRRN_Friendly25. Skipping world spawn template Friendly_Tier25 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly3' for RRRN_Friendly3. Skipping world spawn template Friendly_Tier3 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly35' for RRRN_Friendly35. Skipping world spawn template Friendly_Tier35 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly4' for RRRN_Friendly4. Skipping world spawn template Friendly_Tier4 [Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly45' for RRRN_Friendly45. Skipping world spawn template Friendly_Tier45
[Warning:Spawn That!] Issues with finding prefabs detected. The message "Unable to find prefab" means that Spawn That is loaded correctly, and is now trying to configure your spawns. However, the listed prefab was not registered in the game, and Spawn That is therefore unable to use it. Verify spelling of prefab name in Spawn That configurations, or that the creature/item is correctly loaded.
Ok i get this and i start fixing files.
last 4 left Weapon Name incorrect [Warning: RRRCore] Unknown Item 'AsheBow' for 'RRRN_Ashe'. Prefab will not be loaded. [Warning: RRRCore] Unknown Item 'AxeJump' for 'RRRN_Dwarf'. Prefab will not be loaded. [Warning: RRRCore] Unknown Item 'EirHeal' for 'RRRN_Eir'. Prefab will not be loaded. [Warning: RRRCore] Unknown Item 'LightningShock' for 'RRRN_Mage'. Prefab will not be loaded. All done need only proper item for each of them:
Still in fixing how this character should look. Mage:
So far I may have found a sort of workaround. Im still testing it. Grab the easy spawner mod( https://valheim.thunderstore.io/package/Cooleyy/EasySpawner/ ) and they all show up in the list. I have a few spawned and they seem to be eating the boar meat(cooked) they are getting tamed slowly. Ill update on what works once they are tamed as far as AI goes.
Anyone knows what food the friendly human NPCs eat? I tried to drop cooked meal and berries around them even when they are hungry, they don't seems to be eating any of them.
162 comments
This is for Friendly05: You need to add a custom attack, see:
"aAdvancedCustomAttacks":[
{
"sOriginalPrefabName":"skeleton_bow",
skeleton_bow is important here as it appears to be the only bow that currently works and must be set here.
Then under default items or aRandomWeapon, you can add @1 (which refers to the first custom attack you specified with skeleton_bow)
"aRandomWeapon" : [
"@1",
"SpearFlint"
],
For balancing at different Friendly tiers, I used these numbers:
Bow (Crude) - Damage 25
BowFineWood - Damage 35
BowHuntsman - Damage 45
BowDraugrFang - Damage 55
BowSpineSnap - Damage 65
In this example, Friendly05 uses "fPierce":25,
You can also set additional damage like "fFire":15, etc. to further specialize certain characters
Also feel free to modify the "fAIAttackInterval":4, else all bow attacks will have a 4 second delay between attacks. Good luck!
{
"sOriginalPrefabName" : "RRR_NPC",
"sNewPrefabName" : "Friendly05",
"Category_Appearance" : {
"vScale" : {
"fX" : 1,
"fY" : 1,
"fZ" : 1
},
"cTintColor" : null,
"cBodySmoke" : null,
"cBodyFlames" : null
},
"Category_Character" : {
"sName" : "Wandering Protector",
"sFaction" : "Players",
"bBoss" : false,
"sBossEvent" : "",
"sDefeatSetGlobalKey" : "",
"fMoveSpeedMulti" : 1.2,
"bToleratesWater" : true,
"bToleratesFire" : false,
"bToleratesSmoke" : false,
"fHealth" : 80,
"dDamageTaken" : {
"m_blunt" : "Normal",
"m_slash" : "Normal",
"m_pierce" : "Normal",
"m_chop" : "Immune",
"m_pickaxe" : "Immune",
"m_fire" : "Normal",
"m_frost" : "Normal",
"m_lightning" : "Normal",
"m_poison" : "Normal",
"m_spirit" : "Immune"
}
},
"Category_Humanoid" : {
"dtAttackDamageOverride" : null,
"fAttackDamageTotalOverride" : null,
"sAttackProjectileOverride" : null,
"aDefaultItems" : [
"ArmorLeatherLegs",
"ArmorLeatherChest",
"CapeDeerHide"
],
"aRandomWeapon" : [
"@1",
"SpearFlint"
],
"aRandomArmor" : [
"HelmetLeather",
"",
""
],
"aRandomShield" : [
"ShieldWood",
"ShieldWood",
""
],
"aaRandomSets" : [
],
"aAdvancedCustomAttacks":[
{
"sOriginalPrefabName":"skeleton_bow",
"sTargetAnim":"bow_fire",
"fAIAttackInterval":4,
"bAIPrioritized":null,
"dtAttackDamageOverride":{
"fDamage":0,
"fBlunt":0,
"fSlash":0,
"fPierce":25,
"fChop":0,
"fPickaxe":0,
"fFire":0,
"fFrost":0,
"fLightning":0,
"fPoison":0,
"fSpirit":0
},
"fAttackDamageTotalOverride":null,
"sAttackProjectileOverride":null,
"aStartEffects":[
"vfx_crow_death"
],
"aHitEffects":null,
"aTriggerEffects":null
}
]
},
"Category_BaseAI" : {
"fViewRange" : 30,
"fViewAngle" : 90,
"fHearRange" : 9999,
"sPathAgentType" : "Humanoid",
"fRandomCircleInterval" : 2,
"fRandomMoveInterval" : 30,
"fRandomMoveRange" : 3,
"bAvoidFire" : false,
"bAfraidOfFire" : false,
"bAvoidWater" : true,
"sSpawnMessage" : "",
"sDeathMessage" : ""
},
"Category_MonsterAI" : {
"fAlertRange" : 20,
"bFleeIfHurtWhenTargetCantBeReached" : true,
"bFleeIfNotAlerted" : false,
"fFleeIfLowHealth" : 0.2,
"bCirculateWhileCharging" : true,
"bCirculateWhileChargingFlying" : false,
"bEnableHuntPlayer" : false,
"bAttackPlayerObjects" : false,
"bAttackPlayerObjectsWhenAlerted" : false,
"fInterceptTimeMax" : 2,
"fInterceptTimeMin" : 0,
"fMaxChaseDistance" : 300,
"fMinAttackInterval" : 4.5,
"fCircleTargetInterval" : 10,
"fCircleTargetDuration" : 3,
"fCircleTargetDistance" : 5,
"aConsumeItems" : [
"CookedMeat",
"NeckTailGrilled"
],
"fConsumeRange" : 2,
"fConsumeSearchRange" : 5,
"fConsumeSearchInterval" : 10,
"fConsumeHeal" : 60
},
"Category_CharacterDrop" : {
"bReplaceOriginalDrops" : true,
"drDrops" : [
]
},
"Category_Special" : {
"bCanTame" : true,
"bAlwaysTame" : true,
"bCommandableWhenTame" : true,
"bCanProcreateWhenTame" : false,
"bSfxNoAlert" : false,
"bSfxNoIdle" : true,
"bSfxNoHit" : false,
"bSfxNoDeath" : false,
"bFxNoTame" : true
},
"Category_NpcOnly" : {
"bIsFemale" : false,
"bNoBeardIfFemale": true,
"bRandomGender" : true,
"aBeardIds" : [
"Beard3",
"Beard4"
],
"aHairIds" : [
"Hair7",
"Hair8",
"Hair9"
],
"cSkinColorMin": {
"fRed": 0.49,
"fGreen": 0.3,
"fBlue": 0.2
},
"cSkinColorMax": {
"fRed": 0.96,
"fGreen": 0.80,
"fBlue": 0.70
},
"cHairColorMin": {
"fRed": 0.88,
"fGreen": 0.65,
"fBlue": 0.25
},
"cHairColorMax": {
"fRed": 0.92,
"fGreen": 0.68,
"fBlue": 0.51
},
"fHairValueMin": 0.1,
"fHairValueMax": 0.9
},
"sConfigFormatVersion" : "0.2.0"
}
That being said, I'm still havin problems with all three Freindlies .dll's loaded. I typically just spawn my custom NPC's from the console, but with the main dll and the FreindliesAI dll, console spawning does not work. It as if the console can't read any of the configs that are normally picked up with " /spawn RRRN_YourNameHere".
I'm still messing around with it, but I'm thinking the FreindliesAI file as well as the MobAILib are out of date?
I play alone so it feels really lonely sometimes to come back to base lol?
This already fixed
[Warning:Spawn That!] Unable to find prefab 'RRRN_FriendlyMelee_Male_0' for RRRN_FriendlyMelee_Male_0. Skipping world spawn template Friendly_Tier0_Melee
[Warning:Spawn That!] Unable to find prefab 'RRRN_FriendlyMelee_Fem_0' for RRRN_FriendlyMelee_Fem_0. Skipping world spawn template Friendly_Tier0_Ranged
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly05' for RRRN_Friendly05. Skipping world spawn template Friendly_Tier05
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly1' for RRRN_Friendly1. Skipping world spawn template Friendly_Tier1
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly15' for RRRN_Friendly15. Skipping world spawn template Friendly_Tier15
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly2' for RRRN_Friendly2. Skipping world spawn template Friendly_Tier2
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly25' for RRRN_Friendly25. Skipping world spawn template Friendly_Tier25
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly3' for RRRN_Friendly3. Skipping world spawn template Friendly_Tier3
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly35' for RRRN_Friendly35. Skipping world spawn template Friendly_Tier35
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly4' for RRRN_Friendly4. Skipping world spawn template Friendly_Tier4
[Warning:Spawn That!] Unable to find prefab 'RRRN_Friendly45' for RRRN_Friendly45. Skipping world spawn template Friendly_Tier45
[Warning:Spawn That!] Issues with finding prefabs detected.
The message "Unable to find prefab" means that Spawn That is loaded correctly, and is now trying to configure your spawns.
However, the listed prefab was not registered in the game, and Spawn That is therefore unable to use it.
Verify spelling of prefab name in Spawn That configurations, or that the creature/item is correctly loaded.
Ok i get this and i start fixing files.
last 4 left
Weapon Name incorrect
[Warning: RRRCore] Unknown Item 'AsheBow' for 'RRRN_Ashe'. Prefab will not be loaded.
[Warning: RRRCore] Unknown Item 'AxeJump' for 'RRRN_Dwarf'. Prefab will not be loaded.
[Warning: RRRCore] Unknown Item 'EirHeal' for 'RRRN_Eir'. Prefab will not be loaded.
[Warning: RRRCore] Unknown Item 'LightningShock' for 'RRRN_Mage'. Prefab will not be loaded.
All done need only proper item for each of them:
Still in fixing how this character should look.
Mage:
Did you replace some of the mods? As an Expample take this Easy Spawn, and replace Spawn that, or only put easy spawn into the Plugins?
I don't see any npc anywhere, aside from the two wolf.