Ludeon Forums

Ludeon Forums

  • March 29, 2020, 08:28:18 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 4 5 [6] 7 8 ... 14

Author Topic: [B18] VeinMiner [] Mine all the veins! []kaptain_kavern & Gentz & JuliaEllie  (Read 187122 times)

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile

Sorry guys but it only works on vanilla ores because there wasnt a proper way for me to distinguish them from normal rocks other than the DefName. I will have a good look at the ThingDefs again and see if I can find something new.

Hi JuliaEllie and everyone!

I have found a *.dll way that works so far for alpha 10f to add extra mod compatibility support with VeinMiner,
by adding a small addition to your 'isOre' call to check for active mods and add appropriate ores accordingly.

Are you interested in a helping hand?  ???

Thank you but I think I have found a solution I just dont have the time to implement it right now. I might during the next week.

Neocryptorian

  • Drifter
  • **
  • Posts: 25
  • Shadow Survivor
    • View Profile

Ok, I have one solution up and running with expanded mining. But will keep that one private in respect to you of course, and curiously wait and see if we managed to solve the issue in the same way.  ;D

If you get any issues thou I am still lending a helping hand,
 dear regards a Code Enthusiast  ;)
Logged

https://www.ashesofcreation.com/

If you treat people right they will treat you right... ninety percent of the time.
~Franklin D. Roosevel

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile

UPDATE!!

Should now work with ANY ore that has a proper ThingDef.

@Necrocryptorian Id love to see your solution :)

#ShamelessBump

Neocryptorian

  • Drifter
  • **
  • Posts: 25
  • Shadow Survivor
    • View Profile

UPDATE!!

Should now work with ANY ore that has a proper ThingDef.

@Necrocryptorian Id love to see your solution :)

#ShamelessBump

Shameless? I'm still learning and personally I was wondering how to make my "patch" more dynamic/smarter to detect ores.
I am really impressed by your for me perfect solution. You are a Genius!  ;D
(I looked at your new code and very effective solution  :) )

My method was way dumber and purely based on if the "Mod" in question exist and is activated.

Code: [Select]
public bool isOre(ThingDef def)
{
System.Collections.Generic.List<ThingDef> list = new System.Collections.Generic.List<ThingDef>
{
DefDatabase<ThingDef>.GetNamed("MineablePlasteel", true),
DefDatabase<ThingDef>.GetNamed("MineableUranium", true),
DefDatabase<ThingDef>.GetNamed("MineableGold", true),
DefDatabase<ThingDef>.GetNamed("MineableSilver", true),
DefDatabase<ThingDef>.GetNamed("MineableSteel", true)
};
                        //My addition for the mod below just for a first try.
if (ModsConfig.IsActive("Expanded Mining"))
{
System.Collections.Generic.List<ThingDef> collection = new System.Collections.Generic.List<ThingDef>
{
DefDatabase<ThingDef>.GetNamed("MineableIron", true),
DefDatabase<ThingDef>.GetNamed("MineableCopper", true),
DefDatabase<ThingDef>.GetNamed("MineableAluminium", true),
DefDatabase<ThingDef>.GetNamed("MineableTitanium", true),
DefDatabase<ThingDef>.GetNamed("MineableRiminium", true),
DefDatabase<ThingDef>.GetNamed("MineableCoal", true),
DefDatabase<ThingDef>.GetNamed("MineableDiamond", true),
DefDatabase<ThingDef>.GetNamed("MineableTin", true)
};
                                //Append to current list
list.AddRange(collection);
}
return list.Contains(def);
}
Logged

https://www.ashesofcreation.com/

If you treat people right they will treat you right... ninety percent of the time.
~Franklin D. Roosevel

stranger080

  • Drifter
  • **
  • Posts: 57
  • Refugee
    • View Profile

Woot! Thank you for making this update! Been wanting that for some time!
Logged

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile

SURPRISE MOTHERFUCKERS FRIENDS! New Update for the VeinMiner - NOW WITH MINING BRUSHES!! YAY!! I might make more shaped brushes if we want or need them.

Kaballah

  • Colonist
  • ***
  • Posts: 836
  • Enjoyer of Failure
    • View Profile

Brilliant, that is super useful.  Not that you can't do everything with just dragging boxes but a brush is really cool for painting irregular tunnels and stuff, nice addition.
Logged

Ienkoron

  • Drifter
  • **
  • Posts: 35
  • Oooh Aaar
    • View Profile

Ooooohhh yes
Logged
If there's someone likely to over react, that's likely to be me :P

L.Max

  • Muffalo
  • *
  • Posts: 4
  • Refugee
    • View Profile

SURPRISE MOTHERFUCKERS FRIENDS! New Update for the VeinMiner - NOW WITH MINING BRUSHES!! YAY!! I might make more shaped brushes if we want or need them.

the shaped brushes are a great idea :)

but for the trade beacon i normally just mine a square 17x17 with a column next to the center for roof support

i would find it more useful in the search of geysers and ores to apply the following annexed patterns, for example ;) (mine every third line which allows to see the composition of the two lines in the middle with minimum mining i think. the perpendicular line in the middle is for easy passage in that direction)

[attachment deleted due to age]
Logged

skyarkhangel

  • Colonist
  • ***
  • Posts: 650
  • Skynet machine
    • View Profile


JuliaEllie, i love you, but please make for all your mods ability to translate into another language. Thank you  ;)
Logged

Scelous

  • Muffalo
  • *
  • Posts: 11
  • Refugee
    • View Profile

This mod is a huge quality-of-life upgrade.  It helps get rid of the tedium of selecting individual blocks as they appear and makes RimWorld that much better.  Many thanks, Julia, for this mod.
Logged

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile



strip miner update!!

Unfortunately the max width and height are limited by the Designator

thanks L.Max for the suggestion

cuproPanda

  • Colonist
  • ***
  • Posts: 644
  • Caffeine addiction
    • View Profile
    • GitHub



strip miner update!!

Unfortunately the max width and height are limited by the Designator

thanks L.Max for the suggestion

Does the strip miner automatically vein mine any ores it comes across? That would be very useful :)
Logged
cuproPanda's Mods: Survivalist's Additions, Additional Joy Objects, Cupro's Drinks, Quarry, Cupro's Stones, Zen Garden, Cupro's Alloys, Preset Filtered Zones, & more!

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile


Does the strip miner automatically vein mine any ores it comes across? That would be very useful :)

It would be pretty useful but also cheaty - so nope it doesnt do that :D

PurePandemonium

  • Muffalo
  • *
  • Posts: 1
  • Refugee
    • View Profile

Just started playing with mods today, and I love this one! The strip miner is great, but I have one minor issue with it.

I found that I can't seem to resize the horizontal strips. The helptext says to use 8, 4 5 and 6 on the numpad to resize. 4 and 5 work great for moving the vertical lines about, and 8 correctly widens the horizontal lines, but 5 doesn't seem to do anything. (I tried the 2 key as well, since it might be logical. Alas, no such luck.) Any chance this could be fixed? Thanks!
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 14