Profile image

Scripts not being loaded?

12.1k Starbound  5.4 years ago

For my next map, I wrote a simple radar script that makes an object spin at a fixed speed. It works flawlessly in the Unity editor, but for some reason it stops working in simpleplanes. No error messages whatsoever, so I have no clue whats causing it.

  • Log in to leave a comment
  • Profile image
    12.1k Starbound

    @Gestour I think I found something. This error showed up in the dev console upon initialization: Could not add component 'Radar, Area51-Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' to game object 'Stationary Radar' because the component type could not be found. Are you familiar with this error?

    5.4 years ago
  • Profile image
    12.1k Starbound

    @Gestour Interesting, I'll try again tomorrow and see what happens. I made a second map just to see if it happens there as well and it doesn't, so it seems to be something project/mod-specific. A very strange issue...

    +1 5.4 years ago
  • Profile image
    314k Gestour

    @Starbound
    I am not sure why your script works in unity but not SP.
    This is how I would write that though.

    Void Update()
    {
    float RotationVector += Time.deltaTime * RotationSpeed;

    this.transform.localEulerAngels = New Vector3 (this.transform.localEulerangels.x, RotationVector,this.transform.localEulerangels.z);

    }

    5.4 years ago
  • Profile image
    12.1k Starbound

    @Gestour Imgur here it is in all it's glory. Ignore all the red lines, that's just a bug I get in VS when using Unity 2018.3 and they don't fire any errors in the unity editor.

    5.4 years ago
  • Profile image
    314k Gestour

    Show me the script.

    +1 5.4 years ago