Jump to content

Logical Iron Mining [A18.1 b8 +]


DiscipleOfBryan

Recommended Posts

Preamble:

Salutations!

 

This is not only my first modlet here, but also my first post. The short version goes a little something like this:

 

I love the game, only recently got it and I can see a lot of potential in it and am thoroughly enjoying getting used to the mechanics. Great work, TFP. Only a few days after I got in on the fun, A18.1 b7/8 is released – imagine my shock when I saw this:

 

7dtd_iron_mining_changed.jpg.e3de0141f66a0ab94d504127483439aa.jpg

 

Mining iron ore yields [scrap] iron

 

I don't mean to come across as indignant, but what the?

 

I had no intention of getting into modding for this as I'm quite keen to see where TFP takes things themselves, given how much I enjoy the game so far. This change, however, is just nonsensical from my point of view. The previous workflow for iron was perfectly logical and balanced:

 

Mine raw iron ore -> smelt in forge -> process into forged iron bars or scrap iron as needed.

 

As an aside, scrap iron is already incredibly abundant in the game.

 

So, I quickly got acquainted with xpath and slapped together this mod which intends to maintain the above logical workflow in the event that the resourceIronFragment item is completely removed from the game.

 

__________________________________________________

 

Logical Iron Mining

 

GitHub/Download: https://github.com/DiscipleOfBryan/7dtd_logical_iron_mining

 

Completed Features:

 

  • Reverts terrIronOre block behavior to give resourceIronFragment on Harvest.
  • Reverts oreIronBoulder block behavior to give resourceIronFragment on Harvest.

 

To Do:

 

  • Reproduce resourceIronFragment item as is/was, in the event that it is removed from the game and pending further study of xpath.

Link to comment
Share on other sites

Scrap Iron is available from so many sources. Removing the ore makes very little sense.

 

I looked at the old blocks.xml and I think this reverses it exactly:

 

 <configs>

<set xpath="/blocks/block[@name='terrOreIron']/drop[@event='Harvest' and @name='resourceScrapIron']/@count">21</set>
<set xpath="/blocks/block[@name='terrOreIron']/drop[@event='Harvest' and @name='resourceScrapIron']/@name">resourceIronFragment</set>

<set xpath="/blocks/block[@name='oreIronBoulder']/drop[@event='Harvest' and @name='resourceScrapIron']/@count">21</set>
<set xpath="/blocks/block[@name='oreIronBoulder']/drop[@event='Harvest' and @name='resourceScrapIron']/@name">resourceIronFragment</set>

</configs>

Link to comment
Share on other sites

Scrap Iron is available from so many sources. Removing the ore makes very little sense.

 

I looked at the old blocks.xml and I think this reverses it exactly:

 

 <configs>

<set xpath="/blocks/block[@name='terrOreIron']/drop[@event='Harvest' and @name='resourceScrapIron']/@count">21</set>
<set xpath="/blocks/block[@name='terrOreIron']/drop[@event='Harvest' and @name='resourceScrapIron']/@name">resourceIronFragment</set>

<set xpath="/blocks/block[@name='oreIronBoulder']/drop[@event='Harvest' and @name='resourceScrapIron']/@count">21</set>
<set xpath="/blocks/block[@name='oreIronBoulder']/drop[@event='Harvest' and @name='resourceScrapIron']/@name">resourceIronFragment</set>

</configs>

 

Excellent! Thanks for providing the actual numbers too, wasn't sure if 50 was correct (it seemed in line with other mined resources).

 

I'll fix it up so that it also affects the surface boulders. I totally forgot about them.

Link to comment
Share on other sites

Nice work!

this was one of the WTF moments I had when first started up A18!

There's a limit to how much one should abstract-icide a game. (abstracide? abstractify? abstactra-kadavra?)

\o/

 

Gonna go see if I can mod out the ability to scrap rawiron.

Link to comment
Share on other sites

Gonna go see if I can mod out the ability to scrap rawiron.

 

I'm only just now finding out you can do that... (relatively new player)

 

Gonna include that in this mod too if either one of us can achieve it.

 

EDIT: Upon further inspection, it doesn't appear to be possible via the .xml files. Also, having thought it over, I'm not too fussed about the raw iron being scrapable, as the current amount of ScrapIron yielded via that method is less than what you get per unit smelted in a forge (if I'm not mistaken).

Link to comment
Share on other sites

I'm only just now finding out you can do that... (relatively new player)

 

Gonna include that in this mod too if either one of us can achieve it.

 

EDIT: Upon further inspection, it doesn't appear to be possible via the .xml files. Also, having thought it over, I'm not too fussed about the raw iron being scrapable, as the current amount of ScrapIron yielded via that method is less than what you get per unit smelted in a forge (if I'm not mistaken).

 

I think it -might- be doable by altering the material settings for rawiron, if memory serves thats what defines what it can be scrapped into.

But that might muck up something else, need to test when I have the time for A18. Have been busy playing A15 :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...