Space Engineers

Space Engineers

Automated Inventory Sorting
mar3usmc 7 Jun, 2015 @ 11:58am
Can I get this mod in script form please?
For a programming block where the server doesn't allow for mods.
< >
Showing 1-13 of 13 comments
gi_timmy 22 Jun, 2015 @ 5:11am 
I would also be interested in a script version.
Falcon 5 Aug, 2015 @ 4:17pm 
That would be legit! I love the mod and it will always remain on my server and having the assurance that I could carry it to another's server via programmable block would be legit!
Gameboy Nitro 22 Aug, 2015 @ 12:40pm 
+1
Mike Loeven 23 Aug, 2015 @ 4:40pm 
Definatly server admins flatly refused to install it serverside and this is the best inventory management system i have seen so far setting it up as a zero configuration script for a programable block is desperatly needed
mar3usmc 24 Aug, 2015 @ 6:00am 
It is also crazy that they don't put it up on servers as it only runs client side, at least if I remember correctly what the developer of this script said. Which means that when you sign off the script will not run on your ships. This helps servers, not hurt them.
tyrsis  [developer] 25 Aug, 2015 @ 9:53am 
I will not be making this a script. It runs threaded and can only run on the client. Scripts run on the server, and will break servers due to sorting being quite heavy on processing. Sorry. If you want to use this, please add it as a mod. Scripts are not replacements for mods.
Gameboy Nitro 25 Aug, 2015 @ 1:40pm 
Originally posted by tyrsis:
Scripts run on the server, and will break servers due to sorting being quite heavy on processing. Scripts are not replacements for mods.
Yeah, you're totally wrong on the first part. And the second part is also wrong, considering the whole point of in-game programming is to cut back on how many modifications are needed.

Your argument has already been proven false by the LCD scripts anyways. It's only going to break a server that isn't configured properly/too weak for the demand. No one plays this game with more than 15 people. And on average, it's 2. I personally play alone and I'd still prefer a script. It's more legit.

But whatever, I can write that ♥♥♥♥ myself. Thanks for nothing.
Last edited by Gameboy Nitro; 25 Aug, 2015 @ 1:46pm
Gameboy Nitro 25 Aug, 2015 @ 1:44pm 
Last edited by Gameboy Nitro; 25 Aug, 2015 @ 1:46pm
tyrsis  [developer] 29 Aug, 2015 @ 8:40am 
No one plays this with more than 15 players? Hmm. I seem to have a server that frequently combined has about 50, but yeah what do I know?

I will clear up some confusion. I made this long ago when inventory was first modifiable in modapi, way before there were any scripts. The mod is safe to run on servers because it processes in a separate thread and on the client's machine. It took a lot to get it to work that way, and it works that way only because if you have 1000+ containers, sorting causes the game to "stutter", or more specifically, it locks the main thread. This is due to the amount of processing required to move stuff around and check conveyors, etc.

With that being said, converting it to a "script" would be a bit harder, but not impossible. The source for this mod is available, and you can pull out parts of the sort that you want to use. I am not opposed to that at all. I don't really have time to do it, but it definitely is not just magically pressing a button and it becoming a script. Also I don't mess around with in-game scripts because I disable them on my server as they are process destroyers.
Last edited by tyrsis; 29 Aug, 2015 @ 8:57am
ReallyNotBad 25 Sep, 2015 @ 2:25pm 
I accept that you doesn't want to break server performance with this mod.
I just want to know how it works on client side.
Our clan has a server which runs smooth also with 5 player +
Since I installed this mod and configure our faction base my game stutter. It doesn't stutter with your mod when playing offline...so I think it is the mod which sends information to server.
My internet connection is very bad.
The Owner of the base is me so is there a way that the mod use another client with better connection?
Is there a priority which client is used for processing?
Or doesn't it sort anything when the owner is offline? I don't think so...
tyrsis  [developer] 27 Sep, 2015 @ 7:38am 
It does not sort when the player is offline. This is a trade off of doing client side sorting. You are presented with two options. a) a sorting system that will lag the server because it's always sorting, or b) a sorting system that doesn't work when the player is offline. I chose B. If you want A, then you can use other sorting scripts.
ReallyNotBad 27 Sep, 2015 @ 10:27am 
Originally posted by tyrsis:
It does not sort when the player is offline. This is a trade off of doing client side sorting. You are presented with two options. a) a sorting system that will lag the server because it's always sorting, or b) a sorting system that doesn't work when the player is offline. I chose B. If you want A, then you can use other sorting scripts.

No you doesn't understand me.
I use your Mod cause of no lag on Server...I just want to know who is the client which process the sorting...is it the owner or can it be shared in faction?...So that I can change the processing client to one with a better connection in my faction :)...
you did great work and as a programmer I fully understand your decision.
I just don't want to look up all your code to see which one is the processing client ;)
so it's just my laziness
tyrsis  [developer] 28 Sep, 2015 @ 6:33am 
Ah. The person who owns the blocks is the one who processes them, unless it's faction shared. If you do /sort faction and more than 1 person in the faction is online, then the sorting occurs more frequently, but each member in the faction is allowed to sort those blocks. When no one is on, nothing is sorted.
< >
Showing 1-13 of 13 comments
Per page: 1530 50