1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

SE Server Maintenance Utility

Discussion in 'Groups & Dedicated Servers' started by towerofpower256, Jul 14, 2014.

Thread Status:
Not open for further replies.
This last post in this thread was made more than 31 days old.
  1. deltaflyer4747

    deltaflyer4747 Apprentice Engineer

    Messages:
    215
    got a bug for you...

    it is caused by a "ChatHistory" mod that places its block to the "infinite" distance from center.

    i did print(vector) right before this -

    • [1.7976931348623157e+308, 1.7976931348623157e+308, 1.7976931348623157e+308]
      Traceback (most recent call last):
      File "./SEMU.py", line 885, in <module>
      clearance = ClearanceDistance(object, sectorobjects)
      File "./SEMU.py", line 512, in ClearanceDistance
      distance = math.sqrt(math.pow(vector[0], 2) + math.pow(vector[1], 2) + math.pow(vector[2], 2))


      proposed fix (tested, works):

      try:
      distance = math.sqrt(math.pow(vector[0], 2) + math.pow(vector[1], 2) + math.pow(vector[2], 2))
      except:
      distance = final
     
    Last edited: Apr 5, 2015
  2. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    Aaaaaaaalrighty guys, version 2.1 now available on SourceForge!

    I know it's been a while, life is getting busy these days.

    New version includes;
    • New NPC ship detection: checks for Identity that owns the blocks. If none of those Identities are actual players, remove the ship. Will now work for any NPC ships, even if they're custom.
    • Added option to disable timers & programmable blocks
    • Fixed objects that are really far out playing silly buggers with the asteroid respawning (thanks go to Deltaflyer4747)
    • Refined object cluster mapping, should now run much faster
    • Possible fix for odd ClusterNameObject issue where it decides not to exist anymore
    • Meteor removal
    • Asteroid saving & respawning: Intended to keep custom asteroids alive
      • First, run SEMU on the save with the Backup Asteroids option. This will backup all the asteroids as they are
      • If running SEMU with the Respawn Asteroids option, it'll check if a backup exists. If it does, restore the vx2 file. If it doesn't, just remove it and let the Infinite Universe respawn it.
    Still to do:
    • Player and Faction pruning: SE has made big changes to how Players and Factions are stored in the save files. These functions will need to be rewritten
    • Block limit system
    • Keeping an eye on the ClusterNameObject bug. Let me know if it's still an issue and include the log file with the post. If possible, please include the save file, might be something crazy about a certain name or funky unicode character that's causing it to happen
    Let me know if you guys have any issues!
     
  3. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    DAMNIT SOURCEFORGE!

    Sorry guys, the default download should now be 2.1, it was still dishing out 2.0. Sorry about that.
     
  4. rottielover

    rottielover Apprentice Engineer

    Messages:
    485
    COOL!! downloading immediately!
     
  5. rottielover

    rottielover Apprentice Engineer

    Messages:
    485
    issue:

    F:\SEvilayerBackup\SEMU>"Run SEMU.bat"
    SEMU - Space Engineers Maintenance Utility
    By David McDonald 2015

    Commands: -s "F:\rottieworld" -c powered

    2015/04/08 21:00:47 INFO: Logging initialized
    2015/04/08 21:00:47 INFO: Loading config
    2015/04/08 21:00:47 INFO: Existing config found, reading config
    2015/04/08 21:00:47 INFO: Loading save files
    2015/04/08 21:00:47 INFO: Saving backups
    2015/04/08 21:00:49 INFO: Indexing Sector objects
    2015/04/08 21:00:50 INFO: Compiling list of NPC identities
    2015/04/08 21:00:50 INFO: Beginning Sector Object check
    Traceback (most recent call last):
    File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27
    , in <module>
    File "SEMU.py", line 1166, in <module>
    l.debug("ClusterNameObject: " + clusterNameObject) #Checking on issue where
    it would sometimes be blank
    TypeError: Can't convert 'ClusterName' object to str implicitly
    Press any key to continue . . .
     
  6. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    Damnit! Sometimes I wish C# could easily run on both Windows, Mac and Linux otherwise I'd switch over to it right now.

    I've uploaded an updated copy to Sourceforge. If it keeps playing up, are you able to send me a copy of the world? I'd love to see the name that's tripping it up so much. My bet is crazy unicode.
     
  7. deltaflyer4747

    deltaflyer4747 Apprentice Engineer

    Messages:
    215
    TOP256: Why don't you simply (save the string to a temp variable if you need to use it later and ) .decode('utf-8'.'ignore') etc for that ClusterName?
     
  8. rottielover

    rottielover Apprentice Engineer

    Messages:
    485
    Well... Thing is that world exists now only as archived copy's for forensic analysis (server got attacked by a hacker).

    However, I will make another copy and run this version against it and see what happens.

    I will do so asap, I just have some RL issues going on, will try and get to it soon.
     
  9. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    I hear you man, loud and clear. Sometimes it's like they never stop...
     
  10. ZilgornZeypher

    ZilgornZeypher Trainee Engineer

    Messages:
    33
    Ok, maybe I'm just retarded but I can't get the batch file to work just says unrecognized arguments --c-unpowered --prune-players -prune-factions

    @echo off
    title SEMU
    echo SEMU - Space Engineers Maintenance Utility
    echo By David McDonald 2015
    echo.

    rem PUT COMMANDS HERE. E.g. -s "C:\Path\to\save" -c powered -x -L both -q
    rem For instructions, run SEMU with --help
    set commands= -s "C:\Users\Administrator\AppData\Roaming\SpaceEngineersDedicated\Saves" --c-unpowered --prune-players
    echo Commands: %commands%
    echo.
    semu.exe %commands%
    pause
     
  11. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    Change your commands to;
    -s "C:\Path\directly\to\the\save\itself" -c unpowered

    It needs to be the save folder itself, not just the folder that contains all the other save folders.
    Just need the one hyphen '-' before the 'c'
    You've got an extra hyphen between -c and 'unpowered'
    --prune-players was removed because SE started pruning players itself, but it looks like it leaves some to be desired so I might put it back in in the future. For now, it's not there.
     
  12. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    Say, on what system is everyone running SEMU? Windows, Linux or Mac?
     
  13. ZilgornZeypher

    ZilgornZeypher Trainee Engineer

    Messages:
    33
    Windows server

    As for the batch file. it now says that unpowered is an invalid choice...
     
  14. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    Sorry, my mistake. After the rewrite, the options for -c are powered, block and pb (powered AND block). Block means cleanup anything that doesn't have a certain block type. You can specify the block in the config.ini file.

    For more on the subject, open a command window and run SEMU with "-h" or "--help". It'll show everything and how to use it.
     
  15. gmyx

    gmyx Trainee Engineer

    Messages:
    2
    2 things, 1 am getting this error as well. Trouble file here: https://www.dropbox.com/s/c9asszayf31bn74/Asteroids with ICE.zip?dl=0

    And #2, you have lower case false at 3 locations (lines #593, 606, 616)
     
  16. towerofpower256

    towerofpower256 Apprentice Engineer

    Messages:
    120
    https://sourceforge.net/projects/semaintenanceutility/files/v2.1/SEMU.zip/download

    There we go, give that a shot. I've got it running without issues on your world that you previously updated. New NPC ship detection works a treat. Let me know if it gives you issues.

    Tell you what, switching between programming languages takes its toll. If it turns out that everyone is using this entirely on Windows, I might make the big switch to C#. If needed, I can then figure out how to use Mono and compile for Mac and Linux.
     
  17. TOCA2FREAK

    TOCA2FREAK Trainee Engineer

    Messages:
    7
    I'm running on a Windows server. :)
     
  18. gmyx

    gmyx Trainee Engineer

    Messages:
    2
    Perfect! Thanks!
     
  19. rottielover

    rottielover Apprentice Engineer

    Messages:
    485
    hey tower, I'm sorry I just haven't had time. I also had a couple "incidents" with my server, which have rendered the maps into a strange state (server can read and load it and players can play, but tools like SEMU and SEToolbox error out when trying to read blocks.

    I'm going to work on a fresh map, assuming that keen introduces a fix in today's patch.
     
  20. Mescaline Monkey

    Mescaline Monkey Trainee Engineer

    Messages:
    10
    Hey Towerofpower256,

    First off, I'd like to thank you for your excellent work on SEMU! I admin one of the most popular public multiplayer servers in SE and without your work on SEMU our server wouldn't be possible. On behalf of my fellow server admins, and thousands of players, THANK YOU!!!

    Now fix my problem. :p

    Running 2.1. SEMU now hangs on startup.

    [​IMG]
     
  21. Mescaline Monkey

    Mescaline Monkey Trainee Engineer

    Messages:
    10
    I am also unable to load post update saves with SEToolbox. SEMU is working fine for me after the update, aside from the pause I posted about above.
     
  22. rottielover

    rottielover Apprentice Engineer

    Messages:
    485
    looks like someone left a pause in there :eek:ops: hehe
     
  23. Mescaline Monkey

    Mescaline Monkey Trainee Engineer

    Messages:
    10
    What can I do to get around this pause issue?
     
  24. [404]DomUk

    [404]DomUk Trainee Engineer

    Messages:
    2
    I also am having this problem for our servers over at vilayer. It gets stuck on pause like the screenshot above, we cannot get past this as the window that opens in the web console doesn't allow input.
     
  25. beamer91

    beamer91 Trainee Engineer

    Messages:
    30
    Just out of curiosity why not make this a plugin for server extender
     
    • Like Like x 2
  26. Fishkaras

    Fishkaras Trainee Engineer

    Messages:
    51
    Line 740:
    Code:
    input("pause")
    Looks like problem is here...

    UPD:
    Here is recompiled SEMU exe without "pause" block: https://rghost.ru/7xLfbCLCQ (link will live 90 days).
    You can find logs in logs folder, the program can not display the report in the console now :(
    Custom config.ini and .bat file included.
    Use at your own risk.
     
    Last edited: Aug 3, 2015
  27. rottielover

    rottielover Apprentice Engineer

    Messages:
    485
    Awesome Fishkaras! Thank you for helping out the community.

    I have not heard from Tower in quite some time. I'm looking for someone to assist me. I have a fork of this on git, I need to make sure it's updated, then I would like to see if anyone can help me turn this into a plugin for SESE. Ideally I think it could replace or augment the timed cleanups and triggered cleanups of essentials. But I SUCK at coding. The only thing I did to this python script was added the ability to turn off or on lights.
     
  28. ayax

    ayax Trainee Engineer

    Messages:
    35
    Hi all, I'm on a Vilayer server and I seem to be stuck on "Compiling List of NPC Entities" so I'm assuming the pause thing is still an issue???

    I went as far as copying all the files that Fishkaras had that were duplicates of what files showed up on the SEMU folder on the server and tried running again and nothing happens after that line.

    Any help would be appreciated.
     
  29. Fishkaras

    Fishkaras Trainee Engineer

    Messages:
    51
    Hello.
    Please make screenshot or pastebin the problem log.

    Maybe you need to fix config.ini or .bat files.
     
  30. DS_Marine

    DS_Marine Apprentice Engineer

    Messages:
    494
    Seems that SEMU is deleting wheels. Did anyone find a workaround for that?
    /Edit yeah I guess just adding the block to the config.ini.. but then it won't clean any wheeled wreckage...
     
    Last edited: Dec 3, 2015
Thread Status:
Not open for further replies.
This last post in this thread was made more than 31 days old.