Making the Rust tutorial work

There is a moment in the Rust Tutorial where you get killed by a bear.
TruePVE blocks this.

I ran a trace and got this:


Any suggestions on how to allow this?

Hi. I think you have animal damage turned off? If so, you should add in your TruePVE config file the rule "npcs can hurt players" under RuleSets, and in the Entity Groups section at npcs there must be "HTNAnimal" added in the members line.  

Maxxx

Hi. I think you have animal damage turned off? If so, you should add in your TruePVE config file the rule "npcs can hurt players" under RuleSets, and in the Entity Groups section at npcs there must be "HTNAnimal" added in the members line.  

No animal damage is turned on. This is a scripted event by an 'invisible' bear during the chat with the survivor.

OK. You have "server.pve false" in your server.cfg ? Otherwise i have no ideas aside from googleing the whole Tutorial thing. I haven´t turned it on, so idk how else i can help you. I see, unknown weapon, unknown prefab...strange. But perhaps its a FP thing. I´m curious about the solution.

Maxxx

OK. You have "server.pve false" in your server.cfg ? Otherwise i have no ideas aside from googleing the whole Tutorial thing. I haven´t turned it on, so idk how else i can help you. I see, unknown weapon, unknown prefab...strange. But perhaps its a FP thing. I´m curious about the solution.

Yea that's on false. But because the damage type and entity are unknown, TruePVE blocks it. I think this will require a modification to TruePVE to get it working, the source of the damage isn't an actual bear - it's a scripted event that is supposed to be a bear.

I don't allow unknown damage. that would cause too many issues where players could kill other players or even raid wooden bases.

its a facepunch thing or a plugin if there's no initiator.

I might be able to allow it in the tutorial but I wont if its expensive on performance

nivex

I don't allow unknown damage. that would cause too many issues where players could kill other players or even raid wooden bases.

its a facepunch thing or a plugin if there's no initiator.

I might be able to allow it in the tutorial but I wont if its expensive on performance

Yea It's a Facepunch thing in this case. I had a peek in the serverside code and they just call BasePlayer.Hurt(9999f) without a damage type or initiator attached.

I had a chat with bmgjet and they recommended checking TutorialIsland.IsTutorialNetworkGroup against BaseCombatEntity.net.group.ID or alternatively ValidBounds.IsInsideInnerBounds since the tutorial islands always spawn outside the map bounds. I just didn't have time to modify/test that yet.

Would be highly apriciated if that could be officially fixed in TruePVE so that I don't have to run a modified version.

ok thanks I will allow the damage in the next update

nivex

ok thanks I will allow the damage in the next update

Thank you! ❤️
nivex

ok thanks I will allow the damage in the next update

Thank you so much for the fix! I run a PVE server aimed at new players and being able to offer the tutorial will be a big help since many players join our server as their first Rust experience, and often forget placing a TC in their base.

no problem!