Space Engineers

Space Engineers

Taleden's Inventory Manager
Krypt 17 Jul, 2017 @ 8:08pm
Proper handling of "script too complex"
To be clear: I never used TIM, but seen some youtubers using it. And looks like it have some troubles with "script too complex" exception.

I'm resolved this issue in my scripts by using scheduller and spliting tasks between runs.
You can use my code if you want.

For example, it used there: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=794442948
It allows to unpack 1 mb of data in 2 seconds (120 runs of script)

This is the source of current version: https://github.com/krypt-lynx/SE-Sequencer2/blob/master/Sequencer2/Lib/neighbours/Scheduler.cs
< >
Showing 1-1 of 1 comments
taleden  [developer] 23 Aug, 2017 @ 6:24am 
TIM can also split tasks between runs using the cycles argument, which often resolves complexity errors. When that files, it can also help to make tags more specific (i.e. have each container specify the individual item(s) it should hold, instead of tagging them all "Ingot" or "Component" and making TIM do the work of distributing stuff).

Unfortunately I can't make TIM's task splitting any more intelligent because it would require a fair bit of code, and TIM has already been hitting the 100kb source code limit for awhile now.
< >
Showing 1-1 of 1 comments
Per page: 1530 50