Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2614025551
var assemblerInv = assembler.GetInventory(0);
var assemblerItems = assemblerInv.GetItems();
for (int i = assemblerItems.Count -1; i >= 0; i--)
{
assemblerInv.TransferItemTo(containerDestination, i, null, true, null);
}
with
var assemblerInv = assembler.GetInventory(0);
List<MyInventoryItem> assemblerItems = new List<MyInventoryItem>();
assemblerInv.GetItems(assemblerItems);
for (int i = 0; i < assemblerItems.Count; i++){
assemblerInv.TransferItemTo(containerDestination, i, null, true, null);
}
and it should work with 1.190
[img] https://s22.postimg.org/eqpxz2l1d/2016_10_07_14_45_20_Greenshot.png [/img]
I have my base set up like this : refinery -> container.ingots -> assemblers -> container.components.
When I run the script, all the ingots that were in assemblers move to "container.components" but I would like them to move back to "container.ingots" instead. Is this possible?
it just does nothing, all my assemblers have default names and all of my cargo containers are custom named for the inv script. is there something im missing?
In my base, I have a dozen assembler set on slave, and 2 on repeat (one for ammo, the other for iron components)
The problem is, sometimes the slaves will take the ammo one, and if they run out of magnesium they wont take the iron order anymore. So I would need to clean the queue of my slaves assemblers like every 5 minutes or something.