Space Engineers

Space Engineers

[Psycho] Pulley Motor Core
TwitchingPsycho  [developer] 30 Mar @ 2:22am
UPDATE CHANGELOG
REMARKS:
• Code only handles cables which is a visual/cosmetic. Does not rely on outside variable changes either so no sync required either. All functionality runs client side per block based on piston's variables and behaviors which are synced which applies the visuals to all clients.

UPDATE 1
• Hopefully fixed the random MP crashes.

BUG REPORT:
[FATAL] Initializer: System.NullReferenceException: Object reference not set to an instance of an object.
at PSYCHO.PulleyMotor2.PulleyMotorLogic2.Close()

FIX:
• Added `.IsDedicated` checks on `.Close()` since we are not running the code for dedicated servers anyway.

• Added `null checks` for cable segments in `.Close()` where we remove them.

• Added a 'just in case' `IsDedicated` check in the update per frame to stop it from running.
Last edited by TwitchingPsycho; 30 Mar @ 2:24am