pycoaltbaa-temp-dark change of mining output HELP PLS

Place to get help with not working mods / modding interface.
Post Reply
steveas
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Nov 30, 2014 8:39 pm
Contact:

pycoaltbaa-temp-dark change of mining output HELP PLS

Post by steveas »

I have no idea of modding and im hoping someone here be kind enough to help me if possible

I would like to change the output of the salt-mine result from PYORES "salt" to ANGELS "solid-salt"

I want to add this code to PyCoalTBaA-temp-dark mod for my own personal use ONLY

I would ask on the relevant modder but seems there mod page has been quiet for a month so i hope some experienced modder would like to help as to what i need to add


Kindest Regards to all
And TIA


Steve

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: pycoaltbaa-temp-dark change of mining output HELP PLS

Post by darkfrei »

steveas wrote:
Mon Sep 28, 2020 7:16 pm
I would like to change the output of the salt-mine result from PYORES "salt" to ANGELS "solid-salt"
1. Install the info mod viewtopic.php?t=45107
2. Start the game
3. Look into the factorio-current.log (with notepad++)
4. Find the data.raw.resource what you need: data.raw.resource["salt-rock"]
5. Copy this line and add it to your mod to the data.lua or data-updates.lua or data-final-fixes.lua
6. Change this string.
2020-09-29T18_13_26.png
2020-09-29T18_13_26.png (53.18 KiB) Viewed 999 times
old code:

Code: Select all

data.raw.resource["salt-rock"].minable.results[1] = {"salt", 1}
new code:

Code: Select all

data.raw.resource["salt-rock"].minable.results[1] = {"solid-salt", 1}
Or maybe extend to both:

Code: Select all

data.raw.resource["salt-rock"].minable.results = {{"salt", 1}, {"solid-salt", 1}}
Last edited by darkfrei on Tue Sep 29, 2020 5:15 pm, edited 1 time in total.

steveas
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Nov 30, 2014 8:39 pm
Contact:

Re: pycoaltbaa-temp-dark change of mining output HELP PLS

Post by steveas »

thankyou darkfrei for your kind assistance and wow a nice mod you have made very useful


5 star help to darkfrei

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: pycoaltbaa-temp-dark change of mining output HELP PLS

Post by darkfrei »

steveas wrote:
Tue Sep 29, 2020 4:55 pm
thankyou darkfrei for your kind assistance and wow a nice mod you have made very useful


5 star help to darkfrei
Thanks :)

With this mod is very easy to understand what you have after all mods loading.

Also you can replace all items "salt" with item "solid-salt", in all recipes for all mods. Or "solid-salt" to "salt", of course. Just with one script.

Post Reply

Return to “Modding help”