Corrupted editor;need to restart

Started by cristian.spiescu 1 post 27 views

Reply on sbox.game
  1. #1
    cristian.spiescu 100
    I am running the following project:
    All is good. In Editor I have:

    image.png 26.08 KB
    When I start the scene, these values are transferred to the code:

     10:26:53   Generic [Startup] WorldGenerator.OnLoad begin (radius=15, maxTrees=61, volume=Boxfish.Library.NetworkedVoxelVolume)

    BTW: I'm logging w/ this code:
    image.png 49.63 KB
    I also have this file:

    image.png 64.92 KB
    If I add code, e.g. the selected block => the file is compiled by s&box. However, now something shitty happens. Somehow when the scene starts, cf. first picture, the values from the UI DON'T arrive in the code:

     10:34:04   Generic [Startup] WorldGenerator.OnLoad begin (radius=4, maxTrees=16, volume=null)

    Other symptom: I modify the logging code, e.g. I add a "9999" in the string:

    Log.Info( $"[Startup] WorldGenerator.OnLoad 9999 begin (radius={WorldRadius}, maxTrees={MaxTrees}, volume={Volume})" );

     s&box says that it compiles. But at runtime I don't see those 9999. So somehow, the binary code hasn't been updated.

    To solve this, the only way is to close/reopen the s&box editor.