Space Engineers

Space Engineers

TIM 1.189 updated minified [DEAD]
134 Comments
Varaxian 13 Nov, 2020 @ 6:45pm 
I don't suppose you might have the original code fix, for reference before minification?
NoiFox 15 Aug, 2020 @ 1:50pm 
thanks for this was very good
funhans 2 Apr, 2020 @ 2:54pm 
It works just fine for me.
And I wish you well!
Neraph 17 Jan, 2020 @ 9:10am 
Yeah, this is still working for me. Installed it on a new ship last week, works fine. The only particular issue is with refineries not pulling the correct amount of ore for cycles, but you can just not tag them and it's fine - the script will still balance the ingots and so forth.
TableruChan 10 Nov, 2019 @ 4:30am 
Thank you anyway. We loved your script but the time has come. I used it a very long time and couldn't live without because i didn't found one except yours.
Therian  [author] 14 Sep, 2019 @ 9:04am 
Use Isy's Inventory Manager, its got a lot more features than TIM, and is actively updated. TIM just can't work how it used to, making the purpose of this script (legacy supported ships) not feasible anymore.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1216126863
Zassi12 13 Sep, 2019 @ 12:32pm 
i wish you good things in life maybe in the future when you have time again and the will. But until then it is as it is.
Viper 31 Jul, 2019 @ 3:29pm 
Guys, stop trying to use this. This was TIM's last gasp, and he's dead now. No amount of ingame workaround CPR can make this work. Yes, Isy's Inventory Manager is notoriously instruction-heavy, but if you strip it down in his configurations and increase the instruction cycle time, you can make it work without killing your client/server.

Isy's is also now the only game in town. Read his guide, people, and give it a shot. I just made the conversion last week. It's not too hard. You can do this. Move on from TIM.

RIP old buddy
Raev82 10 Jul, 2019 @ 12:03pm 
Hello,

I installed this script and have been running it so far without any major issues. The one issue I have been getting is along the lines of the following:

ICE found 210232
data.amount after update 210232685709

This runs for every item I have in inventory and I am not sure of two things. 1: What is this error (on debug screen) and 2: How do I fix it? Again I can't see all of the errors as the screen is not big enough, but I can assure you there are several lines similar to this of different items.

Any help would be most appreciated.
Anthony AyeDog 28 May, 2019 @ 1:42am 
Trying to use this and it keeps queuing up a ridiculous amount of components

I have my container set to [tim components:100], but it's queing up dozens of superconductors, gravity components and medical components. Which wouldn't be SUPEr terrible if I had the space for them, or the resources to build them.
mxforlife 16 May, 2019 @ 11:15am 
Turn out the second error with conveyor turning on and off ever second cycle is pretty easy to fix.
The check if the conveyor was already on somehow got removed in "fix" for this version. Just re-add a block.GetUseConveyorSystem() in that if statement should fix it.

Unfortunate block.GetUseConveyorSystem is also deprecated, but it still there as what was used before "inven.Owner.UseConveyorSystem" is not even there any longer.

To do it the "proper" way would require doing a separate if for every block type that is to be switched since the property has been moved to the blocks specific class. But block guns don't seem to have gotten that property.....
mxforlife 16 May, 2019 @ 6:03am 
As several others has said, I to can confirm that Refinery management is broken in this version.

Running this scrip in a very small base, 1 refinery, 1 assembler and 3 large storage containers.
The script keeps putting lots (10k) of Silicone Ore into the refinery even thou it has Silicone Wafers far above the quota, just to pull all of that ore out again the next cycle. It then puts in a tiny amount of Magnesium (7.4) that is below quota. But that is so little that the refinery will refine it way faster then TIM refills it. And then we are back to it putting 10K silicone ore into the refinery. In storage is also Silver ore, Gold Ore, Iron Ore that all are below quota, but yet it keep pulling Silicon ore, the only one that is above quota.

Also every cycle it will toggle the usage of conveyor on the refinery, even thou the debug pane says it turning of conveyor of the refinery. It's actually turning them on every second time it turn them off.
DocSteal 9 May, 2019 @ 5:33am 
Hello are you planing on updating this Scrip so it works with the latest Patch or is the Original Person doing it ???
Krypt 20 Apr, 2019 @ 2:34pm 
Automatiuc LCDs output:

Small Reactor 5 [TIM Uranium:10]32.2 / 19.2 k
[░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]
Small Reactor 6 [TIM Uranium:10] 33 / 19.2 k
[░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]
Krypt 20 Apr, 2019 @ 2:32pm 
Looks like limits are broken in this version: reactors pulling uranium over limit
Probably EXEMPT is broken too: looks like reactors.refineries able to pull from it
Belfontan 20 Apr, 2019 @ 2:13am 
@Huey
In my last posting I wrote bullshit.
I misunderstood your posting, I'm sorry :o)
The way you describe your issue should work with TIM, I think :-?
Belfontan 19 Apr, 2019 @ 5:11pm 
@Huey
P5 is a very low Prio, so your shuttle will probably only be loaded if your base is overloaded.
If you want to make sure, your shuttle will be loaded full of stuff, change to P1, which is the highest Priority.
DocSteal 16 Apr, 2019 @ 4:09am 
so @Scruffy i tried that and it did not work

is there any news/time on an update for 1.190 thanks for ur time and have a good Day/night
Huey 15 Apr, 2019 @ 10:33pm 
Hey, love this thank you. I'm having an issue with priorities on an ingot shuttle. Its cargo is tagged [TIM Ingot:P4], the pickup location is [TIM Ore:P5 Ingot:P5 Component:P5] and the dropoff location is tagged [TIM Ore:P3 Ingot:P3]. In my mind the TIM at the pickup should push ingots to the shuttle on dock, then the TIM at the dropoff should pull them out of the shuttle. But it's not.

TIM is seeing the docked shuttle because it's definitely managing the reactor with [TIM Uranium:P1:20] - it's keeping it fuelled nicely. But why not the ingots? tia
Doc1979 14 Apr, 2019 @ 6:54am 
In the Program() initializer, add Runtime.UpdateFrequency = UpdateFrequency.Update100; to make the script self run every 100 ticks. In the main function, there is already a throttle programmed in to limit it to every 0.5 seconds. One of many references is here .
Scruffy 9 Apr, 2019 @ 12:50am 
Please update for 1.90 which swaps out IMyTextPanel for IMyTextSurface methods. Relatively straightforward update.
Shida 7 Apr, 2019 @ 6:34pm 
Well, I had tried to discern the issue myself, but DerekCHAN is right. Automatic refinery management is deeply, deeply broken, and there doesn't seem to be any particular reason for it.
DerekCHAN 3 Apr, 2019 @ 9:51am 
Asm and inventory sorting seem works fine. However, the Refineries management is broken. When tagged [TIM AUTO],multiple container and refineries would ends up with that script has no enough time to clean up inventory for priortised ores. Though I have enough nickle stock, it will continue produce it despite the uranium is almost gone.
Limak 1 Apr, 2019 @ 10:32am 
how can i use it with the nanit factory?
Bluewave101 30 Mar, 2019 @ 10:28pm 
yay!!!! tk you:steamhappy:
Therian  [author] 30 Mar, 2019 @ 7:31pm 
@scruffy, you shouldnt de-minifiy the code. this could cause unforseen errors. check out the code on github https://github.com/Therianulf/TIM-mini
Therian  [author] 30 Mar, 2019 @ 7:29pm 
Hey guys sorry i havent been around since the last update, I lost my job and i have been scrambling to get new work, so this has been on the sidelines. I have a few good prospects, and plan on updating this shortly
Scruffy 30 Mar, 2019 @ 5:39pm 
OK nm, I'm using Visual Studio to format it to readable... and now I've fixed it. I'm looking into the logic now. It seems much of the problems of items not staying 'in' the container you want them, or not being removed from the containers that are overflowing is due to 'overcapacity' logic being applied globaly, i'll see if I can fix it up.
Scruffy 30 Mar, 2019 @ 4:12pm 
@TheMadCat I have coded a little. I've been able to modify most script I find to work how need. Inventory management, like power management, is complex, but I'm working on it.
How can i modify this script? it appears obfuscated. I need to fix some things.
For starters, I have 200 h2/o2 gens and the script can't handle that volume of blocks. I can't find a way to make it ignore those blocks. I'd like to edit the script to do so. (I don't see any need to manage h2 gens)
TheMadCat 24 Mar, 2019 @ 3:33pm 
Thanks you so much for getting the script somewhat working.

It seems the LOCK is not working for Reactor (didn't try on other thing), as keep adding Uranium but doesn't remove when goes over the limit. This is a normal behavior somewhat if add by hand or little over by script it keeps that amount. However when goes over 300 unit from 250 same thing wrong. I assume in the code it's logic for adding doesn't see if it's over, but remove item does see the lock and skipped it. Side note: the "Use Convegor System" keep flipping on/off when pass limit.

By removing the lock seem to work except if higher pN comes it remove from reactor.

(Base - Eight of them)
{FMB} Large Reactor [TIM Uranium:P1:250 LOCK HIDDEN]

(Ship)
{BFI4002} Large Reactor [TIM Uranium:P2:250 LOCK HIDDEN]
(Eight of them)
{BFI4002} Small Reactor [TIM Uranium:P2:100 LOCK HIDDEN]

Ones again, thank you so much for getting the script to run after update.

@Scruffy, I see you have never code before....
Scruffy 21 Mar, 2019 @ 10:36pm 
... I think we need to start a new inventory management script... it can't be that hard. this ones broken, and the code is obfuscated, so cannot fix it..
Scruffy 21 Mar, 2019 @ 10:35pm 
My refineries keep processing ore i tell them not to. I've set the refineries up as per the instructions, specifying it only processes particular ores, but it keeps processing other ores as well. I don't want it to. How exactly do i stop a refinery processing an ore type?
CombineSniper | DRKN.com 19 Mar, 2019 @ 8:09am 
Adding to the Ingots issue, as some mentioned before the refineries keep producing the same type of ore (in my case it is uranium), regardless of the tags and quotas. I have added tags for specific ores for specific refineries, and those tags are disregarded. A workaround i found is to add LOCKED as a tag, and then input the ores you want manually, alternatively you could remove the tags temporarly.
ESL - jonas 17 Mar, 2019 @ 9:42am 
My quotas don't work aswell. it's showing assemblers stuck on making oxygen bottles but there is no quota for them and they are not actually trying to build some. i tried removing all assemblers and it will still show the amount stuck with ! on the lcd's.

anyone got an idea how to fix that? also its a brand new game i started today.
Lord Ve 16 Mar, 2019 @ 9:05pm 
Query: Why when I attempt to use [TIM Component:P5] is it Auto Corrected to [TIM Explosives:P5]? Normally I would look at the source to tell, but... Minified code is horrid to read.
aka13 16 Mar, 2019 @ 4:00pm 
Yeah, chiming in on Ingots. Propably has something to do with hte new ore processing.
Noila 15 Mar, 2019 @ 5:24pm 
Hey, not sure if you're aware of it, but there seems to be a problem with the quotas for Ingots. All others work fine. Now since the Ingot quotas aren't working correct the Refinerys keep munching the same ore.

Thank you for keeping the mod alive.
ItsJuicy 13 Mar, 2019 @ 11:21am 
Ok I messed with it a bunch. Me making it run once without a timer block and then setting up the timer block seemed to do the trick.
ItsJuicy 13 Mar, 2019 @ 11:11am 
It is this script im suppose to be putting into the program block right? I tried to use the script just now and I'm noticing it isnt capitalising tim like it normally does. Not sure if it is working correctly. I set the timer block to 5 seconds, with run with default arguement and start. Think anybody can give me some tips here? I use to use TIM for everything.
Orvishana 12 Mar, 2019 @ 7:14pm 
As far as the Ice comment, last i checked it counts O2/H2 generators as refineries (they refine ice into O2/H2) i figured that out because the number would change when i would dock ships that had 1 on board
Orvishana 12 Mar, 2019 @ 7:11pm 
Thank you so much for all the work you do to keep this working! :D
Gravey 12 Mar, 2019 @ 4:13am 
Thanks for updating the script! Im having a bit of an issue though. The script keeps turning the conveyor system on and off alternating each time it's run. The debug screen always says "Disabling conveyor system for Refinery [TIM AUTO]" even if it turned it on that cycle. Got any idea why this happens?
DerkaDerka 11 Mar, 2019 @ 8:44pm 
@Therian Also, it is telling me that all of my refineries are working on Ice, but the refineries are processing other ores:

http://i65.tinypic.com/2a0jpkx.png
DerkaDerka 11 Mar, 2019 @ 8:40pm 
@Therian I am not sure if it is intentional, but the conveyor system is constantly being shut off according to the debugging window. Also the debugging LCD seems to still have leftovers from debugging (I had to remove a lot of it because it was too large to put here:

SILICON found 123
data.amount after update 3182774448029
NICKEL found 1217038
data.amount after update 17068600842770
MAGNESIUM found 1
data.amount after update 53051219


Disabling conveyor system for [TIG] O2/H2 Gen 4 [TIM Ice:P5:5000 OxygenBottle:P5 HydrogenBottle:P5]
Disabling conveyor system for [TIG] O2/H2 Gen 4 [TIM Ice:P5:5000 OxygenBottle:P5 HydrogenBottle:P5]

Disabling conveyor system for [BFS] Reactor 1 [TIM Uranium:P5:1000]
Disabling conveyor system for [BFS] Reactor 2 [TIM Uranium:P5:1000]
Disabling conveyor system for [BFS] Reactor 4 [TIM Uranium:P5:1000]

Spatial Thought 11 Mar, 2019 @ 7:18pm 
@Therian
Script seems to be working correctly now. Thanks to you and Ian25 for all the hard work you have done to keep Taleden's script up to date.
Therian  [author] 11 Mar, 2019 @ 6:22pm 
oh and let me know if you find any bugs
Therian  [author] 11 Mar, 2019 @ 6:22pm 
TIM is now updated to 1.189. to update your script, simply reapply them from the browse scripts menu. Big thanks to Ian25 https://github.com/Ian25 for his help with debugging and getting everything straightened out.
Virdana 11 Mar, 2019 @ 12:26am 
Hey Therian,

can you tell us approximately how much work is left? We all know, that you're doing this as a hobby during your freetime, though there are a lot of people waiting for the final fixes to work with TIM again. If you can tell us a way to support you there in any way, please let us know.

And as others have already said: Thanks alot for your hard work fixing this mod for all of us to use and thumbs up.
TableruChan 8 Mar, 2019 @ 7:49am 
Yeah and i can't find any other fix in the workshop.
I have to use an another script that i don't want. TIM is always better.