Space Engineers

Space Engineers

Better Stone v7.0.12
This topic has been locked
DranKof  [developer] 2 Dec, 2017 @ 6:31pm
WORKAROUND FOR TIM (2017)
This may be very outdated. Please read peoples' comments below and I will post more updates here when I can.

For now, this may be your best option, it's the (Unofficial) Update to TIM:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1268188438

There is also a very recent update from Nightfall301 with some replacement code.

=================================================================

Don't want to run your refinery on SE-vanilla-automatic? Then use this code-in-code workaround!

First, find this code at line 101-ish of the original code:
// Ore subtypes which refine into Ingots with a different subtype name, or // which cannot be refined at all (if set to ""). static readonly Dictionary<string,string> ORE_PRODUCT = new Dictionary<string,string> { {"ICE",""}, {"ORGANIC",""}, {"SCRAP","IRON"} };

Next, REPLACE IT with this code (last updated by Nightfall301 below):

// Item types which may have quantities which are not whole numbers. static readonly HashSet<string> FRACTIONAL_TYPES = new HashSet<string> { "INGOT", "ORE" }; // Ore subtypes which refine into Ingots with a different subtype name, or // which cannot be refined at all (if set to ""). static readonly Dictionary<string, string> ORE_PRODUCT = new Dictionary<string, string> { // vanilla products { "ICE", "" }, { "ORGANIC", "" }, { "SCRAP", "IRON" }, // better stone products - updated for v7.0.1+ {"[CM] DENSE IRON (FE+)", "IRON"}, {"[CM] IRON (FE)", "IRON"}, {"[CM] HEAZLEWOODITE (NI)", "NICKEL"}, {"[CM] CATTIERITE (CO)", "COBALT"}, {"[CM] PYRITE (FE,AU)", "GOLD"}, {"[CM] TAENITE (FE,NI)", "NICKEL"}, {"[CM] COHENITE (NI,CO)", "COBALT"}, {"[CM] KAMACITE (FE,NI,CO)", "NICKEL"}, {"[CM] GLAUCODOT (FE,CO)", "COBALT"}, {"[PM] ELECTRUM (AU,AG)", "GOLD"}, {"[PM] PORPHYRY (AU)", "GOLD"}, {"[PM] SPERRYLITE (PT)", "PLATINUM"}, {"[PM] NIGGLIITE (PT)", "PLATINUM"}, {"[PM] GALENA (AG)", "SILVER"}, {"[PM] CHLORARGYRITE (AG)", "SILVER"}, {"[PM] COOPERITE (NI,PT)", "PLATINUM"}, {"[PM] PETZITE (AG,AU)", "SILVER"}, {"[S] HAPKEITE (FE,SI)", "SILICON"}, {"[S] DOLOMITE (MG)", "MAGNESIUM"}, {"[S] SINOITE (SI)", "SILICON"}, {"[S] OLIVINE (SI,MG)", "MAGNESIUM"}, {"[S] QUARTZ (SI)", "SILICON"}, {"[S] AKIMOTOITE (SI,MG)", "MAGNESIUM"}, {"[S] WADSLEYITE (SI,MG)", "MAGNESIUM"}, {"[EI] CARNOTITE (U)", "URANIUM"}, {"[EI] AUTUNITE (U)", "URANIUM"}, {"[EI] URANIAURITE (U,AU)", "GOLD"}, {"[S] ICY STONE", "STONE"} };

Then click recompile to make the server master happy.

Now your refineries should refine the ores automagically!

(Also thanks to Kitsunay for helping out with this.)

-----------------------------------

Why is this needed? (Thanks to Kujo Divinity for the link.)

https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/546825757/1319961618831945087/

His script assumes an ore will beget an ingot of similar name I guess, much like vanilla behavior. The ores in this mod typically yield three or so products. This code extra-configures his code so that it looks to other ores (like it did scrap metal in vanilla) as sources for ingots.
Last edited by DranKof; 13 Jun, 2019 @ 9:00pm
< >
Showing 1-15 of 21 comments
Neraph 2 Dec, 2017 @ 8:01pm 
Thank you so much for this!
Neraph 2 Dec, 2017 @ 8:08pm 
Went to go plug it in and it's still saying it's 152 characters too long.... Frustrating. I'll develop a work-around.
DarkThemes 2 Dec, 2017 @ 8:40pm 
@Neraph no need for a further workaround; simply remove the comment (lines beginning with "\\" above ORE_PRODUCT.
Pordy 27 Mar, 2018 @ 1:12pm 
I am installed the mod after the map generation. Everything works fine, but when i use this workaround the Dense Iron ore doesnt handled by this script, if i using only IRON tag in the refineries name like [TIM Iron] the [Tim Dense Iron] works, but if you run the script with default run parameters, it will rewrite the name to [TIM Dense Iron Iron] And every time the script runs, add an "Iron" name tag. If you are using with "norewrite" run argument, it is working as indeed, but loosing the most convenient feature of the script is a very bad thing. :)
Maybe this issue never happens if i install the mod prior to map generation, but the original iron ores turned into dense iron, but when i mine them, in the inventories i see only the "Iron Ore" item, there is no item with Dense iron name. I dont know its a bug or this is the default behaviour of the mod.
Last edited by Pordy; 28 Mar, 2018 @ 10:30am
DranKof  [developer] 29 Mar, 2018 @ 12:57am 
Is this mod at the top of your mod list? It's sounds like load order is affecting precedence and another mod is overwriting the existence of the dense iron.
Pordy 30 Mar, 2018 @ 4:18pm 
Better stone at the top, and there is no other mod what interfere with iron.
Annastasya 12 Apr, 2018 @ 3:56pm 
I have the same issue. Becuase TIM sees "Iron" as a seperate word it treats is as "Iron" and does not include the "Dense" with it. Essetially "Dense Iron" being a recognized phrase that includes another recognized term within it: "Iron". Is it possible to change "Dense Iron" to "DenseIron" or "Dense_Iron" without it messing up the mod or gameworlds already using it? This I think would resolve the naming issue with TIM as the space between "Dense" and "Iron" makes TIM treat "Iron" as a new term rather than part of "Dense Iron". Also, Gorea has revitalized TIM and added your fixing into it already (along with some other needed improvements Here so I'm sure they'd be happy to work with you on making things work together better and incorporating whatever changes need to be made to keep both mods working and working together.
Tiger 12 Apr, 2018 @ 7:02pm 
The throws multiple errors now, as well as exceeding the maximum script length. It doesn't like the FRATIONAL_TYPES phrase anymore.
Last edited by Tiger; 12 Apr, 2018 @ 7:04pm
DranKof  [developer] 14 Apr, 2018 @ 6:44pm 
Thank you for all the information and the confirmation. I am in the middle of an international move again. I should be at a computer where I can look at it in 3-4 days.
Babbayega 5 May, 2018 @ 6:04pm 
ok, maybe i am doing this wrong. I cant seem to edit/replace and not get erros. I am running TIM 1.7.3 (2018-03-04) so, can someone dumb this down for me? i am not sure waht i am missing on the instructions...
Babbayega 5 May, 2018 @ 6:13pm 
ok, apparently my issue was that there was already a section just below the indicated section that was called 'better stone products' so the entries are there.

the mod is at the top of hte list, but tim wont put the ore in the refineries. manually i tried also, and the refinery wont accept them..

ideas?
Annastasya 7 May, 2018 @ 11:55am 
Must be something with the refineries. Though TIM is buggy when it comes to renaming ores (Icy Iron, Dense Iron) it works just fine for me. TIM will pull a 'normal' ore before a Better Stone specific ore if it can but it does pull BS ores if the normal ore is not available. TIM also recognizes the BS ore names once you have them in inventory that TIM tracks and those names can be used for quotas in refineries. As for them not being accepted, in some cases with mod refineries I have found adding "FORCE:Ore/{orename}" does the trick.
Last edited by Annastasya; 7 May, 2018 @ 11:57am
Babbayega 7 May, 2018 @ 4:08pm 
how can i stop TIM on a ship, from trying ot take over and pull cargo from a station? nothing on the station has a TIM tag on it, but i keep having to literally stop the TIM timer and Program blocks before docking.
Annastasya 7 May, 2018 @ 6:06pm 
"EXEMPT" Should keep TIM from touching any contents but without the TIM tag it won't anyways. If it is, there is something very wrong going on. It may be best to ask for TIM aadvice on the TIM mod page. Also, take a look at the unofficial update to TIM. It does not use timer blocks to keep running. It's a newer version and works better.
Last edited by Annastasya; 7 May, 2018 @ 6:08pm
DranKof  [developer] 10 May, 2018 @ 8:36am 
@Babbayega Hey, thanks for being patient and trying out things. I realized that I kinda totally forgot about this and I'm back in China (*again*) for the foreseeable future where Steam connectivity is really hard and my computer (no graphics card) can only handle SE in space.

I've clearly been distracted and I may be unable to do a whole lot of script re-learning and altering any time soon.

@Annastasya Thanks so much for helping out with your input and also sharing that there's an updated version.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1268188438

I'll try to still be around if the mod itself doesn't do what it's supposed to do but I hope anyone else who's into scripting can help whenever possible with scripting.

Thanks to everyone else, too for your patience if this update doesn't work!
< >
Showing 1-15 of 21 comments
Per page: 1530 50