Jump to content

The Nightmare


Recommended Posts

Truly love your character, but still there's a really annoying bug when you rollback the server on DST.

 

It seems when you rollback the game simply crashes when server is started again.

 

Here's the error that causes the game to crash:

Error in script nightmarepetbrain.lua at line 28: self.inst.components.follower.leader
follower is a nil value

 

Tried to modify the script but it just generated a second terrorbreak pet (and he's attackable)

 

Hope you can fix this bug, cuz i love your character but i'm not a good LUA programmer.

 

Thnx btw,

 

Best regards,

 

Lucas Rafael

Link to comment
Share on other sites

Yea, but i did some improvements on your mod. I've the var local root in nightmarepetbrain.lua, and it became like this:

 

local root = PriorityNode(
    {
        ChaseAndAttack(self.inst, 40),
        Follow(self.inst, function() return self.inst.components.follower and self.inst.components.follower.leader end, MIN_FOLLOW, MED_FOLLOW, MAX_FOLLOW, true),
        Wander(self.inst, function() if self.mytarget then return Point(self.mytarget.Transform:GetWorldPosition()) end end, MAX_WANDER_DIST)
    }, .25)
 
It solved the bug, but the older bug still there: After the rollback the pet is there and follows you, attack together with you and stuff, but the attackable copy of the pet is also generated, and it acts independent of you.
 
Maybe doing a check on the world seeking for another terrorbreak pet or on init of the function where the terrorbreak pet spawns it kills any other terrorbreak pet that spawned incorrectly. Not sure how to proceed or how to do so, but i would apreciate if that could be done, cuz i love your mod.
 
best regards
Link to comment
Share on other sites

This is the best character mod that I have found so far! But there is a single bug that is frustrating when you host the game; when I die the Terrorbeast pet de-spawns until I completely restart the game. When I left the game, while as a ghost (did this on accident), it crashed the game. Please help.

Besides the little bug, it is an excellent mod!

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
 Share

×
  • Create New...