Hello!
I’ve been having trouble lately and am at a loss as to what could be causing it. Several game patches ago a piece in my mod randomly started bugging out where it would go into stasis when a player left the area, but the mesh would not come back once the player returned. If the piece was updated during gameplay it would come back, but leaving the area caused the piece to disappear again.
I was able to overcome that issue by creating an onbeginplay event that refreshed the material every five seconds but its happening more frequently. I now have five structures doing the same thing and every game patch brings reports of another item acting the same way. I’ve double checked the settings and everything is the same as the pieces not acting up, and again, its only happening to certain clients. Things go into stasis and only partially come back.
Could this have something to do with the recent server loads going up on startup? The patch notes don’t seem to really detail what’s going on behind the scenes so I don’t know what could be causing that either. I monitor load up for my mod and have fairly extensive data on how long my server takes to do anything and how long it takes for my client to do anything. Over the last month, the load times of pieces have skyrocketed to the point that onbeginplay events aren’t working properly at all unless they are delayed for at least 4-5 seconds after the server initially created the structure. 1 second delays worked in every case a month ago but now the mesh isn’t even loaded at that point. Also, none of these issues seems to be impacted by video settings either all low or all high.
Also curious if any of the above could be behind players reporting dinos and players falling through floors while no one, actively playing, is around? I was ready to chalk this up to random glitches but the last three patches have caused three new pieces to stop coming out of stasis so I wanted to see if anyone else had experienced the same types of strange behavior or lag?
I’m having the same issue with my mod here: http://steamcommunity.com/sharedfiles/filedetails/?id=695990475 I suspicioned stasis, but I have no idea. When Players log out and log back on the cart is gone. Sometimes the cart disappears right after spawning for some players. Did you figure out any workarounds, or just the refreshing materials? What happens if you turn of ‘auto stasis’ or enable ‘prevent stasis’ in defaults.
I’m not 100% certain which was which, but I believe checking prevent stasis broke the dev kit when I walked away from the item and unchecking auto-stasis did nothing at all to improve the issue. I might have those switched around but neither had a positive effect. For you, does the collision remain behind? For my Castle Well people are still able to use the item, its just invisible after the player returns within range so just setting the material again, every five seconds, seemed to fix it for most players. The frustrating part is even that didn’t help a few of my mod’s users.
Thanks for the reply. I have a problem where the cart disappears after reloading the game, the chests or structures placed on them are still there, the cart is invisible and no collision so I can’t tell if the cart is still there or has been destroyed. In the editor I managed to figure out that when the cart goes into stasis and then comes out, the capsule component drops through the ground and the cart gets destroyed, I got this fixed and so now when player goes off and comes back it is still there, but it didn’t fix the problem of them being gone when reloading game. And so now, I don’t know if they are getting destroyed or if they are still there on loading game. Are they not getting saved to game save, I dunno, I can’t figure out how to tell. Can you tell me how you did the refresh material so I can see if they are at least still there? Is there a way to look at the save game file or a log to see what structures are saved? Sorry for all the questions, just not sure how to pin down the problem. Thanks again for responding.
Hey guys, So i had some reports of this happening with the my windmill and grinder features and I had someone testing for me. They discovered that after a server wipe or a new game was set this issue was fixed. most likely due to an issue with the save file.
I’m not at the house so I can’t see exactly what I used but I believe it was:
eventbeginplay
Set Prevent Stasis=true
Set Container Active=true
set material
Force Net Update
Delay 3-5 seconds
output pin from delay into set prevent stasis
I even think the material part might not be necessary as its been a while since I worked on those. Hope that helps!
No, I found that option was changing after the piece was placed, so after the delay I just reset in case and continue to reset that and the Set Container active=true every time as well. It was the only things I could find to force the piece not to bug out. Sorry, I didn’t realize that I wasn’t clear that the delay pins back into the beginning of the loop so it keeps on going. Its generally dangerous to do loops like that but with simple changes or code you shouldn’t have any trouble.