Page 1 of 1

Water pump

Posted: Sun Jul 03, 2016 8:29 am
by dzbanek
it seems that you no longer can select water from pump. What am I missing? last v13

Re: Water pump

Posted: Sun Jul 03, 2016 10:19 am
by orzelek
dzbanek wrote:it seems that you no longer can select water from pump. What am I missing? last v13
It's now disabled by default - available from special ground resources that look like recolored oil wells.
You can use config mod to revert this to previous behavior.

Re: Water pump

Posted: Sun Jul 03, 2016 10:30 am
by dzbanek
I've set bobmods.config.plates.EnableGroundWater to true, it does not work, no water in recipes. I hope I don't need to start over, do I?

Re: Water pump

Posted: Sun Jul 03, 2016 10:38 am
by orzelek
dzbanek wrote:I've set bobmods.config.plates.EnableGroundWater to true, it does not work, no water in recipes. I hope I don't need to start over, do I?
You might need to call reset recipes/technology after change like this to apply to save file.
It's something like this:

Code: Select all

/c game.player.force.reset_technologies()
/c game.player.force.reset_recipes()

Re: Water pump

Posted: Sun Jul 03, 2016 11:24 am
by dzbanek
It didn't do anything visible. Still no luck.

Re: Water pump

Posted: Sun Jul 03, 2016 1:54 pm
by bobingabout
the ground water recipes are unlocked by the water pumps research.

As a result, you need to research water pumps AFTER you enable ground water.

If you have researched it first, you'll need to enable them with scripting.

to do that, open the console, and enter this command. it will disable any achievements that arn't already disabled.

Code: Select all

/c for index, force in pairs(game.forces) do force.recipes["lithia-water"].enabled = true force.recipes["ground-water"].enabled = true end

Re: Water pump

Posted: Sun Jul 03, 2016 2:03 pm
by dzbanek
Thank you Bob, it's working now, like you said.

Re: Water pump

Posted: Mon Jul 04, 2016 11:35 am
by Jodulf
Hi bob, I had the same problem yesterday, and the command fixed it, but today after your .13.(4?) update, the recipe disappeared, so I re-enabled it in the config and tried to run the command again, but got the error code "Cannot execute command. Error: [string "for index, force in pairs(game.forces) do for..."]:1: attemt to index field 'lithia-water' (a nil value) " any help would be greatly appreciated :)

Re: Water pump

Posted: Mon Jul 04, 2016 12:08 pm
by bobingabout
The error basically just sounds like the recipe was not enabled, so... double check your options in the config mod.

The only thing that should have changed in bobplates (MCI) is the migration scripts, so if it worked before, it should still work now. Unfortunately, updating the config mod means that all your settings were lost.

Re: Water pump

Posted: Mon Jul 04, 2016 12:40 pm
by Jodulf
I'm an idiot. I was configurating the file in my backup mod folder in documents, not the actual one in appdata -.- Thanks for the answers anyways Bob :D I love the work you do (Y)

Re: Water pump

Posted: Thu Jul 07, 2016 1:08 am
by legion_2k
Just set it up and did it in .13.6 and it now works. Change the config - saved -, then refreshed with the line of code in the console. Ta-Da!

Re: Water pump

Posted: Thu Jul 07, 2016 1:10 am
by legion_2k
Jodulf wrote:I'm an idiot. I was configurating the file in my backup mod folder in documents, not the actual one in appdata -.- Thanks for the answers anyways Bob :D I love the work you do (Y)
Ha! Welcome to the world of coding.. lol I have the same problem with staging and live apps at work.. I make sure staging has different colors or a label..

Re: Water pump

Posted: Sun Jul 24, 2016 2:55 pm
by appex213
legion_2k wrote:Just set it up and did it in .13.6 and it now works. Change the config - saved -, then refreshed with the line of code in the console. Ta-Da!

Can you explain what exactly you did? I'm having the same problem and i can't solve it.

EDIT: NVM, managed to get it working.