[BUG] game logic don't get attached to planets any more

Phoera shared this bug 6 years ago
Outdated

after some update, planets don't get game logic anymore.

i can't say which update exactly, but some time a go that worked fine.


sample code.

    [MyEntityComponentDescriptor(typeof(MyObjectBuilder_Planet), false)]
    public class TestComponent : MyGameLogicComponent
    {
        public override void Init(MyObjectBuilder_EntityBase objectBuilder)
        {
            Log("TestComponent");
            NeedsUpdate = VRage.ModAPI.MyEntityUpdateEnum.BEFORE_NEXT_FRAME;
        }
        public override void UpdateOnceBeforeFrame()
        {
            Log("UpdateOnceBeforeFrame");
        }
        public static T Log<T>(T data)
        {
            MyLog.Default.WriteLine(data?.ToString() ?? "<null>");
            MyLog.Default.Flush();
            return data;
        }
    }

Replies (1)

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.


We will address all reported issues during future development and we will attempt to fix your issue as soon as possible. We are currently close to a Major release, which is under heavy development and this takes up a lot of our time.


Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards


Keen Software House: QA Department

photo
1

sorry, was my error. modders i worked with, replaced planet with huge roid, and i did not checked if there is ever planet here.

so, there is no bug here.

photo
Leave a Comment
 
Attach a file