Jump to content

(A20) Oak's Pet Animals and Guards


arramus

Recommended Posts

6 hours ago, DefeatedSouls said:

This worked perfectly!! Thanks Mate!

Thank you for testing and confirming as it's only really possible to validate on a community server.

 

The first post download has received an update and push to incorporate 'medLow' as the default probability.
And other Server Admin/Players will be able to see other possibilities in this thread if they prefer more or less.

Link to comment
Share on other sites

Here is an update to Oak's Pet Animals and Guards.

 

https://github.com/arramus/Oaks-Pet-Animals-and-Guards-A20-2022Jan01

 

Updates include:

 

1. The Chicken Coop and Rabbit Trap have been returned to the loot box system where items ready to 'harvest' can be collected in the same way as other storage containers.

 

However, the Rabbit Trap has been upgraded to collect a variety of seeds. Rabbits carry seeds in their fur and paws and there is a small probability that something will be found when a rabbit is trapped.

 

On this occasion, 2 rabbits were trapped.

20220101192949_1.thumb.jpg.4601edfa5d7ad6e5254840df65c63ed4.jpg

 

After collecting from 40 Rabbit Traps, here is a break down of finds. 39 rabbits and a collection of seeds. This stays close to the original 1 rabbit per trap with the extra bonus on top.

20220101193347_1.thumb.jpg.9cb5066a20dbaae109420f7c64193c76.jpg

 

2. 4 new guards, testing out a slightly different spawning system. Both systems will work together very well and we'll monitor if either is superior in A20.

The new guards are Darkstardragon, JoJo, Lezabel, and Oakraven. In addition, all guards have also been given a number to help with player trading.

20220101132850_1.thumb.jpg.beba406d490ad4c9fa37254d0dec67bb.jpg

 

3. This update introduces a new farming feature: Mushroom Planter.

The Mushroom Planter is placed in the same way as the Coop and Trap. It requires a Mushroom Starter made of Mushroom Mycelium to get things started. Once the mushrooms are ready to be harvested there will be a small net gain which may include a new mushroom 'seed' to make your next starter. Even if it doesn't have a seed, you will have enough mushrooms to make a new 'seed' and have something left over for cooking.

 

Place the Mushroom Planter

20220101214613_1.thumb.jpg.6787eb4e77bbfd637556fac4d4f426bd.jpg

 

Add your Mushroom Mycelium

20220101214622_1.thumb.jpg.e8a25006e0fdfe24e0e975d90bcb6136.jpg

 

Harvest when ready.

20220101214635_1.thumb.jpg.2729f36f4968a114844a1c0b77424989.jpg

 

Other changes include:

 

- Reduced Rabbit and Chicken Feed requirements to reflect A20 challenge increase.

- Reduced Chicken Coop collection from 60 minutes to 40 minutes to reflect abundance of Chickens and Eggs in the wild.

 

As always, your feedback will be appreciated. If you are going to upgrade from a previous version to an existing World, the addition of the new Mushroom Planter and new guards can cause existing inventory to be replaced. It is recommended to start a new World or clear you player inventory of any Oak's Pets and Guards assets.

Link to comment
Share on other sites

9 hours ago, mr.devolver said:

So I just placed Oakraven turret guard, zombie approached him, attacked him and he just stood there doing absolutely nothing.

I am trying to test a number of scenarios the Turret Guards will be faced with including being approached and attacked to see if I can experience the same where they remain absolutely passive.

 

I started with a simple tower type structure and released a batch of zombies.

The Turret Guards, with only Oakraven for this occasion as that was the one mentioned, do not really like shooting down 'hallways' or enclosed areas but open areas and closer proximity do not seem to be too much of a problem for them.

20220102141208_1.thumb.jpg.07fe8c2d71d6c6584d1f35130f8bfd9c.jpg

 

Even though they do not like those enclose areas, the guard at the back is firing as the muzzle flash shows.

20220102141429_1.thumb.jpg.d262d37ea27ccad1fe09c4fcb98b727b.jpg

 

Here is the Oakraven facing off against a few lab entities. He is responsive and will be overwhelmed but is taking a few along with him before then.

20220102144747_1.thumb.jpg.d1fa7d3628b7772cc29a48f452fd7d06.jpg

 

And a duo is able to hold off a similar amount.

20220102144843_1.thumb.jpg.d0bfa951c49a7cf2a50e8a6cd6ced513.jpg

 

I have not been able to replicate a scenario where Oakraven would remain passive and not attack at the moment. Sure, when there are walls and other obstacles that effect like of sight it can have a big impact. It may well be the same with terrain as on the tower structure the left side, when looking up the structure was not as responsive when Oakraven was on a small platform while the right side was much more responsive. The only difference was the uneven and possibly higher terrain level in the left side.

 

I also tried a mix of Turret Guards to look for different behaviour patterns but couldn't see anything that stood out.

This was a mix of Turret Guards and the Oakraven at the front with the muzzle blast seems to be responsive from this range and field of vision.

20220102142502_1.thumb.jpg.a4b9ec2c35e17e62ea833eeb04ab6f2b.jpg

 

Overall, close proximity attack was working, distance attack with a very clear field of view was sometimes tooooo effective, and towers with straight walls reduced their effectiveness. This was tested on a dedicated server before and during Blood Moon to increase the server stress.

I'm willing to join your hosting to experience the situation you saw if you would like to set up and share your IP.

Link to comment
Share on other sites

@arramus thank you for looking into it. In the meantime I came to a conclusion this is probably the case with every human guard, but animal guards (tried dogs so far) seem to work well, although they do not seem to attack first, they wait for zombies to hit them and only then they attack back, but at least they fight back. Human guards on the other hand just stand there doing nothing. Could it be a mod conflict? Because I do have other mods installed. If it's a mod conflict, I doubt the problematic mod is something as simple as decorations or weapon mods, but it could be conflicting with SCore and NPC mod that I also have installed. I haven't tried to remove them yet, but I honestly can't think of anything else that would cause this. Do you also have those two mods installed?

Link to comment
Share on other sites

15 minutes ago, mr.devolver said:

@arramus thank you for looking into it. In the meantime I came to a conclusion this is probably the case with every human guard, but animal guards (tried dogs so far) seem to work well, although they do not seem to attack first, they wait for zombies to hit them and only then they attack back, but at least they fight back. Human guards on the other hand just stand there doing nothing. Could it be a mod conflict? Because I do have other mods installed. If it's a mod conflict, I doubt the problematic mod is something as simple as decorations or weapon mods, but it could be conflicting with SCore and NPC mod that I also have installed. I haven't tried to remove them yet, but I honestly can't think of anything else that would cause this. Do you also have those two mods installed?

I'm glad you mentioned the animal guards because that offered a big hint that something seems to be putting them into a passive state where they need to be attacked first.

 

The animal guards are usually verrrrrrry aggressive and will disappear before you can even acknowledge a zombie is coming towards your base.

 

In this image, the dog is chasing a Coyote and it is so far out of range that it will not show up well in this image. They are just to the right of a boulder (left of the small Oak tree in the middle)

20220102151951_1.thumb.jpg.ffa1f4b46027fc7a571baf28369e015f.jpg

 

In this image, a few dogs are set down.

20220102152007_1.thumb.jpg.aabda345de9162447664db5ea063d0ed.jpg

 

Some soldier are released about 40 blocks out.

20220102152033_1.thumb.jpg.c0c4e04e49cf22debd27d76cf22b0095.jpg

 

I took a shot at them to attract their attention and at about 20 blocks out the dogs started to go wild. They have a sight range of 30 but on a dedicated server begin to activate from about 20-25 as the processes activate.

20220102152039_1.thumb.jpg.3850092b8fffd99818348d281261b2a1.jpg

 

I have only tested Oaks Pets and Guards with enZombies and Snufkins. The Snukins server is purely server side mod. The enZombies server is using some C# mods and custom content. It is using 42 Mods and was more until the server admin combined a few to reduce the load. None appear to impact on NPC behaviour or conflict with the Oaks Pets from what I can see so far.

Link to comment
Share on other sites

Just to double check the combination of 42 mods, including some C# mods on the server I am currently playing in which uses Oaks, is not causing any major issues for the Guards.

 

There is a Snufkin Hisser snake just below which is built in as an Add On for the enZombies, and the Turret Bandit Guard is keeping is subdued with a regular volley of shots. I went down to finish it off soon after.

 

20220102154622_2.thumb.jpg.6b5a1ee66860f71da7c121e1420f9740.jpg

 

Link to comment
Share on other sites

Hey quick question, I know in the description and such that it says that EXP gain is turned off for the guards and such but is there a way to turn it on? Even if it's at a 50% value I'd like to get some kinda credit from the guards. I looked around the XML (mind you im not very savy in it) and saw the line for EXP gain but that it was turned off. 

Link to comment
Share on other sites

2 hours ago, Fluffams said:

Hey quick question, I know in the description and such that it says that EXP gain is turned off for the guards and such but is there a way to turn it on? Even if it's at a 50% value I'd like to get some kinda credit from the guards. I looked around the XML (mind you im not very savy in it) and saw the line for EXP gain but that it was turned off. 

The guards are made around an entity just like the zombies rather than the turrets. As such they are not connected to the player for rewarding Exp. The Exp was turned off so that players would have no incentive to shoot them and gain Exp that way as it could cause a lot of server grief. To be rewarded XP for the Guard kills would require integrating them into a system like the Automated Turrets. Sorry about that.

Link to comment
Share on other sites

1 hour ago, arramus said:

The guards are made around an entity just like the zombies rather than the turrets. As such they are not connected to the player for rewarding Exp. The Exp was turned off so that players would have no incentive to shoot them and gain Exp that way as it could cause a lot of server grief. To be rewarded XP for the Guard kills would require integrating them into a system like the Automated Turrets. Sorry about that.

All good brother! That makes a lot of sense, when doing some digging and such I figured that was the case but might have missed something and figured id ask the big bois lol. It's a great mod still really diggin all the animal functions and such, and thanks for the fast reply to. Cheers!

Link to comment
Share on other sites

@arramus , you wrote a lot of stuff, but didn't answer my original question about 0-SCore and NPC mod. In the meantime I figured there really is a conflict between your guards and these mods. Removing 0-SCore and NPC mods made your guards (both humans and animals work as intended). Please do be aware that this is not meant to be critique of any sort, I'm just pointing out that there indeed is this incompatibility just as I expected. What's going to happen from this point is up to you. I do like your mod, but if I must choose between your human guards and 0-SCore + NPC, I will have to choose the latter. I do believe it should be possible to make these mods compatible, it's probably a matter of switching your guards to more advanced AI provided by 0-SCore which is also used in the said NPC mod and perhaps it could be done as an add-on for those users wishing to use the aforementioned mods, but ultimately whether to make it compatible or not is up to you as the author of the mod. Either way, thanks for the impressive mod. :)

Edited by mr.devolver (see edit history)
Link to comment
Share on other sites

Sorry i solved this conflict with NPCmod last night and forgot to share. 

Anyone using both needs to open the utilityai.xml and change the line 3 i believe it is which i have commented out here to the uncommented version. The name had a one character change which causes this mod to fail to load this utilityai.xml file.

 


	<!-- mjedit to harmonize with NPCmod -->
	<!-- <insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie_Dumb']" > -->
	<insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie Dumb']" >

 

Link to comment
Share on other sites

1 minute ago, magejosh said:

Sorry i solved this conflict with NPCmod last night and forgot to share. 

Anyone using both needs to open the utilityai.xml and change the line 3 i believe it is which i have commented out here to the uncommented version. The name had a one character change which causes this mod to fail to load this utilityai.xml file.

 


	<!-- mjedit to harmonize with NPCmod -->
	<!-- <insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie_Dumb']" > -->
	<insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie Dumb']" >

 

 

Thank you again!

Link to comment
Share on other sites

42 minutes ago, magejosh said:

Sorry i solved this conflict with NPCmod last night and forgot to share. 

Anyone using both needs to open the utilityai.xml and change the line 3 i believe it is which i have commented out here to the uncommented version. The name had a one character change which causes this mod to fail to load this utilityai.xml file.

 


	<!-- mjedit to harmonize with NPCmod -->
	<!-- <insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie_Dumb']" > -->
	<insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie Dumb']" >

 

A tweak with the 0-XNPCCore settings and potentially Darkstardragon's SoldierPack or farm yard animals will now be able to play together with Oak's for players who prefer to expand beyond. Oak's Pets and Guards will remain a server side only mod, and just as with any overhaul, integration to the receiving mod to accept an additional modlet is a good first point of call. Thank you for taking the time to tinker with that magejosh in the way you always do so well. Players can always further integrate back into Oak's for the updated Core Entity Class at their leisure.

Link to comment
Share on other sites

2 minutes ago, arramus said:

A tweak with the 0-XNPCCore settings and potentially Darkstardragon's SoldierPack or farm yard animals will now be able to play together with Oak's for players who prefer to expand beyond. Oak's Pets and Guards will remain a server side only mod, and just as with any overhaul, integration to the receiving mod to accept an additional modlet is a good first point of call. Thank you for taking the time to tinker with that magejosh in the way you always do so well. Players can always further integrate back into Oak's for the updated Core Entity Class at their leisure.

I'm really glad I don't have to uninstall your mod, I started to like it a lot. ❤

Link to comment
Share on other sites

hi i had a quick question im downloaded this mod server side but was js curious on how to get it started lol but i diddd start it in a game save that was already up do i need a new game save in order for it to work properly? the save is under alpha 20

Edited by celeste5683 (see edit history)
Link to comment
Share on other sites

5 minutes ago, celeste5683 said:

hi i had a quick question im downloaded this mod server side but was js curious on how to get it started lol but i diddd start it in a game save that was already up do i need a new game save in order for it to work properly? the save is under alpha 20

There is always a risk that a mod added to an existing World, that is already running other mods, can replace an item from one or more of those other mods. For example, a custom weapon from a mod can change into a decorative stove. As such it is recommended to start a new World.

 

However, it is not always practical to do that if players have put in a lot of time and effort to build their level and base. To minimise the risk, if you do decide to add this mod, it is good practice to ask all players to empty their player inventories into a storage box before the server is restarted with the new mod. If they see something is strange with their items, the Admin can always replace it. If there is a strange item that can't be removed from the storage box, then all the other items can be removed and the box can be destroyed.

 

A20 did introduce a new system for loot containers where they can fall back on a name rather than an ID number so the Chicken Coop, Rabbit Trap, and Mushroom Planter shouldn't cause any issues for compatibility. It's just that a modded molotov cocktail may turn into rabbit feed.

 

One more way to minimise risk is making sure this mod loads last. If you rename the folder to ZOaks_Pets_and_Guards with a Z at the front, it will load last since they load in alphabetical order and hopefully be assigned ID numbers that come after those already existing.

And should it all work out well for you, if you do choose to install it, you can do the same for any other mods you choose to add thereafter such as Z for the first. ZZ for the second, and so on. A Server Admin (Dre) experimented with this in the past very successfully. ll the best with your choice. ^^

Link to comment
Share on other sites

3 hours ago, arramus said:

There is always a risk that a mod added to an existing World, that is already running other mods, can replace an item from one or more of those other mods. For example, a custom weapon from a mod can change into a decorative stove. As such it is recommended to start a new World.

 

However, it is not always practical to do that if players have put in a lot of time and effort to build their level and base. To minimise the risk, if you do decide to add this mod, it is good practice to ask all players to empty their player inventories into a storage box before the server is restarted with the new mod. If they see something is strange with their items, the Admin can always replace it. If there is a strange item that can't be removed from the storage box, then all the other items can be removed and the box can be destroyed.

 

A20 did introduce a new system for loot containers where they can fall back on a name rather than an ID number so the Chicken Coop, Rabbit Trap, and Mushroom Planter shouldn't cause any issues for compatibility. It's just that a modded molotov cocktail may turn into rabbit feed.

 

One more way to minimise risk is making sure this mod loads last. If you rename the folder to ZOaks_Pets_and_Guards with a Z at the front, it will load last since they load in alphabetical order and hopefully be assigned ID numbers that come after those already existing.

And should it all work out well for you, if you do choose to install it, you can do the same for any other mods you choose to add thereafter such as Z for the first. ZZ for the second, and so on. A Server Admin (Dre) experimented with this in the past very successfully. ll the best with your choice. ^^

okay thank u sooo much!!

 

Link to comment
Share on other sites

10 hours ago, Easyaeta said:

Hey I'm having a bit of an issue, I placed a pet Doe and now it keeps multiplying

Lucky you!!!

 

But seriously, this can sometimes happen when a pet is placed on an uneven surface. The block goes under the surface a little or fully and isn't able to destroy itself. If you can dig one block where the pet Doe is spawning then it should allow it to delete itself and stop the spawning.

Link to comment
Share on other sites

Hey man, great work there and I have enjoyed your mod. The only thing is, unlimited ammo for the guards is not a good idea and it is unrealistic and provides unnecessary comfort for the player. You should let the player provide ammo or think of some other way of adding or refilling. I think you get what I am saying. 

Link to comment
Share on other sites

1 hour ago, Ganeshakw said:

Hey man, great work there and I have enjoyed your mod. The only thing is, unlimited ammo for the guards is not a good idea and it is unrealistic and provides unnecessary comfort for the player. You should let the player provide ammo or think of some other way of adding or refilling. I think you get what I am saying. 

Yes, this is a very valid point. Actually, it is also the very first time it has been shared in this thread from what I recall.

When considering the best way to add the Turret Guards, there were a few things to consider:
- Keeping it server side only so that players didn't also have to download the mod by themselves.
- Using an entity class which allowed the Turret Guards to maintain their human identity and behavior.
- Balancing the benefit of having Turret Guards so that the unlimited ammo came with a trade off.

 

Adding code to keep the guards in their human state, but also allow them to receive ammo from a player, and possibly by association also needing to have their weapons repaired with use, is complex and demanding and doesn't appear to be within the realms of what can be done by xml coding alone. To do it effectively with third party code would remove the EAC option since many features were no longer following default values. This was not something Server Admin really wanted.

 

The balance this mod has now is:
- The Turret Guards cannot be healed.
- The Turret Guards shoot in limited individual bursts with a time delay between each shot.
- The player receives 0 XP for their kills. This is actually quite a big trade off.

The more Turret Guards or Animal Guards a player has the less chance to get that ultimate hit to receive final kill XP. That can seriously limit advancement, especially during a Horde Night. And even more so where players are in a Party and XP is reduced as the Party numbers increase.

 

I get what you're saying and for some players it is exactly what they want. Especially if the above balance points still do not equalise with the benefit.
One thing we can do to further reduce their benefit, is reduce the rate of fire even more. If this is something that you consider can be an alternative compromise for your own set-up, I can share instructions on how to do that.

Link to comment
Share on other sites

First of:
Love the mod, it's really nice and have been using it a lot and great work.
That being said......
I stumbled over a small thing or issue or what ever to call it...
After either killing the guys the game seams to keep thinking that they'r still there when they'r not, i'm not able to build or place anything els in that 1x2 area the AI's took up.
I do not no why this is happening and still after a server stop and start and with several relogs it's still happening.
I tested it in SP and it's happening there too.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...