Space Engineers

Space Engineers

Taleden's Inventory Manager
Ocyris 5 Feb, 2016 @ 3:23am
[BUG] Locked Container
Been chasing this one down for a few weeks and I can finally reproduce it.

Locked containers can cause the script to enter a state where It can not place any items of that type into an unlimited container.

Reproduction:

  1. Build 3 containers, Link them with conveyors and take ownership
  2. Tag one as [TIM Locked]
  3. Tag one with an unlimited request ie [TIM Motor]
  4. Tag one with a limited request, [TIM Motor:10]
  5. Fill any of the containers with the item, enough to overfill the limited request
  6. Place at least 1 of the item that was tagged in the locked container

Actual Behavior:
Debug panel will report there is no place to put the items in surplus of the limited request. If using 1000 motors in the above and 1 motor was placed in the locked container then debug will report no place for 989 of them. This will cause TIM to stop functioning for that item until the either the locked tag or the limited requests are removed.

Expected Behavior:
TIM fills the limited request, does not removed anything from the locked container and placed any surplus in the unlimited containers.


< >
Showing 1-2 of 2 comments
Ocyris 5 Feb, 2016 @ 5:05am 
Found the root cause, Divide by zero error on line 1312 with "totalrequest". results in amount going to max negative long. Checking for zero and setting it to 1 resolves the issue
taleden  [developer] 5 Feb, 2016 @ 8:26am 
Interesting! Thanks for catching that edge case; I'll fix that for the next update.
< >
Showing 1-2 of 2 comments
Per page: 1530 50