MarkusBordihn / BOs-Player-Companions

Player Companions adds additional NPC which will follow, protect or help you...
Other
3 stars 5 forks source link

companions keep spawning and the config are disable #15

Closed Lajara930 closed 1 year ago

Lajara930 commented 1 year ago

on the configuration ,i have disable all the spawn of the companions and still spawning

MarkusBordihn commented 1 year ago

Thanks for the report. Could you please add some additional details like the latest.log file or the modified configuration ?

In general the configuration will only disable the spawn for new and/or unexplored areas / chunks. Which mean if it was enabled before and you explored the world, it's very likely that spawn points are added to the new explored areas (even if they are not immediately visible). If you disable the spawn afterwards, it will only be effective after a restart and for unexplored areas.

Lajara930 commented 1 year ago

ohh ok, well the world was created before the installation of the mod, edit the configuration of the mod and restart the server, and has been like 2 weeks and today i found a companion close to the spawn area and that don't suppose to happened

MarkusBordihn commented 1 year ago

Could you please post or check your logs, to see if there is any "Enable spawn ..." entry like:

[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Dobutsu with 6 weight and 1-2 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Fairy with 20 weight and 2-3 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Firefly with 5 weight and 1 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Lizard with 10 weight and 1 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Pig with 6 weight and 1 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Raptor with 6 weight and 1-2 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Rooster with 6 weight and 1-2 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Samurai with 6 weight and 1 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Small Ghast with 10 weight and 1-2 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Small Slime with 6 weight and 1-2 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Snail with 6 weight and 1-2 per group.
[26Nov.2022 23:37:37.252] [Server thread/INFO] [Bo's Player Companions/]: ? Enable spawn for Welsh Corgi with 6 weight and 1-2 per group.

It would be also interesting to know which companion (screenshot is fine) you saw, just to make sure that I don't mess up something in the config or so.

Lajara930 commented 1 year ago

that type of Log dont appaer, on the logs i only have this:

[19Jan2023 09:01:13.127] [modloading-worker-0/INFO] [Bo's Player Companions/]: Thanks for using Bo's Player Companions (https://www.curseforge.com/minecraft/mc-mods/player-companions). I hope you enjoy the mod. :) [19Jan2023 09:01:13.129] [modloading-worker-0/INFO] [Bo's Player Companions/]: 👾 Register Player Companions Container ... [19Jan2023 09:01:13.132] [modloading-worker-0/INFO] [Bo's Player Companions/]: 👾 Register Player Companions Entities ... [19Jan2023 09:01:13.136] [modloading-worker-0/INFO] [Bo's Player Companions/]: 👾 Register Player Companions Items ... [19Jan2023 09:01:13.164] [modloading-worker-0/INFO] [Bo's Player Companions/]: 👾 Register Player Companions Blocks ... [19Jan2023 09:01:13.167] [modloading-worker-0/INFO] [Bo's Player Companions/]: 👾 Register Player Companions Sound Events ... [19Jan2023 09:01:13.184] [modloading-worker-0/INFO] [Bo's Player Companions/]: 👾 Register Player Companions Common config ... [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: 👾 Supporter will automatically buff in a 6 block radius. [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: 👾 Healer will automatically heal between 2 - 8 hp in a 8 block radius. [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: 👾 Collector will automatically collect items in a 3 block radius.

[19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: Loading about 17 female NPC names ... [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: Loading about 17 male NPC names ... [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: Loading about 2 misc NPC names ... [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: Loading about 53 female companion names ... [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: Loading about 47 male companion names ... [19Jan2023 09:06:34.935] [Server thread/INFO] [Bo's Player Companions/]: Loading about 35 misc companion names ... [19Jan2023 09:06:34.936] [Server thread/INFO] [Bo's Player Companions/]: The max base health for player companions is set to 20. [19Jan2023 09:06:34.936] [Server thread/INFO] [Bo's Player Companions/]: The max base attack damage for player companions is set to 3. [19Jan2023 09:06:34.936] [Server thread/INFO] [Bo's Player Companions/]: 👾 Bo's Player Companions will be respawn on death with a 6200 secs delay. [19Jan2023 09:06:34.936] [Server thread/INFO] [Bo's Player Companions/]: 👾 Bo's Player Companions ignore entities from the same owner as attack target! [19Jan2023 09:06:34.936] [Server thread/INFO] [Bo's Player Companions/]: 👾 Bo's Player Companions friendly fire is disabled. [19Jan2023 09:06:34.936] [Server thread/INFO] [Bo's Player Companions/]: Enable automatic data backups every 1440 minutes, next backup will run at 1674205594 ... [19Jan2023 09:06:34.936] [Server thread/INFO] [Bo's Player Companions/]: 👾 Register Player Companions Player Companion Data Manager ...

there its nothing like enable spawn

Lajara930 commented 1 year ago

this are the configuration

Player Companion's (General configuration)

[General]

Respawn companion on death.

respawnOnDeath = true
#Respawn delay in seconds (1200 secs = in-game day).
#Range: 1 ~ 8400
respawnDelay = 6200
#Allow's damage to an owned companion by the owner or their owned companions.
friendlyFire = false

["Level scaling"]

The max base health a companion can get with level 60.

#Range: 0 ~ 200
maxHealth = 20
#The max base attack damage a companion can get with level 60.
#Range: 0 ~ 200
maxAttackDamage = 3

[Gui]

Position for the gui elements.

#Allowed Values: BOTTOM, BOTTOM_LEFT, BOTTOM_RIGHT, HOTBAR_LEFT, HOTBAR_RIGHT, LEFT, RIGHT, TOP, TOP_LEFT, TOP_RIGHT
guiPosition = "HOTBAR_RIGHT"
#The offset on X axis from chosen position.
#Range: > -2147483648
guiOffsetX = 0
#The offset on X axis from chosen position.
#Range: > -2147483648
guiOffsetY = 0

[Hud]

Enable hud.

hudEnabled = false
#Enable additional display of name tag.
hudNameTagEnabled = false
#Enable display of owner.
hudOwnerEnabled = true
#Enable display of status like sitting.
hudStatusEnabled = true
#Radius in which hud is displayed.
#Range: 0 ~ 256
hudDisplayRadius = 32

[Backup]

Enable automatic data backups.

dataBackupEnabled = true
#Time between automatic backups in minutes. (0 = disabled)
#Range: 0 ~ 10080
dataBackupInterval = 1440

["NPC Names"]

List of female NPC names.

namesNPCFemale = ["Aika", "Amy", "Asuna", "Beatrice", "Calypso", "Cassandra", "Deedlit", "Elizabeth", "Enya", "Faith", "Freya", "Giselle", "Isolde", "Julia", "Meredith", "Monika", "Sonya"]
#List of male NPC names.
namesNPCMale = ["Adam", "Aron", "Beowulf", "Bob", "Cain", "Ethan", "Guy", "Jack", "Jason", "John", "Julian", "Kawo", "Luca", "Markus", "Miso", "Parn", "Romolo"]
#List of misc NPC names.
namesNPCMisc = ["Alexis", "Quinn"]

["Player Companion Names"]

List of female player companion names.

namesCompanionFemale = ["Alice", "Alina", "Amy", "Ayame", "Beauty", "Bella", "Bonnie", "Carla", "Carmen", "Celina", "Chiyo", "Chloe", "Conny", "Dina", "Emi", "Emma", "Fluffy", "Fuyumi", "Gina", "Haruhi", "Hope", "Iivy", "Isabell", "Itsumi", "Jessie", "Kacy", "Karin", "Kasumi", "Keira", "Lina", "Lucy", "Luna", "Mai", "Marina", "Megumi", "Melody", "Mia", "Mimi", "Mizue", "Nami", "Nicky", "Princess", "Rainy", "Reiko", "Sakura", "Sandy", "Takeko", "Trixie", "Umi", "Vivi", "Yona", "Yukari", "Zoe"]
#List of male player companion names.
namesCompanionMale = ["Alex", "Andrew", "Archie", "Benny", "Charlie", "Coco", "Derek", "Eric", "Felix", "Frankie", "Gustav", "Haruo", "Hector", "Henry", "Hunter", "Ikuo", "Jin", "Kasimir", "Kazuma", "Larry", "Leo", "Leonardo", "Loki", "Marin", "Masato", "Max", "Norio", "Osamu", "Oskar", "Prince", "Roker", "Rufus", "Ryu", "Shadow", "Shin", "Simba", "Snickers", "Sparky", "Spike", "Taizo", "Tiger", "Timmy", "Turbo", "Yoshi", "Yuma", "Zenjiro", "Zottel"]
#List of misc player companion names.
namesCompanionMisc = ["Alex", "Angel", "Buddy", "Cato", "Charlie", "Cheddar", "Creamy", "Curly", "Dakota", "Elisa", "Foxy", "Frana", "Inky", "Isa", "Jesse", "Jona", "Joyce", "Jule", "Kaya", "Luka", "Mika", "Morgan", "Patches", "Phantom", "Riley", "Robin", "Sam", "Sanja", "Sascha", "Sasha", "Skye", "Smokey", "Smokie", "Toni", "Yannie"]

["Collector Type"]

Defines the radius in which items are automatically collected.

#Range: 0 ~ 16
collectorTypeRadius = 3

["Healer Type"]

Defines the radius in which players are healed.

#Range: 0 ~ 32
healerTypeRadius = 8
#Defines the min. healing amount depending on the level.
#Range: 0 ~ 16
healerTypeMinAmount = 2
#Defines the max. healing amount depending on the level.
#Range: 0 ~ 16
healerTypeMaxAmount = 8

["Supporter Type"]

Defines the radius in which players are buffed.

#Range: 0 ~ 32
supporterTypeRadius = 6
#Defines the amount of ticks how long the damage boost is enabled.
#Range: 20 ~ 6000
supporterTypeDamageBoostDuration = 1200
#Defines the amount of ticks how long the damage resistance protection is enabled.
#Range: 20 ~ 6000
supporterTypeDamageResistanceDuration = 1200
#Defines the amount of ticks how long the fire resistance protection is enabled.
#Range: 20 ~ 6000
supporterTypeFireResistanceDuration = 1200

[Dobutsu]

Enable/Disable the dobutsu spawn.

dobutsuSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
dobutsuMinGroup = 0
#Max group size.
#Range: 0 ~ 64
dobutsuMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
dobutsuWeight = 0

[Fairy]

Enable/Disable the fairy spawn.

fairySpawnEnable = false
#Min group size.
#Range: 0 ~ 64
fairyMinGroup = 0
#Max group size.
#Range: 0 ~ 64
fairyMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
fairyWeight = 0

[Firefly]

Enable/Disable the firefly spawn.

fireflySpawnEnable = false
#Min group size.
#Range: 0 ~ 64
fireflyMinGroup = 0
#Max group size.
#Range: 0 ~ 64
fireflyMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
fireflyWeight = 0

[Lizard]

Enable/Disable the lizard spawn.

lizardSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
lizardMinGroup = 0
#Max group size.
#Range: 0 ~ 64
lizardMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
lizardWeight = 0

[Pig]

Enable/Disable the pig spawn.

pigSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
pigMinGroup = 0
#Max group size.
#Range: 0 ~ 64
pigMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
pigWeight = 0

[Raptor]

Enable/Disable the raptor spawn.

raptorSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
raptorMinGroup = 0
#Max group size.
#Range: 0 ~ 64
raptorMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
raptorWeight = 0

[Rooster]

Enable/Disable the rooster spawn.

roosterSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
roosterMinGroup = 0
#Max group size.
#Range: 0 ~ 64
roosterMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
roosterWeight = 0

[Samurai]

Enable/Disable the samurai spawn.

samuraiSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
samuraiMinGroup = 0
#Max group size.
#Range: 0 ~ 64
samuraiMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
samuraiWeight = 0

["Small Slime"]

Enable/Disable the small slime spawn.

smallSlimeSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
smallSlimeMinGroup = 0
#Max group size.
#Range: 0 ~ 64
smallSlimeMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
smallSlimeWeight = 0

["Small Ghast"]

Explosion power

#Range: 0 ~ 16
smallGhastExplosionPower = 0
#Enable/Disable the small ghast spawn.
smallGhastSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
smallGhastMinGroup = 0
#Max group size.
#Range: 0 ~ 64
smallGhastMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
smallGhastWeight = 0

[Snail]

Enable/Disable the snail spawn.

snailSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
snailMinGroup = 0
#Max group size.
#Range: 0 ~ 64
snailMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
snailWeight = 0

["Welsh Corgi"]

Enable/Disable the welsh corgi spawn.

welshCorgiSpawnEnable = false
#Min group size.
#Range: 0 ~ 64
welshCorgiMinGroup = 0
#Max group size.
#Range: 0 ~ 64
welshCorgiMaxGroup = 0
#Spawn weight.
#Range: 0 ~ 100
welshCorgiWeight = 0
MarkusBordihn commented 1 year ago

Thanks a lot for the details. I was unable to reproduce the issue on my test instances. :/ Could you let me know the exact client version you are using in this case.

Between the 1.18.2 client and 1.19.x client the spawn functionality was adjusted and so it could be related to a specific client version.