Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

How to detect running scripts

Discussion in 'Multiplayer' started by vymasteny_pankac, Oct 4, 2016.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. vymasteny_pankac Apprentice Engineer

    Messages:
    129
    Hi guys, is there a way to hunt down scripts which could possibly lag server? eg. if anyone is using floorplans etc.
    Thnx
     
  2. Phoera Senior Engineer

    Messages:
    1,713
    i can't think of method without server side hooking.(plugin)
     
  3. kittle Senior Engineer

    Messages:
    1,086
    If you own the server, you can get a copy of the save file and search thes sandbox_0_0_0_.sbs for keywords in the floorplan script.
     
  4. Guillaume Trainee Engineer

    Messages:
    35
    Banning programming blocks is the best way
     
    • Disagree Disagree x 2
  5. Ronin1973 Master Engineer

    Messages:
    4,824
    To find a script that is lagging the server, you'd have to understand the workings of the script and how it will affect performance. There are also scripts that could potentially lag a server if abused. Take for instance a missile guidance script. A few missiles might be okay. However if someone spams 20 of them you're going to get lag. There are scripters that go to some length to reduce the overhead and number of calculations per tick that the script consumes... some don't.

    I think programmable blocks are an all or nothing issue. If you leave them enabled then ANYTHING is possible. If you disable them you end up with a lot of discontented players.
     
  6. DoubleCouponDay Apprentice Engineer

    Messages:
    123
    Isnt there an option to disable scripts in world options?
     
  7. Draygo Senior Engineer

    Messages:
    1,297
    First thing is to ban the trigger_now on timer blocks. Any script needing to update every other sim update probably needs to be disabled on a multiplayer server. Search for anyone using trigger now in timer blocks and check what they are triggering.
     
Thread Status:
This last post in this thread was made more than 31 days old.