SuicidalInsanity

[1.7.x] Stockalike Mining Extension [0.99.3 Release 8/10/2019]

Recommended Posts

1 hour ago, B-STRK said:

Hi @TheProtagonists in trying out the patch, I noted that the Terravore gets only 0.30 goldore/sec, compared to the stock drill's 22.5 goldore/sec. Granted, the EC per goldore unit is the same for both, but in terms of output rate it's a little paradoxical that that the way bigger drill would be slower, and use less power, than the smaller. Would this be intended?

Also, the smaller stack drill isn't showing any goldore output.

 

Hope to hear from you on this!

Certainly not intended... I guess I made this over a year ago when I have no idea what those numbers do, so I basically just entered random numbers... Please feel free to change them as you see as fit and maybe share it here too!

Share this post


Link to post
Share on other sites
5 hours ago, TheProtagonists said:

Certainly not intended... I guess I made this over a year ago when I have no idea what those numbers do, so I basically just entered random numbers... Please feel free to change them as you see as fit and maybe share it here too!

I know, I'm looking at the part configs for SMX and Gold Standard, and I can't make heads or tails of the numbers I need to manipulate. (Why couldn't there have been an actual definition for input/output for drills, just like the ISRUs?)

PS: I got my numbers mixed up: Radial drill outputs 1.5 GoldOre/sec, not 22.5 (that was EC's). But 1.5/sec admittedly is still faster than 0.30/sec. 

For anyone else here who knows how to play with the drill modules, exactly what numbers do we need to manipulate to up the input/output of a drill for a given resource? The outcome we need is that the SMX drills' input/output for EC and GoldOre matches exactly that of their stock Ore input/output, just like what The Gold Standard does to the stock drills.  In hard numbers, that the Terravore, for example, eats 120ECs/sec. to spit out 20 GoldOre/sec, just like its Ore input/output. 

Also, @SuicidalInsanity, may I ask for help in matching up the CFG part names to their actual part names? (e.g., I assume the Size3 Stack Drill's the Terravore?) As noted in my previous post, the patch failed to apply for the stack drill one size smaller, and we need to identify what its CFG part name is (safe to assume Size2?).

Edited by B-STRK

Share this post


Link to post
Share on other sites

ModuleResourceHarvester/ModuleAsteroidDrill input/output values:
Efficiency: How much is harvested, on a 1:1 scale; Efficiency = 5 results in 5 [RESOURCE] per second getting harvested.
Ratio (inside an INPUT_RESOURCE segment): Multiply this by Efficiency to get Harvester operation resource cost, per second, so Efficiency = 5 with ratio = 10 would be 50 [RESOURCE] per second. Used by ModuleresourceHarvester.
PowerConsumption: identical to Ratio, except used by ModuleAsteroidDrill.
So for 1-1 Ore to GoldOre yield rates, for the Terravore, you'd want a ModuleResoureceHarvestern Efficiency of 20, a ratio of 6, and a ModuleAsteroidDrill Efficiency of 35 and a PowerConsumption of 1.14.

Drill names: CFG               in-game
SMX_InlineDrill              'Prospector' Aerospace Mining Excavator
SMX_0mStackDrill        'Trowel' Stack Mining Excavator
SMX_1mInlineDrill         'Wildcat' Vertical inline Mining Excavator
SMX_1mHInlineDrill      'Wildcat' Horizontal Mining Excavator
SMX_1mStackDrill        'Tremor' Stack Mining Excavator
SMX_2mStackDrill        'Terravore' Stack Mining Excavator
SMX_3mStackDrill        'Lithoquake' Stack Mining Excavator
SMX_1mInlinePump     Inline Oceanic Extractor
SMX_1mStackPump     D4-MP Stack Oceanic Extractor
SMX_2mStackPump     W-37 Stack Oceanic Extractor

Share this post


Link to post
Share on other sites

Actually, GroundConstruction already has a patch for SMX_Size3ISRU and SMX_Size0ISRU based on the calculations of his existing parts.

Share this post


Link to post
Share on other sites

Weird bug ... I tried using the Mk2 Drill and ISRU on my spaceplane, but they ended up being 1 size too small for some reason. I have Tweakscale so I scaled it up, but its kinda off... I'm playing on 1.5.1 - could abyone please confirm?

Share this post


Link to post
Share on other sites

Hi @SuicidalInsanity

I'm tidying up my game loading.

There is a an error in the ksp.log for a trigger on the concave MeshCollider not being supported for the Size0Drill

Peace.

Share this post


Link to post
Share on other sites

@SuicidalInsanityThere is a bug in 1.6.0 & 1.6.1 that can lock up the parts menu in the VAB if a bulkheadProfiles isn't defined for each part. The following thread discusses it. The following parts in this mod are missing the bulkheadProfiles definition

./MiningExpansion/Parts/Mk2Generator/part.cfg
./MiningExpansion/Parts/Mk2ISRUDrill/Drill.cfg
./MiningExpansion/Parts/Mk3OreTank/HugeTank.cfg
./MiningExpansion/Parts/Size0Generator/Generator.cfg
./MiningExpansion/Parts/Size0ISRU/ISRU.cfg
./MiningExpansion/Parts/Size0OreTank/Microtank.cfg
./MiningExpansion/Parts/Size0StackDrill/Drill.cfg
./MiningExpansion/Parts/Size1Generator/Generator.cfg
./MiningExpansion/Parts/Size1InlineDrill/InlineDrill.cfg
./MiningExpansion/Parts/Size1InlineDrillH/InlineDrill.cfg
./MiningExpansion/Parts/Size1InlinePump/OceanicExtractor.cfg
./MiningExpansion/Parts/Size1StackDrill/Drill.cfg
./MiningExpansion/Parts/Size1StackPump/OceanicExtractor.cfg
./MiningExpansion/Parts/Size2Generator/Generator.cfg
./MiningExpansion/Parts/Size2StackDrill/Drill.cfg
./MiningExpansion/Parts/Size2StackPump/OceanicExtractor.cfg
./MiningExpansion/Parts/Size3ISRU/ISRU.cfg
./MiningExpansion/Parts/Size3OreTank/HugeTank.cfg
./MiningExpansion/Parts/Size3StackDrill/Drill.cfg

Share this post


Link to post
Share on other sites

Hotfix update 0.9.9.2 to address the issue: SpaceDock - GitHub
Because all it does is fix the missing bulkhead profiles, I've also put together a MM patch for those of you who don't want to download a whole new update:

Spoiler

//adds missing bulkhead profiles
@PART[SMX_Mk2Generator|SMX_InlineDrill]
{
    %bulkheadProfiles = mk2
}
@PART[SMX_Mk3OreTank]
{
    %bulkheadProfiles = mk3, srf
}
@PART[SMX_Size0Generator|SMX_Size0OreTank]
{
    %bulkheadProfiles = size0, srf
}
@PART[SMX_Size0ISRU|SMX_0mStackDrill|SMX_RCSDriver]
{
    %bulkheadProfiles = size0
}
@PART[SMX_Size1Generator]
{
    %bulkheadProfiles = size1, srf
}
@PART[SMX_1mInlineDrill|SMX_1mHInlineDrill|SMX_1mInlinePump|SMX_1mStackDrill|SMX_1mStackPump|SMX_Size0Driver]
{
    %bulkheadProfiles = size1
}
@PART[SMX_Size1Driver|SMX_Size2Generator|SMX_2mStackDrill|SMX_2mStackPump]
{
    %bulkheadProfiles = size2
}
@PART[SMX_Size3ISRU|SMX_3mStackDrill]
{
    %bulkheadProfiles = size3
}
@PART[SMX_Size3OreTank]
{
    %bulkheadProfiles = size3, srf
}

 

Edited by SuicidalInsanity

Share this post


Link to post
Share on other sites

Slight compatibility issue to report... If you run Restock, it will block the stock textures. Any chance of adding a whitelist file so these parts can be run alongside Restock? (Also applicable to the Mk 2 Expansion pack as well.)

Share this post


Link to post
Share on other sites

SMX 0.9.9.3 Update - SpaceDock | GitHub

Changelog:

Spoiler

KSP 1.7 update
-Fixes Tweakscale patch, no longer conflicts with TS's SME patch
-Fixes scaled flag for agency contracts
-Fixes missing bulkhead profiles
-Adds Whitelist for ReStock compatibility

 

Share this post


Link to post
Share on other sites

Thanks for this SuicidalInsanity, 

I found an error in one config file.

\GameData\MiningExpansion\Patch\SME_KA.cfg

Missing a closing bracket } on this config.

Spoiler

@PART[SMX_Mk2ISRURefinery]:NEEDS[KerbalAtomics]
{
    MODULE
    {
         name = ModuleResourceConverter
         ConverterName = LH2
         StartActionName = Start ISRU [LH2]
         StopActionName = Stop ISRU [LH2]
        AutoShutdown = true
        TemperatureModifier
        {
            key = 0 50000
            key = 750 25000
            key = 1000 5000
            key = 1250 2500    
            key = 2000 2500    
            key = 4000 0
        }                
        GeneratesHeat = true
        DefaultShutoffTemp = .8
        ThermalEfficiency 
        {
            key = 0 0 0 0
            key = 500 0.9 0 0
            key = 1000 1.0 0 0
            key = 1250 0.9 0 0
            key = 1500 0.5 0 0
            key = 3000 0.0 0 0 
        }
        UseSpecialistBonus = true
        SpecialistEfficiencyFactor = 0.2
        SpecialistBonusBase = 0.05
        Specialty = Engineer
        EfficiencyBonus = 1

         
         INPUT_RESOURCE
         {
            ResourceName = Ore
            Ratio = 1
         }
         INPUT_RESOURCE
         {
            ResourceName = ElectricCharge
            Ratio = 30
         }
         OUTPUT_RESOURCE
         {
            ResourceName = LqdHydrogen
            Ratio = 0.9
            DumpExcess = false
         }
    }

 

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

Nevermind, shoud have read two comments above

Edited by Agustin

Share this post


Link to post
Share on other sites
On 4/23/2019 at 7:52 PM, Barar said:

Thanks for this SuicidalInsanity, 

I found an error in one config file.

\GameData\MiningExpansion\Patch\SME_KA.cfg

Missing a closing bracket } on this config.

  Reveal hidden contents

@PART[SMX_Mk2ISRURefinery]:NEEDS[KerbalAtomics]
{
    MODULE
    {
         name = ModuleResourceConverter
         ConverterName = LH2
         StartActionName = Start ISRU [LH2]
         StopActionName = Stop ISRU [LH2]
        AutoShutdown = true
        TemperatureModifier
        {
            key = 0 50000
            key = 750 25000
            key = 1000 5000
            key = 1250 2500    
            key = 2000 2500    
            key = 4000 0
        }                
        GeneratesHeat = true
        DefaultShutoffTemp = .8
        ThermalEfficiency 
        {
            key = 0 0 0 0
            key = 500 0.9 0 0
            key = 1000 1.0 0 0
            key = 1250 0.9 0 0
            key = 1500 0.5 0 0
            key = 3000 0.0 0 0 
        }
        UseSpecialistBonus = true
        SpecialistEfficiencyFactor = 0.2
        SpecialistBonusBase = 0.05
        Specialty = Engineer
        EfficiencyBonus = 1

         
         INPUT_RESOURCE
         {
            ResourceName = Ore
            Ratio = 1
         }
         INPUT_RESOURCE
         {
            ResourceName = ElectricCharge
            Ratio = 30
         }
         OUTPUT_RESOURCE
         {
            ResourceName = LqdHydrogen
            Ratio = 0.9
            DumpExcess = false
         }
    }

 

 

 

corrected on github and put in pull request for you. @barar thank you.

Share this post


Link to post
Share on other sites
Posted (edited)
  • Mk3 ISRU is missing a Near Future Propulsion patch.
  • Size 3 stack drill and size 1 horizontal inline drill are missing OSEWorkshop patches.
  • Mk2 drill and Mk2 generator have only 7 m/s impact tolerance and 2000K max temp instead of the 50 m/s and 2500K normal for their hull type.
  • Mk3 converter has 2500K max temp instead of the 2700K normal for its hull type.
  • Size 0 claw is called "Mini Grabbing UNit". I imagine the N isn't meant to be capitalised?
Edited by Rocket Witch

Share this post


Link to post
Share on other sites
Posted (edited)
2 hours ago, Rocket Witch said:
  • Mk3 ISRU is missing a Near Future Propulsion patch.
  • Size 3 stack drill and size 1 horizontal inline drill are missing OSEWorkshop patches.
  • Mk2 drill and Mk2 generator have only 7 m/s impact tolerance and 2000K max temp instead of the 50 m/s and 2500K normal for their hull type.
  • Mk3 converter has 2500K max temp instead of the 2700K normal for its hull type.
  • Size 0 claw is called "Mini Grabbing UNit". I imagine the N isn't meant to be capitalised?

PR for items crossed off above done.

If someone writes the patches (NFP and Workshop) I will push them on github.


some parts missing bulkheadProfiles. Will get to that this weekend.

Edited by zer0Kerbal

Share this post


Link to post
Share on other sites
9 hours ago, zer0Kerbal said:

PR for items crossed off above done.

Thanks. Also found Mk2 and Mk3 ore tanks don't have the normal temps for their types either. And the size 0 ore tank has a very good mass ratio out of line with the other ore tanks; I gave it a dry mass of 0.1 in my game.

Share this post


Link to post
Share on other sites
Posted (edited)
On 8/10/2019 at 11:05 PM, SuicidalInsanity said:

SME has been updated, and should fix the above issues.
Spacedock | Github

@SuicidalInsanity can you confirm that you reuploaded the 0.99.3 version? CKAN reports a different file size than on indexing.

Edit: sorry @SuicdaISnowman for the false tag...

Edited by DasSkelett

Share this post


Link to post
Share on other sites

Yes, it was re-uppped. Different file size would be from adding in missing mod configs to some of the patches for some of the parts.

Share this post


Link to post
Share on other sites

@SuicidalInsanity A small improvement that could be made: the patch adding the modes for LH2 conversion has NEEDS:[KerbalAtomics] but it would be better to point to [CryoTanks] since one may use Cryogenic Engines without Kerbal Atomics, but both share CryoTanks as a soft dependency. Or somehow make it need KA or CE.

Also, the Mk3 converter lacks an LH2 mode.

Share this post


Link to post
Share on other sites

And speaking of Mk3 ISRU module: it somehow is listed as having Mk2 bulkhead profile.

	bulkheadProfiles = srf, mk2
	tags = #LOC_SMX_MK3Refinery_tags

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.